# How do I solve y'' + y = -2 sin(x) with the initial conditions y(0) = 0 and y'(0) = 1?

CF is given equating to zero your equation and transforming it into a 2nd degree equation introducing an auxiliary factor $m$.
PI is given depending upon the function $f \left(x\right)$ you have after the $=$ sign.