Question:medium

Solve the differential equation \( x^2\,dy + y(x + y)\,dx = 0 \), given that \( y = 1 \) when \( x = 1 \).

Show Hint

The equation is homogeneous: put \( y = vx \), separate the variables and use \( y(1) = 1 \).
Updated On: Oct 22, 2026
Show Solution

Solution and Explanation

Step 1: Spot the Bernoulli form:
Divide the equation by $x^2\,dx$.
\[ \frac{dy}{dx} + \frac{y}{x} = -\frac{y^2}{x^2} \]
This has the form $\frac{dy}{dx} + Py = Qy^2$, a Bernoulli equation.

Step 2: Reduce it to a linear equation:
Put $u = \frac{1}{y}$. Then $\frac{du}{dx} = -\frac{1}{y^2}\frac{dy}{dx}$.
Divide the equation by $y^2$ and use $u$.
\[ -\frac{du}{dx} + \frac{u}{x} = -\frac{1}{x^2} \quad\Rightarrow\quad \frac{du}{dx} - \frac{u}{x} = \frac{1}{x^2} \]
The integrating factor is $e^{-\int dx/x} = \frac{1}{x}$.

Step 3: Solve the linear equation:
\[ \frac{d}{dx}\left( \frac{u}{x} \right) = \frac{1}{x^3} \]
Integrate: $\frac{u}{x} = -\frac{1}{2x^2} + c$.
So $\frac{1}{xy} = c - \frac{1}{2x^2}$.

Step 4: Apply the condition:
At $x = 1$, $y = 1$: $1 = c - \frac{1}{2}$, so $c = \frac{3}{2}$.
\[ \frac{1}{y} = \frac{3x}{2} - \frac{1}{2x} = \frac{3x^2 - 1}{2x} \]
Take the reciprocal to get $y$.

Final Answer:
$y = \frac{2x}{3x^2 - 1}$. \[ \boxed{y = \dfrac{2x}{3x^2 - 1}} \]
Was this answer helpful?
0