Homogeneous Differential Equation — (x² + y²)dx - 2xy dy = 0

hard CBSE JEE-MAIN JEE-ADVANCED JEE Main 2023 4 min read

Question

Solve the differential equation:

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

This appeared in JEE Main 2023. The key signal that unlocks this problem is recognising it as a homogeneous equation — both terms have the same degree (2), so the substitution y = vx will reduce it to a separable form.


Solution — Step by Step

Rewrite as dydx=x2+y22xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy}.

The right-hand side has degree 2 in both numerator and denominator, so it depends only on the ratio y/xy/x. That confirms homogeneity — we substitute y = vx.

Put y=vxy = vx, so dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}.

The right-hand side becomes:

x2+v2x22xvx=1+v22v\frac{x^2 + v^2x^2}{2x \cdot vx} = \frac{1 + v^2}{2v}

Our equation is now:

v+xdvdx=1+v22vv + x\frac{dv}{dx} = \frac{1 + v^2}{2v}
xdvdx=1+v22vv=1+v22v22v=1v22vx\frac{dv}{dx} = \frac{1 + v^2}{2v} - v = \frac{1 + v^2 - 2v^2}{2v} = \frac{1 - v^2}{2v}

Now separate variables — all vv terms on one side, all xx terms on the other:

2v1v2dv=dxx\frac{2v}{1 - v^2}\,dv = \frac{dx}{x}

The left side is a standard log form. Notice that ddv(1v2)=2v\dfrac{d}{dv}(1 - v^2) = -2v, so:

2v1v2dv=ln1v2+C1\int \frac{2v}{1 - v^2}\,dv = -\ln|1 - v^2| + C_1

The right side gives lnx\ln|x|. Combining:

ln1v2=lnx+C-\ln|1 - v^2| = \ln|x| + C ln1v2+lnx=C=lnA(say)\ln|1 - v^2| + \ln|x| = -C = \ln|A| \quad \text{(say)} x(1v2)=Ax(1 - v^2) = A

Replace v=y/xv = y/x:

x ⁣(1y2x2)=Ax\!\left(1 - \frac{y^2}{x^2}\right) = A xx2y2x2=Ax \cdot \frac{x^2 - y^2}{x^2} = A x2y2=Ax\boxed{x^2 - y^2 = Ax}

This is the general solution.


Why This Works

A homogeneous ODE has the structure dydx=f ⁣(yx)\dfrac{dy}{dx} = f\!\left(\dfrac{y}{x}\right). When we substitute y=vxy = vx, the function of y/xy/x becomes a function of vv alone — the xx dependence disappears from the right side. This converts a two-variable ODE into one separable in vv and xx.

The trick on the left integral — spotting that the numerator is (up to a sign) the derivative of the denominator — is a pattern you’ll see repeatedly in integration. Train yourself to check this before reaching for partial fractions.

The final curve x2y2=Axx^2 - y^2 = Ax is actually a family of rectangular hyperbolas passing through the origin. This makes geometric sense: the original equation has a neat orthogonal-trajectory interpretation.


Alternative Method — Exact Equation Check

Rewrite as (x2+y2)dx2xydy=0(x^2 + y^2)\,dx - 2xy\,dy = 0. Check exactness:

M=x2+y2,N=2xyM = x^2 + y^2, \quad N = -2xy My=2y,Nx=2y\frac{\partial M}{\partial y} = 2y, \quad \frac{\partial N}{\partial x} = -2y

Not exact. But compute the integrating factor using MyNxN\dfrac{M_y - N_x}{N}:

2y(2y)2xy=4y2xy=2x\frac{2y - (-2y)}{-2xy} = \frac{4y}{-2xy} = \frac{-2}{x}

This depends on xx alone, so μ=e2/xdx=x2\mu = e^{\int -2/x\,dx} = x^{-2}.

Multiply through by μ=1/x2\mu = 1/x^2:

x2+y2x2dx2yxdy=0\frac{x^2 + y^2}{x^2}\,dx - \frac{2y}{x}\,dy = 0

Now verify exactness and integrate — you’ll arrive at the same answer x2y2=Axx^2 - y^2 = Ax. This method is cleaner if you’re comfortable with integrating factors, though most students find the y=vxy = vx route faster under exam conditions.

In JEE, both homogeneous substitution and the integrating factor approach are valid. The substitution y=vxy = vx is almost always faster. Use the exact-equation route only if the problem specifically asks you to find an integrating factor.


Common Mistake

The most common slip: students write dydx=x2+y22xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy} and then substitute correctly, but mess up the algebra when subtracting vv from the right side. They forget to find a common denominator:

1+v22vv1+v2v2v\frac{1+v^2}{2v} - v \neq \frac{1+v^2 - v}{2v}

The correct step is v=2v22vv = \dfrac{2v^2}{2v}, so the numerator becomes 1+v22v2=1v21 + v^2 - 2v^2 = 1 - v^2. This error flips the entire integral and gives a wrong answer that still “looks” like a valid family of curves — so you won’t catch it by sanity-checking the form.

Want to master this topic?

Read the complete guide with more examples and exam tips.

Go to full topic guide →

Try These Next