Math Lab
Home/Class XII/Ch 9/Homogeneous differential equations

Homogeneous differential equations

A function f(x,y)f(x, y) is homogeneous of degree nn if f(tx,ty)=tnf(x,y)f(tx, ty) = t^n f(x, y) for all t>0t > 0. Examples: x2+xyx^2 + xy is homogeneous of degree 22; x2+y2xy\dfrac{x^2 + y^2}{xy} is of degree 00; yx\dfrac{y}{x} is of degree 00.

A first-order DE is called homogeneous when it can be written as dydx=F ⁣(yx),\frac{dy}{dx} = F\!\left(\frac{y}{x}\right), i.e. the right-hand side depends only on the ratio y/xy/x. Equivalently, dydx=P(x,y)Q(x,y)\dfrac{dy}{dx} = \dfrac{P(x, y)}{Q(x, y)} where PP and QQ are homogeneous functions of the same degree.

The substitution

Let y=vxy = v x, so v=y/xv = y/x. Then dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}. Substituting: v+xdvdx=F(v),v + x\frac{dv}{dx} = F(v), which separates as dvF(v)v=dxx.\frac{dv}{F(v) - v} = \frac{dx}{x}. Integrate, then substitute v=y/xv = y/x back to recover yy as a function of xx (or as an implicit relation).

If F(v)=vF(v) = v identically, the equation is degenerate , every line y=vxy = vx is a solution.

Recognition

