I'm curious as to why you get with the particular solution candidate Differentiating once yields

and the second time gives

Plugging this into the DE yields

Now then, you equate the coefficients of cosine, and you equate the coefficients of sine thus:

(cosine coefficients)

(sine coefficients).

Rewriting gives the system

is not the solution to this system. What is?