y′′+2y′+5y=xe−xcos(2x)
General solution will be sum of the complementary solution and particular solution.
Find the complementary solution by solving y′′+2y′+5y=0
Assume a solution will be proportional to eλx for some constant λ
Substitute y(x)=eλx into the differential equation
(λ2+2λ+5)eλx=0
solve for λ : λ=−1+2i or λ=−1−2i
These roots give this general solution
yg(x)=c1e−xcos2x+c2e−xsin2x
To find partial solution, we put into equation this form of solution
yp(x)=axe−xcos(2x)+bxe−xsin(2x)+cx2e−xcos(2x)+dx2e−xsin(2x)
and by computing first and second derivative and putting everything into equation, we determine all the coefficients
Partial solution:
yp(x)=1/16xe−xcos2x+1/8x2e−xsin2x
Then y(x)=yg(x)+yp(x)=c1e−xcos2x+c2e−xsin2x+1/16xe−xcos2x+1/8x2e−xsin2x
Comments
Leave a comment