Let us solve the differential equation y′′−2y′−3y=2e−x−10sinx. The characteristic equation k2−2k−3=0 is equivalent to (k+1)(k−3)=0, and hence has the roots k1=−1,k2=3.
The general solution of the differential equation is y=C1e−x+C2e3x+yp, where the particular solution is yp=axe−x+bcosx+csinx. Then yp′=ae−x−axe−x−bsinx+ccosx,yp′′=−ae−x−ae−x+axe−x−bcosx−csinx.
It follows that
−2ae−x+axe−x−bcosx−csinx−2(ae−x−axe−x−bsinx+ccosx)−3(axe−x+bcosx+csinx)=2e−x−10sinx.
Then
−4ae−x+(−4b−2c)cosx+(2b−4c)sinx=2e−x−10sinx.
We conclude that −4a=2,−4b−2c=0,2b−4c=−10. It follows that a=−21,c=−2b,10b=−10. Therefore, a=−21,b=−1,c=2.
We conclude that the general solutiion of the differential equation is
y=C1e−x+C2e3x−21xe−x−cosx+2sinx.
Comments
Leave a comment