Question #66141

Solve dy/DX +xy= y^2e^x^2/2sin x

Expert's answer

Answer on Question #66141 – Math – Differential Equations

Question

Solve


dydx+xy=y2ex22sinx\frac{dy}{dx} + xy = \frac{y^2 e^{x^2}}{2 \sin x}

Solution

dydx+xy=y2ex22sinx\frac{dy}{dx} + xy = \frac{y^2 e^{x^2}}{2 \sin x'}yy2+xy=ex22sinx\frac{y'}{y^2} + \frac{x}{y} = \frac{e^{x^2}}{2 \sin x}


is the first-order nonlinear ordinary differential equation

First we solve the linear differential equation in order to use the method of variation of the constant


yy2+xy=0\frac{y'}{y^2} + \frac{x}{y} = 0yy+x=0\frac{y'}{y} + x = 0dyy+xdx=0\frac{dy}{y} + xdx = 0dyy+xdx=C\int \frac{dy}{y} + \int xdx = Cln(y)=x22+C\ln(y) = -\frac{x^2}{2} + Cy=Aex22,y = A e^{\frac{-x^2}{2}},

CC and AA are arbitrary constants of integration


y=Aex22y = A e^{\frac{-x^2}{2}}


We use the method of variation of constant. Let AA be a function which depends on xx:


A=A(x)A = A(x)


We find the derivative and substitute yy and yy' in the original equation:


y=Aex22+A(x)ex22y' = A' e^{\frac{-x^2}{2}} + A(-x) e^{\frac{-x^2}{2}}Aex22+A(x)ex22+Axex22=ex22sinx(Aex22)2A' e^{\frac{-x^2}{2}} + A(-x) e^{\frac{-x^2}{2}} + A x e^{\frac{-x^2}{2}} = \frac{e^{x^2}}{2 \sin x} (A e^{\frac{-x^2}{2}})^2Aex22=ex22sinxA2ex2A ^ {\prime} e ^ {- \frac {x ^ {2}}{2}} = \frac {e ^ {x ^ {2}}}{2 \sin x} A ^ {2} e ^ {- x ^ {2}}


Solving the equation


dAA2=ex22dx2sinx\frac {d A}{A ^ {2}} = \frac {e ^ {\frac {x ^ {2}}{2}} d x}{2 \sin x}1A=ex22dx2sinx+B,\frac {- 1}{A} = \int \frac {e ^ {\frac {x ^ {2}}{2}} d x}{2 \sin x} + B,

BB is an integration constant.

The integral is not expressed in elementary functions. Therefore we introduce


I(x)=ex22dx2sinx.I (x) = \int \frac {e ^ {\frac {x ^ {2}}{2}} d x}{2 \sin x}.


Finally we get


1A=I(x)+B,\frac {- 1}{A} = I (x) + B,A=1I(x)+B,A = \frac {- 1}{I (x) + B},y(x)ex22=1I(x)+B,\frac {y (x)}{e ^ {- \frac {x ^ {2}}{2}}} = - \frac {1}{I (x) + B},y(x)=ex22I(x)+B.y (x) = \frac {- e ^ {\frac {- x ^ {2}}{2}}}{I (x) + B}.


Answer: y(x)=ex22I(x)+By(x) = \frac{-e^{-\frac{x^2}{2}}}{I(x) + B} .

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