Solveeit Logo

Question

Question: What is the solution of the differential equation \(x\dfrac{{dy}}{{dx}} = y(\log y - \log x + 1)\)?...

What is the solution of the differential equation xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y(\log y - \log x + 1)?

Explanation

Solution

The differential equation is the equation that combines the function and its derivatives. Here we need to find the solution of the given differential equation. The solution of a differential equation is nothing but an expression for the dependent variable in terms of independent variables that satisfy the equation; the unknown function is the dependent variable and the variables on which it depends are independent variables.
Formula:
logalogb=logab\log a - \log b = \log \dfrac{a}{b}

Complete Step by step solution:
Given,
The equation to find the solution of the equation xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y(\log y - \log x + 1).
xx can be divided from the right and left sides of the equation.
dydx=yx(logylogx+1)\dfrac{{dy}}{{dx}} = \dfrac{y}{x}(\log y - \log x + 1)
As we know logalogb=logab\log a - \log b = \log \dfrac{a}{b}
As we substitute this formula in the equation.
dydx=yx(logyx+1).........(1)\dfrac{{dy}}{{dx}} = \dfrac{y}{x}(\log \dfrac{y}{x} + 1).........(1)
Let substitute y=vxy = vx
Differentiate this above equation with respect to xx.
The formula for differentiation (uv)=uv+uv{(uv)'} = {u'}v + u{v'}
Differentiating y=vxy = vxequation by (uv)=uv+uv{(uv)'} = {u'}v + u{v'}
dydx=v+xdvdx...........(2)\dfrac{{dy}}{{dx}} = v + x\dfrac{{dv}}{{dx}}...........(2)
By equating equation (1)(1) and (2)(2), we get
yx(logyx+1)=v+xdvdx\dfrac{y}{x}(\log \dfrac{y}{x} + 1) = v + x\dfrac{{dv}}{{dx}}
Substitute v=yxv = \dfrac{y}{x} in the above equation
v(logv+1)=v+xdvdxv(\log v + 1) = v + x\dfrac{{dv}}{{dx}}
Multiply vvinside the left side of the equation,
vlogv+v=v+xdvdxv\log v + v = v + x\dfrac{{dv}}{{dx}}
Take vvterms on one side and xxterms on the other side, we get
vlogv+vv=xdvdxv\log v + v - v = x\dfrac{{dv}}{{dx}}
By subtracting the above equation, we get
vlogv=xdvdxv\log v = x\dfrac{{dv}}{{dx}}
We should take vvterms on one side and xxterms on the other side, we get
dvvlogv=dxx\dfrac{{dv}}{{v\log v}} = \dfrac{{dx}}{x}
By integrating both sides, we get,
dvvlogv=dxx......(3)\int {\dfrac{{dv}}{{v\log v}}} = \int {\dfrac{{dx}}{x}} ......(3)
Let us assume thatI1=dvvlogv{I_1} = \int {\dfrac{{dv}}{{v\log v}}}
I2=dxx{I_2} = \int {\dfrac{{dx}}{x}}
Let us integrate the I1{I_1}term,
I1=dvvlogv{I_1} = \int {\dfrac{{dv}}{{v\log v}}}
Let us assume u=logvu = \log v
Differentiating u with respect to v we get,
dudv=1v\dfrac{{du}}{{dv}} = \dfrac{1}{v}
The terms in the denominator of the left side equation go to the numerator of the right side equation
du=1vdvdu = \dfrac{1}{v}dv
We can substitute du=1vdvdu = \dfrac{1}{v}dvin I1=dvvlogv{I_1} = \int {\dfrac{{dv}}{{v\log v}}}
I1=duu{I_1} = \int {\dfrac{{du}}{u}}
As we integrate the above equation, we get
I1=logu{I_1} = \log u
Substitute u=logvu = \log vin I1=logu{I_1} = \log u
I1=log(logv)+c{I_1} = \log (\log v) + c
Integrating I2=dxx{I_2} = \int {\dfrac{{dx}}{x}} , we get
I2=logx+c{I_2} = \log x + c
Substitute I1=log(logv){I_1} = \log (\log v)and I2=logx{I_2} = \log xin (3)(3)
log(logv)=logx........(4)\log (\log v) = \log x........(4)
Substitute v=yxv = \dfrac{y}{x}in the equation (4)(4), we get
log(logyx)=logx\log (\log \dfrac{y}{x}) = \log x
Move the terms on the right side to the left side of the equation,
log(logyx)logx=0\log (\log \dfrac{y}{x}) - \log x = 0
Substitute logalogb=logab\log a - \log b = \log \dfrac{a}{b}in log(logyx)logx=0\log (\log \dfrac{y}{x}) - \log x = 0
log(logylogx)logx=0\log (\log y - \log x) - \log x = 0
Canceling log\log on both sides,
(logylogx)=x(\log y - \log x) = x
Substitute logalogb=logab\log a - \log b = \log \dfrac{a}{b}
(logyx)=x(\log \dfrac{y}{x}) = x
Converting log\log to ee, we had
yx=ex\dfrac{y}{x} = {e^x}
Multiply the terms in the denominator of the left side equation goes to the numerator of right side equation,
y=xex+cy = x{e^x} + c
The solution of the differential equation xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y(\log y - \log x + 1)is y=xex+cy = x{e^x} + c.

Note:
The method for differential equation should correctly be selected. First, check whether the equation is the homogeneous or non-homogeneous solution. The integration should be known well. Properly do differentiation and integration. The formula for integration and differentiation should be known correctly. The solution for the differential equation should not be in derivatives.