Q.Show that the differential equation (x−y)dxdy=x+2y is homogeneous and solve it.
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.
Homogeneity: dxdy=x−yx+2y=1−(y/x)1+2(y/x) depends only on y/x, so the equation is homogeneous.
Put y=vx, dxdy=v+xdxdv:
v+xdxdv=1−v1+2v ⇒ xdxdv=1−vv2+v+1.
Separate: v2+v+1(1−v)dv=xdx. Split 1−v=−21(2v+1)+23 and integrate:
−21log(v2+v+1)+3tan−132v+1=log∣x∣+C.
Put v=xy (so v2+v+1=x2x2+xy+y2); the log∣x∣ terms cancel, and multiplying by −2:
log∣x2+xy+y2∣−23tan−13xx+2y=C.
logx2+xy+y2−23tan−1(3xx+2y)=C.
The equation is homogeneous; y=vx separates it, and the general solution is log∣x2+xy+y2∣−23tan−13xx+2y=C.
Show it is homogeneous
dxdy=x−yx+2y.
Numerator and denominator are both degree 1, so dividing by x leaves only the ratio y/x:
dxdy=1−(y/x)1+2(y/x)=F(xy).
That is the homogeneous form.
Substitute y=vx
With dxdy=v+xdxdv,
v+xdxdv=1−v1+2v.
Subtract v:
xdxdv=1−v1+2v−v(1−v)=1−vv2+v+1.
Separate
v2+v+11−vdv=xdx.
Integrate the left side
Split the numerator using the derivative of the denominator, 2v+1:
1−v=−21(2v+1)+23.
Then
∫v2+v+11−vdv=−21log(v2+v+1)+23∫v2+v+1dv.
Completing the square, v2+v+1=(v+21)2+43, so
∫v2+v+1dv=32tan−132v+1,
and the left integral is
−21log(v2+v+1)+3tan−132v+1.
Equating to ∫xdx=log∣x∣+C:
−21log(v2+v+1)+3tan−132v+1=log∣x∣+C.
Return to x,y
With v=xy, v2+v+1=x2x2+xy+y2, so
−21log(x2+xy+y2)+log∣x∣+3tan−13x2y+x=log∣x∣+C.
The log∣x∣ terms cancel; multiplying by −2,
log∣x2+xy+y2∣−23tan−13xx+2y=C.
logx2+xy+y2−23tan−1(3xx+2y)=C, C an arbitrary constant.
Method: Solving a homogeneous equation by y=vx
Use this when dxdy=N(x,y)M(x,y) with M and N of the same degree, so the right side depends only on the ratio xy.
Steps
Step 1: Confirm homogeneity.
Divide numerator and denominator by the appropriate power of x until only xy appears; then dxdy=F(xy).
Step 2: Substitute y=vx, so dxdy=v+xdxdv.
Replace y and dxdy. The equation becomes an equation in v and x.
Step 3: Subtract v and separate.
Isolate xdxdv, then split the variables into ⋯(function of v)dv=xdx.
Step 4: Integrate, then return to x,y.
For a rational integrand like v2+v+11−v, write the numerator as a multiple of the denominator's derivative plus a constant, giving a log term plus an inverse-tangent (after completing the square). Finally substitute v=xy back.
Common Mistakes
Mistake 1: Forgetting to subtract v after substituting.
Why it's wrong: dxdy=v+xdxdv, so the plain v must be moved to the right before separating; skipping it gives a wrong equation. Correct approach: isolate xdxdv=1−v1+2v−v=1−vv2+v+1.
Mistake 2: Integrating v2+v+11−v without splitting the numerator.
Why it's wrong: it is not a basic form; you must write 1−v=−21(2v+1)+23 so one piece is a log and the other an inverse tangent (after completing the square). Correct approach: use the derivative of the denominator, 2v+1, to split it.
Mistake 3: Not substituting v=xy back.
Why it's wrong: an answer left in v is incomplete. Correct approach: replace v with xy so the log∣x∣ terms combine into log∣x2+xy+y2∣.
- 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 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 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.