Question #40492

Using the method of undetermined coefficients, write the trial solution of the equation
y"+2y'+5y=x(e)1/x cos 2x
and hence solve it .

Expert's answer

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/xcos2xy'' + 2y' + 5y = x(e)1/x \cos 2x and hence solve it.

Solution.

We have the differential equation


y+2y+5y=xexcos2xy'' + 2y' + 5y = xe^{-x} \cos 2x


The general solution will be the sum of the complementary solution and particular (trial) solution.

Find the complementary solution by solving


y+2y+5y=0y'' + 2y' + 5y = 0


Assume a solution will be proportional to eλxe^{\lambda x} for some constant λ\lambda. Substitute y=eλxy = e^{\lambda x} into the differential equation:


(eλx)+2(eλx)+5eλx=0\left(e^{\lambda x}\right)'' + 2\left(e^{\lambda x}\right)' + 5e^{\lambda x} = 0λ2eλx+2λeλx+5eλx=0\lambda^2 e^{\lambda x} + 2\lambda e^{\lambda x} + 5e^{\lambda x} = 0


Factor out eλxe^{\lambda x}:


(λ2+2λ+5)eλx=0(\lambda^2 + 2\lambda + 5)e^{\lambda x} = 0


Since eλx0e^{\lambda x} \neq 0 for any finite λ\lambda, the zeros must come from the polynomial:


λ2+2λ+5=0\lambda^2 + 2\lambda + 5 = 0


Solve for λ\lambda:


λ=1+2i or λ=12i\lambda = -1 + 2i \text{ or } \lambda = -1 - 2i


The roots λ=1±2i\lambda = -1 \pm 2i give y1=c1e(1+2i)xy_1 = c_1 e^{(-1 + 2i)x}, y2=c2e(12i)xy_2 = c_2 e^{(-1 - 2i)x} as solutions, where c1c_1 and c2c_2 are arbitrary constants.

The general solution is the sum of the above solutions:


y=y1+y2=c1e(12i)x+c2e(1+2i)xy = y_1 + y_2 = \frac{c_1}{e^{(1 - 2i)x}} + \frac{c_2}{e^{(1 + 2i)x}}


Apply Euler's identity eα+iβ=eαcosβ+ieαsinβe^{\alpha + i\beta} = e^{\alpha} \cos \beta + ie^{\alpha} \sin \beta:


y=c1(cos2xex+isin2xex)+c2(cos2xexisin2xex)y = c_1 \left(\frac{\cos 2x}{e^x} + i \frac{\sin 2x}{e^x}\right) + c_2 \left(\frac{\cos 2x}{e^x} - i \frac{\sin 2x}{e^x}\right)


Regroup:


y=(c1+c2)cos2xex+i(c1c2)sin2xexy = \frac{(c_1 + c_2) \cos 2x}{e^x} + \frac{i(c_1 - c_2) \sin 2x}{e^x}


Redefine c1+c2c_1 + c_2 as c1c_1 and i(c1c2)i(c_1 - c_2) as c2c_2, since these are arbitrary constants:


y=c1cos2xex+c2sin2xexy = \frac {c _ {1} \cos 2 x}{e ^ {x}} + \frac {c _ {2} \sin 2 x}{e ^ {x}}


Determine the particular solution to


y+2y+5y=xexcos2xy ^ {\prime \prime} + 2 y ^ {\prime} + 5 y = x e ^ {- x} \cos 2 x


by the method of undetermined coefficients. The particular solution is of the form:


yp=x(Acos2xex+Bxcos2xex+Csin2xex+Dxsin2xex),y _ {p} = x \left(\frac {A \cos 2 x}{e ^ {x}} + \frac {B x \cos 2 x}{e ^ {x}} + \frac {C \sin 2 x}{e ^ {x}} + \frac {D x \sin 2 x}{e ^ {x}}\right),


where Acos2xex+Bxcos2xex+Csin2xex+Dxsin2xex\frac{A\cos 2x}{e^x} +\frac{Bx\cos 2x}{e^x} +\frac{C\sin 2x}{e^x} +\frac{Dx\sin 2x}{e^x} was multiplied by xx to account for cos2xex\frac{\cos 2x}{e^x} in the complementary solution.

Solve for unknown constants A,B,C,DA, B, C, D .

Compute ypy_{p}^{\prime} :


yp=(Axcos2xex+Bx2cos2xex+Cxsin2xex+Dx2sin2xex)=Acos2xexAxcos2xex2Axsin2xexBx2cos2xex+2Bxcos2xex2Bx2sin2xex+2Cxcos2xex+Csin2xexCxsin2xex++2Dx2cos2xexDx2sin2xex+2Dxsin2xex\begin{array}{l} y _ {p} ^ {\prime} = \left(\frac {A x \cos 2 x}{e ^ {x}} + \frac {B x ^ {2} \cos 2 x}{e ^ {x}} + \frac {C x \sin 2 x}{e ^ {x}} + \frac {D x ^ {2} \sin 2 x}{e ^ {x}}\right) ^ {\prime} = \frac {A \cos 2 x}{e ^ {x}} - \frac {A x \cos 2 x}{e ^ {x}} - \\ - \frac {2 A x \sin 2 x}{e ^ {x}} - \frac {B x ^ {2} \cos 2 x}{e ^ {x}} + \frac {2 B x \cos 2 x}{e ^ {x}} - \frac {2 B x ^ {2} \sin 2 x}{e ^ {x}} + \frac {2 C x \cos 2 x}{e ^ {x}} + \frac {C \sin 2 x}{e ^ {x}} - \frac {C x \sin 2 x}{e ^ {x}} + \\ + \frac {2 D x ^ {2} \cos 2 x}{e ^ {x}} - \frac {D x ^ {2} \sin 2 x}{e ^ {x}} + \frac {2 D x \sin 2 x}{e ^ {x}} \\ \end{array}


