Question:medium

Find the general solution of the differential equation :

\(y^2\,dx + (x^2 - xy + y^2)\,dy = 0\)

Show Hint

The equation is homogeneous. Put x = vy, separate the variables and integrate to get an inverse tangent term.
Updated On: Oct 22, 2026
Show Solution

Solution and Explanation

Step 1: Rewrite as dy/dx.
The equation can be written as $\dfrac{dy}{dx} = -\dfrac{y^2}{x^2 - xy + y^2}$. Both top and bottom have degree 2, so it is homogeneous.

Step 2: Use y = vx.
Then $\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}$ and the right side becomes $-\dfrac{v^2}{1 - v + v^2}$.
\[ x\frac{dv}{dx} = -\frac{v^2}{1 - v + v^2} - v = -\frac{v(1 + v^2)}{1 - v + v^2} \]

Step 3: Separate the variables.
\[ \frac{1 - v + v^2}{v(1 + v^2)}\,dv = -\frac{dx}{x} \]
By partial fractions, $\dfrac{1 - v + v^2}{v(1 + v^2)} = \dfrac{1}{v} - \dfrac{1}{1 + v^2}$.

Step 4: Integrate.
\[ \log|v| - \tan^{-1} v = -\log|x| + C \]
\[ \log|vx| - \tan^{-1} v = C \]
Since $vx = y$ and $v = \dfrac{y}{x}$, we get the solution below.

Step 5: Check against the other form.
For $x, y > 0$ we have $\tan^{-1}\frac{y}{x} = \frac{\pi}{2} - \tan^{-1}\frac{x}{y}$. The constant absorbs $\frac{\pi}{2}$, so both forms describe the same family.

Final Answer:
$C$ is an arbitrary constant. \[ \boxed{\log|y| - \tan^{-1}\left(\frac{y}{x}\right) = C} \]
Was this answer helpful?
0