Solveeit Logo

Question

Question: If \[x\dfrac{{dy}}{{dx}} = y\left( {\log y - \log x + 1} \right)\], then the solution of the equatio...

If xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y\left( {\log y - \log x + 1} \right), then the solution of the equation is:
A) ylog(xy)=cxy\log \left( {\dfrac{x}{y}} \right) = cx
B) xlog(yx)=cyx\log \left( {\dfrac{y}{x}} \right) = cy
C) log(yx)=cx\log \left( {\dfrac{y}{x}} \right) = cx
D) log(xy)=cy\log \left( {\dfrac{x}{y}} \right) = cy

Explanation

Solution

Hint : In the given question, we are given a differential equation. So, we have to solve the given differential equation using methods of integration. Then, we will find the value of the expression provided to us in the question itself. We first convert the given differential equation into a form that is easier to solve compared to the one given in the problem itself with the use of substitution.

Complete step-by-step answer :
The given question requires us to solve the differential equation xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y\left( {\log y - \log x + 1} \right) using methods of integration.
So, we will first use the law of logarithm logalogb=logab\log a - \log b = \log \dfrac{a}{b} to simplify the expression on the right side of the equation.
So, we have, xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y\left( {\log y - \log x + 1} \right)
xdydx=y(logyx+1)\Rightarrow x\dfrac{{dy}}{{dx}} = y\left( {\log \dfrac{y}{x} + 1} \right)
Shifting all the terms except the differential dydx\dfrac{{dy}}{{dx}} to the right side of equation, we get,
dydx=yx(logyx+1)(1)\Rightarrow \dfrac{{dy}}{{dx}} = \dfrac{y}{x}\left( {\log \dfrac{y}{x} + 1} \right) - - - - \left( 1 \right)
Now, we substitute the expression yx\dfrac{y}{x} as t. So, we get, y=txy = tx. Differentiating both sides with respect to t, we get,
dydx=ddx(tx)\Rightarrow \dfrac{{dy}}{{dx}} = \dfrac{d}{{dx}}\left( {tx} \right)
Now, we use the product rule of differentiation ddx(f(x)×g(x))=f(x)×ddx(g(x))+g(x)×ddx(f(x))\dfrac{d}{{dx}}\left( {f(x) \times g(x)} \right) = f(x) \times \dfrac{d}{{dx}}\left( {g(x)} \right) + g(x) \times \dfrac{d}{{dx}}\left( {f(x)} \right) . So, we get,
dydx=tddx(x)+xddx(t)\Rightarrow \dfrac{{dy}}{{dx}} = t\dfrac{d}{{dx}}\left( x \right) + x\dfrac{d}{{dx}}\left( t \right)
Now, we know the power rule of differentiation as d(xn)dx=nxn1\dfrac{{d\left( {{x^n}} \right)}}{{dx}} = n{x^{n - 1}}. So, we get,
dydx=t+xdtdx\Rightarrow \dfrac{{dy}}{{dx}} = t + x\dfrac{{dt}}{{dx}}
Now, substituting this value in the differential equation (1)\left( 1 \right) , we get,
t+xdtdx=yx(logyx+1)\Rightarrow t + x\dfrac{{dt}}{{dx}} = \dfrac{y}{x}\left( {\log \dfrac{y}{x} + 1} \right)
Also, substituting yx=t\dfrac{y}{x} = t.
t+xdtdx=t(logt+1)\Rightarrow t + x\dfrac{{dt}}{{dx}} = t\left( {\log t + 1} \right)
Opening brackets, we get,
t+xdtdx=tlogt+t\Rightarrow t + x\dfrac{{dt}}{{dx}} = t\log t + t
Cancelling the like terms with same sign on both sides of equation,
xdtdx=tlogt\Rightarrow x\dfrac{{dt}}{{dx}} = t\log t
Now, we separate the variables from one another. So, we get,
dttlogt=dxx\Rightarrow \dfrac{{dt}}{{t\log t}} = \dfrac{{dx}}{x}
Now, we can integrate both sides directly as the variables in the differential equation have been separated. So, we get,
dttlogt=dxx\Rightarrow \int {\dfrac{{dt}}{{t\log t}}} = \int {\dfrac{{dx}}{x}}
We know that the integral of 1x\dfrac{1}{x} with respect to x is lnx\ln x .
dttlogt=lnx+lnc\Rightarrow \int {\dfrac{{dt}}{{t\log t}}} = \ln x + \ln c, where c is any arbitrary constant.
Also, substituting the value of logt\log t as r, we get, r=logtr = \log t . Differentiation both sides with respect to t, we get,
drdt=1t\dfrac{{dr}}{{dt}} = \dfrac{1}{t}
So, substituting the value of dtt\dfrac{{dt}}{t} as drdr , we get,
drr=lnx+lnc\Rightarrow \int {\dfrac{{dr}}{r}} = \ln x + \ln c
Simplifying the integral,
lnr=lnx+lnc\Rightarrow \ln r = \ln x + \ln c
Now, we know the logarithmic property as loga+logb=logab\log a + \log b = \log ab . So, we get,
lnr=ln(cx)\Rightarrow \ln r = \ln \left( {cx} \right)
Taking the exponential function on both sides, the logarithmic function is removed as both the functions are inverse of each other. Hence, we get,
r=(cx)\Rightarrow r = \left( {cx} \right)
Now, substituting back the value of r, we get,
(logt)=(cx)\Rightarrow \left( {\log t} \right) = \left( {cx} \right)
Also, substituting value of t,
logyx=cx\Rightarrow \log \dfrac{y}{x} = cx
Hence, the solution to the differential equation xdydx=y(logylogx+1)x\dfrac{{dy}}{{dx}} = y\left( {\log y - \log x + 1} \right) is logyx=cx\log \dfrac{y}{x} = cx. Hence, option (C) is the correct answer.
So, the correct answer is “Option C”.

Note : The indefinite integrals of certain functions may have more than one answer in different forms. However, all these forms are correct and interchangeable with one another. Indefinite integral gives us the family of curves as we don’t know the exact value of the constant. The exact value of the arbitrary constant can be calculated only if we are given a point lying on the function.