Compute ypy_{p}^{\prime \prime}

yp=(Axcos2xex+Bx2cos2xex+Cxsin2xex+Dx2sin2xex)=4Axcos2xex++Acos2x(2ex+xex)4A(exxex)sin2x4Bx2cos2xex+Bcos2x(2ex+x2ex4xex)4B(x2ex+2xex)sin2x+4Ccos2x(exxex)4Cxsin2xex+C(2ex+xex)sin2x++4Dcos2x(x2ex+2xex)4Dx2sin2xex+D(2ex+x2ex4xex)sin2x\begin{array}{l} y _ {p} ^ {\prime \prime} = \left(\frac {A x \cos 2 x}{e ^ {x}} + \frac {B x ^ {2} \cos 2 x}{e ^ {x}} + \frac {C x \sin 2 x}{e ^ {x}} + \frac {D x ^ {2} \sin 2 x}{e ^ {x}}\right) ^ {\prime \prime} = - \frac {4 A x \cos 2 x}{e ^ {x}} + \\ + A \cos 2 x \left(- \frac {2}{e ^ {x}} + \frac {x}{e ^ {x}}\right) - 4 A \left(e ^ {- x} - \frac {x}{e ^ {x}}\right) \sin 2 x - \frac {4 B x ^ {2} \cos 2 x}{e ^ {x}} + B \cos 2 x \left(\frac {2}{e ^ {x}} + \frac {x ^ {2}}{e ^ {x}} - \frac {4 x}{e ^ {x}}\right) - \\ - 4 B \left(- \frac {x ^ {2}}{e ^ {x}} + \frac {2 x}{e ^ {x}}\right) \sin 2 x + 4 C \cos 2 x \left(e ^ {- x} - \frac {x}{e ^ {x}}\right) - \frac {4 C x \sin 2 x}{e ^ {x}} + C \left(- \frac {2}{e ^ {x}} + \frac {x}{e ^ {x}}\right) \sin 2 x + \\ + 4 D \cos 2 x \left(- \frac {x ^ {2}}{e ^ {x}} + \frac {2 x}{e ^ {x}}\right) - \frac {4 D x ^ {2} \sin 2 x}{e ^ {x}} + D \left(\frac {2}{e ^ {x}} + \frac {x ^ {2}}{e ^ {x}} - \frac {4 x}{e ^ {x}}\right) \sin 2 x \\ \end{array}


Substitute the particular solution ypy_{p} into the differential equation and simplify:


(2B+4C)cos2xex+8Dxcos2xex+(4A+2D)sin2xex8Bxsin2xex=xcos2xex\frac {(2 B + 4 C) \cos 2 x}{e ^ {x}} + \frac {8 D x \cos 2 x}{e ^ {x}} + \frac {(- 4 A + 2 D) \sin 2 x}{e ^ {x}} - \frac {8 B x \sin 2 x}{e ^ {x}} = \frac {x \cos 2 x}{e ^ {x}}


Equate the coefficients of excos2xe^{-x} \cos 2x on both sides of the equation:


2B+4C=02 B + 4 C = 0


And similarly:


8D=14A+2D=0\begin{array}{l} 8 D = 1 \\ - 4 A + 2 D = 0 \\ \end{array}8B=0- 8 B = 0


Solve the system:


A=116A = \frac {1}{16}B=0B = 0C=0C = 0D=18D = \frac {1}{8}


Substitute A,B,C,DA, B, C, D into ypy_{p}:


yp=xcos2x16ex+x2sin2x8exy _ {p} = \frac {x \cos 2 x}{16 e ^ {x}} + \frac {x ^ {2} \sin 2 x}{8 e ^ {x}}


So the general solution is:


y=c1cos2xex+c2sin2xex+xcos2x16ex+x2sin2x8exy = \frac {c _ {1} \cos 2 x}{e ^ {x}} + \frac {c _ {2} \sin 2 x}{e ^ {x}} + \frac {x \cos 2 x}{16 e ^ {x}} + \frac {x ^ {2} \sin 2 x}{8 e ^ {x}}


Answer:


y(x)=c1cos2xex+c2sin2xex+xcos2x16ex+x2sin2x8exy (x) = \frac {c _ {1} \cos 2 x}{e ^ {x}} + \frac {c _ {2} \sin 2 x}{e ^ {x}} + \frac {x \cos 2 x}{16 e ^ {x}} + \frac {x ^ {2} \sin 2 x}{8 e ^ {x}}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS