Homogeneous Functions and the Degree-Zero Test

Homogeneous functions

Scale both variables — replace xx by λx\lambda x and yy by λy\lambda y — and watch what happens:

  1. F1(x,y)=y2+2xyF_1(x, y) = y^2 + 2xy: F1(λx,λy)=λ2F1(x,y)F_1(\lambda x, \lambda y) = \lambda^2 F_1(x, y) — degree 22.
  2. F2(x,y)=2x−3yF_2(x, y) = 2x - 3y: scales by λ1\lambda^1 — degree 11.
  3. F3(x,y)=cos⁡yxF_3(x, y) = \cos\frac{y}{x}: the λ\lambda's cancel — λ0F3\lambda^0 F_3, degree 00.
  4. F4(x,y)=sin⁡x+cos⁡yF_4(x, y) = \sin x + \cos y: scales by no power of λ\lambda — not homogeneous.

Definition: F(x,y)F(x, y) is a homogeneous function of degree nn if F(λx,λy)=λnF(x,y)F(\lambda x, \lambda y) = \lambda^n F(x, y) for every nonzero constant λ\lambda. Equivalently, F(x,y)=xng(yx)F(x, y) = x^n g\left(\frac{y}{x}\right) or ynh(xy)y^n h\left(\frac{x}{y}\right).

Homogeneous differential equations

Definition: dydx=F(x,y)\dfrac{dy}{dx} = F(x, y) is a homogeneous differential equation if FF is homogeneous of degree zero — i.e. the right side can be written entirely in terms of the ratio yx\frac{y}{x}.

The quick recognition test: in a quotient like x+2yx−y\frac{x + 2y}{x - y}, every term in numerator and denominator has the same total degree (here 11) — divide top and bottom by xx and only yx\frac yx remains: homogeneous. In x3+2y22xy\frac{x^3 + 2y^2}{2xy}, the degrees mix (33 versus 22) — not homogeneous.

Key Point: Degree-zero homogeneity means the slope field looks the same along every ray through the origin — which is exactly why the ratio v=yxv = \frac yx is the natural variable, and why the substitution y=vxy = vx (next block) untangles the equation.

[JEE Tip] Terms with constants added — like (4x+6y+5)(4x + 6y + 5) — break homogeneity instantly (the 55 has degree 00 while x,yx, y have degree 11). Scan for stray constants first; it eliminates options in recognition MCQs in seconds.

The Substitution y=vxy = vx

To solve dydx=g(yx)\dfrac{dy}{dx} = g\left(\dfrac{y}{x}\right):

  1. Substitute y=vxy = vx (where vv is a function of xx). Differentiating: dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}.
  2. The equation becomes v+xdvdx=g(v)v + x\frac{dv}{dx} = g(v), i.e. xdvdx=g(v)−vx\frac{dv}{dx} = g(v) - v
  3. Separate (the whole point — vv and xx now separate): dvg(v)−v=dxx\dfrac{dv}{g(v) - v} = \dfrac{dx}{x}.
  4. Integrate and back-substitute v=yxv = \frac{y}{x}: ∫dvg(v)−v=log⁡∣x∣+C\int\frac{dv}{g(v) - v} = \log|x| + C

Pipeline showing the y equals vx substitution converting homogeneous to separable

The mirror form x=vyx = vy

If the equation arrives as dxdy=h(xy)\dfrac{dx}{dy} = h\left(\dfrac{x}{y}\right) — degree-zero in the other orientation — substitute x=vyx = vy, so dxdy=v+ydvdy\dfrac{dx}{dy} = v + y\dfrac{dv}{dy}, and proceed identically. Equations written in differentials (2yex/ydx+(y−2xex/y)dy=02ye^{x/y}dx + (y - 2xe^{x/y})dy = 0) often signal this form: solve for dxdy\frac{dx}{dy} and check for xy\frac xy.

Working habits

  1. Show homogeneity first (the exam asks for it): verify F(λx,λy)=λ0F(x,y)F(\lambda x, \lambda y) = \lambda^0 F(x, y), or rewrite the right side as a function of yx\frac yx.
  2. Don't forget −v-v: the separable form is dvg(v)−v\frac{dv}{g(v) - v}, not dvg(v)\frac{dv}{g(v)} — omitting the −v-v is the classic slip.
  3. Back-substitute at the end, and simplify constants (log⁡\log-merging, ±C→C\pm C \to C) exactly as in Section 3.

Key Point: The substitution machine has one purpose: convert to separable. After step 2 you are back in Section 3 territory — every homogeneous problem is a separable problem wearing a disguise.

