How do I solve #y'' + y = -2 sin(x)# with the initial conditions #y(0) = 0# and #y'(0) = 1#?
I am not sure how much you know about 2nd order differential equation but I'll try to be as clear as possible. (try the theory in K. A. Stroud, "Engineering Mathematics", it is very good!)
Your solution is made of two parts:
General Solution=Complementary Function+Particular Integral=CF+PI
CF is given equating to zero your equation and transforming it into a 2nd degree equation introducing an auxiliary factor
PI is given depending upon the function
So you have:
Hope it helps