Question #49494

solve the second order differential equation

y" - 3y' + 2y = 3e^(-x) - 10cos3x y(0) = 1 y'(0) =2

Expert's answer

Answer on Question #49494 – Math– Differential Calculus | Equations

Question:

Solve the second order differential equation


y3y+2y=3e(x)10cos(3x)y(0)=1y(0)=2y'' - 3y' + 2y = 3e^{\wedge}(-x) - 10\cos(3x)y(0) = 1 \quad y'(0) = 2

Solution:

Solve 3dy(x)dx+d2y(x)dx2+2y(x)=3ex10cos(3x)-3 \frac{dy(x)}{dx} + \frac{d^2y(x)}{dx^2} + 2y(x) = 3e^{-x} - 10\cos(3x), such that y(0)=2y(0) = 2 and y(0)=2y'(0) = 2:

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

Find the complementary solution by solving d2y(x)dx23dy(x)dx+2y(x)=0\frac{d^2y(x)}{dx^2} - 3\frac{dy(x)}{dx} + 2y(x) = 0:

Assume a solution will be proportional to eλxe^{\lambda x} for some constant λ\lambda.

Substitute y(x)=eλxy(x) = e^{\lambda x} into the differential equation:


d2dx2(eλx)3ddx(eλx)+2eλx=0\frac{d^2}{dx^2}(e^{\lambda x}) - 3 \frac{d}{dx}(e^{\lambda x}) + 2 e^{\lambda x} = 0


Substitute d2dx2(eλx)=λ2eλx\frac{d^2}{dx^2}(e^{\lambda x}) = \lambda^2 e^{\lambda x} and ddx(eλx)=λeλx\frac{d}{dx}(e^{\lambda x}) = \lambda e^{\lambda x}:


λ2eλx3λeλx+2eλx=0\lambda^2 e^{\lambda x} - 3 \lambda e^{\lambda x} + 2 e^{\lambda x} = 0


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


(λ23λ+2)eλx=0(\lambda^2 - 3\lambda + 2) e^{\lambda x} = 0


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


λ23λ+2=0\lambda^2 - 3\lambda + 2 = 0


Factor:


(λ2)(λ1)=0(\lambda - 2)(\lambda - 1) = 0


Solve for λ\lambda:


λ=1 or λ=2\lambda = 1 \text{ or } \lambda = 2


The root λ=1\lambda = 1 gives y1(x)=c1exy_1(x) = c_1 e^x as a solution, where c1c_1 is an arbitrary constant.

The root λ=2\lambda = 2 gives y2(x)=c2e2xy_2(x) = c_2 e^{2x} as a solution, where c2c_2 is an arbitrary constant.

The general solution is the sum of the above solutions:


y(x)=y1(x)+y2(x)=c1ex+c2e2xy(x) = y_1(x) + y_2(x) = c_1 e^x + c_2 e^{2x}


Determine the particular solution to d2y(x)dx2+2y(x)3dy(x)dx=3ex10cos(3x)\frac{d^2 y(x)}{dx^2} + 2y(x) - 3\frac{dy(x)}{dx} = 3e^{-x} - 10\cos(3x) by the method of undetermined coefficients:

The particular solution will be the sum of the particular solutions to


d2y(x)dx2+2y(x)3dy(x)dx=3ex and d2y(x)dx2+2y(x)3dy(x)dx=10cos(3x).\frac{d^2 y(x)}{dx^2} + 2y(x) - 3\frac{dy(x)}{dx} = 3e^{-x} \text{ and } \frac{d^2 y(x)}{dx^2} + 2y(x) - 3\frac{dy(x)}{dx} = -10\cos(3x).


The particular solution to d2y(x)dx2+2y(x)3dy(x)dx=3ex\frac{d^2 y(x)}{dx^2} + 2y(x) - 3\frac{dy(x)}{dx} = 3e^{-x} is of the form:


yp1(x)=a1exy_{p_1}(x) = \frac{a_1}{e^x}


The particular solution to d2y(x)dx2+2y(x)3dy(x)dx=10cos(3x)\frac{d^2 y(x)}{dx^2} + 2y(x) - 3\frac{dy(x)}{dx} = -10\cos(3x) is of the form:


