Skip to content

Separation of variables for PDEs

5 min read

Short answer

Assume u(x,t)=X(x) T(t)u(x,t)=X(x)\,T(t), divide so each side depends on one variable only, set both equal to a separation constant −λ-\lambda, solve the boundary-value problem for XX (which picks allowed λn\lambda_n), solve for TnT_n, then superpose and match the initial condition with a Fourier series.

Steps1Assume u = X(x) T(t) and substitute2Separate: X″/X = T′/(kT) = −λ3Solve X″ + λX = 0 with boundaryconditions: λₙ and Xₙ4Solve for Tₙ(t) for each λₙ5Superpose and fit u(x, 0)with a Fourier seriesWorks for linear, homogeneous PDEs on simple domains.
Two ODEs replace one PDE.

Why the constant

If a function of xx alone equals a function of tt alone for all xx and tt, both must be the same constant. The sign of that constant is chosen so that XX can satisfy the boundary conditions with a non-zero solution (oscillating sines for λ>0\lambda>0).

When it applies

The PDE must be linear and homogeneous, with a domain whose boundaries fit the coordinates (a rectangle, a disk in polar coordinates). Non-homogeneous boundary values can often be handled by subtracting a steady-state solution first.

Worked example

Apply separation to ut=4uxxu_t=4u_{xx} on [0,π][0,\pi] with u(0,t)=u(π,t)=0u(0,t)=u(\pi,t)=0.

T′4T=X′′X=−λ\dfrac{T'}{4T}=\dfrac{X''}{X}=-\lambda. With X(0)=X(π)=0X(0)=X(\pi)=0: λn=n2\lambda_n=n^2, Xn=sin⁡nxX_n=\sin nx. Then Tn=e−4n2tT_n=e^{-4n^2t}. So u=∑bnsin⁡nx e−4n2tu=\sum b_n\sin nx\,e^{-4n^2t}.

Try it yourself

What allowed values of λ\lambda follow from X′′+λX=0X''+\lambda X=0 with X(0)=X(L)=0X(0)=X(L)=0?

Show the answer

λn=(nπL)2\lambda_n=\left(\dfrac{n\pi}{L}\right)^2 for n=1,2,3,…n=1,2,3,\ldots with Xn=sin⁡nπxLX_n=\sin\dfrac{n\pi x}{L}.

Keep going with practice

Vidi's differential-equation lessons teach the characteristic equation that solves each separated ODE.