$$4y''+16y'+17y=e^{-2t}\sin(\frac{t}{2})+6t\cos(\frac{t}{2})$$
Shouldn't it the guess be:
$$y_{p}=e^{-2t}\left(A\sin(\frac{t}{2})+B\cos(\frac{t}{2})\right)+(Ct+D)\left(\cos(\frac{t}{2})+\sin(\frac{t}{2})\right)$$?
$$4y''+16y'+17y=e^{-2t}\sin(\frac{t}{2})+6t\cos(\frac{t}{2})$$
Shouldn't it the guess be:
$$y_{p}=e^{-2t}\left(A\sin(\frac{t}{2})+B\cos(\frac{t}{2})\right)+(Ct+D)\left(\cos(\frac{t}{2})+\sin(\frac{t}{2})\right)$$?
Note that the solutions of the characteristic equation are $-2\pm{i\over2}$. It follows that $e^{-2t}\sin{t\over2}$ is a solution of the corresponding homogeneous equation. You should take care of this in your "Ansatz" for $y_p$.