faheem.

Differential Equations

Separation of Variables

Assuming the solution factorises works far more often than it has any right to. The coordinate system is why.

Updated May 2026

Almost every partial differential equation solved by hand is solved the same way: guess that the solution factorises, and see whether the equation permits it.

The method

Take the heat equation on a bar of length , held at zero at both ends:

Try . Substituting and dividing through by :

The left side depends only on , the right only on . Two functions of independent variables can agree everywhere only by both being constant. Call it and the PDE becomes two ODEs.

The boundary conditions do the real work

with has solutions only for

This is an eigenvalue problem, and the discreteness is imposed by the boundary, not by the equation. A bounded domain quantises. That single observation is the entire origin of quantised energy levels in quantum mechanics. The Schrödinger equation is a boundary value problem and the integers come from the box.

n=10 interior nodesn=21 interior noden=32 interior nodes
Fig. 1

The first three modes of a fixed string. Each has an integer number of half-wavelengths in the interval, which is what the boundary conditions force. The dashed curve is the same mode half a period later.

Superposing and matching the initial condition:

with the Fourier sine coefficients of .

Why high modes vanish first

Each term decays at rate . Fine structure, meaning large , disappears quadratically faster than coarse structure.

This is why heat diffusion smooths, and why running it backwards is hopeless: the inverse problem amplifies exactly the modes that carry the least reliable information. It is the same reason deblurring an image is hard.

When it fails

Separation requires the boundary to be a coordinate surface. A rectangle in Cartesians, a disc in polars, a sphere in sphericals are all fine. An L-shaped domain, or a non-concentric annulus, is not: no coordinate system separates it, and no amount of cleverness will make it.

There are exactly eleven coordinate systems in which the Helmholtz equation separates. Everything else needs conformal mapping, Green's functions, or a computer.