Skip to content
NCERT Exemplar · Q16

Q.Solve: x2dydx=x2+xy+y2x^2\frac{dy}{dx}=x^2+xy+y^2.

Punjab PsebShort· 3mImportance★★★★★
61% · 136/222 Questions
🔒 Locked · start free trial →

You're viewing a preview — the full solution, concept, methods & PYQ mapping are locked.

Start your 14-day free trial to unlock the full solution →

This is a homogeneous differential equation — the right-hand side is a ratio of homogeneous degree-2 terms. Substituting y=vxy = vx reduces it to a separable equation in vv and xx. The general solution is tan⁡−1(yx)=log⁡∣x∣+C\boxed{\tan^{-1}\left(\frac{y}{x}\right) = \log|x| + C}.

Why this approach works

When you see an equation like x2dydx=x2+xy+y2x^2\frac{dy}{dx} = x^2 + xy + y^2, the first instinct is to check if it's homogeneous. A differential equation is homogeneous if every term on the right-hand side has the same total degree when you treat xx and yy as variables. Here, x2x^2, xyxy, and y2y^2 are all degree 2 — so the right-hand side is a homogeneous function of degree 2 divided by x2x^2 (also degree 2). That means the ratio dydx\frac{dy}{dx} depends only on yx\frac{y}{x}, not on xx and yy separately.

The substitution y=vxy = vx (where v=y/xv = y/x) exploits this property. It turns the equation into one where vv and xx separate cleanly — and that's always solvable by integration.


Step-by-step solution

1. Rewrite the equation in standard form

Start with:

x2dydx=x2+xy+y2x^2\frac{dy}{dx} = x^2 + xy + y^2

Divide both sides by x2x^2 (assuming x≠0x \neq 0):

dydx=1+yx+(yx)2\frac{dy}{dx} = 1 + \frac{y}{x} + \left(\frac{y}{x}\right)^2

This confirms the right-hand side is a function of v=y/xv = y/x alone.

A first-order ODE is homogeneous if it can be written as dydx=F(yx)\frac{dy}{dx} = F\left(\frac{y}{x}\right).

2. Substitute y=vxy = vx

Let v=yxv = \frac{y}{x}, so y=vxy = vx. Differentiate with respect to xx:

dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}

The original equation becomes:

v+xdvdx=1+v+v2v + x\frac{dv}{dx} = 1 + v + v^2

3. Simplify to separate variables

Cancel vv from both sides:

xdvdx=1+v2x\frac{dv}{dx} = 1 + v^2

Now the variables are separable — vv on one side, xx on the other:

dv1+v2=dxx\frac{dv}{1 + v^2} = \frac{dx}{x} …

Unlock everything free for 14 days

  • Full step-by-step solutions
  • Concept-first explanations
  • Methods, shortcuts & mistakes
  • PYQ mapping + timed mock tests

Full access for 14 days. No credit card required.