Substitution Methods

Transforming hard problems into solvable ones

The Art of Transformation

By now, you have several techniques for solving first-order differential equations: separation of variables, integrating factors for linear equations, and the potential function method for exact equations. But many equations stubbornly refuse to fit any of these forms.

The key insight of this chapter is that an equation that looks unsolvable might actually be a solvable equation in disguise. The right substitution can transform a complicated problem into one you already know how to solve.

This is pattern recognition at its finest. Once you learn to spot certain structures, equations that seemed impossibly tangled become straightforward.

Homogeneous Equations

The word "homogeneous" means different things in different contexts. In linear algebra, it refers to equations equal to zero. Here, it means something quite specific: a first-order equation is homogeneous if it can be written in the form

dydx=f(yx)\frac{dy}{dx} = f\left(\frac{y}{x}\right)

where the right-hand side depends only on the ratio y/xy/x, not on xx and yy separately.

How do you recognize such equations? Look for terms where xx and yy appear with the same total degree. For instance, x2+y2xy\frac{x^2 + y^2}{xy} is homogeneous because the numerator has degree 2 and the denominator has degree 2, making the overall degree 0. You can always factor out powers of xx and be left with a function of y/xy/x alone.

Practice: Identify Homogeneous Equations

Is this equation homogeneous?

dydx=yx\frac{dy}{dx} = \frac{y}{x}
1 / 6

The Substitution v = y/x

Once you recognize a homogeneous equation, the substitution that cracks it open is

v=yxv = \frac{y}{x}

This means y=vxy = vx, where both vv and xx are variables. To find dy/dxdy/dx, we use the product rule:

dydx=d(vx)dx=v+xdvdx\frac{dy}{dx} = \frac{d(vx)}{dx} = v + x\frac{dv}{dx}

This is the crucial transformation. The original equation dy/dx=f(y/x)dy/dx = f(y/x) becomes

v+xdvdx=f(v)v + x\frac{dv}{dx} = f(v)

Rearranging:

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

This is always separable:

dvf(v)v=dxx\frac{dv}{f(v) - v} = \frac{dx}{x}

What seemed like a complicated equation involving both xx and yy has become a separable equation in vv and xx. After integrating both sides, we substitute back v=y/xv = y/x to get the solution in terms of yy and xx.

Step-by-Step: Homogeneous Substitution

Step 1: Original Equation

dydx=x+yx=1+yx\frac{dy}{dx} = \frac{x + y}{x} = 1 + \frac{y}{x}

Recognize this as a homogeneous equation: dy/dx depends only on y/x.

1 / 7

The slope field shows dy/dx = 1 + y/x. Toggle solutions to see how they follow the field.

Bernoulli Equations

Another important class of equations that yield to substitution are Bernoulli equations, which have the form

dydx+P(x)y=Q(x)yn\frac{dy}{dx} + P(x)y = Q(x)y^n

where nn is any real number except 0 or 1. When n=0n = 0, the equation is linear. When n=1n = 1, the yny^n term combines with the P(x)yP(x)y term, again giving a linear equation. But for other values of nn, the yny^n term makes the equation nonlinear.

The remarkable fact is that the substitution

v=y1nv = y^{1-n}

always transforms a Bernoulli equation into a linear equation in vv.

To see why this works, start by dividing the original equation by yny^n:

yndydx+P(x)y1n=Q(x)y^{-n}\frac{dy}{dx} + P(x)y^{1-n} = Q(x)

Now notice that dvdx=(1n)yndydx\frac{dv}{dx} = (1-n)y^{-n}\frac{dy}{dx}, so yndydx=11ndvdxy^{-n}\frac{dy}{dx} = \frac{1}{1-n}\frac{dv}{dx}. Substituting:

11ndvdx+P(x)v=Q(x)\frac{1}{1-n}\frac{dv}{dx} + P(x)v = Q(x)

Multiplying through by (1n)(1-n):

dvdx+(1n)P(x)v=(1n)Q(x)\frac{dv}{dx} + (1-n)P(x)v = (1-n)Q(x)

This is a standard linear first-order equation in vv, which you can solve using integrating factors. Once you find vv, you recover y=v1/(1n)y = v^{1/(1-n)}.

Interactive: Bernoulli Equation Solver

Step 1: Bernoulli Equation

