JOVANA
Explore Library Glossary Getting Started Three Levels Fields How it works Mission
Join the mission
All guides

The Separation Ansatz: Splitting a PDE into ODEs

The boldest guess in all of PDEs: assume the answer is a product, u(x,t) = X(x) T(t), and watch one equation in two variables crack neatly into two ordinary equations joined by a single constant. A hopeful gamble that, on the right geometry, pays off completely.

Why we even dare to guess a product

You arrive at this rung already at home with the headline equations. You derived the heat equation u_t = k u_xx from conservation, you carried profiles along characteristics, and you sorted second-order equations into elliptic, parabolic, and hyperbolic. Each of those equations has not one solution but a whole crowd of them, because a PDE's general solution involves arbitrary functions, not just a few arbitrary constants. So the real game is never "solve the equation" in a vacuum — it is "find the one solution that also matches the data on the boundary and at the start." This rung introduces the oldest and most beautiful machine for doing exactly that on the right geometry.

The machine is separation of variables, and it begins with an act of audacity. The unknown u(x,t) depends on two things at once — where you are and what time it is — and that entanglement is the whole difficulty. So we simply guess it apart. We propose that the answer is a product: u(x,t) = X(x) T(t), one factor that knows only about space, another that knows only about time. There is no law of nature forcing solutions to look like this. It is a hopeful ansatz, German for "a guess made to be tested." The astonishing thing is how often, and how completely, the gamble pays off.

Watching the equation split in two

Take the heat equation u_t = k u_xx and feed in the guess u = X(x) T(t). Differentiating in time touches only the time factor: u_t = X T', where T' is dT/dt. Differentiating twice in space touches only the space factor: u_xx = X'' T, where X'' is the second derivative of X. The equation u_t = k u_xx becomes X T' = k X'' T. Nothing clever yet — we have only carried the derivatives through. The magic is one division away.

Divide both sides by the product k X T. The left side becomes T' / (k T), a thing built purely from t. The right side becomes X'' / X, a thing built purely from x. We have herded everything depending on time to one side and everything depending on space to the other. Now comes the keystone argument: a function of t alone can equal a function of x alone only if both are the same constant. Why? Hold x fixed and the right side is frozen, yet the left side is free to vary with t — so it cannot actually vary at all. Each side must be a fixed number. Call it the separation constant, traditionally written -λ.

Guess:        u(x,t) = X(x) T(t)

Plug in:      X T' = k X'' T

Divide by kXT:    T'        X''
                 -----  =  -----
                  k T         X

  function of t  =  function of x   only if BOTH equal a constant -lambda

Split:        X'' + lambda X = 0        (a SPACE ODE)
              T' + k lambda T = 0        (a TIME ODE)
One PDE in two variables becomes two ODEs in one variable each, tied together by the single shared number lambda.

Two ODEs and the constant that binds them

Setting each side equal to -λ unbraids the PDE into two ordinary differential equations, the kind you already know how to solve cold. The space side gives X'' / X = -λ, that is X'' + λ X = 0 — a familiar second-order ODE in x alone. The time side gives T' / (k T) = -λ, that is T' = -k λ T — a first-order decay equation in t alone, whose solution is T(t) = e^(-k λ t). We have traded one hard problem in two variables for two easy problems in one variable each, glued by the shared λ. That trade is the entire idea of the method.

Look at how the single number λ choreographs both factors at once. The same λ that sets the spatial shape X — how many arches it has, how tightly it wiggles — also sets the time factor's decay rate through e^(-k λ t). A wigglier spatial profile means a larger λ, which means faster decay: short-wavelength bumps in temperature die away quickest, while broad, gentle profiles linger longest. That is the seed of the decay of Fourier modes you will lean on for the whole rung, and it is the heat equation's smoothing told in a single symbol. The separation constant is not bookkeeping; it is the dial that couples space and time.

The boundary conditions choose which λ survive

So far λ could be any number at all — but the physical setup is about to be picky. Suppose our bar runs from x = 0 to x = L with both ends held at zero temperature, the homogeneous Dirichlet condition u(0,t) = u(L,t) = 0. For a product solution this forces X(0) = 0 and X(L) = 0 — the spatial factor must vanish at both ends. Now solve X'' + λ X = 0 with those clamps. For most values of λ the only function that fits is the boring X(x) = 0, the trivial solution that says "nothing." Only for a special discrete ladder of λ values does a nonzero shape squeeze in.

Those special values are λ_n = (n π / L)^2 for n = 1, 2, 3, ..., and the surviving shapes are X_n(x) = sin(n π x / L). This is a spatial eigenvalue problem: the boundary conditions act like a filter that admits only a quantized sequence of profiles, exactly like the allowed harmonics of a guitar string clamped at both ends. The half-arch sine for n = 1, the full S-shape for n = 2, and so on up the ladder. The deep truth here — which the next rung on Sturm-Liouville theory will make rigorous — is that homogeneous boundary conditions turn a differential operator into something with a discrete spectrum of eigenvalues and eigenfunctions, the continuous cousin of eigenvectors of a matrix.

Rebuilding the real solution by superposition

Each surviving λ_n hands you one complete product solution: u_n(x,t) = sin(n π x / L) e^(-k λ_n t), a single arch that decays in place at its own rate. But one lone arch almost never matches a real starting temperature, which can be any wiggly profile f(x). Here the linearity of the equation rescues us through the superposition principle: because the heat equation is linear and homogeneous, any sum of solutions is again a solution. So we are allowed to add up as many modes as we like, each with its own amplitude b_n, and build u(x,t) = sum of b_n sin(n π x / L) e^(-k λ_n t).

At time t = 0 every exponential equals 1, so the sum must reproduce the start: f(x) = sum of b_n sin(n π x / L). That is a request to write an arbitrary profile as a superposition of pure sine arches — precisely a Fourier series. Suddenly the whole rung ahead has a purpose. Matching the initial condition means choosing the amplitudes b_n so the sines reassemble f(x); the next guides do exactly that, extracting each b_n by the orthogonality of the sines. Separation of variables, then, is the engine that manufactures the demand for Fourier series — it produces the building blocks and leaves one clean question: with what weights do we mix them?

Where the gamble pays — and where it doesn't

Be honest about what made this work, because the method is powerful but not universal. The PDE had to be linear and homogeneous — superposition is the load-bearing pillar, and a nonlinear term like u u_x would let two solutions interfere rather than simply add, collapsing the whole scheme. The geometry had to be separable: a rectangle, a disk, a sphere, an interval — a domain whose boundaries are level sets of a clean coordinate, so the boundary conditions split along the same factors. And the boundary conditions themselves had to be homogeneous (zero on the boundary) along the separated directions; a nonzero or mixed condition has to be subtracted off first, by shifting to a steady state, before the modes can do their job.

When those conditions hold, the payoff is total: you get a complete, explicit, term-by-term solution, and the decaying exponentials even tell you how fast the system forgets its initial data. When they fail, this rung's machinery still seeds the more general tools — Sturm-Liouville theory for fussier operators, eigenfunction expansions on curved domains, and the Fourier transform for infinite domains where the discrete ladder of λ_n melts into a continuum. And do not forget the well-posedness lesson from the heat equation: separation marches the solution forward in time with those e^(-k λ_n t) factors shrinking; try to run it backward and those same factors become e^(+k λ_n t), exploding the high modes — the famous ill-posedness of the backward heat equation, in plain sight.