Homogeneous differential equations

Not every first-order differential equation splits neatly into "a function of xx" times "a function of yy." Homogeneous differential equations look stubborn at first glance — dydx\dfrac{dy}{dx} tangled up with both xx and yy in a way that resists direct separation — yet they hide a simple pattern: the right-hand side depends only on the ratio y/xy/x. That single observation is the key. The substitution y=vxy = vx turns the ratio into a new variable vv, and the equation collapses into one that is separable. This is the second solving technique in the CBSE Class 12 Differential Equations chapter, building directly on variables-separable, and it is tested through a fixed rhythm of steps: check homogeneity, substitute, separate, integrate, substitute back.

The core insight

An equation dydx=h ⁣(yx)\dfrac{dy}{dx} = h\!\left(\dfrac{y}{x}\right) is homogeneous and becomes separable under y=vxy = vx, since dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx} reduces it to dvh(v)−v=dxx\dfrac{dv}{h(v)-v} = \dfrac{dx}{x}.

The core idea

A function f(x,y)f(x,y) is homogeneous of degree nn if f(λx,λy)=λnf(x,y)f(\lambda x, \lambda y) = \lambda^n f(x,y) for every λ≠0\lambda \neq 0 — scaling both inputs by λ\lambda just scales the output by λn\lambda^n. A first-order differential equation dydx=F(x,y)\dfrac{dy}{dx} = F(x,y) is called homogeneous precisely when F(x,y)F(x,y) can be rewritten as a function of y/xy/x alone:

dydx=h ⁣(yx).\frac{dy}{dx} = h\!\left(\frac{y}{x}\right).

where: hh is any function of the single ratio t=y/xt = y/x, with no leftover bare xx or yy. Equivalently, if dydx=g(x,y)f(x,y)\dfrac{dy}{dx} = \dfrac{g(x,y)}{f(x,y)}, the equation is homogeneous exactly when gg and ff are homogeneous of the same degree nn — the xnx^n factors cancel when you divide, leaving a pure function of y/xy/x. Two practical points carry most of the marks. First, recognising the form is a quick algebraic check: divide numerator and denominator by the highest power of xx and see whether only y/xy/x survives. Second, the substitution that unlocks the equation is always the same:

y=vx  ⟹  dydx=v+xdvdx,y = vx \implies \frac{dy}{dx} = v + x\frac{dv}{dx},

obtained by differentiating y=vxy = vx with respect to xx via the product rule, treating vv as an unknown function of xx. This is the step most students fumble — dropping the x dv/dxx\,dv/dx term and writing dy/dx=vdy/dx = v is the single most common error in the whole topic. The picture underneath is that a homogeneous right-hand side depends only on the slope of the ray from the origin through (x,y)(x,y), not on how far along that ray you are. Move a point out along the same ray — scale both xx and yy by the same λ\lambda — and the ratio y/xy/x, hence the slope h(y/x)h(y/x), does not change at all. So the differential equation "looks the same" along any ray y=vxy = vx for fixed vv, which is exactly why the substitution that freezes vv turns the problem into one variable at a time: vv tags which ray you are on, and xx tags where along it you sit.

Figure
Rays from the origin at different slopes v illustrating that a homogeneous right hand side depends only on y over x
h(y/x) depends only on the ray you are on, not the distance along it x y v = 1.6 (steep ray) v = 0.6 v = 0.2 (shallow ray) same v, same slope h(v)

Solving it

Substituting y=vxy = vx into dydx=h(y/x)=h(v)\dfrac{dy}{dx} = h(y/x) = h(v) gives

v+xdvdx=h(v)  ⟹  xdvdx=h(v)−v,v + x\frac{dv}{dx} = h(v) \implies x\frac{dv}{dx} = h(v) - v,

which is separable in vv and xx. If the equation is more natural with xx as a function of x/yx/y, use x=vyx = vy, dxdy=v+ydvdy\dfrac{dx}{dy} = v + y\dfrac{dv}{dy} instead — the method is identical with the roles of xx and yy swapped.

Derivation AReducing a homogeneous equation to a separable one

The goal is to show, starting only from dydx=h(y/x)\dfrac{dy}{dx} = h(y/x) and the product-rule fact ddx(vx)=v+xdvdx\dfrac{d}{dx}(vx) = v + x\dfrac{dv}{dx}, that the substitution y=vxy = vx always converts a homogeneous first-order equation into a separable equation dvh(v)−v=dxx\dfrac{dv}{h(v)-v} = \dfrac{dx}{x} whose two sides can be integrated independently, with no assumption on the specific form of hh.

Step 1. Write y=vxy = vx, where vv is treated as an unknown function of xx (not a constant). Differentiate both sides with respect to xx using the product rule: dydx=ddx(v⋅x)=dvdx⋅x+v⋅1=v+xdvdx\dfrac{dy}{dx} = \dfrac{d}{dx}(v\cdot x) = \dfrac{dv}{dx}\cdot x + v\cdot 1 = v + x\dfrac{dv}{dx}.

Step 2. Substitute this into the given homogeneous equation dydx=h ⁣(yx)\dfrac{dy}{dx} = h\!\left(\dfrac{y}{x}\right). Since y/x=vy/x = v by construction, the right side becomes simply h(v)h(v), so v+xdvdx=h(v)v + x\dfrac{dv}{dx} = h(v).

Step 3. Isolate the derivative term by subtracting vv from both sides: xdvdx=h(v)−vx\dfrac{dv}{dx} = h(v) - v. Every xx that was tangled inside h(y/x)h(y/x) has vanished — the right side is now a pure function of vv alone, and the left side is xx times dv/dxdv/dx.

