6.5 Modes and mode sums

A mode is a special solution of a linear PDE on a bounded domain: a spatial shape that oscillates in time at a single frequency, without changing form. The boundary conditions (6.4) select a discrete catalogue of these shapes, and the technique of separation of variables (6.3) hands us the catalogue automatically. This lesson is about what to do with that catalogue.

Modes are the natural language for bounded-domain problems for three reasons. First, every solution of a linear PDE with linear boundary conditions can be written as a sum over modes, so the catalogue is complete. Second, distinct modes are orthogonal under a natural inner product, which means the coefficients in the sum can be extracted one at a time. Third, the spectrum of mode frequencies tells you almost everything you need to know about how the system responds to forcing — what frequencies it amplifies, what it filters out, what bandwidth it has at each peak. The connection between mode catalogues and Fourier analysis is direct: a mode expansion is a generalised Fourier series, and what carries over is exactly what we develop in Foundations 7.

Modes, made visible

Pick a 1-D tube with a chosen pair of boundary conditions and look at the modes.

openclosedpressure p(x, t) inside the tubemode 1: f1 = 3.43 kHzL = 25 mm
left end:
right end:
25 mm
mode:
f₁
3.43 kHz
f₂
10.29 kHz
f₃
17.15 kHz
f₄
24.01 kHz
mixed ends → odd-harmonic series (n = 1, 3, 5, …)

Pick a boundary combination (closed–closed, closed–open, open–closed, open–open) and a mode number nn. The plot shows the spatial shape Xn(x)X_n(x) — the displacement of the air column at the instant of maximum displacement — along with the wavenumber and the frequency the mode carries. Three things to take from playing with this:

The interactive shows one mode at a time. The actual motion of the air is a superposition — a weighted sum of many modes oscillating simultaneously at their own frequencies. The rest of this lesson is about that sum.

Orthogonality

The reason mode expansions work — the reason the coefficients in u(x,t)=ncnXn(x)Tn(t)u(x, t) = \sum_n c_n X_n(x) T_n(t) can be pulled out one at a time — is that distinct mode shapes are orthogonal under the natural inner product on the domain. For the clamped string of length LL:

0Lsin ⁣(mπxL)sin ⁣(nπxL)dx  =  L2δmn,\int_0^L \sin\!\left(\frac{m \pi x}{L}\right) \sin\!\left(\frac{n \pi x}{L}\right) dx \;=\; \frac{L}{2}\, \delta_{m n},

where δmn=1\delta_{mn} = 1 if m=nm = n and 00 otherwise. The relation can be derived from the trigonometric product identity sinAsinB=12[cos(AB)cos(A+B)]\sin A \sin B = \tfrac12[\cos(A-B) - \cos(A+B)] and direct integration — see the Foundations 1 integral toolkit. Analogous orthogonality relations hold for the Neumann case (cosines), for the periodic case (full Fourier basis), and for the Robin case (Sturm–Liouville eigenfunctions).

Orthogonality is not a coincidence. Each mode shape Xn(x)X_n(x) is an eigenfunction (refresher →) of the spatial differential operator that appears in the PDE — for the wave equation, this is x2-\partial_x^2, and the eigenvalue is kn2k_n^2. The operator with the standard boundary conditions is self-adjoint (the differential analogue of “Hermitian”), and a foundational theorem of linear algebra extended to function spaces guarantees that the eigenfunctions of a self-adjoint operator with distinct eigenvalues are orthogonal. This is the Sturm–Liouville theorem and the function-space generalisation of the spectral theorem →.

Fourier projection: how to extract a coefficient

Given a function f(x)f(x) on [0,L][0, L], suppose we want to write it as a sum of clamped-string modes:

f(x)  =  n=1cnsin ⁣(nπxL).f(x) \;=\; \sum_{n=1}^{\infty} c_n\, \sin\!\left(\frac{n \pi x}{L}\right).

To find the coefficient cnc_n of a particular mode, multiply both sides by that mode shape and integrate:

0Lf(x)sin ⁣(nπxL)dx  =  m=1cm0Lsin ⁣(mπxL)sin ⁣(nπxL)dx.\int_0^L f(x)\, \sin\!\left(\frac{n \pi x}{L}\right) dx \;=\; \sum_{m=1}^{\infty} c_m \int_0^L \sin\!\left(\frac{m \pi x}{L}\right) \sin\!\left(\frac{n \pi x}{L}\right) dx.

Orthogonality kills every term except m=nm = n, which contributes cnL/2c_n \cdot L/2. Therefore

  cn  =  2L0Lf(x)sin ⁣(nπxL)dx.  \boxed{\;c_n \;=\; \frac{2}{L} \int_0^L f(x)\, \sin\!\left(\frac{n \pi x}{L}\right) dx.\;}

This is the Fourier-projection formula, the workhorse for matching initial data to a mode expansion. The same recipe — multiply by one basis element, integrate, divide by the basis element’s self-inner-product — extracts coefficients for any orthogonal basis. The cosine case (Neumann boundaries) gives the same formula with sincos\sin \to \cos and a factor of 2/L2/L replaced by 1/L1/L for the n=0n = 0 mean term. The periodic case gives the standard Fourier series. The Robin case requires the appropriate Sturm–Liouville inner product.

