Solveeit Logo

Question

Question: Solve the following equation \(\dfrac{dy}{dx}-xy={{y}^{2}}{{e}^{x2}}{{/}^{2}}.\sin x\) . A. \({{e}...

Solve the following equation dydxxy=y2ex2/2.sinx\dfrac{dy}{dx}-xy={{y}^{2}}{{e}^{x2}}{{/}^{2}}.\sin x .
A. ex2/2=y(c+cosx){{e}^{{{x}^{2}}/2}}=y\left( c+\cos x \right).
B. ex2/2=y(c+cosx){{e}^{-{{x}^{2}}/2}}=y\left( c+\cos x \right).
C. ex2+2=y(ccosx){{e}^{{{x}^{2}}}}^{+2}=y\left( c-\cos x \right).
D. ex2/2=y(ccosx){{e}^{-{{x}^{2}}/2}}=y\left( c-\cos x \right).

Explanation

Solution

Hint: At first take y as 14\dfrac{1}{4} and then transform the equation. Also substitute dydx\dfrac{dy}{dx} as 142dydx\dfrac{-1}{{{4}^{2}}}\dfrac{dy}{dx}. Then multiply by 42{{4}^{2}} throughout the equation and thus further solve the differential equation.

Complete step-by-step answer:
In the question a differential equation is given dydxxy=y2ex2/2sinx\dfrac{dy}{dx}-xy={{y}^{2}}{{e}^{{{x}^{2}}/2}}\sin x and we have to find the original equation.
The given differential equation is, dydxxy=y2ex2/2sinx\dfrac{dy}{dx}-xy={{y}^{2}}{{e}^{{{x}^{2}}/2}}\sin x .
It is in the form of Bernoulli equation which is represented as,
dydx+P(x)y=Q(x)yn.\dfrac{dy}{dx}+P\left( x \right)y=Q\left( x \right){{y}^{n}}.
Where n is the real number but not be 0 or 1 and P(x)P\left( x \right) and Q(x)Q\left( x \right) are referred to as functions of x.
Now to solve it we have substituted y1n{{y}^{1-n}} as 4.
Here the value of n is 2 so, 4 is equal to 1y\dfrac{1}{y} .
So instead of substituting 1y\dfrac{1}{y} as we will substitute y as 14\dfrac{1}{4} .
So we can write it as,
dydxx4=ex2/242\dfrac{dy}{dx}-\dfrac{x}{4}=\dfrac{{{e}^{{{x}^{2}}/2}}}{{{4}^{2}}} .
As y=14y=\dfrac{1}{4} so, dydx=142dydx\dfrac{dy}{dx}=\dfrac{-1}{{{4}^{2}}}\dfrac{dy}{dx} .
So, we will substitute dydx\dfrac{dy}{dx} as 142dydx\dfrac{-1}{{{4}^{2}}}\dfrac{dy}{dx}. In the equation and get, 142dydxx4=ex2/2sinx42\dfrac{-1}{{{4}^{2}}}\dfrac{dy}{dx}-\dfrac{-x}{4}=\dfrac{{{e}^{-{{x}^{2}}/2}}\sin x}{{{4}^{2}}} .
Now by multiplying by 42-{{4}^{2}} we get,
dydx+4x=ex2/2sinx\dfrac{dy}{dx}+4x=-{{e}^{-{{x}^{2}}/2}}\sin x .
So, the new equation in terms of 4 , x is,
dydx+4x=ex2/2sinx\dfrac{dy}{dx}+4x=-{{e}^{-{{x}^{2}}/2}}\sin x .
Now to solve the equation we have to multiply by integration factor which is eP(x)dx{{e}^{\int P\left( x \right)dx}}
Here P(x)P\left( x \right) is x and Q(x)Q\left( x \right) is ex2/2sinx{{e}^{-{{x}^{2}}/2}}\sin x .
So the integration factor is exdx{{e}^{\int xdx}} or ex2/2{{e}^{{{x}^{2}}/2}} .
Now we will multiply by ex2/2{{e}^{{{x}^{2}}/2}} through the equation so we get,
ex2/2dydx+4xex2/2=ex2/2sinxex2/2{{e}^{{{x}^{2}}/2}}\dfrac{dy}{dx}+4x{{e}^{{{x}^{2}}/2}}=-{{e}^{-{{x}^{2}}/2}}\sin x-{{e}^{{{x}^{2}}/2}} or, ex2/2dydx+4xex2/2=sinx{{e}^{{{x}^{2}}/2}}\dfrac{dy}{dx}+4x{{e}^{{{x}^{2}}/2}}=-\sin x.
So, we can further rewrite equation as, ex2/2d(4)dx+4.ddx(ex2/2)=sinx{{e}^{{{x}^{2}}/2}}\dfrac{d\left( 4 \right)}{dx}+4.\dfrac{d}{dx}\left( {{e}^{{{x}^{2}}/2}} \right)=-\sin x or, ddx(4.ex2/2)=sinx\dfrac{d}{dx}\left( 4.{{e}^{{{x}^{2}}/2}} \right)=-\sin x
So, we can write it as, d(4.ex2/2)=sinxdxd\left( 4.{{e}^{{{x}^{2}}/2}} \right)=-\sin xdx.
Now on integrating on both the sides we get, d(4.ex2/2)=sinxdx\int d\left( 4.{{e}^{{{x}^{2}}/2}} \right)=\int -\sin xdx .
So, on integrating we get,
4.ex2/2=c+cosx4.{{e}^{{{x}^{2}}/2}}=c+\cos x .
Here c is constant of integration.
Now as we took 1y\dfrac{1}{y} as 4 in the beginning so we will write as,
1yex2/2=c+cosx\dfrac{1}{y}{{e}^{{{x}^{2}}/2}}=c+\cos x or, ex2/2=y(c+cosx){{e}^{{{x}^{2}}/2}}=y\left( c+\cos x \right) .
Hence the answer is A'A'.

Note: In the Bernoulli equation used, the value of n cannot be 0 or 1 because when n=0n=0 the equation will be solved by first or linear differential equation and if n=1n=1 then it will be solved by using separation of variables.