The characteristic eqn corresponding to LHS is $m^2+3m+2=0$. The solutions are: $m = -2$ and $m = -1$. So $y_c=Ae^{-2x}+Be^{-x}$.
The Annihilator of $sin x = D^2+1 $. Which makes $y_p=Ccosx +Dsinx$. Where $A, B, C, D$ are constants.
To find the constants $C$, and $D$. I found out $y_p^{'} =-Csinx+Dcosx$ and $y_p^{''} =-Ccosx-Dsinx$. I put these values in the original eqn ($y^"+3y^{'}+2y=sinx$). I'm not getting the right values. C should be -3/10 and D should be 1/10.
Any clues as to where I'm going wrong?
Thanks.
sorry for bad quality but the answer is correct.