Question:

Solve : \( x\frac{dy}{dx}+y=y^2\log x \).

Show Hint

Divide by \(xy^2\) and put \(v = \frac{1}{y}\) to get a linear equation. Its integrating factor is \(\frac{1}{x}\).
Show Solution
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Understanding the Concept:
The equation \(x\frac{dy}{dx} + y = y^2 \log x\) is not linear in \(y\) because of the \(y^2\) term. It has the Bernoulli form \(\frac{dy}{dx} + P y = Q y^n\) with \(n = 2\). The standard trick is to divide by \(y^n\) and substitute \(v = y^{1-n}\).

Step 2: Reduce to a linear equation:
Divide the whole equation by \(x y^2\):
\[ \frac{1}{y^2}\frac{dy}{dx} + \frac{1}{x}\cdot\frac{1}{y} = \frac{\log x}{x} \]
Let \(v = \frac{1}{y}\). Then \(\frac{dv}{dx} = -\frac{1}{y^2}\frac{dy}{dx}\), so \(\frac{1}{y^2}\frac{dy}{dx} = -\frac{dv}{dx}\).
\[ -\frac{dv}{dx} + \frac{v}{x} = \frac{\log x}{x} \quad \Longrightarrow \quad \frac{dv}{dx} - \frac{1}{x}\, v = -\frac{\log x}{x} \]

Step 3: Find the integrating factor:
This is linear in \(v\) with \(P = -\frac{1}{x}\). So
\[ \text{I.F.} = e^{\int -\frac{1}{x}dx} = e^{-\log x} = \frac{1}{x} \]

Step 4: Write the solution:
For a linear equation, \(v \times \text{I.F.} = \int Q \times \text{I.F.}\,dx\):
\[ \frac{v}{x} = -\int \frac{\log x}{x^2}\,dx \]

Step 5: Integrate by parts:
Take \(u = \log x\) and \(dw = x^{-2}dx\), so \(w = -\frac{1}{x}\):
\[ \int \frac{\log x}{x^2}\,dx = -\frac{\log x}{x} + \int \frac{1}{x}\cdot\frac{1}{x}\,dx = -\frac{\log x}{x} - \frac{1}{x} \]
Therefore
\[ \frac{v}{x} = \frac{\log x}{x} + \frac{1}{x} + c \]

Step 6: Go back to y:
Multiply by \(x\) and replace \(v\) with \(\frac{1}{y}\):
\[ \frac{1}{y} = \log x + 1 + c x \]

Final Answer:
The general solution of the equation is \[ \boxed{\frac{1}{y} = 1 + \log x + c x} \]
Was this answer helpful?
0
0