The differential equation has x'(t) in it. That term flips cosines to
sines, and sines to cosines. That's why you need both sine and cosine
in your series guess for x_sp(t).
Another way of saying it is that when you write down a Fourier series
for x_sp(t) with unknown coefficients, you are really using the Method
of Undetermined Coefficients - and in that method, if the right side
of the DE has a sine or a cosine then your guess for the particular
solution should involve *both* a sine and a cosine.