Second order non homogeneous diff. equation at constant coefficients
Hi there. I had some trouble trying to solve this:
(1)
At first I just found the solution for the homogeneous equation:

Then 
So I've tried to find the particular solution. I thought I should suggest an equation like:



But then, when I've tried to find the undetermined coefficients for
coefficients replacing in (1):
+3\sin 2x)
Then A=0,B=0,C=0 and D=-1.
So the general solution should be
=y_h+y_p=C_1\cos x+ C_2 \sin x-\sin 2x)
But with wolfram alpha I've corroborated my solution is wrong: y''+y=cos(x)+3 sin(2x) - Wolfram|Alpha
So, where is the mistake and how should I do this?
I think I've found unless one mistake, just noted it. I should use
instead of
, because the first two terms are linearly dependent with the homogeneous solution, right?