Question #70742

1. a) Solve the following ordinary differential equations:

i) dy/dx + 4xy = x

ii) d²y/dx² + 4dy/dx - 12y = cos2x .

Expert's answer

Answer on Question #70742 – Math – Differential Equations

Question

1. a) Solve the following ordinary differential equations:

i) dydx+4xy=x\frac{dy}{dx} + 4xy = x

ii) d2ydx2+4dydx12y=cos2x\frac{d^2y}{dx^2} + \frac{4dy}{dx} - 12y = \cos 2x.

Solution

i)


y+4xy=xy=x(14y)dy14y=xdxdy14y=xdx14ln(14y)=x22+C1ln(14y)=2x24C114y=C2e2x2y(x)=Ce2x2+14\begin{array}{l} y' + 4xy = x \\ y' = x(1 - 4y) \\ \frac{dy}{1 - 4y} = xdx \\ \int \frac{dy}{1 - 4y} = \int xdx \\ -\frac{1}{4} \ln(1 - 4y) = \frac{x^2}{2} + C_1 \\ \ln(1 - 4y) = -2x^2 - 4C_1 \\ 1 - 4y = C_2 e^{-2x^2} \\ y(x) = C e^{-2x^2} + \frac{1}{4'} \end{array}


where C1,C2,CC_1, C_2, C are real constants.

ii)


y+4y12y=cos2xy'' + 4y' - 12y = \cos 2x


First, solve homogeneous equation:


y+4y12y=0y'' + 4y' - 12y = 0λ2+4λ12=0λ1=6,λ1=2\lambda^2 + 4\lambda - 12 = 0 \rightarrow \lambda_1 = -6, \lambda_1 = 2


Thus, the general solution of the homogeneous equation is


yhomogeneous=C1e6x+C2e2x,y_{homogeneous} = C_1 e^{-6x} + C_2 e^{2x},


where C1,C2C_1, C_2 are arbitrary real constants.

Now, let's find any solution for non-homogeneous equation in the form


y~=Acos2x+Bsin2x\tilde{y} = A \cos 2x + B \sin 2x


If we substitute it in equation, we shall get


4Acos2x4Bsin2x8Asin2x+8Bcos2x12Acos2x12Bsin2x=cos2x-4A \cos 2x - 4B \sin 2x - 8A \sin 2x + 8B \cos 2x - 12A \cos 2x - 12B \sin 2x = \cos 2x


As cos2x\cos 2x and sin2x\sin 2x are linearly independent,


4A+8B12A=14B8A12B=0\begin{array}{l} -4A + 8B - 12A = 1 \\ -4B - 8A - 12B = 0 \\ \end{array}


Solving this system


A=120,B=140A = -\frac{1}{20}, B = \frac{1}{40}


Thus, the general solution of the non-homogeneous equation is


y(x)=yhomogeneous+y~=C1e6x+C2e2x120cos2x+140sin2xy(x) = y_{homogeneous} + \tilde{y} = C_1 e^{-6x} + C_2 e^{2x} - \frac{1}{20} \cos 2x + \frac{1}{40} \sin 2x


Answer: i) y(x)=Ce2x2+14y(x) = C e^{-2x^2} + \frac{1}{4}; ii) y(x)=C1e6x+C2e2x120cos2x+140sin2xy(x) = C_1 e^{-6x} + C_2 e^{2x} - \frac{1}{20} \cos 2x + \frac{1}{40} \sin 2x.

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