The molecular formula alone fixes how much unsaturation must be present — after that, every isomer is just a different place to put the double or triple bond on a different carbon skeleton.For a hydrocarbon \(\displaystyle \text{C}_c\text{H}_h \), the degree of unsaturation is
\[\text{DoU} = \frac{2c+2-h}{2} \]
where \(\displaystyle c\) is the number of carbon atoms and \(\displaystyle h\) the number of hydrogen atoms; each ring or double bond uses up $\displaystyle 1$ unit, and each triple bond uses up $\displaystyle 2$ units (a triple bond is "worth" two double bonds' worth of missing hydrogens).
Checking this against what each part already tells you:
\(\displaystyle \text{C}_4\text{H}_8 \): \(\displaystyle \text{DoU} = \dfrac{2(4)+2-8}{2} = \dfrac{10-8}{2} = 1 \). One unit of unsaturation, and the question says it is one double bond — so there is no ring hiding anywhere, and every isomer below is an open-chain alkene.
\(\displaystyle \text{C}_5\text{H}_8 \): \(\displaystyle \text{DoU} = \dfrac{2(5)+2-8}{2} = \dfrac{12-8}{2} = 2 \). Two units, and a triple bond by itself already accounts for both — so again there is no extra ring or second double bond to worry about; every isomer below is an open-chain alkyne.
(a) \(\displaystyle \text{C}_4\text{H}_8 \), one double bondOnly two carbon skeletons exist for four carbons: the straight chain and the one with a single methyl branch. Slide the double bond along each, keeping the numbering rule that the point of unsaturation gets the lowest possible locant.
Straight chain:
Double bond at C1–C2: \(\displaystyle \text{CH}_2\text{=CH-CH}_2\text{-CH}_3 \) — but-$\displaystyle 1$-ene.
Double bond at C2–C3: \(\displaystyle \text{CH}_3\text{-CH=CH-CH}_3 \) — but-$\displaystyle 2$-ene.
The step that is easy to miss here: in but-$\displaystyle 1$-ene, one end of the double bond is \(\displaystyle \mathrm{=\text{CH}_2}\), which carries two identical H's, so there is only one way to arrange it in space. In but-$\displaystyle 2$-ene, by contrast,
each doubly-bonded carbon carries two
different groups — one H and one \(\displaystyle \text{CH}_3\) and a C=C bond cannot rotate. That gives two genuinely different molecules from the one structural formula: \(\displaystyle \text{CH}_3\) groups on the same side is
cis-but-$\displaystyle 2$-ene, and on opposite sides is
trans-but-$\displaystyle 2$-ene. Writing "but-$\displaystyle 2$-ene" without noting this hides two of your isomers.
Branched chain: the only place a double bond can sit on a four-carbon chain with one methyl branch is between the branch carbon and a terminal carbon:
\(\displaystyle \text{CH}_2\text{=C(CH}_3\text{)-CH}_3 \) —
$\displaystyle 2$-methylprop-$\displaystyle 1$-ene (also called isobutylene). Here the branch carbon carries two \(\displaystyle \text{CH}_3\) groups that are identical to each other, so there is no cis/trans version of this one.
That is every possibility — a double bond one carbon further along the branched skeleton would just be relabelling the same molecule from the other end, and a branch anywhere else would either exceed four carbons or duplicate the straight chain.
So \(\displaystyle \text{C}_4\text{H}_8 \) with one double bond gives four isomers:
but-$\displaystyle 1$-ene, \(\displaystyle \text{CH}_2\text{=CH-CH}_2\text{-CH}_3 \)
cis-but-$\displaystyle 2$-ene, \(\displaystyle \text{CH}_3\text{-CH=CH-CH}_3 \) (both \(\displaystyle \text{CH}_3\) on the same side)
trans-but-$\displaystyle 2$-ene, \(\displaystyle \text{CH}_3\text{-CH=CH-CH}_3 \) (\(\displaystyle \text{CH}_3\) groups on opposite sides)
$\displaystyle 2$-methylprop-$\displaystyle 1$-ene, \(\displaystyle \text{CH}_2\text{=C(CH}_3\text{)-CH}_3 \)
(Quick self-check: each formula has $\displaystyle 4$ carbons and, counting every H, adds up to $\displaystyle 8$ — matching \(\displaystyle \text{C}_4\text{H}_8 \).)
(b) \(\displaystyle \text{C}_5\text{H}_8 \), one triple bondThe rule that controls this one: a carbon at either end of a C≡C bond is sp-hybridised and
linear, so it has room for only
one other atom or group besides its triple-bond partner. A terminal alkyne carbon uses that one slot for an H; an internal alkyne carbon uses it to continue the chain. Either way, a triple-bonded carbon can never itself be a branch point — that is the step people get wrong, trying to hang a methyl group directly off a \(\displaystyle \text{C}\equiv\text{C}\) carbon, which its geometry simply does not allow. Branches can only sit on the ordinary (sp3) carbons elsewhere in the chain.
Straight chain ($\displaystyle 5$ carbons):
Triple bond at C1–C2: \(\displaystyle \text{HC}{\equiv}\text{C-CH}_2\text{-CH}_2\text{-CH}_3 \) — pent-$\displaystyle 1$-yne.
Triple bond at C2–C3: \(\displaystyle \text{CH}_3\text{-C}{\equiv}\text{C-CH}_2\text{-CH}_3 \) — pent-$\displaystyle 2$-yne.
(Triple bond at C3–C4 is pent-$\displaystyle 2$-yne again, renumbered from the other end; at C4–C5 it is pent-$\displaystyle 1$-yne again — so the straight chain gives only these two distinct compounds.)
Branched chain ($\displaystyle 4$-carbon main chain, one methyl branch): the triple bond must sit at one end (C1–C2), because a triple bond at C2–C3 of a four-carbon chain — \(\displaystyle \text{CH}_3\text{-C}{\equiv}\text{C-CH}_3 \), but-$\displaystyle 2$-yne — has only terminal \(\displaystyle \text{CH}_3\) carbons left to branch from, and putting a methyl on either of those just extends the chain into pent-$\displaystyle 2$-yne, which is already counted, not a new isomer. With the triple bond at C1–C2, the only sp3 carbon with a spare hydrogen to replace is \(\displaystyle \mathrm{C_{3}}\):
\(\displaystyle \text{HC}{\equiv}\text{C-CH(CH}_3\text{)-CH}_3 \) —
$\displaystyle 3$-methylbut-$\displaystyle 1$-yne. The chain is numbered from the triple-bond end because the point of unsaturation always gets the lower locant before substituents are considered, so it is "but-$\displaystyle 1$-yne," not "but-$\displaystyle 3$-yne."
So \(\displaystyle \text{C}_5\text{H}_8 \) with one triple bond gives three isomers (no cis/trans possibilities here — a linear triple bond has no "sides" to be on):
pent-$\displaystyle 1$-yne, \(\displaystyle \text{HC}{\equiv}\text{C-CH}_2\text{-CH}_2\text{-CH}_3 \)
pent-$\displaystyle 2$-yne, \(\displaystyle \text{CH}_3\text{-C}{\equiv}\text{C-CH}_2\text{-CH}_3 \)
$\displaystyle 3$-methylbut-$\displaystyle 1$-yne, \(\displaystyle \text{HC}{\equiv}\text{C-CH(CH}_3\text{)-CH}_3 \)
(Self-check: each has $\displaystyle 5$ carbons, and the hydrogens on every formula total $\displaystyle 8$ — matching \(\displaystyle \text{C}_5\text{H}_8 \).)
**Answer: (a) \(\displaystyle \text{C}_4\text{H}_8 \) with one double bond gives but-$\displaystyle 1$-ene \(\displaystyle \text{CH}_2\text{=CH-CH}_2\text{-CH}_3 \), cis- and trans-but-$\displaystyle 2$-ene \(\displaystyle \text{CH}_3\text{-CH=CH-CH}_3 \), and $\displaystyle 2$-methylprop-$\displaystyle 1$-ene \(\displaystyle \text{CH}_2\text{=C(CH}_3\text{)-CH}_3 \). (b) \(\displaystyle \text{C}_5\text{H}_8 \) with one triple bond gives pent-$\displaystyle 1$-yne \(\displaystyle \text{HC}{\equiv}\text{C-CH}_2\text{-CH}_2\text{-CH}_3 \), pent-$\displaystyle 2$-yne \(\displaystyle \text{CH}_3\text{-C}{\equiv}\text{C-CH}_2\text{-CH}_3 \), and $\displaystyle 3$-methylbut-$\displaystyle 1$-yne \(\displaystyle \text{HC}{\equiv}\text{C-CH(CH}_3\text{)-CH}_3 \).