I'm stuck on this question:
$$(D^2+1)y=4\cos{x}$$
where $D^2$ denotes the differential operator $\frac{d^2}{dx^2}$
As far as I know for trig functions, I'm supposed to assume $y=A\sin{x}+B\cos{x}$ and substitute to get $A$ and $B$. But however, for such,
$$(D^2+1)y=0$$
for all values of $A$ and $B$. I don't know what other types of $y$ I should assume. I'm basically clueless here, so any hints would be great.