If you honestly have no idea how to even start a homework problem, you have a serious problem. I recommend you talk to your teacher about this. Obviously, he/she expects you to know how to do problems like this. If you don't your teacher needs to suggest some review.
The standard method of solving a "non-homogeneous linear differential equation with constant coefficients" is first to solve the associated homogeneous equation:
[tex]\frac{d^2x}{dt^2}+ x= 0[/tex]
Can you do that?
And then look for a single solution to the entire equation. Normally, with "cos(x)" on the left, I would recommend trying something of the form "Acos(x)+ Bsin(x)" but for this equation, as you should be able to see after solving the associated homogeneous equation, that will not work. Instead try something of the form y= Ax cos(x)+ Bx sin(x).