Question:medium

Find the particular solution of \( 2xy + y^2 - 2x^2\dfrac{dy}{dx} = 0 \), given that \( y = 2 \), when \( x = 1 \).

Show Hint

The equation is homogeneous. Put \(y = vx\) to get \(\frac{dv}{v^2} = \frac{dx}{2x}\), integrate, then use \(y(1) = 2\).
Updated On: Nov 19, 2026
Show Solution

Solution and Explanation

Step 1: Divide by $x^2$ and look at the shape.
Rewrite the equation as \[ \frac{dy}{dx} = \frac{y}{x} + \frac{y^2}{2x^2} \]
This has a $y$ term and a $y^2$ term, with nothing else. An equation of the form $\frac{dy}{dx} + P y = Q y^n$ is a Bernoulli equation. Here $n = 2$, so we use $z = \dfrac{1}{y}$.

Step 2: Turn it into a linear equation in $z$.
With $z = \frac{1}{y}$, we get $\dfrac{dz}{dx} = -\dfrac{1}{y^2}\dfrac{dy}{dx}$. Divide the equation from Step 1 by $y^2$ and multiply by $-1$:
\[ \frac{dz}{dx} = -\frac{1}{xy} - \frac{1}{2x^2} = -\frac{z}{x} - \frac{1}{2x^2} \]
So \[ \frac{dz}{dx} + \frac{1}{x}z = -\frac{1}{2x^2} \]

Step 3: Find the integrating factor.
\[ \text{I.F.} = e^{\int \frac{1}{x}dx} = e^{\log x} = x \]

Step 4: Solve the linear equation.
Multiply by $x$. The left side is then $\dfrac{d}{dx}(xz)$:
\[ \frac{d}{dx}(xz) = -\frac{1}{2x} \]
Integrate:
\[ xz = -\frac{1}{2}\log x + C \]
Replace $z$ by $\frac{1}{y}$:
\[ \frac{x}{y} = -\frac{1}{2}\log x + C \]

Step 5: Apply $x = 1,\ y = 2$.
\[ \frac{1}{2} = -\frac{1}{2}\log 1 + C \quad\Rightarrow\quad C = \frac{1}{2} \]

Step 6: Final form.
\[ \frac{x}{y} = \frac{1 - \log x}{2} \]
Invert to get $y$. As a check, at $x = 1$ this gives $y = \frac{2}{1 - 0} = 2$, which matches the given condition.

Final Answer:
\[ \boxed{y = \frac{2x}{1 - \log x}} \]
Was this answer helpful?
0