Question #66662

Solve the following IVP
(d^2y)/(dx^2) + (dy)/(dx) - 2y = -6 sin2x -18 cos2x
y(0)=2, y'(0)=2

Expert's answer

Answer on Question # 66662 – Math – Differential Equations Question

Solve the following IVP


(d2y)/(dx2)+(dy)/(dx)2y=6sin2x18cos2xy(0)=2,y(0)=2\begin{array}{l} (d ^ {2} y) / (d x ^ {2}) + (d y) / (d x) - 2 y = - 6 \sin 2 x - 18 \cos 2 x \\ y (0) = 2, y ^ {\prime} (0) = 2 \end{array}

Solution

We have IVP


d2ydx2+dydx2y=6sin2x18cos2x,y(0)=2,y(0)=2\frac {d ^ {2} y}{d x ^ {2}} + \frac {d y}{d x} - 2 y = - 6 \sin 2 x - 18 \cos 2 x, \quad y (0) = 2, y ^ {\prime} (0) = 2


Find first the general solution of this equation which can be written as


y=yc+ypy = y _ {c} + y _ {p}


where ypy_{p} is a particular solution of original equation and ycy_{c} is the general solution of the related homogeneous equation


d2ydx2+dydx2y=0\frac {d ^ {2} y}{d x ^ {2}} + \frac {d y}{d x} - 2 y = 0


To find ycy_{c} we substitute solution as exponential function y=emxy = e^{mx} into the equation. We get


m2emx+memx2emx=0m ^ {2} e ^ {m x} + m e ^ {m x} - 2 e ^ {m x} = 0


or


(m2+m2)emx=0(m ^ {2} + m - 2) e ^ {m x} = 0


Then we get the auxiliary equation


m2+m2=0m ^ {2} + m - 2 = 0


with roots m=1m = 1 and m=2m = -2. So the solution of the complementary equation is


yc=c1ex+c2e2xy _ {c} = c _ {1} e ^ {x} + c _ {2} e ^ {- 2 x}


where c1c_{1} and c2c_{2} are some constants. Next we find a particular solution in the form


yp=Asin2x+Bcos2xy _ {p} = A \sin 2 x + B \cos 2 x


Then


yp=2Acos2x2Bsin2xy _ {p} ^ {\prime} = 2 A \cos 2 x - 2 B \sin 2 xyp=4Asin2x4Bcos2xy _ {p} ^ {\prime \prime} = - 4 A \sin 2 x - 4 B \cos 2 x


Substituting yp,ypy_{p}, y_{p}^{\prime} and ypy_{p}^{\prime \prime} into the given differential equation gives


4Asin2x4Bcos2x+2Acos2x2Bsin2x2Asin2x2Bcos2x=6sin2x18cos2x- 4 A \sin 2 x - 4 B \cos 2 x + 2 A \cos 2 x - 2 B \sin 2 x - 2 A \sin 2 x - 2 B \cos 2 x = - 6 \sin 2 x - 18 \cos 2 x


or


(6A+2B)sin2x(6B2A)cos2x=6sin2x18cos2x- (6 A + 2 B) \sin 2 x - (6 B - 2 A) \cos 2 x = - 6 \sin 2 x - 18 \cos 2 x


This is true if


6A+2B=6and6B2A=186 A + 2 B = 6 \quad \text{and} \quad 6 B - 2 A = 18


The solution of this system is A=0A = 0 and B=3B = 3. So, the particular solution is


yp=3cos2xy _ {p} = 3 \cos 2 x


The general solution of the given equation is


y=c1ex+c2e2x+3cos2xy = c _ {1} e ^ {x} + c _ {2} e ^ {- 2 x} + 3 \cos 2 x


Now we find c1c_{1} and c2c_{2} using the initial conditions y(0)=2,y(0)=2y(0) = 2, y'(0) = 2:


y(0)=c1e0+c2e0+3cos0=c1+c2+3=2y (0) = c _ {1} e ^ {0} + c _ {2} e ^ {0} + 3 \cos 0 = c _ {1} + c _ {2} + 3 = 2y=c1ex2c2e2x6sin2xy ^ {\prime} = c _ {1} e ^ {x} - 2 c _ {2} e ^ {- 2 x} - 6 \sin 2 xy(0)=c1e02c2e06sin0=c12c2=2y'(0) = c_1 e^0 - 2c_2 e^0 - 6\sin0 = c_1 - 2c_2 = 2


We have system of equation


{c1+c2=1c12c2=2\left\{ \begin{array}{l} c_1 + c_2 = -1 \\ c_1 - 2c_2 = 2 \end{array} \right.


The solution of this system is c1=0c_1 = 0, c2=1c_2 = -1, so the solution of IVP is


y=e2x+3cos2xy = -e^{-2x} + 3\cos2x


Answer: The solution of IVP is


y=e2x+3cos2xy = -e^{-2x} + 3\cos2x


Answer provided by https://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