Once you have the {cn}\{c_n\}, you have completely specified the solution: each mode XnX_n carries its own time evolution Tn(t)T_n(t) (oscillating for the wave equation, decaying for the heat equation, time-independent for Laplace), and the full field is the sum.

Completeness

Orthogonality alone is not enough — there are plenty of orthogonal sets that fail to span the function space you care about. The other half of the Sturm–Liouville guarantee is completeness: any sufficiently well-behaved function on the domain can in fact be expanded in the mode basis, with the resulting series converging (in the mean-square sense) to the function. There is no “leftover” piece of ff that the mode catalogue cannot account for.

What “sufficiently well-behaved” means depends on the details — piecewise continuous with finitely many jumps is a typical sufficient condition — but for any function you are likely to encounter in physics, completeness holds. This is what lets us treat the modes as a basis, in the same sense that {(1,0),(0,1)}\{(1, 0), (0, 1)\} is a basis for R2\mathbb{R}^2.

The deeper version of this fact, that the eigenfunctions of a self-adjoint operator on a function space form a complete orthonormal set, is the spectral theorem. It is one of the central results of mathematical physics and the reason quantum mechanics, separation of variables for PDEs, and Fourier analysis all share the same mathematical skeleton.

Once you have a catalogue of modes you can ask: how many modes fall into a given frequency band? The answer is the modal density D(ω)D(\omega), defined so that the number of modes in [ω,ω+dω][\omega, \omega + d\omega] is D(ω)dωD(\omega)\, d\omega. Modal density matters whenever the system has many modes inside the band of interest, which is the regime where the details of each individual mode stop mattering and statistical properties of the mode catalogue take over.

The simplest case: a 1-D string of length LL with clamped ends has modes at ωn=nπc/L\omega_n = n \pi c / L, evenly spaced by Δω=πc/L\Delta \omega = \pi c / L. The modal density is

D1D(ω)  =  Lπc,D_{\text{1D}}(\omega) \;=\; \frac{L}{\pi c},

independent of frequency. In two dimensions (a rectangular membrane) the modes are labelled by two integers (m,n)(m, n), and the modal density rises linearly with ω\omega. In three dimensions (a rectangular cavity) it rises quadratically:

D3D(ω)    Vω22π2c3,D_{\text{3D}}(\omega) \;\sim\; \frac{V \omega^2}{2 \pi^2 c^3},

with VV the cavity volume. This is the foundation of room acoustics — above a certain frequency, called the Schroeder frequency, a typical room has so many overlapping modes that the field looks statistically uniform rather than mode-resolved. We develop this picture in Sound 7.8 — Room modes and modal density.

The same ω2\omega^2 modal density of a 3-D cavity also underwrites the Rayleigh–Jeans law for blackbody radiation, Debye’s theory of specific heat of solids, and the Bekenstein–Hawking entropy of black holes. It is one of the most-recycled formulas in physics.

The forced-mode picture

So far we have built mode sums for the homogeneous PDE (no driving term). When you add a sinusoidal forcing — say a loudspeaker driving an acoustic cavity at frequency ωd\omega_d — each mode responds independently as a damped, driven oscillator at frequency ωd\omega_d, with its own natural frequency ωn\omega_n and its own damping γn\gamma_n. The amplitudes follow the forced-oscillator formula from 5.3,

A~n(ωd)    1(ωn2ωd2)+2iγnωd,\tilde A_n(\omega_d) \;\propto\; \frac{1}{(\omega_n^2 - \omega_d^2) + 2 i \gamma_n \omega_d},

and the total response is the sum across modes weighted by how strongly the forcing couples to each. The mode with ωn\omega_n closest to ωd\omega_d dominates — provided γn\gamma_n is small enough that the resonant peak is narrow. The system as a whole therefore acts as a bank of resonators, one per mode.

This is the central picture of frequency-domain acoustics, and one of the central pictures of hearing physiology: the cochlea is, to a useful approximation, a bank of mechanically resonant filters arranged along the basilar membrane (Hearing Ch 4), each one a mode of a slightly different damped, driven oscillator.

Where modes go from here

The mode picture and the Fourier picture are two faces of the same object. In Foundations 7 we develop the Fourier transform as the continuous limit of the mode catalogue — what happens when the domain becomes unbounded and the discrete ladder {ωn}\{\omega_n\} becomes a continuous variable ω\omega. The orthogonality relations become Dirac-delta normalisations and the mode sums become integrals, but the structure is the same. Anything you know about mode expansions transfers to the Fourier transform by replacing sums with integrals.

The final lesson, 6.6 — The heat equation and Laplace’s equation, shows how the same mode catalogue (selected by the same boundary conditions) governs parabolic and elliptic problems — with the time-evolution piece Tn(t)T_n(t) being the only thing that changes between the three canonical PDEs.