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∣.
- JKBOSE Class 12 Annual Regular Examination 2023Set ANNUAL4 marksQ.Find general solution of differential equation: xdxdy−y+xsin(xy)=0
›Reveal solutionSolution
This is a homogeneous differential equation; substituting y=vx and separating variables gives xtan(y/2x)=C.
xdxdy−y+xsin(xy)=0
Step 1 — rewrite in the form dxdy= function of y/x.
xdxdy=y−xsin(xy)⟹dxdy=xy−sin(xy)
This is homogeneous (the right side depends only on y/x).
Step 2 — substitute y=vx, so dxdy=v+xdxdv:
v+xdxdv=v−sinv⟹xdxdv=−sinv
Step 3 — separate variables.
sinvdv=−xdx⟹∫cosecvdv=−∫xdx
Step 4 — integrate both sides (using ∫cosecvdv=lntan2v+C1):
lntan2v=−ln∣x∣+C1
lntan2v+ln∣x∣=C1⟹lnxtan2v=C1
xtan2v=C(where C=±eC1)
Step 5 — back-substitute v=y/x.
xtan(2xy)=C
✓Final answerThe general solution is xtan(2xy)=C.
- JKBOSE Class 12 Annual Regular Examination 2019Set WZ4 marksQ.Solve the homogeneous differential equation: (x2−y2)dx+2xydy=0
›Reveal solutionSolution
This is a homogeneous first-order ODE; substitute y=vx to separate variables.
(x2−y2)dx+2xydy=0⟹dxdy=2xyy2−x2
Let y=vx, so dxdy=v+xdxdv:
v+xdxdv=2x⋅vxv2x2−x2=2vv2−1
xdxdv=2vv2−1−v=2vv2−1−2v2=2v−(v2+1)
Separate: v2+12vdv=−xdx
Integrate: ln(v2+1)=−lnx+C⟹ln[x(v2+1)]=C⟹x(v2+1)=C1
Substitute back v=y/x: x(x2y2+1)=C1⟹xy2+x2=C1⟹x2+y2=C1x
✓Final answerThe general solution is x2+y2=Cx.
- JKBOSE Class 12 Annual Regular Examination 2018Set WZ4 marksQ.Show that the differential equation is homogeneous and solve it: (1+ex/y)dx+ex/y(1−yx)dy=0.
›Reveal solutionSolution
Both coefficients depend only on x/y, so the equation is homogeneous; the substitution x=vy separates the variables and integrates to x+yex/y=C.
Given (1+ex/y)dx+ex/y(1−yx)dy=0.
Homogeneity: writing dxdy=−ex/y(1−x/y)1+ex/y, the right side depends on x and y only through the ratio x/y (replacing x→λx, y→λy leaves it unchanged) — so this is a homogeneous differential equation of degree 0.
Solving: put x=vy (so v=x/y), giving dx=vdy+ydv. Substitute:
(1+ev)(vdy+ydv)+ev(1−v)dy=0
[(1+ev)v+ev(1−v)]dy+(1+ev)ydv=0
The bracket simplifies: v+vev+ev−vev=v+ev.
(v+ev)dy+(1+ev)ydv=0⟹ydy=−v+ev1+evdv
Integrating, and noting dvd(v+ev)=1+ev:
ln∣y∣=−ln∣v+ev∣+C0⟹lny(v+ev)=C0⟹y(v+ev)=C
Substitute back v=x/y:
y(yx+ex/y)=C⟹x+yex/y=C
✓Final answerGeneral solution: x+yex/y=C.
🎓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.