Homogeneous equations

Some first-order differential equations look intimidating — a tangle of xx and yy on the right of dy/dxdy/dx — until you notice a hidden symmetry: the whole expression depends only on the ratio y/xy/x, never on xx and yy separately. That single observation is the entire trick. Divide top and bottom by the right power of xx, spot the ratio, and a substitution collapses the equation into something you already know how to solve: a variable separable equation. This article covers homogeneous differential equations as they appear in the ISC Class 12 Calculus unit — the second solving technique in the Differential Equations section, right after variable separable equations. You will learn how to test whether an equation is homogeneous, how the substitution y=vxy = vx (or its mirror, x=vyx = vy) turns it separable, and how to carry a worked problem through to a particular solution using an initial condition. The method is short, mechanical, and — once the pattern is recognised — genuinely fast to execute under exam pressure.

The core insight

A first-order equation dy/dx=F(y/x)dy/dx = F(y/x) is homogeneous, and the substitution y=vxy = vx turns it into a variable separable equation in vv and xx.

The core idea

What "homogeneous" means for a function. A function f(x,y)f(x,y) is called homogeneous of degree nn if scaling both variables by the same factor λ\lambda scales the output by λn\lambda^n:

f(λx,λy)=λnf(x,y)f(\lambda x,\lambda y) = \lambda^n f(x,y)

where: λ\lambda is any nonzero scaling factor, and nn is the degree — a fixed number for a given ff. For example, f(x,y)=x2+y2f(x,y) = x^2+y^2 satisfies f(λx,λy)=λ2(x2+y2)f(\lambda x,\lambda y)=\lambda^2(x^2+y^2), so it is homogeneous of degree 2.

What "homogeneous" means for the differential equation. A first-order equation is homogeneous if it can be written so the right-hand side is a pure function of y/xy/x:

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

where: FF is any function of the single ratio y/xy/x — no bare xx or yy may survive on its own. In practice, if dydx=g(x,y)h(x,y)\dfrac{dy}{dx} = \dfrac{g(x,y)}{h(x,y)} with gg and hh both homogeneous of the same degree, dividing numerator and denominator by that power of xx automatically produces this form.

Why the substitution works. Set y=vxy = vx, treating vv as a new function of xx. By the product rule,

dydx=v+xdvdx\frac{dy}{dx} = v + x\frac{dv}{dx}

Substituting into dy/dx=F(y/x)=F(v)dy/dx = F(y/x) = F(v) gives v+xdvdx=F(v)v + x\dfrac{dv}{dx} = F(v), so

xdvdx=F(v)−vx\frac{dv}{dx} = F(v) - v

This is now variable separable in vv and xx — the vv's go with dvdv, the xx's with dxdx:

dvF(v)−v=dxx\frac{dv}{F(v)-v} = \frac{dx}{x}

Integrating both sides and substituting v=y/xv = y/x back at the end returns the solution in the original variables. The figure below shows the whole pipeline as a chain of four transformations, which is worth memorising as a sequence rather than a set of isolated formulas.

Figure
A four stage flow diagram showing a homogeneous equation being tested then substituted then separated then integrated to reach the final solution
Solving a homogeneous equation, step by step Test dy/dx = F(y/x)? same-degree check Substitute y = vx dy/dx = v + x dv/dx Separate dv/(F(v)-v) = dx/x v-terms vs x-terms Integrate then set v = y/x back to x, y If x-terms dominate the numerator instead, use x = vy in the same way

Choosing the mirror substitution. Either y=vxy=vx or x=vyx=vy works on any homogeneous equation, but one usually gives a cleaner separable integral than the other. If the equation reads more naturally as dy/dxdy/dx with yy dominating, try y=vxy=vx first; if it reads more naturally as dx/dydx/dy with xx dominating, x=vyx=vy tends to be tidier. Both routes, carried through correctly, give equivalent solutions.

Derivation AReducing a homogeneous equation to a separable one

