Question:medium

Solve the following differential equation :

\(x^{2}\, dy + y(x + y)\, dx = 0\)

Show Hint

The equation is homogeneous: put y = vx, separate the variables, use partial fractions and integrate.
Updated On: Nov 20, 2026
Show Solution

Solution and Explanation

Step 1: Spot a Bernoulli equation:
Divide the equation by $x^{2}\,dx$ to get $\dfrac{dy}{dx} + \dfrac{y}{x} = -\dfrac{y^{2}}{x^{2}}$.
This is a Bernoulli equation with power $y^{2}$ on the right.

Step 2: Make it linear:
Put $u = \dfrac{1}{y}$. Then $\dfrac{dy}{dx} = -\dfrac{1}{u^{2}}\dfrac{du}{dx}$.
Substitute and multiply the whole equation by $-u^{2}$.
\[ \dfrac{du}{dx} - \dfrac{u}{x} = \dfrac{1}{x^{2}} \]
This is linear in $u$ with $P = -\dfrac{1}{x}$.

Step 3: Integrating factor:
\[ \text{I.F.} = e^{-\int dx/x} = \dfrac{1}{x} \]
Multiply by the I.F. and the left side becomes one derivative.
\[ \dfrac{d}{dx}\left(\dfrac{u}{x}\right) = \dfrac{1}{x^{3}} \]

Step 4: Integrate:
\[ \dfrac{u}{x} = -\dfrac{1}{2x^{2}} + k \Rightarrow u = kx - \dfrac{1}{2x} \]
Writing $u = 1/y$ gives $\dfrac{1}{y} = \dfrac{2kx^{2} - 1}{2x}$.
Rename the constant as $\lambda = 2k$.
\[ y = \dfrac{2x}{\lambda x^{2} - 1} \]

Step 5: Match with the other form:
Cross multiply: $y(\lambda x^{2} - 1) = 2x$, so $\lambda x^{2}y = y + 2x$.
With $C = 1/\lambda$ this is $x^{2}y = C(y + 2x)$.
A quick differentiation of $y = \dfrac{2x}{\lambda x^{2}-1}$ confirms it satisfies the given equation.

Final Answer:
\[ \boxed{x^{2}y = C\,(y + 2x)} \]
Was this answer helpful?
0