Separation of Variables in Cartesian Coordinates
Separation of variables is the oldest analytic method for solving linear partial differential equations, and on a rectangular domain it is embarrassingly effective. The premise is one bold guess: a solution that factorizes, , each factor depending on a single coordinate. When the operator is a sum of one-variable operators — as the Cartesian Laplacian is — and the boundary is a coordinate surface — as the faces of a box are — that guess pays off: substituting and dividing through collapses one PDE in several variables into several ordinary differential equations, coupled only through constants of separation. Those constants are not free. The homogeneous boundary conditions quantize them into a discrete spectrum , turning each ODE into a Sturm–Liouville eigenvalue problem whose eigenfunctions are orthogonal and complete. In Cartesian coordinates the ODEs have constant coefficients, so the eigenfunctions are elementary — sines, cosines, real exponentials, hyperbolic functions, and, at the degenerate constant, straight lines. Superposition rebuilds the answer: any sum of product modes still solves the PDE, and completeness lets the leftover inhomogeneous datum be matched, term by term, through orthogonality. The workflow is identical for Laplace, heat, wave, and Helmholtz on a box: classify, assign homogeneous conditions to the oscillating coordinates, separate, quantize, superpose, project. It is not universal — cross-derivatives, non-additive variable coefficients, and non-coordinate boundaries all defeat it — but where it works it returns exact closed-form answers and the system's spectral fingerprint: its normal modes, resonant frequencies, and decay rates.
- Separation of variables seeks a linear PDE's solution in product form , converting one PDE in several variables into several coupled ordinary differential equations.
- On a Cartesian box the spatial ODEs are constant-coefficient, so eigenfunctions are trigonometric, exponential, or hyperbolic — the special functions of curvilinear geometry never appear.
- Homogeneous boundary conditions turn each ODE into a Sturm–Liouville problem; the separation constants form a discrete spectrum and the eigenfunctions an orthogonal, complete basis.
- The general solution is a Fourier-type superposition of product modes; the coefficients are fixed by the remaining inhomogeneous datum through orthogonality, one integral per mode.
- The sign of each separation constant is not free: directions with homogeneous data must oscillate (sine/cosine); the direction carrying inhomogeneous data grows or decays (sinh/cosh).
- The same scaffolding solves Laplace, heat, wave, and Helmholtz on boxes, and generalizes to cylinders and spheres where the ODEs become Bessel's and Legendre's.
- Key idea: If a linear operator is a sum of single-variable pieces and the domain is a coordinate box, a product ansatz turns into the statement that a sum of functions of distinct variables is constant — forcing each piece to a constant and splitting the PDE into decoupled ODE eigenvalue problems.
If a linear operator is a sum of single-variable pieces and the domain is a coordinate box, then a product ansatz turns into the statement that a sum of functions of distinct variables is constant — forcing each piece to equal a constant and splitting the PDE into decoupled ODE eigenvalue problems.
Where this lives today
The Cartesian-box calculation is the analytic backbone of several billion-dollar technologies. Semiconductor quantum wells and dots — the light-emitting layers of LEDs, diode lasers, and QLED displays — are engineered by choosing box dimensions so the particle-in-a-box gap of Example 1 lands on a target colour; a CdSe dot's emission is tuned across the visible by growing it a nanometre larger or smaller. In thermal engineering, the transient-conduction series of Example 2 (the Heisler charts) still sizes heat sinks and predicts how fast a microprocessor die reaches steady state. Rectangular microwave cavities and waveguides — the plumbing of radar, satellite links, and 5G — are specified entirely by their and mode charts, with cutoff frequencies read from equation (7). And numerically, spectral PDE solvers — workhorses of climate and turbulence simulation — expand the field in exactly these eigenfunctions, because box separation diagonalizes the Laplacian into a fast, FFT-decoupled algebraic system. An open frontier is the non-clean box: near a re-entrant corner or material interface the naive series develops singular gradients, and stitching solutions across sub-domains (spectral-element methods) remains active research.
The physical picture
Strike a rectangular drumhead and its complicated motion resolves instantly into a chord of pure standing-wave patterns, each at one frequency. Separation of variables is the precise statement that these patterns factorize: the spatial shape is a product , the time dependence a single , and the PDE binding space to time dissolves, for each pattern, into independent harmonic-oscillator equations. The first figure shows the lowest three modes of a square drum with the frequencies you would measure — and that the overtones are not integer multiples of the fundamental (a rectangular membrane is inharmonic, unlike a string).
The algebraic engine is the "function of equals function of " argument. Divide the separated equation by the product and you reach : the left ignores , the right ignores , yet they are equal everywhere. The only way that holds is for both to be the same constant — one per coordinate, the seam that later stitches the ODEs back into a solution. The second figure shows the consequence: the conditions admit only the ladder , whose rungs are sine eigenfunctions with a growing count of interior nodes.
Why constant coefficients matter is worth naming: the Cartesian Laplacian has no coordinate-dependent prefactors, so each separated ODE is simply , solvable by inspection. The moment a curvilinear metric introduces variable coefficients those ODEs become Bessel's and Legendre's equations — the whole zoo of special functions — so Cartesian separation is the clean base case all of that is measured against.
The core equations
The whole method rests on one substitution and one observation. The product ansatz guesses that the field factorizes into single-coordinate functions, so an operator built from single-variable pieces acts on each factor in turn.
where: — a linear operator that is a sum of single-variable operators; — the unknown field (displacement, temperature, potential, ...); — functions each of a single coordinate. This restrictive guess pays off exactly when and the domain both respect the coordinate split. Substituting the ansatz into and dividing by gives the separated form — three terms, each a function of a different coordinate, adding to zero.
where: — second derivative of with respect to its single argument, likewise . Since the terms depend on independent variables yet sum to a fixed number, each is forced constant — the crux of the method. Fixing those constants is the one physical choice: two are taken negative so their directions oscillate, and the third is fixed by the sum-to-zero constraint (hyperbolic).
where: — real wavenumbers for the oscillatory directions; — the dependent constant. At least one direction must carry the opposite sign — you cannot make all three oscillate under Laplace's equation. Homogeneous Dirichlet conditions on an oscillatory direction select a discrete set of allowed wavenumbers.
where: — domain length in ; — positive integer mode number. The boundary conditions, not the equation, make the spectrum discrete — continuous is cut to the ladder . These eigenfunctions are mutually orthogonal over the interval — the property that makes superposition solvable.
where: — Kronecker delta, if and otherwise. Distinct modes are perpendicular, so each coefficient comes from its own integral. Applied to the heat equation on a slab held cold at both ends, the method yields a series in which every mode carries its own exponential decay, with coefficients read from the initial data by orthogonality.
where: — thermal diffusivity; — Fourier sine coefficients; — initial profile . The decay rate scales as , so fine structure is erased fastest. For the wave equation on a rectangle the same construction returns the standing-wave frequencies of a membrane.
where: — wave speed; — side lengths; — mode numbers. A square root of a sum of squares is generally incommensurate — a rectangular drum has no harmonic series, so it thuds rather than sings.
The goal is to justify, without hand-waving, the single move everything depends on: that substituting a product into a sum-of-one-variable-operators PDE genuinely decouples it into ordinary differential equations. Starting from with , we do the substitution and division explicitly, run the constancy argument, and read off the three ODEs and the constraint tying their constants — the template the heat and wave derivations then instantiate.
Step 1. Insert into . Because and are constants as far as is concerned, , and likewise for the other two terms, giving . Why: each Cartesian second derivative reaches only its own factor, which is exactly the structural property "operator is a sum of single-variable pieces" doing its work.
Step 2. Divide by (legitimate wherever ) to obtain ; each term now depends on one coordinate only. Why: division converts a product structure into an additive one, and additivity lets the coordinates be argued about independently.
Step 3. Run the constancy argument. Hold fixed and vary : and cannot change and their sum is fixed, so cannot change either — it is a constant. Repeating per coordinate, all three ratios are constants, say , , . Why: this is exactly how "a function of equals a function of " forces constancy — differentiating in one variable annihilates the others.
Step 4. Impose the constraint. The three constants must sum to zero, so : two directions may be chosen oscillatory but the third is then determined and hyperbolic, leaving three ODEs , , . Why: this is the sign rule — Laplace forbids all directions oscillating at once, so exactly one must grow or decay, and the data decide which.
Go deeper · Derivation B · 1 minThe heat equation on a finite rod
The aim is to build, end to end, the exact solution of the one-dimensional diffusion equation on a segment held at zero at both ends from an arbitrary start — the cleanest example of separation, quantization, superposition, and coefficient projection together. We solve on with and ; every ingredient is forced by the data, and the boxed result is the master formula every transient-conduction calculation specializes.
Step 1. Take the product ansatz and substitute, giving . Why: the heat operator is a sum of a pure- and a pure- piece, so the product guess is licensed exactly as in the Laplace template.
Step 2. Divide by to separate: , a single constant. The sign (with to be confirmed) anticipates spatial oscillation and temporal decay. Why: the sign is a prediction that the boundary data will demand a decaying, oscillatory solution, not a growing one.
Step 3. Solve the spatial problem with . Only gives nontrivial ; negative would give hyperbolic functions, which cannot vanish at two points. Why: this is the Sturm–Liouville content — the two-end conditions quantize and hand back an orthogonal basis.
Step 4. Solve for each eigenvalue, giving ; each mode relaxes at its own rate, quadratic in . Why: the Step-2 sign is now vindicated — that heat must dissipate, not amplify, makes the admissible branch.
Step 5. Superpose. By linearity any sum still solves the PDE and boundary conditions. Why: a single mode cannot match arbitrary initial data, but an infinite combination can — superposition is the second pillar after separation.
Step 6. Fit the data. Setting demands ; projecting against with orthogonality (5) isolates . Why: orthogonality decouples the infinitely many coefficients into one integral apiece — without it the would be an unsolvable coupled system. Check: at the series is the half-range Fourier sine expansion of , and termwise , so the PDE holds.
Go deeper · Derivation C · 1 minLaplace's equation on a rectangle with one live face
The purpose is to show how the same machinery handles a boundary-value problem in two dimensions, where the subtle step is not the separation but the assignment of signs — which coordinate oscillates and which grows hyperbolically. We solve on , with three grounded sides and one live face — the electrostatics-in-a-box archetype for every rectangular potential problem.
Step 1. Assign the signs by counting homogeneous faces. The -direction carries two homogeneous conditions ( and ), so it must be the oscillatory one; the -direction carries the single inhomogeneous datum at , so it must be hyperbolic. Why: only a sine can vanish at two distinct points and still be nontrivial, so a direction with two zero-faces is forced to oscillate — get this backwards and the expansion collapses to zero.
Step 2. Separate with the chosen signs: and , which sum to zero as Laplace's equation requires. Why: the constraint from the box template here reads simply , tying the hyperbolic rate to the oscillatory wavenumber.
Step 3. Quantize using , giving with . Why: same Sturm–Liouville quantization as the rod — two grounded walls select the discrete sine ladder.
Step 4. Solve , whose solution is pinned by : at , but , so drop the cosh and keep . Why: the hyperbolic direction has one homogeneous face, and already vanishes there, leaving one amplitude to match the live face.
Step 5. Match the live face at . Writing and normalizing each mode by to equal unity at , orthogonality gives . Why: the inhomogeneous condition is where the Fourier coefficients finally enter; each term is harmonic and meets all four conditions by construction, since .
Limiting cases
The character of a separated solution is fixed entirely by the sign of each separation constant, which the boundary data set. The four regimes:
| Case | Result | Meaning |
|---|---|---|
| Oscillatory direction | For directions with homogeneous data on both faces; those conditions quantize into the spectrum . | |
| Hyperbolic / exponential direction | For the direction carrying inhomogeneous data; grows or decays rather than oscillating, matching a profile on one face. | |
| Degenerate (zero) constant | The mode; must be checked separately, often carrying the average (Neumann) or the ramp between unequal ends. | |
| Decay in time (parabolic) | Heat: the time ODE is first order; each mode decays at rate , so high- structure vanishes fastest. |
Worked examples
1 · Energy levels of an electron in a 3D box (fully worked)
A single electron is confined to a cubic infinite well of side nm, modelling a semiconductor quantum dot. The time-independent Schrödinger equation is with on the walls. Find the ground-state energy, the first excited energy, and the degeneracy of each.
Step 1. Separate. With the equation splits into three copies of the particle-in-a-box problem, each with , so and likewise for . The Cartesian Laplacian splits the 3D well into three independent 1D wells, and the energy adds: , each
Step 2. Evaluate the energy unit . With J·s, kg, m: J .
Step 3. Ground state. The lowest quantum numbers are , giving , so . It is unique — non-degenerate, degeneracy .
Step 4. First excited state. The next value is reached by , , or — three states at the same energy , a three-fold degeneracy from the cubic symmetry. Ground 1.13 eV (single), first excited 2.26 eV (triply degenerate); the 1.13 eV gap sits in the optical range — which is why dots of this size fluoresce visible light.
2 · Transient cooling of a copper rod (fully worked)
A copper rod of length m starts at a uniform C and at its ends are clamped to C. Copper has thermal diffusivity . Find the Fourier coefficients, the long-time cooling law, and the mid-rod temperature after s.
Step 1. Coefficients. From equation (6) with constant, . Even modes vanish; odd modes give , so , , ... A flat profile is dominated by its lowest odd mode.
Step 2. Time constants. Mode decays as with ; the slowest is , and decays faster ( s). Since , after a few seconds only the fundamental survives.
Step 3. Long-time law. For only one term survives: . The whole rod then cools as a single exponential with the s constant, whatever the initial shape — the spectral gap in action, the system relaxing on its slowest mode.
Step 4. Mid-rod temperature at s. At , , and , so . The rod's centre has fallen from 100 °C to about 42.5 °C in ten seconds, and thereafter halves every s.
Physics of the portrait
Separation of variables is inseparable from the man who turned it from a trick into a theory. Daniel Bernoulli guessed in 1753 that a vibrating string's motion is a sum of sinusoidal modes, but it was Joseph Fourier, studying heat in a metal bar, who forced the issue and won it.
Origins · 1 minJoseph Fourier and how this was discovered
Jean-Baptiste Joseph Fourier was an orphan, a revolutionary, and briefly Napoleon's governor of Egypt before he became the mathematician whose name is attached to half of applied analysis. Working in stolen hours on the flow of heat, in an 1807 memoir to the Paris Academy he made a claim that scandalized the referees — Lagrange among them — that an arbitrary function could be written as a sum of sines and cosines. The committee refused to publish it, objecting that he could not prove convergence (Dirichlet's proof lay two decades away). Fourier pressed on and in 1822 published the Théorie analytique de la chaleur, whose method is exactly separation of variables: he sought product solutions of the heat equation, found the sine eigenfunctions selected by the boundary conditions, and fixed the coefficients by the orthogonality integrals now bearing his name — the first systematic complete eigenfunction expansion. The physics was almost incidental to the mathematics it forced into being: that a differential operator has a spectrum, that functions live in an inner-product space, and that boundary data are matched by projection. Every separation calculation here descends from Fourier's obstinate memoir.
Going further
Texts. Stone & Goldbart, Mathematics for Physics, ch. 8–9 · Arfken, Weber & Harris, Mathematical Methods for Physicists, 7th ed., ch. 9 · Hassani, Mathematical Physics, 2nd ed., ch. 22 · Byron & Fuller, Mathematics of Classical and Quantum Physics, ch. 7 · Riley, Hobson & Bence, Mathematical Methods for Physics and Engineering, 3rd ed., ch. 21 · Morse & Feshbach, Methods of Theoretical Physics, vol. 1, ch. 5. The key numerical results collected here are: eV for nm (ground state eV, first excited eV, degeneracy ); copper-rod s and mid-rod C at s; square-drum , , Hz with .
Prerequisites. Classification of Second-Order Linear PDEs · Boundary Conditions and Well-Posedness · Sturm–Liouville Theory and Eigenfunction Expansions. Leads to. Separation of Variables in Cylindrical Coordinates · Separation of Variables in Spherical Coordinates · The Helmholtz Equation · Green's Functions for PDEs.
Ask the tutor: Want to see this method turn a real boundary-value problem into a series — heat, potential, or a vibrating plate — worked line by line with the sign rule applied? Ask and we will build one together.
What is the difference between a separable operator and a separable solution?
Two sides of one condition. A separable operator splits into a sum of pieces each acting on a single coordinate, as the Cartesian Laplacian does. A separable solution is the product ansatz you try. The method works only when the operator is separable and the domain is a coordinate surface; then completeness supplies enough product solutions to build the general answer, whereas a non-coordinate boundary or non-separable operator admits none.
How many separation constants are there and how are they related?
Count the coordinates: a PDE in independent variables gives separated ODEs and independent separation constants, linked by one constraint from the PDE. For Laplace in three dimensions the constraint is (the three sum to zero), leaving two free; for the heat equation there is a single tying the spatial eigenvalue to the decay rate. That constraint forbids choosing all signs independently, and is why at least one direction must behave oppositely to the others.
Why does the same ODE give sines in one direction and hyperbolic functions in another?
Because the sign of the separation constant, not the ODE's form, changes — and the boundary data set that sign. The equation gives oscillatory when and when . A direction with two homogeneous faces is forced to oscillate (only sines vanish at two points); the direction carrying the inhomogeneous datum goes hyperbolic (it must reach a prescribed value on one face). So "sines here, sinh there" is dictated by which faces carry zero data.
What happens to the k = 0 mode and why is it easy to miss?
The mode solves , giving the straight line — not a sine — so it is invisible to the discrete ladder and easy to forget. Under Dirichlet data it dies; under Neumann data it survives as a constant carrying the field's average, the steady mean that never decays. When the two ends sit at different fixed values, the ramp supplies the linear steady state about which the sine series describes the transient. Omit it and you silently drop the mean or steady state.
Is separation of variables the same thing as a Fourier series?
Related but not identical. Separation of variables is the method — the product ansatz reducing a PDE to ODE eigenvalue problems. A Fourier series is the particular expansion you get when the eigenfunctions come out as sines and cosines, exactly the Cartesian constant-coefficient case; the same method in cylindrical coordinates yields a Fourier–Bessel series, and in spherical coordinates spherical harmonics. So Fourier series is what Cartesian separation produces; the unifying concept is expansion in the complete orthogonal eigenfunctions of a Sturm–Liouville operator.
Can separation handle inhomogeneous data on several faces at once?
Yes, by superposition. Pure separation wants one inhomogeneous face; when several carry data, split into sub-problems each with a single live face and the rest homogeneous, solve each, and add. Linearity guarantees the sum satisfies the PDE and reassembles all the data. If the PDE has a source term, first subtract a particular steady solution or expand the source in eigenfunctions, reducing it again to homogeneous separable pieces. The rule is always: decompose until every piece has a single live face.