How do you solve the following inhomogeneous differential equation:
$$ y' + y\cos x = \sin x \cos x ?$$
I determined the homogeneous solution ($y_h=Ce^{-\sin x})$, but how do I find the particular solution? I tried using the ansatz $y_p = (P \sin x + Q\cos x)(S\sin x + Z\cos x)$, but this approach failed (I didn't succeed at least). What is the most bright approach? Thanks for any help!