The goal of this derivation is to show, with nothing beyond the product rule and algebraic rearrangement, exactly why the substitution y=vxy = vx always converts a first-order homogeneous equation dy/dx=F(y/x)dy/dx = F(y/x) into a variable separable equation in vv and xx, so that the method is not memorised as a trick but understood as a forced consequence of the definitions.

Step 1. Start from the defining property. Because the equation is homogeneous, dy/dx=F(y/x)dy/dx = F(y/x) for some function FF of the single ratio y/xy/x. This is the only fact we are given, and it is exactly what makes the next substitution productive rather than arbitrary.

Step 2. Introduce the new variable v=y/xv = y/x, so that y=vxy = vx with vv itself a function of xx. Differentiate y=vxy = vx with respect to xx using the product rule (treating v(x)v(x) and xx as the two factors): dydx=v⋅1+x⋅dvdx=v+xdvdx\dfrac{dy}{dx} = v\cdot 1 + x\cdot\dfrac{dv}{dx} = v + x\dfrac{dv}{dx}. This step is the one most often botched — the derivative of vxvx is not simply x dv/dxx\,dv/dx, because vv is not a constant.

Step 3. Substitute both pieces into the original equation. The left side dy/dxdy/dx becomes v+x dv/dxv + x\,dv/dx, and the right side F(y/x)F(y/x) becomes F(v)F(v), since y/x=vy/x = v by construction. The equation is now v+xdvdx=F(v)v + x\dfrac{dv}{dx} = F(v).

Step 4. Isolate the derivative term and separate. Subtracting vv from both sides gives xdvdx=F(v)−vx\dfrac{dv}{dx} = F(v) - v. Provided F(v)≠vF(v) \neq v, divide both sides by x(F(v)−v)x\bigl(F(v)-v\bigr) to get dvF(v)−v=dxx\dfrac{dv}{F(v)-v} = \dfrac{dx}{x} — every vv term is now on the left, every xx term on the right, which is precisely the variable separable form. Integrating both sides and finally replacing vv with y/xy/x delivers the general solution in the original variables. Verified: differentiating y=vxy=vx gives dy/dx=v+x dv/dxdy/dx = v+x\,dv/dx by the product rule; substituting into dy/dx=F(v)dy/dx=F(v) and rearranging yields dv/(F(v)−v)=dx/xdv/(F(v)-v)=dx/x, matching the standard separable form used in both worked examples below.

Worked example

Solve dydx=x2+y2xy\dfrac{dy}{dx} = \dfrac{x^2+y^2}{xy}, then find the particular solution given y(1)=0y(1)=0 is not imposed here (this is the general solution only); a full particular-solution version follows using the same equation family as Pass-1 Example 2.

Step 1. Check homogeneity. The numerator x2+y2x^2+y^2 and denominator xyxy are both homogeneous of degree 2 (scaling x,y→λx,λyx,y\to\lambda x,\lambda y scales each by λ2\lambda^2), so the equation is homogeneous. Divide numerator and denominator by x2x^2:

dydx=1+(y/x)2y/x\frac{dy}{dx} = \frac{1+(y/x)^2}{y/x}

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

v+xdvdx=1+v2v  ⟹  xdvdx=1+v2v−v=1vv + x\frac{dv}{dx} = \frac{1+v^2}{v} \;\Longrightarrow\; x\frac{dv}{dx} = \frac{1+v^2}{v}-v = \frac{1}{v}

Step 3. Separate and integrate: v dv=dxxv\,dv = \dfrac{dx}{x} gives v22=log⁡∣x∣+C\dfrac{v^2}{2} = \log|x|+C.

Step 4. Substitute back v=y/xv = y/x: y22x2=log⁡∣x∣+C\dfrac{y^2}{2x^2} = \log|x|+C, so the general solution is y2=2x2(log⁡∣x∣+C)y^2 = 2x^2\left(\log|x|+C\right).

Competitive stretch

