Question
Question: The solution of \[x\dfrac{{dy}}{{dx}} = y + x{e^{\dfrac{y}{x}}}\] with \[y(1) = 0\] is A. \[{e^{\d...
The solution of xdxdy=y+xexy with y(1)=0 is
A. exy+lnx=1
B. ex−y=lnx
C. ex−y+2lnx=1
D. ex−y+lnx=1
Solution
We take all the values to one side of the equation and keep dxdy on other side of the equation, then substitute the power of e as a new variable and write the equation in terms of that new variable. Using the separation method, write the terms in each variable along with their respective derivatives and integrate for the solution. Finally substitute the given value in the final solution and choose the correct option.
Complete step-by-step answer:
We have the differential equation as xdxdy=y+xexy.
Divide both sides of the equation by x.
Cancel out the same terms from numerator and denominator.
⇒dxdy=xy+exy … (1)
Now we assume the power of e as a new variable.
Let xy=t
Then cross multiplying the denominator of LHS to RHS we get,
y=tx
Differentiating both sides of the equation with respect to x we get
⇒dxdy=dxd(tx)
Since t is also a function of x, we use product rule to differentiate RHS of the equation.
Product rule of differentiation gives usdxd(mn)=mdxdn+ndxdm .
⇒dxdy=t×dxdx+xdxdt
Cancel the same terms from numerator and denominator.
⇒dxdy=t+xdxdt … (2)
Now we substitute the value of xy=t and dxdy=t+xdxdtfrom equation (2) in equation (1)
⇒t+xdxdt=t+et
Shift the value of t from LHS to RHS of the equation.
Now using separation of variables, we write the variables and their derivatives on separate sides.
Cross multiply both sides of the equation.
⇒etdt=xdx
Now we can write et1=e−t
⇒e−tdt=xdx
Now we integrate both sides of the equation.
⇒∫e−tdt=∫x1dx
Shift all the integration to one side of the equation
⇒∫e−tdt−∫x1dx=0 … (3)
Since, we know that ∫e−tdt=−e−t and ∫x1dx=logx
Substitute the values in equation (3)
⇒−e−t−lnx+C=0 {where C is constant of integration}
Substitute the value of t=xy back in the equation.
⇒−ex−y−lnx+C=0
So to find the value of C we shift all the values except C to one side of the equation.
⇒ex−y+lnx=C … (4)
This is the general solution of the differential equation.
Now we calculate the particular solution.
We are given that y(1)=0 which means that when we substitute the value of x=1 then we get y=0.
Substitute the values of x and y in equation (4)