yp2(x)=a2cos(3x)+a3sin(3x)y_{p_2}(x) = a_2 \cos(3x) + a_3 \sin(3x)


Sum yp1(x)y_{p_1}(x) and yp2(x)y_{p_2}(x) to obtain yp(x)y_p(x):


yp(x)=yp1(x)+yp2(x)=a1ex+a2cos(3x)+a3sin(3x)y_p(x) = y_{p_1}(x) + y_{p_2}(x) = \frac{a_1}{e^x} + a_2 \cos(3x) + a_3 \sin(3x)


Solve for the unknown constants a1,a2a_1, a_2, and a3a_3:

Compute dyp(x)dx\frac{dy_p(x)}{dx}:


dyp(x)dx=ddx(a1ex+a2cos(3x)+a3sin(3x))=a1ex3a2sin(3x)+3a3cos(3x)\begin{aligned} \frac{dy_p(x)}{dx} &= \frac{d}{dx} \left( \frac{a_1}{e^x} + a_2 \cos(3x) + a_3 \sin(3x) \right) \\ &= -\frac{a_1}{e^x} - 3a_2 \sin(3x) + 3a_3 \cos(3x) \end{aligned}


Compute d2yp(x)dx2\frac{d^2y_p(x)}{dx^2} :


d2yp(x)dx2=d2dx2(a1ex+a2cos(3x)+a3sin(3x))=a1ex9a2cos(3x)9a3sin(3x)\begin{array}{l} \frac{d^2 y_p(x)}{d x^2} = \frac{d^2}{d x^2} \left(\frac{a_1}{e^x} + a_2 \cos(3x) + a_3 \sin(3x)\right) \\ = \frac{a_1}{e^x} - 9 a_2 \cos(3x) - 9 a_3 \sin(3x) \end{array}


Substitute the particular solution yp(x)y_{p}(x) into the differential equation:


d2yp(x)dx23dyp(x)dx+2yp(x)=3ex10cos(3x)(a1ex9a2cos(3x)9a3sin(3x))3(a1ex3a2sin(3x)+3a3cos(3x))+2(a1ex+a2cos(3x)+a3sin(3x))=3ex10cos(3x)\begin{array}{l} \frac{d^2 y_p(x)}{d x^2} - 3 \frac{d y_p(x)}{d x} + 2 y_p(x) = \frac{3}{e^x} - 10 \cos(3x) \\ \left(\frac{a_1}{e^x} - 9 a_2 \cos(3x) - 9 a_3 \sin(3x)\right) - 3 \left(-\frac{a_1}{e^x} - 3 a_2 \sin(3x) + 3 a_3 \cos(3x)\right) + \\ 2 \left(\frac{a_1}{e^x} + a_2 \cos(3x) + a_3 \sin(3x)\right) = \frac{3}{e^x} - 10 \cos(3x) \end{array}


Simplify:


6a1ex+(7a29a3)cos(3x)+(9a27a3)sin(3x)=3ex10cos(3x)\frac{6 a_1}{e^x} + (-7 a_2 - 9 a_3) \cos(3x) + (9 a_2 - 7 a_3) \sin(3x) = \frac{3}{e^x} - 10 \cos(3x)


Equate the coefficients of exe^{-x} on both sides of the equation:


6a1=36 a_1 = 3


Equate the coefficients of cos(3x)\cos(3x) on both sides of the equation:


7a29a3=10-7 a_2 - 9 a_3 = -10


Equate the coefficients of sin(3x)\sin(3x) on both sides of the equation:


9a27a3=09 a_2 - 7 a_3 = 0


Solve the system:


a1=12a_1 = \frac{1}{2}a2=713a_2 = \frac{7}{13}a3=913a_3 = \frac{9}{13}


Substitute a1,a2a_1, a_2 , and a3a_3 into yp(x)=a1ex+a3sin(3x)+a2cos(3x)y_p(x) = a_1 e^{-x} + a_3 \sin(3x) + a_2 \cos(3x) :


