Question:

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
collegedunia
Verified By Collegedunia

Solution and Explanation

Step 1: Check that the equation is homogeneous:
Write the equation as \[ \frac{dy}{dx} = -\frac{y(x + y)}{x^2} = -\frac{xy + y^2}{x^2} \]
The numerator and denominator are homogeneous of degree 2.
So we substitute \( y = vx \), which gives \( \frac{dy}{dx} = v + x\frac{dv}{dx} \).

Step 2: Substitute and separate the variables:
\[ v + x\frac{dv}{dx} = -(v + v^2) \]
\[ x\frac{dv}{dx} = -2v - v^2 = -v(v + 2) \]
\[ \frac{dv}{v(v + 2)} = -\frac{dx}{x} \]

Step 3: Integrate both sides:
Use partial fractions: \( \frac{1}{v(v + 2)} = \frac{1}{2}\left( \frac{1}{v} - \frac{1}{v + 2} \right) \).
\[ \frac{1}{2}\log\left| \frac{v}{v + 2} \right| = -\log|x| + \log|c_1| \]
So \( \frac{v}{v + 2} = \frac{C}{x^2} \), where \( C \) is a constant.
Put back \( v = \frac{y}{x} \): \( \frac{y}{y + 2x} = \frac{C}{x^2} \).

Step 4: Use the condition y = 1 when x = 1:
\[ \frac{1}{1 + 2} = \frac{C}{1} \Rightarrow C = \frac{1}{3} \]
So \( \frac{y}{y + 2x} = \frac{1}{3x^2} \).
Cross-multiply: \( 3x^2 y = y + 2x \), so \( y(3x^2 - 1) = 2x \).

Final Answer:
The particular solution is \( y = \dfrac{2x}{3x^2 - 1} \). \[ \boxed{y = \dfrac{2x}{3x^2 - 1}} \]
Was this answer helpful?
0
0