A DE dydx=P(x,y)Q(x,y)\dfrac{dy}{dx} = \dfrac{P(x, y)}{Q(x, y)} is homogeneous when both PP and QQ are homogeneous of the same degree. Quick test: replace each xx by txtx and each yy by tyty; the equation should be unchanged (the tt's cancel).

Examples:

  • dydx=x+yxy\dfrac{dy}{dx} = \dfrac{x + y}{x - y} , homogeneous (degree 1 on top and bottom). Divide top and bottom by xx: dydx=1+y/x1y/x\dfrac{dy}{dx} = \dfrac{1 + y/x}{1 - y/x}.
  • dydx=xyx2y2\dfrac{dy}{dx} = \dfrac{xy}{x^2 - y^2} , homogeneous.
  • dydx=x+y\dfrac{dy}{dx} = x + y , not homogeneous (the right side is degree-1 polynomial, but combined "scalarly" tx+ty=t(x+y)tx + ty = t(x+y), so actually it scales by t1t^1, making it homogeneous? Yes , it is homogeneous of degree 1, but the DE form differs: we need F(y/x)F(y/x). We have dy/dx=x(1+y/x)dy/dx = x(1 + y/x), which has an extra xx. Not in the required form.)

The clearer test for the DE: after dividing top and bottom by xnx^n (the common degree), does the right side depend only on y/xy/x? If yes, homogeneous. The example dydx=x+y\dfrac{dy}{dx} = x + y becomes dydx=x(1+y/x)\dfrac{dy}{dx} = x(1 + y/x) , still has bare xx, so not homogeneous.

Worked examples

Example 1. Solve dydx=x+yx\dfrac{dy}{dx} = \dfrac{x + y}{x}.

Rewrite: dydx=1+yx\dfrac{dy}{dx} = 1 + \dfrac{y}{x}. Substitute y=vxy = vx: v+xv=1+vv + x v' = 1 + v, so xv=1x v' = 1, i.e. dv=dxxdv = \dfrac{dx}{x}. Integrate: v=lnx+Cv = \ln|x| + C. Restore: yx=lnx+C\dfrac{y}{x} = \ln|x| + C, so y=x(lnx+C)y = x(\ln|x| + C).

Example 2. Solve dydx=yxy+x\dfrac{dy}{dx} = \dfrac{y - x}{y + x}.

Divide numerator and denominator by xx: dydx=(y/x)1(y/x)+1\dfrac{dy}{dx} = \dfrac{(y/x) - 1}{(y/x) + 1}. Let v=y/xv = y/x: v+xv=v1v+1v + xv' = \dfrac{v - 1}{v + 1}. So xv=v1v+1v=(v1)v(v+1)v+1=v21v+1x v' = \dfrac{v - 1}{v + 1} - v = \dfrac{(v - 1) - v(v + 1)}{v + 1} = \dfrac{-v^2 - 1}{v + 1}. Separate: (v+1)dv(v2+1)=dxx\dfrac{(v + 1)\,dv}{-(v^2 + 1)} = \dfrac{dx}{x}. Integrate: 12ln(v2+1)tan1v=lnx+C1-\dfrac{1}{2}\ln(v^2 + 1) - \tan^{-1}v = \ln|x| + C_1. Restore: combine the ln\ln terms. (The implicit form is tan1(y/x)+12ln(x2+y2x2)+lnx=C2\tan^{-1}(y/x) + \dfrac{1}{2}\ln\left(\dfrac{x^2 + y^2}{x^2}\right) + \ln|x| = C_2, or equivalently tan1(y/x)+12ln(x2+y2)=C\tan^{-1}(y/x) + \dfrac{1}{2}\ln(x^2 + y^2) = C.)

Example 3. Solve xdydx=y+xtan(y/x)x \dfrac{dy}{dx} = y + x \tan(y/x).

Divide by xx: dydx=yx+tan(y/x)\dfrac{dy}{dx} = \dfrac{y}{x} + \tan(y/x). Substitute v=y/xv = y/x: v+xv=v+tanvv + xv' = v + \tan v, so xv=tanvx v' = \tan v, separating to cotvdv=dxx\cot v\,dv = \dfrac{dx}{x}. Integrate: lnsinv=lnx+C1\ln|\sin v| = \ln|x| + C_1, so sinv=Cx\sin v = Cx. Restore: sin(y/x)=Cx\sin(y/x) = Cx.

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

Rewrite: dydx=x2+y22xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{2xy}. Divide top and bottom by x2x^2: dydx=1+v22v\dfrac{dy}{dx} = \dfrac{1 + v^2}{2v} where v=y/xv = y/x. Substitute y=vxy = vx: v+xv=1+v22vv + xv' = \dfrac{1 + v^2}{2v}, so xv=1+v22vv=1+v22v22v=1v22vxv' = \dfrac{1 + v^2}{2v} - v = \dfrac{1 + v^2 - 2v^2}{2v} = \dfrac{1 - v^2}{2v}. Separate: 2vdv1v2=dxx\dfrac{2v\,dv}{1 - v^2} = \dfrac{dx}{x}. Integrate: ln1v2=lnx+C1-\ln|1 - v^2| = \ln|x| + C_1. So 1v2x=C|1 - v^2| \cdot |x| = C, i.e. x(1y2/x2)=Cx(1 - y^2/x^2) = C, giving x2y2=Cxx^2 - y^2 = Cx. (Hyperbola family.)

Example 5. Solve dydx=yx+cos2(y/x)\dfrac{dy}{dx} = \dfrac{y}{x} + \cos^2(y/x), y(1)=π/4y(1) = \pi/4.

Substitute v=y/xv = y/x: v+xv=v+cos2vv + xv' = v + \cos^2 v, so xv=cos2vxv' = \cos^2 v. Separate: sec2vdv=dxx\sec^2 v\,dv = \dfrac{dx}{x}. Integrate: tanv=lnx+C\tan v = \ln|x| + C. Apply IC: at x=1x = 1, v=π/4v = \pi/4, so tan(π/4)=0+C\tan(\pi/4) = 0 + C, giving C=1C = 1. Particular: tan(y/x)=lnx+1\tan(y/x) = \ln|x| + 1.

Example 6. Solve (xy)dy=(x+y)dx(x - y)\,dy = (x + y)\,dx.

Rewrite: dydx=x+yxy\dfrac{dy}{dx} = \dfrac{x + y}{x - y}. Substitute: v+xv=1+v1vv + xv' = \dfrac{1 + v}{1 - v}. So xv=1+v1vv=1+vv(1v)1v=1+v21vx v' = \dfrac{1 + v}{1 - v} - v = \dfrac{1 + v - v(1 - v)}{1 - v} = \dfrac{1 + v^2}{1 - v}. Separate: 1v1+v2dv=dxx\dfrac{1 - v}{1 + v^2}\,dv = \dfrac{dx}{x}. Integrate: tan1v12ln(1+v2)=lnx+C1\tan^{-1}v - \dfrac{1}{2}\ln(1 + v^2) = \ln|x| + C_1. Restore: tan1(y/x)12ln(1+y2/x2)=lnx+C1\tan^{-1}(y/x) - \dfrac{1}{2}\ln(1 + y^2/x^2) = \ln|x| + C_1, simplifying to tan1(y/x)=lnx2+y2+C\tan^{-1}(y/x) = \ln\sqrt{x^2 + y^2} + C.

Try it yourself

  1. dydx=x+yxy\dfrac{dy}{dx} = \dfrac{x + y}{x - y}
  2. dydx=y(xy)x(x+y)\dfrac{dy}{dx} = \dfrac{y(x - y)}{x(x + y)}
  3. xdydx=y(logylogx+1)x \dfrac{dy}{dx} = y(\log y - \log x + 1)
  4. dydx=yxcos2(y/x)\dfrac{dy}{dx} = \dfrac{y}{x} - \cos^2(y/x)
  5. (x2y2)dydx=2xy(x^2 - y^2)\dfrac{dy}{dx} = 2xy
  6. xcos(y/x)dydx=ycos(y/x)+xx \cos(y/x)\dfrac{dy}{dx} = y \cos(y/x) + x
  7. dydx=y2x2xy\dfrac{dy}{dx} = \dfrac{y^2}{x^2 - xy}
  8. (x2+xy)dy=(x2+y2)dx(x^2 + xy)\,dy = (x^2 + y^2)\,dx
  9. dydx=xyx2y2\dfrac{dy}{dx} = \dfrac{xy}{x^2 - y^2}
  10. y(x+y)dx+(x+2y)dy=0y(x + y)\,dx + (x + 2y)\,dy = 0 , verify homogeneity (each term degree 2).
  11. (y22xy)dx=(x22xy)dy(y^2 - 2xy)\,dx = (x^2 - 2xy)\,dy
  12. dydx=yx+sin(y/x)\dfrac{dy}{dx} = \dfrac{y}{x} + \sin(y/x), y(1)=0y(1) = 0.
  13. xdydxy=x2+y2x \dfrac{dy}{dx} - y = \sqrt{x^2 + y^2}
  14. Show that dydx=ax+bycx+dy\dfrac{dy}{dx} = \dfrac{ax + by}{cx + dy} is always homogeneous.

Pitfalls and tricks

  • Check homogeneity first. Both sides of P/QP/Q must have the same degree.
  • The substitution is y=vxy = vx, not v=xyv = xy. Also valid: x=vyx = vy if it gives cleaner algebra.
  • After integration, substitute v=y/xv = y/x back. The answer should be in terms of xx and yy.
  • Watch for degenerate cases where F(v)=vF(v) = v , no separation happens; instead dvdx=0\dfrac{dv}{dx} = 0, so vv is constant.
  • Combine logarithms cleanly. ln\ln-form answers often simplify with lnx+lny/x=lny\ln|x| + \ln|y/x| = \ln|y| etc.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Homogeneous equations
6 questions · pick the best answer
Q1

A DE is homogeneous if it has the form

Q2

Substitution for a homogeneous DE

Q3

After y=vxy = vx, dydx=\frac{dy}{dx} =

Q4

Is dydx=x+y\frac{dy}{dx} = x + y homogeneous?

Q5

dydx=yx+tan(y/x)\frac{dy}{dx} = \frac{y}{x} + \tan(y/x) via v=y/xv = y/x gives

Q6

Solution of dydx=yx+1\frac{dy}{dx} = \frac{y}{x} + 1 via v=y/xv = y/x is