[JEE Tip] The vv-integral ∫dvg(v)−v\int\frac{dv}{g(v)-v} is where Chapter 7 skills return: expect partial fractions (2vv2−1\frac{2v}{v^2 - 1}), standard forms (v−1v2+v+1\frac{v-1}{v^2+v+1} needs completing the square), or a plain f′f\frac{f'}{f}. Identify the integral type before grinding.

Solved Examples

Example 1: The full showcase

Show that (x−y)dydx=x+2y(x - y)\dfrac{dy}{dx} = x + 2y is homogeneous and solve it.

Solution:

  1. Homogeneity: dydx=x+2yx−y\frac{dy}{dx} = \frac{x + 2y}{x - y}; replacing (x,y)(x, y) by (λx,λy)(\lambda x, \lambda y) leaves it unchanged (λ0\lambda^0) — homogeneous.
  2. Substitute y=vxy = vx: v+xdvdx=1+2v1−vv + x\frac{dv}{dx} = \frac{1 + 2v}{1 - v}, so xdvdx=v2+v+11−vx\frac{dv}{dx} = \frac{v^2 + v + 1}{1 - v}.
  3. Separate: v−1v2+v+1dv=−dxx\frac{v - 1}{v^2 + v + 1}dv = -\frac{dx}{x}.
  4. Integrate (split the numerator along the derivative 2v+12v + 1, complete the square for the remainder): 12log⁡(v2+v+1)−3tan⁡−12v+13=−log⁡∣x∣+C1\frac12\log\left(v^2 + v + 1\right) - \sqrt3\tan^{-1}\frac{2v + 1}{\sqrt3} = -\log|x| + C_1.
  5. Back-substitute v=yxv = \frac yx and tidy:

Final Answer: log⁡(x2+xy+y2)=23tan⁡−1(x+2y3 x)+C\log\left(x^2 + xy + y^2\right) = 2\sqrt 3\tan^{-1}\left(\dfrac{x + 2y}{\sqrt 3\,x}\right) + C.

Takeaway: The vv-integral used both Chapter 7 power-moves: numerator == A(derivative) ++ B, then the completed-square tan⁡−1\tan^{-1} form. Homogeneous problems are integration problems in disguise.

Example 2: A trig ratio

Show that xcos⁡(yx)dydx=ycos⁡(yx)+xx\cos\left(\dfrac{y}{x}\right)\dfrac{dy}{dx} = y\cos\left(\dfrac{y}{x}\right) + x is homogeneous and solve it.

Solution:

  1. Homogeneity: dydx=ycos⁡(y/x)+xxcos⁡(y/x)\frac{dy}{dx} = \frac{y\cos(y/x) + x}{x\cos(y/x)} — scaling cancels (λ0\lambda^0): homogeneous.
  2. Substitute y=vxy = vx: v+xdvdx=vcos⁡v+1cos⁡vv + x\frac{dv}{dx} = \frac{v\cos v + 1}{\cos v}, so xdvdx=1cos⁡vx\frac{dv}{dx} = \frac{1}{\cos v}.
  3. Separate and integrate: cos⁡v dv=dxx\cos v\,dv = \frac{dx}{x} gives sin⁡v=log⁡∣x∣+log⁡∣C∣\sin v = \log|x| + \log|C|.
  4. Back-substitute:

Final Answer: sin⁡(yx)=log⁡∣Cx∣\sin\left(\dfrac{y}{x}\right) = \log|Cx|.

Example 3: The x=vyx = vy variant with a condition

Show that 2yex/ydx+(y−2xex/y)dy=02ye^{x/y}dx + \left(y - 2xe^{x/y}\right)dy = 0 is homogeneous and find the particular solution with x=0x = 0 when y=1y = 1.

Solution:

  1. Rearrange: dxdy=2xex/y−y2yex/y\frac{dx}{dy} = \frac{2xe^{x/y} - y}{2ye^{x/y}} — a degree-zero function of xy\frac xy: homogeneous, mirror form.
  2. Substitute x=vyx = vy: v+ydvdy=2vev−12evv + y\frac{dv}{dy} = \frac{2ve^v - 1}{2e^v}, so ydvdy=−12evy\frac{dv}{dy} = -\frac{1}{2e^v}.
  3. Separate and integrate: 2evdv=−dyy2e^v dv = -\frac{dy}{y} gives 2ev=−log⁡∣y∣+C2e^v = -\log|y| + C.
  4. Back-substitute and apply the condition: 2ex/y+log⁡∣y∣=C2e^{x/y} + \log|y| = C; at (0,1)(0, 1): 2+0=C2 + 0 = C.

Final Answer: 2ex/y+log⁡∣y∣=22e^{x/y} + \log|y| = 2.

Example 4: A family of curves

Show that the family of curves whose tangent slope at any point (x,y)(x, y) is x2+y22xy\dfrac{x^2 + y^2}{2xy} is x2−y2=Cxx^2 - y^2 = Cx.

Solution:

  1. Set up: dydx=x2+y22xy=1+v22v\frac{dy}{dx} = \frac{x^2 + y^2}{2xy} = \frac{1 + v^2}{2v} with v=yxv = \frac yx — homogeneous.
  2. Substitute: xdvdx=1+v22v−v=1−v22vx\frac{dv}{dx} = \frac{1 + v^2}{2v} - v = \frac{1 - v^2}{2v}.
  3. Separate: 2vv2−1dv=−dxx\frac{2v}{v^2 - 1}dv = -\frac{dx}{x}; integrate: log⁡∣v2−1∣=−log⁡∣x∣+log⁡∣C1∣\log\left|v^2 - 1\right| = -\log|x| + \log|C_1|.
  4. Exponentiate and back-substitute: (v2−1)x=±C1\left(v^2 - 1\right)x = \pm C_1, i.e. y2−x2=±C1xy^2 - x^2 = \pm C_1 x.

Final Answer: x2−y2=Cxx^2 - y^2 = Cx.

Example 5: A short one

Solve y′=x+yxy' = \dfrac{x + y}{x}.

Solution:

  1. Recognise: x+yx=1+yx\frac{x+y}{x} = 1 + \frac yx — homogeneous.
  2. Substitute y=vxy = vx: v+xdvdx=1+vv + x\frac{dv}{dx} = 1 + v, so xdvdx=1x\frac{dv}{dx} = 1.
  3. Separate and integrate: dv=dxxdv = \frac{dx}{x} gives v=log⁡∣x∣+Cv = \log|x| + C.
  4. Back-substitute: yx=log⁡∣x∣+C\frac yx = \log|x| + C.

Final Answer: y=xlog⁡∣x∣+Cxy = x\log|x| + Cx.

Example 6: Particular solution with an arctangent

Solve (x+y) dy+(x−y) dx=0(x + y)\,dy + (x - y)\,dx = 0, given y=1y = 1 when x=1x = 1.

Solution:

  1. Rearrange: dydx=y−xy+x\frac{dy}{dx} = \frac{y - x}{y + x} — homogeneous.
  2. Substitute y=vxy = vx: xdvdx=v−1v+1−v=−v2+1v+1x\frac{dv}{dx} = \frac{v - 1}{v + 1} - v = -\frac{v^2 + 1}{v + 1}.
  3. Separate: v+1v2+1dv=−dxx\frac{v + 1}{v^2 + 1}dv = -\frac{dx}{x}; integrate term-wise: 12log⁡(v2+1)+tan⁡−1v=−log⁡∣x∣+C1\frac12\log\left(v^2 + 1\right) + \tan^{-1}v = -\log|x| + C_1.
  4. Back-substitute and tidy: log⁡(x2+y2)+2tan⁡−1yx=C\log\left(x^2 + y^2\right) + 2\tan^{-1}\frac yx = C.
  5. Apply (1,1)(1, 1): log⁡2+2⋅π4=C\log 2 + 2\cdot\frac{\pi}{4} = C.

Final Answer: log⁡(x2+y2)+2tan⁡−1yx=log⁡2+π2\log\left(x^2 + y^2\right) + 2\tan^{-1}\dfrac{y}{x} = \log 2 + \dfrac{\pi}{2}.

Example 7: Partial fractions in the vv-integral

Solve x2dy+(xy+y2)dx=0x^2dy + \left(xy + y^2\right)dx = 0, given y=1y = 1 when x=1x = 1.

Solution:

  1. Rearrange: dydx=−xy+y2x2=−(v+v2)\frac{dy}{dx} = -\frac{xy + y^2}{x^2} = -\left(v + v^2\right) with v=yxv = \frac yx — homogeneous.
  2. Substitute: xdvdx=−v2−2vx\frac{dv}{dx} = -v^2 - 2v.
  3. Separate and split: dvv(v+2)=−dxx\frac{dv}{v(v + 2)} = -\frac{dx}{x}; partial fractions: 12log⁡∣vv+2∣=−log⁡∣x∣+C1\frac12\log\left|\frac{v}{v+2}\right| = -\log|x| + C_1.
  4. Exponentiate and back-substitute: vv+2=Cx2\frac{v}{v + 2} = \frac{C}{x^2} gives yy+2x=Cx2\frac{y}{y + 2x} = \frac{C}{x^2}, i.e. x2y=C(y+2x)x^2y = C(y + 2x).
  5. Apply (1,1)(1, 1): 1=3C1 = 3C, so C=13C = \frac13.

Final Answer: 3x2y=y+2x3x^2y = y + 2x, i.e. y+2x=3x2yy + 2x = 3x^2y.

Takeaway: Steps 1-2 are always the same three lines; all the variety lives in the vv-integral. Bring your Chapter 7 toolkit — here, a two-factor partial fraction decomposition.