The wave equation, separation of variables, characteristics — the previous two lessons have built up the hyperbolic picture of PDEs, the one acoustics lives in. To finish the chapter we cover the two other canonical second-order linear PDEs: the heat equation (parabolic) and Laplace’s equation (elliptic). They are less central to the Sound book but appear repeatedly across the bookshelf — in thermal absorption, in the steady acoustic potential of an incompressible flow, in the diffusion of cochlear-amplifier energy along the basilar membrane — so a reader should leave Foundations 6 knowing how each is set up, what kind of data it demands, and why its behaviour is so qualitatively different from a wave equation.
The heat equation
The 1-D heat equation is
∂t∂u=D∂x2∂2u,
with D>0 the diffusivity. The equation arises whenever a quantity is conserved (mass, energy, charge) and its flux is proportional to the gradient of the quantity itself — Fourier’s law of heat conduction, Fick’s law for chemical diffusion, Ohm’s law for current. The one time derivative on the left (compared to two in the wave equation) is what changes the entire character of the solutions: instead of propagation at finite speed, the heat equation produces immediate, everywhere smoothing.
initial:
The heat equation has *one* time derivative and *two* spatial derivatives. Sharp features diffuse and smooth out. Information *does not propagate at finite speed* — every initial point affects every other instantaneously (with exponentially small amplitude). Contrast the wave equation, which preserves shape.
Pick an initial profile and a diffusivity. The field smooths out and decays toward zero. Three features deserve attention:
The field at every point starts changing the instant t>0. A Gaussian pulse at the centre of the interval immediately makes the endpoints non-zero (in principle — the amplitude is exponentially small far away, but it is not zero). The heat equation has no characteristic speed; information propagates instantaneously. This is a mathematical feature, not a physical claim about reality — real diffusion is bounded by the relevant microscopic velocity scale — but it is the equation as written.
High-frequency components decay fastest. A sinusoidal mode sin(kx) decays in time as e−Dk2t. The decay rate goes as k2, so short-wavelength wiggles are erased much faster than long-wavelength ones. After a short time only the smoothest modes survive.
The equation is irreversible. Running time backward in the heat equation is unstable — small perturbations of a smoothed-out profile blow up exponentially when you try to reconstruct the initial conditions. The heat equation forgets information; the wave equation does not.
Separation of variables for heat
The same algorithm from 6.3 — with the boundary conditions from 6.4 and the mode-sum machinery from 6.5 — carries through with one change: the time ODE is now first order rather than second order.
▶Worked example: every step, no shortcuts
The problem. A rod of length L has its endpoints held at zero temperature and is given an initial temperature profile u(x,0)=f(x). The temperature obeys
∂t∂u=D∂x2∂2u,0<x<L,t>0,
with boundary conditions u(0,t)=u(L,t)=0 for all t.
Step 1 — Product ansatz. Try
u(x,t)=X(x)T(t).
Compute the partial derivatives:
∂t∂u=X(x)T′(t),∂x2∂2u=X′′(x)T(t).
Substituting:
X(x)T′(t)=DX′′(x)T(t).
Step 2 — Divide by DX(x)T(t) and separate.
DT(t)T′(t)=X(x)X′′(x).
The left depends only on t; the right depends only on x. Both must equal a common constant; call it −k2:
DT(t)T′(t)=X(x)X′′(x)=−k2.
The PDE has decoupled into two ODEs:
X′′(x)+k2X(x)=0,T′(t)+Dk2T(t)=0.
Notice the spatial ODE is exactly the same as in the wave-equation case. Only the time ODE has changed — it is now first order, not second order, because the heat equation has one time derivative rather than two.
Step 3 — Solve the spatial ODE with its boundary conditions. The equation X′′+k2X=0 with X(0)=X(L)=0 is the clamped-string problem from 6.3. Same algebra, same conclusion: allowed wavenumbers
kn=Lnπ,n=1,2,3,…,
with mode shapes
Xn(x)=sin(Lnπx).
Step 4 — Solve the time ODE for each mode. For each kn, the time equation is
Tn′(t)+Dkn2Tn(t)=0,
a first-order linear ODE with constant coefficient — exponential decay from 5.2. The solution is
Tn(t)=Ane−Dkn2t.
Each mode decays at a rate Dkn2 that grows quadratically with mode number. The fundamental (n=1) decays slowest; high-n modes vanish quickly.
Step 5 — Build the general solution. By linearity, any sum of the separated solutions also satisfies the PDE and the boundary conditions:
u(x,t)=n=1∑∞Ansin(Lnπx)e−D(nπ/L)2t.
There is only one set of free coefficients {An}, because the time ODE is first order — exactly the bookkeeping from 5.1. The heat equation needs one initial function, not two.
Step 6 — Apply the initial condition. From u(x,0)=f(x):
f(x)=n=1∑∞Ansin(Lnπx).
The coefficients are extracted by Fourier projection onto the mode basis (6.5):
Boundary conditions. Every term has sin(nπx/L), which vanishes at x=0 and x=L. ✓
Initial condition. At t=0, every exponential is e0=1, so u(x,0)=∑Ansin(nπx/L)=f(x). ✓
Long-time behaviour. As t→∞, every term has e−Dkn2t→0, so u(x,t)→0 uniformly. The rod equilibrates to the temperature its boundaries are held at, as physics demands. ✓
PDE. For each n: ∂t[e−Dkn2t]=−Dkn2e−Dkn2t and ∂x2[sin(knx)]=−kn2sin(knx). So ∂tun=D∂x2un term by term. ✓
Comparison with the wave-equation case. The two final formulas, side by side:
Wave equation
Heat equation
General solution
∑nsin(knx)[Ancos(ωnt)+Bnsin(ωnt)]
∑nAnsin(knx)e−Dkn2t
Time evolution
oscillatory
exponentially decaying
Number of initial functions
2 (f and g)
1 (f)
Long-time fate
persists forever
relaxes to zero
The spatial ladder is the same in both — same modes, same orthogonality, same Fourier-projection step. Only the time evolution of each mode has changed.
Three quick contrasts with the wave equation
The wave equation and the heat equation share a spatial mode structure but evolve those modes very differently. The most useful contrasts:
Feature
Wave utt=c2uxx
Heat ut=Duxx
Order in t
second
first
Initial data
u(x,0)andut(x,0)
u(x,0) alone
Each mode’s time evolution
cos(ωnt),sin(ωnt) — oscillatory
e−Dkn2t — decaying
Signal speed
finite, c
infinite (formal); no characteristics
Time reversibility
yes
no — information is lost
Long-term fate
persists indefinitely (modulo damping)
relaxes to zero (or to a steady state)
Both equations are linear and superposable — that’s what made the same separation-of-variables algorithm work for both.
Laplace’s equation
Set the time derivative in the heat equation to zero. What survives is
∇2u=0,
Laplace’s equation. The 2-D version reads ∂x2u+∂y2u=0. There is no time. The equation describes a steady state — the configuration a system relaxes to after all transients have died.
Laplace’s equation is everywhere. The gravitational potential in vacuum, the electrostatic potential in a charge-free region, the temperature distribution in a thermally-equilibrated body, the velocity potential of an incompressible irrotational flow — all are harmonic functions, satisfying ∇2u=0 on the relevant domain.
The defining feature is that Laplace’s equation takes no initial conditions — the absence of a time derivative means there is no “starting moment.” The solution is determined entirely by the boundary data. Specify u (or ∂nu) on the boundary of a domain and the interior values are fixed, uniquely.
Laplace's equation ∇²φ = 0 has no time evolution and no source term. The boundary values alone *uniquely determine* the interior — this is the defining property of *elliptic* PDEs. The interactive solves by Jacobi iteration; the solution is the steady-state temperature distribution on a rectangular plate held at the four edge temperatures.
A rectangular plate with each of its four edges held at a chosen temperature. The interior is computed by Jacobi relaxation — iteratively replacing each interior cell with the average of its four neighbours, which is exactly the discrete form of Laplace’s equation. (Foundations 10.4 develops the algorithm and its convergence rate.) Slide the four edge temperatures and watch the interior reorganise. Notice that every interior point depends on every boundary point: change one edge and the entire interior shifts. There is no causal cone here, no domain of dependence — elliptic PDEs are globally determined.
Mean value and maximum principles
Two deep geometric facts about Laplace’s equation, both of which fall out of the equation itself:
Mean value property. The value of a harmonic function at a point equals its average over any sphere (or in 2-D, circle) centred at that point. Symbolically: u(r0)=∣Sr∣1∫SrudS for any radius r small enough to fit inside the domain. This is exactly the discrete Jacobi-relaxation rule made continuous — the interactive’s relaxation algorithm is iterating the mean value property until convergence.
Maximum principle. A harmonic function on a bounded domain attains its maximum and minimum on the boundary, not in the interior. (Strictly: unless the function is constant.) Combined with the mean value property, this gives uniqueness: given boundary data, there is exactly one harmonic function with those values, since any two would have a difference that is harmonic and zero on the boundary, hence zero everywhere by the maximum principle.
These properties are why elliptic PDEs feel “rigid.” Once you commit to boundary values, you have committed to the entire interior.
Separation of variables for Laplace
Separation of variables works on Laplace’s equation too, on rectangular geometries. The 2-D case ∂x2u+∂y2u=0 with u=X(x)Y(y) gives
X(x)X′′(x)+Y(y)Y′′(y)=0⟹XX′′=−YY′′=−k2.
The spatial ODEs are X′′+k2X=0 (sinusoids in x) and Y′′−k2Y=0 (exponentials in y). The general solution is a sum of products sin(knx)[ancosh(kny)+bnsinh(kny)], with kn quantised by the x-boundary conditions and the y-coefficients fixed by the y-boundary conditions. The reader who works through this gets a Fourier-style boundary value formula very similar in spirit to the wave-equation result of 5.3.
The same trick generalises to cylindrical and spherical geometries, where the spatial ODEs are no longer sinusoidal but involve Bessel functions, Legendre polynomials, and spherical Bessel functions. These appear in Sound 6.2 — Spherical waves and Sound 6.3 — Cylindrical waves. We pointed in 5.4 to the variable-coefficient ODEs that produce those functions; here is where they originate, as the radial parts of separated solutions to Laplace’s and Helmholtz’s equations.
⏳The history— Fourier's heat equation and a rejected memoir
Joseph Fourier wrote the heat equation ∂tu=D∇2u in his 1807 memoir to the French Academy of Sciences, Sur la propagation de la chaleur dans les corps solides. To solve it on a bounded interval, he proposed expanding the initial temperature as a sum of sinusoidal modes — what we now call a Fourier series — and showing that each mode decayed independently with rate Dk2.
The memoir was rejected. Lagrange, on the review panel, objected that “arbitrary functions” could not in general be expressed as such a sum, and the mathematics of convergence wasn’t rigorous enough to settle the question. Fourier rewrote, expanded, and resubmitted; the work was published as Théorie analytique de la chaleur in 1822. By then it was already influencing all of mathematics: the analytical machinery built to make Fourier’s claims rigorous — Cauchy’s theory of convergence, Riemann’s theory of integration, Cantor’s set theory, Lebesgue’s measure theory — became the foundation of modern analysis. The same machinery underwrites every PDE technique in this chapter and the Fourier methods of Foundations 7.
The irony is that the heat equation, derived by Fourier as the physical motivation for the series, ended up far less famous in physics than the Fourier transform that came out of the analytic theory built to validate his solution. Generations of physics students meet Fourier methods without ever learning that he was trying to solve the heat-diffusion problem.
Looking forward to two more linear PDEs
Two more linear PDEs sit just beyond the canonical three and earn their own lessons. They use the same machinery developed so far in the chapter — separation of variables, eigenvalue problems, mode sums — but the physics they describe stretches the chapter into fresh territory.
The Helmholtz equation∇2ϕ+k2ϕ=0 is what the wave equation reduces to once you assume time-harmonic motion. Despite arising from a hyperbolic PDE, Helmholtz is elliptic — there is no time in it — and it is what frequency-domain acoustics actually solves. Worked end-to-end in 6.7, with a 2-D cavity-mode derivation that previews Sound 7.7.
The Schrödinger equationiℏ∂tΨ=−2mℏ2∇2Ψ+VΨ governs the wavefunction of a non-relativistic quantum particle. Looks parabolic (first order in time) but the factor of i on the time derivative produces unitary time evolution — oscillation, not decay. 6.8 walks the separation step by step and applies the result to the canonical “particle in a box” eigenvalue problem, which turns out to be the clamped-string problem from 6.3 under different physical clothing.
What we use it for
The cash value of this chapter, across the bookshelf:
Hyperbolic PDEs and characteristics — all of Sound Ch 3 and Sound Ch 7 are 1-D wave-equation phenomena. The reflection-at-a-boundary picture in Sound 3.4 is the d’Alembert characteristic picture applied at a wall.
Laplace and Helmholtz — the steady-state acoustic potential in regions of incompressible flow, and almost every chapter that involves a frequency-domain field rather than a time-domain one.
The canonical three PDEs — hyperbolic, parabolic, elliptic — each have their own causal structure, but they share the spatial machinery laid out earlier in the chapter. The next two lessons take that spatial machinery and apply it to one more elliptic equation that arises from the wave equation (6.7), and to one parabolic-looking equation whose imaginary time coefficient gives it oscillatory rather than dissipative behaviour (6.8).