Solution (source code)

= Solution

For a <particular solution>, try $y_p=a\sin x+b\cos x$. Substitution gives
$$
4y_p''+8y_p'+5y_p=(a-8b)\sin x+(8a+b)\cos x.
$$
Matching coefficients requires $a-8b=1$ and $8a+b=8$, so $a=1$ and $b=0$. Adding the <homogeneous solution> from part (i), the general solution is
$$
\boxed{y(x)=\sin x+e^{-x}\left(A\cos\frac x2+B\sin\frac x2\right).}
$$