Step 4. Divide both sides by x(h(v)−v)x\big(h(v)-v\big), provided h(v)≠vh(v) \neq v, to separate the variables completely: dvh(v)−v=dxx\dfrac{dv}{h(v)-v} = \dfrac{dx}{x}. The left side is entirely in vv, the right side entirely in xx, so each can now be integrated on its own, and back-substituting v=y/xv = y/x at the end returns the answer to the original variables.

Worked example

Solve dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2 + y^2}{xy}.

Step 1. Check homogeneity. Both x2+y2x^2+y^2 and xyxy are homogeneous of degree 22, so dividing top and bottom by x2x^2 gives dydx=1+(y/x)2y/x\dfrac{dy}{dx} = \dfrac{1+(y/x)^2}{y/x} — a function of y/xy/x alone. The equation is homogeneous.

Step 2. Substitute y=vxy = vx, so dydx=v+xdvdx\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}:

v+xdvdx=1+v2v.v + x\frac{dv}{dx} = \frac{1+v^2}{v}.

Step 3. Isolate x dv/dxx\,dv/dx:

xdvdx=1+v2v−v=1+v2−v2v=1v.x\frac{dv}{dx} = \frac{1+v^2}{v} - v = \frac{1+v^2-v^2}{v} = \frac{1}{v}.

Step 4. Separate and integrate:

v dv=dxx  ⟹  ∫v dv=∫dxx  ⟹  v22=ln⁡∣x∣+C1.v\,dv = \frac{dx}{x} \implies \int v\,dv = \int \frac{dx}{x} \implies \frac{v^2}{2} = \ln|x| + C_1.

Step 5. Substitute back v=y/xv = y/x and clear the fraction (multiply by 2x22x^2, write C=2C1C = 2C_1):

y22x2=ln⁡∣x∣+C1  ⟹  y2=2x2ln⁡∣x∣+Cx2.\frac{y^2}{2x^2} = \ln|x| + C_1 \implies \boxed{y^2 = 2x^2\ln|x| + Cx^2.}

Competitive stretch

A close cousin, (x2+y2)dx−2xy dy=0(x^2+y^2)dx - 2xy\,dy = 0 with y(1)=1y(1)=1, reduces the same way to 2v1−v2dv=dxx\dfrac{2v}{1-v^2}dv = \dfrac{dx}{x}, integrating to x=C(x2−y2)x = C(x^2-y^2). Plugging in x=1,y=1x=1,y=1 gives 1=C⋅01 = C\cdot 0, which is impossible — the point (1,1)(1,1) sits on the singular branch x2=y2x^2=y^2 that got divided away during separation. Checking directly, y=xy=x satisfies the original equation and passes through (1,1)(1,1), so that line — not the general family — is the particular solution. Losing a branch during separation and needing to recover it by direct substitution is a favourite twist in board and competitive papers alike.

Common traps

  • Dropping the product-rule term. ddx(vx)=v+xdvdx\dfrac{d}{dx}(vx) = v + x\dfrac{dv}{dx}, not just vv — omitting x dv/dxx\,dv/dx is the most common single error here.
  • Misjudging homogeneity. Numerator and denominator (or all terms) must be homogeneous of the same degree; dydx=x+yx2+y\dfrac{dy}{dx} = \dfrac{x+y}{x^2+y} is not homogeneous because the parts have different degrees.
  • Forgetting to substitute back. After integrating in vv, the answer must be converted back to x,yx,y via v=y/xv = y/x; leaving vv in the final answer loses marks.
  • Losing a solution branch. Dividing by an expression like (1−v2)(1-v^2) during separation can silently discard a valid solution where that expression is zero — always check the answer against any given initial condition.
  • Confusing this method with variables-separable. A homogeneous equation is not directly separable in xx and yy; the y=vxy=vx substitution is what creates the separable equation in vv and xx — trying to separate xx and yy straight away, without substituting first, wastes time and rarely works.

Ask the tutor: if the algebra after substituting y=vxy=vx gets messy, ask your AI tutor to slow down and show each simplification step for your specific equation.

How do I quickly tell if an equation is homogeneous without dividing everything out?

Check the degree of every term on both sides. In dydx=g(x,y)f(x,y)\dfrac{dy}{dx} = \dfrac{g(x,y)}{f(x,y)}, if every term of gg has the same total power of xx and yy combined, and likewise for ff, and those two common degrees match, the equation is homogeneous. For example, in x2+y2x^2+y^2 every term has degree 22, and in xyxy the single term also has degree 22 — matching degrees confirm homogeneity instantly, without doing the division.

Why does the substitution have to be y = vx and not something else?

Because h(y/x)h(y/x) depends on the ratio y/xy/x, naming that ratio vv (so y=vxy=vx) turns the messy two-variable dependence into a one-variable function h(v)h(v). Any substitution that captures the ratio would work in principle, but y=vxy=vx is the standard, cleanest choice because differentiating it by the product rule directly reproduces the v+x dv/dxv + x\,dv/dx pattern that cancels the vv already sitting in h(v)h(v), leaving a clean separable equation.

What if I get stuck simplifying after substituting y = vx?

This is exactly where algebra errors creep in, usually from expanding (vx)2(vx)^2 or forgetting a bracket. Redo the substitution one piece at a time: replace every yy with vxvx first, simplify powers of xx so they cancel with the denominator, and only then subtract vv from both sides. If the algebra still looks tangled after that, ask your AI tutor to walk through each simplification step for your specific equation rather than guessing the next line.

Before this

Where this leads