Q.Solve the following differential equation: (x2+xy)dy=(x2+y2)dx
Concept understanding — Homogeneous Differential Equation
Homogeneous Differential Equations
The idea: only the ratio y/x matters
A function f(x,y) is homogeneous of degree n if scaling both variables by t scales the function by tn: f(tx,ty)=tnf(x,y). For example f(x,y)=x2+y2 gives f(tx,ty)=t2(x2+y2) — degree 2.
A first-order equation
dxdy=f(x,y)
is called homogeneous when f is homogeneous of degree 0, i.e. f(tx,ty)=f(x,y). Scaling then changes nothing, which means the slope depends only on the ratio y/x, never on the absolute sizes. So a homogeneous equation can always be recast as
dxdy=F(xy).
Quick test in the form M(x,y)dx+N(x,y)dy=0: if every term of M and N has the same total degree (sum of the powers of x and y), the equation is homogeneous. E.g. in (x2+y2)dx−2xydy=0 both M and N are degree 2.
Why we care: it becomes separable
Recognising homogeneity buys you a guaranteed method. Substitute
y=vx⇒dxdy=v+xdxdv.
Putting this into dxdy=F(v) gives
v+xdxdv=F(v)⇒xdxdv=F(v)−v,
which separates:
F(v)−vdv=xdx.
Integrate both sides, then replace v by y/x to return to the original variables.
If instead the slope comes out as a function of x/y, the mirror substitution x=vy keeps the algebra clean — pick whichever ratio the equation hands you. Also watch for a constant solution coming from F(v)−v=0.
The one insight to carry away: a homogeneous equation reduces to a separable one, because only y/x matters and v=y/x turns that ratio into the new variable.
Homogeneous Differential Equations form a dedicated section of the CBSE Class 12 Differential Equations chapter, where the y = vx substitution method shown here is exactly the NCERT-prescribed technique tested in board exams. "Homogeneous differential equation class 12 examples" is a heavily searched revision topic, and this same substitution trick is useful for differential equation questions in JEE Main.
Homogeneous (every term is degree 2). Put y=vx, dxdy=v+xdxdv into dxdy=x2+xyx2+y2=1+v1+v2:
v+xdxdv=1+v1+v2⇒xdxdv=1+v1+v2−v(1+v)=1+v1−v.
Separate and write 1−v1+v=−1+1−v2:
∫(−1+1−v2)dv=∫xdx⇒−v−2log∣1−v∣=log∣x∣+C.
With v=xy and 1−v=xx−y this tidies to (x−y)2=Cxe−y/x.
(x−y)2=Cxe−y/x (equivalently −xy−2log1−xy=log∣x∣+C).
Homogeneous DE; with y=vx it separates to 1−v1+vdv=xdx, giving (x−y)2=Cxe−y/x.
1. Recognise homogeneity
dxdy=x2+xyx2+y2.
Numerator and denominator are both degree 2, so dividing through by x2 makes the right side depend only on v=y/x:
dxdy=1+v1+v2.
2. Substitute y=vx
Then dxdy=v+xdxdv, so
v+xdxdv=1+v1+v2.
3. Reduce to separable form
xdxdv=1+v1+v2−v=1+v1+v2−v−v2=1+v1−v.
So
1−v1+vdv=xdx.
4. Integrate
Write 1−v1+v=−1+1−v2:
∫(−1+1−v2)dv=∫xdx⇒−v−2log∣1−v∣=log∣x∣+C.
5. Return to x,y
With v=xy and 1−v=xx−y:
−xy−2logxx−y=log∣x∣+C.
Collecting logarithms, −xy−2log∣x−y∣+2log∣x∣=log∣x∣+C, i.e. log(x−y)2∣x∣=xy+C. Exponentiating,
(x−y)2=Cxe−y/x.
Check: differentiating (x−y)2=Cxe−y/x implicitly and simplifying returns y′=x2+xyx2+y2, the original equation.
(x−y)2=Cxe−y/x, equivalently −xy−2log1−xy=log∣x∣+C.
Method: Solving a homogeneous equation by y=vx
Use this when dxdy can be written purely in terms of xy — a homogeneous equation. The substitution y=vx turns it into a separable equation in v and x.
Steps
Step 1: Confirm homogeneity and substitute
Rewrite the right side as a function of v=xy. Set y=vx, so dxdy=v+xdxdv.
Step 2: Separate v from x
After substituting, the v terms group on one side and xdx on the other:
F(v)−vdv=xdx.
Step 3: Integrate and back-substitute
Integrate both sides, then replace v with xy to return to x,y.
Homogeneous means every term has the same total degree in x,y; that guarantees the right side depends only on y/x, which is what makes y=vx work.
Common Mistakes
Mistake 1: Forgetting dxdy=v+xdxdv after y=vx
Why it's wrong: writing only dxdy=v omits the product-rule term and breaks the whole method. Correct approach: differentiate y=vx properly to v+xdxdv.
Mistake 2: Errors simplifying 1+v1+v2−v
Why it's wrong: this must reduce to 1+v1−v before separating; algebra slips give a wrong integral. Correct approach: combine over a common denominator carefully.
Mistake 3: Not back-substituting v=xy
Why it's wrong: leaving the answer in v hides the actual x,y solution. Correct approach: replace v to reach (x−y)2=Cxe−y/x.
- KEAM 2021Set eng-2021-P2-B14 marksMCQQ.The general solution of the differential equation y−xy′=x2+y2 is (A) y=xtan(C−x) (B) y=tanx+C (C) y=x2tanx+C (D) y=xtanx+C (E) y=xtanx+Cx
›Reveal solutionSolution
The general solution is y=xtan(C−x).
Concept and Intuition
The equation y−xy′=x2+y2 is solved by the substitution y=vx (homogeneous-type after rearrangement); the resulting family is directly verifiable against the given options.
Step-by-Step Solution
- Take option (A): y=xtan(C−x), so y′=tan(C−x)−xsec2(C−x).
- Compute y−xy′=xtan(C−x)−xtan(C−x)+x2sec2(C−x)=x2sec2(C−x).
- Compute x2+y2=x2+x2tan2(C−x)=x2sec2(C−x).
- Both sides equal, so y=xtan(C−x) satisfies the equation.
Common Mistakes
- Mishandling the chain-rule sign for tan(C−x), whose derivative is −sec2(C−x).
✓Final answerThe correct option is (A) — y=xtan(C−x).
ANSWER: A
- KEAM 2026Set eng-2026-04194 marksMCQQ.The solution of the differential equation (x+2y)dx+(2x−y)dy=0 is (A) x2−y2+6xy=C (B) x2−y2−4xy=C (C) x2−y2+4xy=C (D) x2−y2+3xy=C (E) 2x2−y2+4xy=C
›Reveal solutionSolution
Check exactness: My=Nx=2, then integrate M to get the potential 2x2+2xy−2y2, giving x2−y2+4xy=C.
Here M=x+2y and N=2x−y.
∂y∂M=2,∂x∂N=2,
so the equation is exact.
There is a potential F with Fx=M:
F=∫(x+2y)dx=2x2+2xy+h(y).
Then Fy=2x+h′(y)=N=2x−y⇒h′(y)=−y⇒h(y)=−2y2.
So F=2x2+2xy−2y2= const. Multiplying by 2:
x2−y2+4xy=C.
✓Final answerThe correct option is (C).
- KEAM 2025Set eng-2025-04284 marksMCQQ.The general solution of the differential equation ydx−xdy=y2(xdy+ydx) is (A) xy=xy+C (B) y2x=xy+C (C) x2y=xy+C (D) x+y=xy+C (E) yx=xy+C
›Reveal solutionSolution
Recognise ydx−xdy=y2d(x/y) and xdy+ydx=d(xy); cancel y2 to get d(x/y)=d(xy), so x/y=xy+C.
Recall the differentials
d(yx)=y2ydx−xdy,d(xy)=xdy+ydx.
The given equation is
ydx−xdy=y2(xdy+ydx).
Divide both sides by y2:
y2ydx−xdy=xdy+ydx⇒d(yx)=d(xy).
Integrating,
yx=xy+C.
✓Final answerThe correct option is (E).
- KEAM 2024Set eng-2024-06054 marksMCQQ.When y=vx, the differential equation dxdy=xy+f′(xy)f(xy) reduces to (A) f′(v)f(v)dv=x1dx (B) f(v)f′(v)dv=xdx (C) f(v)f′(v)dv=x1dx (D) f′(v)f(v)dv=xdx (E) f′(v)f(v)dv=x1dx
›Reveal solutionSolution
Substituting y=vx separates variables into f(v)f′(v)dv=x1dx.
With y=vx, dxdy=v+xdxdv. The equation gives
v+xdxdv=v+f′(v)f(v) ⇒ xdxdv=f′(v)f(v).
Separating variables:
f(v)f′(v)dv=x1dx.
✓Final answerThe correct option is (C).
- KEAM 2024Set eng-2024-06084 marksMCQQ.The equation of the curve passing through (1,0) and which has slope (1+xy) at (x,y), is (A) y=xex (B) y=x+logx (C) y=x−logx (D) y=x+2logx (E) y=xlogx
›Reveal solutionSolution
Solve the linear ODE y′−xy=1 (integrating factor 1/x): xy=logx+C; (1,0) forces C=0, giving y=xlogx.
The slope condition is
dxdy=1+xy ⇒ dxdy−xy=1,
a first-order linear equation. The integrating factor is
μ=e−∫x1dx=e−logx=x1.
Multiply through:
x1dxdy−x2y=x1 ⇒ dxd(xy)=x1.
Integrate:
xy=logx+C.
Apply (1,0): 0=log1+C=C, so C=0. Therefore
y=xlogx.
✓Final answerThe correct option is (E).
🎓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.