
Alan G. answered 03/10/16
Tutor
5
(4)
Successful at helping students improve in math!
Haven't you asked about this before?
Try using the guess:
yp = ex cos x (A + Bx + Cx2) + ex sin x (D + Ex + Fx2).
I believe I explained already why this initial guess is necessary. Let me know if you need more help with the reasoning. The basic idea is to include enough terms so that you can get everything you need to calculate the right side of the DE.