dydx+y=xy2\frac{dy}{dx} + y = xy^{2}

This is a Bernoulli equation with P(x) = 1, Q(x) = x, and n = 2. The y^2 term makes it nonlinear.

1 / 7

Adjust n to see how the equation and solution curves change. The key insight: the v = y^(1-n) substitution always linearizes.

Why These Substitutions Work

The substitutions for homogeneous and Bernoulli equations are not arbitrary tricks. They work because they exploit the structure of the equation.

For homogeneous equations, the key is that f(y/x)f(y/x) treats yy and xx as a ratio. By making that ratio into a new variable vv, we capture the essential structure and eliminate the interaction between xx and yy.

For Bernoulli equations, the yny^n term creates nonlinearity. The substitution v=y1nv = y^{1-n} is precisely chosen so that when you differentiate and substitute, the powers of yy cancel in exactly the right way to leave a linear equation.

This is a general principle in mathematics: when an equation has hidden structure, the right change of variables can make that structure explicit and turn a hard problem into an easy one.

Comparing Approaches

To appreciate the power of substitution, consider what happens when you try to solve a homogeneous equation without recognizing its structure.

Direct vs. Substitution

Solutions are circles through the origin

Direct Approach (Difficult)

1.Start: dydx=y2x22xy\text{Start: } \frac{dy}{dx} = \frac{y^2 - x^2}{2xy}
2.Try separating... 2xydy=(y2x2)dx\text{Try separating... } 2xy \, dy = (y^2 - x^2) \, dx
3.This is not separable.\text{This is not separable.}
4.Try exact: M=x2y2,N=2xy\text{Try exact: } M = x^2 - y^2, \, N = 2xy
5.Check: My=2y,Nx=2y\text{Check: } \frac{\partial M}{\partial y} = -2y, \, \frac{\partial N}{\partial x} = 2y
6.Not exact either. Need integrating factor?\text{Not exact either. Need integrating factor?}
7.Finding the right factor is difficult...\text{Finding the right factor is difficult...}

The direct approach gets stuck. Without recognizing the homogeneous structure, this equation is quite difficult.

The direct approach—trying to separate variables, checking for exactness—leads to dead ends or complicated integrating factors. The substitution approach cuts straight through to the solution.

Building Intuition

Recognizing when to use a substitution comes with practice. Here are some heuristics:

Check for homogeneity: If every term in your equation has the same degree (counting xx and yy together), try v=y/xv = y/x. Expressions like yx\frac{y}{x}, x+yxy\frac{x + y}{x - y}, or x2+xyy2\frac{x^2 + xy}{y^2} are clues.

Spot Bernoulli form: If your equation is "almost linear" except for a yny^n term with n0,1n \neq 0, 1, use the Bernoulli substitution v=y1nv = y^{1-n}.

Consider the goal: A good substitution simplifies the equation's structure. Ask yourself: what makes this equation hard? Can I introduce a new variable that absorbs that complexity?

Sometimes you will try a substitution and it will not work cleanly. That is information too—it tells you to look for a different structure.

Beyond These Methods

Homogeneous and Bernoulli equations are the most common cases where substitution helps, but the principle extends further. Some equations become tractable with substitutions like v=x+yv = x + y, v=xyv = xy, or v=y2v = y^2. The art is in recognizing what transformation will expose the underlying solvable structure.

In later chapters, you will see even more powerful transformations: the Laplace transform, which converts differential equations into algebraic ones, and series substitutions that handle equations with no closed-form solution. The theme remains the same—transformation is one of the most powerful tools in the differential equations toolkit.

Key Takeaways

  • Substitution transforms difficult equations into forms you already know how to solve
  • Homogeneous equations have the form dy/dx=f(y/x)dy/dx = f(y/x); use v=y/xv = y/x, so dy/dx=v+x(dv/dx)dy/dx = v + x(dv/dx)
  • Bernoulli equations have the form y+P(x)y=Q(x)yny' + P(x)y = Q(x)y^n; use v=y1nv = y^{1-n} to linearize
  • The chain rule is essential: always compute how dy/dxdy/dx transforms under your substitution
  • Pattern recognition improves with practice—learn to spot homogeneous and Bernoulli structures
  • When stuck, ask: what substitution would simplify this equation's structure?