Why is my solution wrong? Solving y” + y’ = 2sinx
The homogenous solution would be:
y = A + Be-x
For the particular solution, I made a guess that
yp = Atsinx + Btcosx (as Asinx and Bsinx would yield
zero in the equation)
So yp” + yp‘ = Acosx – Bsinx = 2sinx
Which means that A = 0, and B = -2
So the particular solution is yp = -2sinx
Now the general solution is:
y = A + Be-1 + 2sinx
According to the answer sheet, the answer should be y = A +
Be-1 – sinx – cosx





