Question
Question: Solve the equation: \((y log x - 1)ydx = xdy\)...
Solve the equation: (ylogx−1)ydx=xdy
Solution
- Hint: This is a linear differential equation. We can solve this by bringing it in the form-
dxdy+yP(x)=Q(x)
Here P(x) and Q(x) are functions in x. After bringing the equation in this form, we find and multiply it with the integrating factor which is given by-
I.F=e∫P(x)dx
The equation can then be written in the form-
y(I.F)=∫Q(x).(I.F)+C
Complete step-by-step solution -
We have been given that-
(ylogx−1)ydx=xdy
Dividing the equation by dx, we get-
xdxdy=(y2logx−y)dxdy=xy2logx−xydxdy+xy=y2xlogx
We know that the term Q(x) should be independent of y, so we need to divide the equation with y2 as-
y21dxdy+xy1=xlogx
To simplify further, we need to make a substitution as-
t=y1
dt=−y21dy
Substituting these values in the equation we get-
−dxdt+xt=xlogx
dxdt−xt=−xlogx
By comparison, we can clearly see that-
P(x)=−x1andQ(x)=−xlogx
We can find the integrating factor as-
I.F=e∫P(x)dx=e∫−x1dx=e−logx=elog(x1)Weknowthatelogx=xso,I.F=elog(x1)=x1
The equation can now be written as-
y(I.F)=∫Q(x).(I.F)+C
t(x1)=∫(−xlogx)(x1)dx
xt=−∫x2logxdx
We will need to use integration by parts to further solve this problem-
∫u(x)v(x)dx=[v(x).∫u(x)dx]−∫(v′(x).∫u(x)dx)dx
We will assume that v(x) = logx and u(x) = x-2
=∫x2logxdx=logx∫x21dx−∫(dxd(logx).∫x21dx)dx=−xlogx−(∫x1.(−x1)dx)=−xlogx+∫x21dx=−xlogx−x1+C
So, we can proceed as-
\dfrac{{\text{t}}}{{\text{x}}} = \dfrac{{logx}}{{\text{x}}} + \dfrac{1}{{\text{x}}} + {\text{C}} \\\
We know that t=y1 so,
\dfrac{1}{{xy}} = \dfrac{{logx}}{{\text{x}}} + \dfrac{1}{{\text{x}}} + {\text{C}} \\\
Multiplying by x and taking reciprocal we get,
y=1+logx+Cx1
Note: We need to know multiple concepts in this problem ranging from differential equations and calculus to the concept of logarithmic functions. We need to remember the formula for integrations and even the method to find the solution of first order linear differential equations. We should also never forget to add the constant of integration.