Classical field theory handed you the wave equation,
and solved it by guessing a traveling cosine, , substituting, and checking that it works. Quantum mechanics handed you the Schrödinger equation,
and solved an important special case by guessing a product form, , substituting, and discovering that the equation splits cleanly into two independent pieces: one pure function of , one pure function of . Both of these were already real results, honestly earned. What went unsaid in both cases is that neither was a coincidence, and they were not two unrelated tricks. They are one method, general enough to tame almost any linear partial differential equation you will meet in physics, and it has a name: separation of variables.
What makes an equation "partial"
Ordinary differential equations relate an unknown function of one variable to its derivatives with respect to that variable. A partial differential equation, or PDE, relates an unknown function of two or more independent variables to its partial derivatives with respect to more than one of them. The wave equation above involves and together — the unknown genuinely depends on both and , and the equation ties their derivatives to one another. That coupling is exactly what makes a PDE harder than an ODE: you cannot simply integrate with respect to while pretending is not there, because the equation itself refuses to let and go their separate ways — or so it seems, until you try the following.
The method: assume a product, and watch the equation fall apart
Consider a linear PDE for an unknown function . Assume, as a trial solution, that can be written as a product of a function of alone and a function of alone:
This is a genuine assumption, not a general fact — most solutions of a PDE cannot be written this way. But substitute it into the equation anyway and see what happens. Because does not depend on and does not depend on , every derivative simplifies: , , and so on. When the PDE is linear and each term involves derivatives with respect to only one variable at a time (true of the wave equation, the Schrödinger equation, and a great many others), substituting the product form and dividing through by separates the equation into two pieces: one side depends only on , the other only on . A function of alone can equal a function of alone, for every value of both variables, only if both sides equal the same constant — because if you wiggle while holding fixed, the left side does not move, so the right side cannot move either. That shared constant is called the separation constant, and it is the single number that couples the two halves of the problem back together. Each half is now an ordinary differential equation, in one variable, solvable with exactly the tools built on that earlier page.
Worked example
A string of length is fixed at both ends and obeys the wave equation with . Find its normal modes by separation of variables, and connect the result to the Fourier sine series derived earlier. (click to reveal the solution)
Assuming a product solution: let
Then and . Substituting into the wave equation,
Separating the variables: divide both sides by :
The left side is a function of alone; the right side is a function of alone. Holding fixed and varying , the left side cannot change, so the right side must be constant in too — and by the same argument applied the other way, the left side must be constant in . Call the shared constant (the choice of sign, and of calling it , is a bet that the solution will oscillate rather than blow up — a bet checked and confirmed below):
This produces two separate ordinary differential equations:
Solving each ODE: both are the constant-coefficient equation solved on the ordinary differential equations page, with characteristic roots and respectively — purely imaginary in both cases, giving purely oscillatory solutions:
Applying the boundary conditions: the string is nailed down at both ends, so and for all , which force and . From , so and
From , and would make vanish everywhere (no motion at all), so instead
This is exactly the same boundary-condition arithmetic that forced discrete momenta on the trapped particle in the infinite square well: a function that must vanish at both walls can only fit an integer number of half-wavelengths between them. Here it gives the allowed wavenumbers and frequencies
Assembling the normal modes: each allowed contributes an independent solution , and because the wave equation is linear, any sum of these is also a solution. The general vibration of the fixed string is therefore
Connecting to Fourier analysis: the coefficients are fixed by the string's initial shape, . Setting in the general solution (every term drops out) gives
which is exactly a Fourier sine series of the kind derived in Fourier analysis, with given by that page's projection formula, . If the string were released from a shape resembling the square wave solved there, the amplitudes of its vibration modes would be exactly the coefficients found on that page, one per odd harmonic. The sine functions that made Fourier analysis work are not a mathematical convenience borrowed for this problem — they are the actual normal modes the wave equation forces into existence once you nail down both ends of the string.
The same trick, already used, on the Schrödinger equation
Look back at how quantum mechanics found its stationary states. It assumed , substituted into , and — because acts only on the -dependence — obtained
Dividing both sides by separates it immediately:
The left side depends only on ; the right side, though it involves the operator , produces a result depending only on once it acts on . By the identical argument used for the string, both sides must equal the same constant — call it , and it will turn out to be the energy:
which is exactly the time-independent Schrödinger equation from that page. The separation constant is not an abstract bookkeeping device here; it is the one number both halves of the problem must agree on, and demanding that agreement is precisely what turns "the allowed energies" into an eigenvalue problem instead of a guess.
Where this leads
Separation of variables has now been used on a PDE in one spatial dimension plus time. But the Schrödinger equation for a real atom, and Laplace's equation for a gravitational or electric potential around any object that is not perfectly spherical, live in three spatial dimensions with a natural center — spherical symmetry, not a line segment with two endpoints. The next topic, special functions: Legendre polynomials and spherical harmonics, applies exactly this method to that geometry, separating radius from angle, and shows that the angular piece of the separation is where the integer quantum numbers of atomic physics are actually born.