Answer on Question #40492 – Math - Differential Calculus
Using the method of undetermined coefficients, write the trial solution of the equation y′′+2y′+5y=x(e)1/xcos2x and hence solve it.
Solution.
We have the differential equation
y′′+2y′+5y=xe−xcos2x
The general solution will be the sum of the complementary solution and particular (trial) 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=eλx into the differential equation:
(eλx)′′+2(eλx)′+5eλx=0λ2eλx+2λeλx+5eλx=0
Factor out eλx:
(λ2+2λ+5)eλx=0
Since eλx=0 for any finite λ, the zeros must come from the polynomial:
λ2+2λ+5=0
Solve for λ:
λ=−1+2i or λ=−1−2i
The roots λ=−1±2i give y1=c1e(−1+2i)x, y2=c2e(−1−2i)x as solutions, where c1 and c2 are arbitrary constants.
The general solution is the sum of the above solutions:
y=y1+y2=e(1−2i)xc1+e(1+2i)xc2
Apply Euler's identity eα+iβ=eαcosβ+ieαsinβ:
y=c1(excos2x+iexsin2x)+c2(excos2x−iexsin2x)
Regroup:
y=ex(c1+c2)cos2x+exi(c1−c2)sin2x
Redefine c1+c2 as c1 and i(c1−c2) as c2, since these are arbitrary constants:
y=exc1cos2x+exc2sin2x
Determine the particular solution to
y′′+2y′+5y=xe−xcos2x
by the method of undetermined coefficients. The particular solution is of the form:
yp=x(exAcos2x+exBxcos2x+exCsin2x+exDxsin2x),
where exAcos2x+exBxcos2x+exCsin2x+exDxsin2x was multiplied by x to account for excos2x in the complementary solution.
Solve for unknown constants A,B,C,D .
Compute yp′ :
yp′=(exAxcos2x+exBx2cos2x+exCxsin2x+exDx2sin2x)′=exAcos2x−exAxcos2x−−ex2Axsin2x−exBx2cos2x+ex2Bxcos2x−ex2Bx2sin2x+ex2Cxcos2x+exCsin2x−exCxsin2x++ex2Dx2cos2x−exDx2sin2x+ex2Dxsin2x
Compute yp′′
yp′′=(exAxcos2x+exBx2cos2x+exCxsin2x+exDx2sin2x)′′=−ex4Axcos2x++Acos2x(−ex2+exx)−4A(e−x−exx)sin2x−ex4Bx2cos2x+Bcos2x(ex2+exx2−ex4x)−−4B(−exx2+ex2x)sin2x+4Ccos2x(e−x−exx)−ex4Cxsin2x+C(−ex2+exx)sin2x++4Dcos2x(−exx2+ex2x)−ex4Dx2sin2x+D(ex2+exx2−ex4x)sin2x
Substitute the particular solution yp into the differential equation and simplify:
ex(2B+4C)cos2x+ex8Dxcos2x+ex(−4A+2D)sin2x−ex8Bxsin2x=exxcos2x
Equate the coefficients of e−xcos2x on both sides of the equation:
2B+4C=0
And similarly:
8D=1−4A+2D=0−8B=0
Solve the system:
A=161B=0C=0D=81
Substitute A,B,C,D into yp:
yp=16exxcos2x+8exx2sin2x
So the general solution is:
y=exc1cos2x+exc2sin2x+16exxcos2x+8exx2sin2x
Answer:
y(x)=exc1cos2x+exc2sin2x+16exxcos2x+8exx2sin2x