Question #49513

solve the second order differential equation

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

Expert's answer

Answer to Question #49513 – Math – Differential Calculus | Equations

So, we have a next problem:

find the solution of an ordinary differential equation


y3y+2y=3ex10cos(3x),y'' - 3y' + 2y = 3e^{-x} - 10\cos(3x),


that satisfies initial conditions (a Cauchy problem):


y(0)=1,y(0)=2y(0) = 1, \quad y'(0) = 2


**Solution**

**The first step:** Let's find the particular solution yhy_h of homogeneous equation:


y3y+2y=0y'' - 3y' + 2y = 0


Let's write the characteristic equation:


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


Solving this equation we obtain two values of λ\lambda, namely λ1=1\lambda_1 = 1 and λ2=2\lambda_2 = 2.

So, yh=C1ex+C2e2xy_h = C_1 e^x + C_2 e^{2x}, where C1C_1 and C2C_2 are unknown coefficients, which will be determined below.

**The second step:** Taking into account the right-hand side of equation (1), let's find the particular solution ypy_p of the equation (1):


yp=Acos(3x)+Bsin(3x)+Cex,y_p = A\cos(3x) + B\sin(3x) + C e^{-x},


where AA, BB and CC are unknown coefficients. Let's find these coefficients.


yp=3Asin(3x)+3Bcos(3x)Cexy_p' = -3A\sin(3x) + 3B\cos(3x) - C e^{-x}yp=9Acos(3x)9Bsin(3x)+Cex.y_p'' = -9A\cos(3x) - 9B\sin(3x) + C e^{-x}.


Substituting yp,yp,ypy_p, y_p', y_p'' for yy and its derivatives in the initial equation (1), we will obtain the next three equations to determine AA, BB and CC:


9Acos(3x)9Bsin(3x)+Cex3(3Asin(3x)+3Bcos(3x)Cex)+2(Acos(3x)+Bsin(3x)+Cex)==3ex10cos(3x)\begin{array}{l} -9A\cos(3x) - 9B\sin(3x) + C e^{-x} - 3(-3A\sin(3x) + 3B\cos(3x) - C e^{-x}) + 2(A\cos(3x) + B\sin(3x) + C e^{-x}) = \\ = 3e^{-x} - 10\cos(3x) \end{array}


Now let's collect the coefficients for cos(3x)\cos(3x):


(9A9B+2A)=10.(-9A - 9B + 2A) = -10.


Similarly, collect the coefficients for sin(3x)\sin(3x):


9B+9A+2B=0-9B + 9A + 2B = 0


In the same way, for exe^{-x}:


C+3C+2C=3C=12.C + 3 C + 2 C = 3 \Rightarrow C = \frac {1}{2}.


Solving the system of equations:


{7A9B=107B+9A=0,\left\{ \begin{array}{l} - 7 A - 9 B = - 1 0 \\ - 7 B + 9 A = 0 \end{array} \right.,


we will find A=713,B=913A = \frac{7}{13}, B = \frac{9}{13} .

Thus, yp=713cos(3x)+913sin(3x)+12exy_{p} = \frac{7}{13}\cos (3x) + \frac{9}{13}\sin (3x) + \frac{1}{2} e^{-x} .

The third step: Let's write the general solution of (1) as yh+ypy_{h} + y_{p} :


y=yh+yp=C1ex+C2e2x+713cos(3x)+913sin(3x)+12ex.y = y _ {h} + y _ {p} = C _ {1} e ^ {x} + C _ {2} e ^ {2 x} + \frac {7}{1 3} \cos (3 x) + \frac {9}{1 3} \sin (3 x) + \frac {1}{2} e ^ {- x}.


The fourth step: Recall conditions (2) and solve the Cauchy problem, determine the coefficients C1C_1 and C2C_2 . From (3) we obtain


y=C1ex+2C2e2x2113sin(3x)+2713cos(3x)12exy ^ {\prime} = C _ {1} e ^ {x} + 2 C _ {2} e ^ {2 x} - \frac {2 1}{1 3} \sin (3 x) + \frac {2 7}{1 3} \cos (3 x) - \frac {1}{2} e ^ {- x}


Plug (3) and (4) into (2):


{y(0)=1y(0)=2{C1e0+C2e0+713+12e0=1C1e0+2C2e0+271312e0=2{C1+C2+713+12=1C1+2C2+271312=2{C1=12C2=613\left\{ \begin{array}{l} y (0) = 1 \\ y ^ {\prime} (0) = 2 \end{array} \right. \Rightarrow \left\{ \begin{array}{l} C _ {1} e ^ {0} + C _ {2} e ^ {0} + \frac {7}{1 3} + \frac {1}{2} e ^ {0} = 1 \\ C _ {1} e ^ {0} + 2 C _ {2} e ^ {0} + \frac {2 7}{1 3} - \frac {1}{2} e ^ {0} = 2 \end{array} \right. \Rightarrow \left\{ \begin{array}{l} C _ {1} + C _ {2} + \frac {7}{1 3} + \frac {1}{2} = 1 \\ C _ {1} + 2 C _ {2} + \frac {2 7}{1 3} - \frac {1}{2} = 2 \end{array} \right. \Rightarrow \left\{ \begin{array}{l} C _ {1} = - \frac {1}{2} \\ C _ {2} = \frac {6}{1 3} \end{array} \right.


So, y=12ex+613e2x+713cos(3x)+913sin(3x)+12exy = -\frac{1}{2} e^{x} + \frac{6}{13} e^{2x} + \frac{7}{13}\cos (3x) + \frac{9}{13}\sin (3x) + \frac{1}{2} e^{-x} .

Answer: y=12ex+613e2x+713cos(3x)+913sin(3x)+12exy = -\frac{1}{2} e^{x} + \frac{6}{13} e^{2x} + \frac{7}{13}\cos (3x) + \frac{9}{13}\sin (3x) + \frac{1}{2} e^{-x} .

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