yp(x)=12ex+713cos(3x)+913sin(3x)y_p(x) = \frac{1}{2 e^x} + \frac{7}{13} \cos(3x) + \frac{9}{13} \sin(3x)


The general solution is:


y(x)=yc(x)+yp(x)=12ex+713cos(3x)+913sin(3x)+c1ex+c2e2xy(x) = y_c(x) + y_p(x) = \frac{1}{2 e^x} + \frac{7}{13} \cos(3x) + \frac{9}{13} \sin(3x) + c_1 e^x + c_2 e^{2x}


Solve for the unknown constants using the initial conditions:

Compute dy(x)dx\frac{dy(x)}{dx}:


dy(x)dx=ddx(12ex+713cos(3x)+913sin(3x)+c1ex+c2e2x)=12e2+2713cos(3x)2113sin(3x)+c1ex+2c2e2x\begin{aligned} \frac{dy(x)}{dx} &= \frac{d}{dx} \left( \frac{1}{2e^x} + \frac{7}{13} \cos(3x) + \frac{9}{13} \sin(3x) + c_1 e^x + c_2 e^{2x} \right) \\ &= -\frac{1}{2e^2} + \frac{27}{13} \cos(3x) - \frac{21}{13} \sin(3x) + c_1 e^x + 2c_2 e^{2x} \end{aligned}


Substitute y(0)=2y(0) = 2 into y(x)=c1ex+c2e2x+ex2+913sin(3x)+713cos(3x)y(x) = c_1 e^x + c_2 e^{2x} + \frac{e^{-x}}{2} + \frac{9}{13} \sin(3x) + \frac{7}{13} \cos(3x):


c1+c2+2726=2c_1 + c_2 + \frac{27}{26} = 2


Substitute y(0)=2y'(0) = 2 into dy(x)dx=c1ex+2c2e2xex22113sin(3x)+2713cos(3x)\frac{dy(x)}{dx} = c_1 e^x + 2c_2 e^{2x} - \frac{e^{-x}}{2} - \frac{21}{13} \sin(3x) + \frac{27}{13} \cos(3x):


c1+2c2+4126=2c_1 + 2c_2 + \frac{41}{26} = 2


Solve the system:


c1=32c2=713\begin{aligned} c_1 &= \frac{3}{2} \\ c_2 &= -\frac{7}{13} \end{aligned}


Substitute y(0)=2y(0) = 2 into y(x)=c1ex+c2e2x+ex2+913sin(3x)+713cos(3x)y(x) = c_{1} e^{x} + c_{2} e^{2x} + \frac{e^{-x}}{2} + \frac{9}{13} \sin(3x) + \frac{7}{13} \cos(3x):


c1+c2+2726=2c_{1} + c_{2} + \frac{27}{26} = 2


Substitute y(0)=2y'(0) = 2 into dy(x)dx=c1ex+2c2e2xex22113sin(3x)+2713cos(3x)\frac{dy(x)}{dx} = c_{1} e^{x} + 2 c_{2} e^{2x} - \frac{e^{-x}}{2} - \frac{21}{13} \sin(3x) + \frac{27}{13} \cos(3x):


c1+2c2+4126=2c_{1} + 2 c_{2} + \frac{41}{26} = 2


Solve the system:


c1=32c2=713\begin{array}{l} c_{1} = \frac{3}{2} \\ c_{2} = -\frac{7}{13} \\ \end{array}


Substitute c1=32c_{1} = \frac{3}{2} and c2=713c_{2} = -\frac{7}{13} into y(x)=y(x) =

c1ex+c2e2x+ex2+913sin(3x)+713cos(3x);c_{1} e^{x} + c_{2} e^{2x} + \frac{e^{-x}}{2} + \frac{9}{13} \sin(3x) + \frac{7}{13} \cos(3x);


Answer:


y(x)=713e2x+32ex+ex2+913sin(3x)+713cos(3x)y(x) = -\frac{7}{13} e^{2x} + \frac{3}{2} e^{x} + \frac{e^{-x}}{2} + \frac{9}{13} \sin(3x) + \frac{7}{13} \cos(3x)


www.AssignmentExpert.com


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