I'm solving the differential equation $y'' + y = 8\cos(x) \cos(2x)$
I started to find the homogeneous solution:
We search the zeros of the associated polynomial:
$$r^2 + 1 = 0$$
This yields $r = i$ or $r = -i$
Hence, the homogeneous solution is:
$$y_h = e^0(c_1\cos(x) + c_2\sin(x)) + e^0(c_3\cos(-x) + c_4\sin(-x))$$
And by rewriting this, we find:
$$y_h = c_1\cos(x) + c_2\sin(x)$$
I have trouble making a suggestion for the particular solution. I would suggest something like:
$$y_p = (A\cos(x) + B\sin(x))(C\cos(2x) + D\sin(2x))$$
but the answer my book gives is :
$$y = x_1\cos(x) + (c_2 + 2x)\sin(x) - 1/2\cos(3x)$$
Where does the $\cos(3x)$ come from? This makes me wonder my suggestion won't work.
Any help will be appreciated.