Now solve the closely related equation (x2+y2)dx−2xy dy=0\left(x^2+y^2\right)dx - 2xy\,dy = 0 with y(1)=0y(1)=0. Rewriting gives dydx=x2+y22xy\dfrac{dy}{dx}=\dfrac{x^2+y^2}{2xy}, again homogeneous of degree 2. Substituting y=vxy=vx: v+xdvdx=1+v22vv+x\dfrac{dv}{dx} = \dfrac{1+v^2}{2v}, so xdvdx=1−v22vx\dfrac{dv}{dx} = \dfrac{1-v^2}{2v}. Separating, 2v dv1−v2=dxx\dfrac{2v\,dv}{1-v^2}=\dfrac{dx}{x}, and integrating (recognising the left side as −f′(v)/f(v)-f'(v)/f(v) with f(v)=1−v2f(v)=1-v^2) gives −log⁡∣1−v2∣=log⁡∣x∣+C1-\log|1-v^2| = \log|x|+C_1, which rearranges to x(1−v2)=Cx(1-v^2)=C. Substituting back v=y/xv=y/x: x2−y2=Cxx^2-y^2 = Cx. Applying y(1)=0y(1)=0 gives 1=C1 = C, so the particular solution is x2−y2=xx^2-y^2=x.

Common traps

  • Misjudging homogeneity. Both the numerator and denominator (or the simplified right-hand side) must be homogeneous of the same degree; an equation like dydx=x+y+1x−y\dfrac{dy}{dx}=\dfrac{x+y+1}{x-y} is not homogeneous because of the stray constant.
  • Dropping the product-rule term. dy/dxdy/dx becomes v+x dv/dxv+x\,dv/dx under y=vxy=vx, never just x dv/dxx\,dv/dx — forgetting the lone vv is the single most common slip.
  • Not fully simplifying F(v)−vF(v)-v before separating. Sign or algebra errors here (as in the competitive-stretch example) propagate through every later step.
  • Leaving the answer in vv. The final solution must be expressed back in xx and yy by substituting v=y/xv=y/x, not left half-finished.

Ask the tutor: Stuck on whether your equation is homogeneous, which substitution to pick, or the algebra after y=vxy=vx — ask the AI tutor to walk through your specific equation step by step.

How do I quickly tell if an equation is homogeneous before starting the substitution?

Look at the right-hand side of dy/dx=g(x,y)/h(x,y)dy/dx = g(x,y)/h(x,y) and check whether replacing x→λxx\to\lambda x, y→λyy\to\lambda y everywhere scales gg and hh by the same power of λ\lambda. In practice it is faster to just divide every term by the highest power of xx (or yy) present and see whether the whole expression collapses into a function of y/xy/x alone, with no leftover bare xx or yy. If a constant term survives, like the +1+1 in x+y+1x+y+1, the equation is not homogeneous and this method does not apply.

Why does y = vx work, and could I use a different substitution instead?

It works because v=y/xv=y/x is exactly the quantity the equation's right-hand side depends on, so writing y=vxy=vx turns every occurrence of that ratio into the single variable vv, collapsing two variables into one plus its derivative. The mirror substitution x=vyx=vy works identically when the equation is more naturally read with xx as the dependent variable — same reasoning, roles swapped. Using an unrelated substitution generally will not separate the variables, since it is the specific structure F(y/x)F(y/x) that makes y=vxy=vx productive.

After I substitute back v = y/x, do I need to simplify the answer further?

Usually yes, at least enough to remove any obviously awkward fractions or logs of fractions, but ISC marking accepts any algebraically equivalent form as long as it is expressed purely in xx and yy (not vv) and the arbitrary constant is clearly present. In the worked example, y22x2=log⁡∣x∣+C\dfrac{y^2}{2x^2}=\log|x|+C and y2=2x2(log⁡∣x∣+C)y^2=2x^2(\log|x|+C) are the same solution written two ways; either is acceptable unless the question asks for a specific form.

Before this

Where this leads