6.7 The Helmholtz equation

The Helmholtz equation is the equation acoustics actually solves in the frequency domain. It arises whenever we look at a wave equation and ask, what does the field look like at a single frequency ω\omega? — which is almost always the right question for steady-state acoustic problems: room modes, cavity resonances, scattering off an obstacle, radiation from a vibrating object, transmission through an aperture. The time-domain wave equation is the underlying object, but the working equation is Helmholtz.

This lesson is a separate lesson because the Helmholtz equation looks elliptic — no time derivative — yet is born from the hyperbolic wave equation. That dual heritage explains both its mathematical structure (an eigenvalue problem with sinusoidal eigenfunctions) and its role across acoustics.

Derivation: time-harmonic ansatz on the wave equation

Start with the wave equation,

2ut2  =  c22u,\frac{\partial^2 u}{\partial t^2} \;=\; c^2 \nabla^2 u,

and look for time-harmonic solutions — fields that oscillate at a single frequency ω\omega:

u(r,t)  =  ϕ(r)eiωt.u(\mathbf{r}, t) \;=\; \phi(\mathbf{r})\, e^{-i \omega t}.

This is the same complex-exponential ansatz we use for driven oscillators (Foundations 3); the sign convention eiωte^{-i\omega t} is conventional in physics and the choice doesn’t matter as long as you stick with it. Substitute and take partial derivatives:

2ut2  =  ω2ϕ(r)eiωt,2u  =  2ϕ(r)eiωt.\frac{\partial^2 u}{\partial t^2} \;=\; -\omega^2\, \phi(\mathbf{r})\, e^{-i\omega t}, \qquad \nabla^2 u \;=\; \nabla^2 \phi(\mathbf{r}) \cdot e^{-i\omega t}.

The factor eiωte^{-i\omega t} cancels on both sides, leaving an equation for the spatial amplitude ϕ\phi:

  2ϕ  +  k2ϕ  =  0,k    ω/c.  \boxed{\;\nabla^2 \phi \;+\; k^2 \phi \;=\; 0, \qquad k \;\equiv\; \omega / c. \;}

This is the Helmholtz equation, and kk is the wavenumber at frequency ω\omega. The time dependence has been factored out; what remains is a purely spatial equation for the field’s envelope at frequency ω\omega.

A few observations before we go further:

Why frequency-domain acoustics lives here

Three reasons the Helmholtz equation, rather than the time-domain wave equation, is what gets solved in practice:

  1. Steady-state is the question. Many acoustic problems ask not “how does the field evolve from some initial state?” but “what does the steady-state field look like at frequency ω\omega once transients have died?” Helmholtz answers exactly that.
  2. Linearity decouples frequencies. Any time-dependent forcing can be Fourier-decomposed into sinusoidal components, each of which generates a Helmholtz problem. Solving the time-domain wave equation with arbitrary forcing is hard; solving Helmholtz at each frequency and summing is straightforward.
  3. Eigenvalue structure. On a bounded domain with homogeneous boundary conditions, Helmholtz reduces to an eigenvalue problem (refresher →): find the values of k2k^2 for which 2ϕ+k2ϕ=0\nabla^2 \phi + k^2 \phi = 0 has a non-trivial solution. Those are the cavity modes of the domain — the same modes we have been calling XnX_n, XmnX_{mn}, and so on. The Helmholtz formulation makes this eigenvalue structure obvious; the wave equation hides it inside the separated time ODE.

Worked example: 2-D rectangular cavity

The canonical Helmholtz problem in acoustics is a 2-D rectangular cavity with rigid or pressure-released boundaries. Walk through the separation-of-variables step by step.

Worked example: every step, no shortcuts

The problem. A rectangular cavity of size Lx×LyL_x \times L_y in the (x,y)(x, y)-plane, with the acoustic pressure ϕ(x,y)\phi(x, y) obeying

2ϕx2  +  2ϕy2  +  k2ϕ  =  0,\frac{\partial^2 \phi}{\partial x^2} \;+\; \frac{\partial^2 \phi}{\partial y^2} \;+\; k^2 \phi \;=\; 0,

inside the rectangle, with Dirichlet boundary conditions

ϕ(0,y)=ϕ(Lx,y)=0,ϕ(x,0)=ϕ(x,Ly)=0,\phi(0, y) = \phi(L_x, y) = 0, \qquad \phi(x, 0) = \phi(x, L_y) = 0,

on all four edges. (Physically: pressure-released walls, the model used for an open-ended cavity. The rigid-wall case swaps Dirichlet for Neumann; the algebra is identical with cosines replacing sines.) We want the eigenvalues k2k^2 for which non-trivial solutions exist, and the corresponding mode shapes.

Step 1 — Product ansatz. Try

ϕ(x,y)  =  X(x)Y(y).\phi(x, y) \;=\; X(x)\, Y(y).

The Laplacian splits cleanly:

2ϕx2  =  X(x)Y(y),2ϕy2  =  X(x)Y(y).\frac{\partial^2 \phi}{\partial x^2} \;=\; X''(x)\, Y(y), \qquad \frac{\partial^2 \phi}{\partial y^2} \;=\; X(x)\, Y''(y).

Substitute into the Helmholtz equation:

X(x)Y(y)  +  X(x)Y(y)  +  k2X(x)Y(y)  =  0.X''(x)\, Y(y) \;+\; X(x)\, Y''(y) \;+\; k^2\, X(x)\, Y(y) \;=\; 0.

Step 2 — Divide by XYX Y and separate.

X(x)X(x)  +  Y(y)Y(y)  +  k2  =  0.\frac{X''(x)}{X(x)} \;+\; \frac{Y''(y)}{Y(y)} \;+\; k^2 \;=\; 0.

Move the yy-piece to the right:

X(x)X(x)  =  k2    Y(y)Y(y).\frac{X''(x)}{X(x)} \;=\; -k^2 \;-\; \frac{Y''(y)}{Y(y)}.

The left depends only on xx; the right depends only on yy. Both must equal a common constant — call it kx2-k_x^2:

X(x)X(x)  =  kx2,k2Y(y)Y(y)  =  kx2.\frac{X''(x)}{X(x)} \;=\; -k_x^2, \qquad -k^2 - \frac{Y''(y)}{Y(y)} \;=\; -k_x^2.

Rearrange the second equation to read Y/Y=(k2kx2)Y''/Y = -(k^2 - k_x^2). Defining ky2k2kx2k_y^2 \equiv k^2 - k_x^2, we get the separation identity

kx2  +  ky2  =  k2,k_x^2 \;+\; k_y^2 \;=\; k^2,

and two ODEs:

X(x)  +  kx2X(x)  =  0,Y(y)  +  ky2Y(y)  =  0.X''(x) \;+\; k_x^2\, X(x) \;=\; 0, \qquad Y''(y) \;+\; k_y^2\, Y(y) \;=\; 0.

Each is a 1-D Helmholtz equation (equivalently, the spatial part of a 1-D wave equation).

Step 3 — Solve each ODE with its boundary conditions. The XX ODE with X(0)=X(Lx)=0X(0) = X(L_x) = 0 is exactly the clamped-string problem from 6.3. The allowed wavenumbers are quantised:

kx  =  mπLx,m=1,2,3,k_x \;=\; \frac{m \pi}{L_x}, \qquad m = 1, 2, 3, \ldots

with mode shapes Xm(x)=sin(mπx/Lx)X_m(x) = \sin(m \pi x / L_x). Likewise the YY equation gives

ky  =  nπLy,n=1,2,3,k_y \;=\; \frac{n \pi}{L_y}, \qquad n = 1, 2, 3, \ldots

with Yn(y)=sin(nπy/Ly)Y_n(y) = \sin(n \pi y / L_y).

Step 4 — Combine. Each pair (m,n)(m, n) specifies one mode of the cavity:

ϕmn(x,y)  =  sin ⁣(mπxLx)sin ⁣(nπyLy),\phi_{m n}(x, y) \;=\; \sin\!\left(\frac{m \pi x}{L_x}\right) \sin\!\left(\frac{n \pi y}{L_y}\right),

with eigenvalue

kmn2  =  (mπLx) ⁣2  +  (nπLy) ⁣2.k_{m n}^2 \;=\; \left(\frac{m \pi}{L_x}\right)^{\!2} \;+\; \left(\frac{n \pi}{L_y}\right)^{\!2}.

The eigenfrequencies are ωmn=ckmn\omega_{m n} = c\, k_{m n}:

  ωmn  =  cπ(mLx) ⁣2+(nLy) ⁣2  .\boxed{\;\omega_{m n} \;=\; c\, \pi\, \sqrt{\left(\frac{m}{L_x}\right)^{\!2} + \left(\frac{n}{L_y}\right)^{\!2}}\;.}

Notice the structure. A 1-D bounded problem produced a single integer index nn and evenly-spaced frequencies ωn=nπc/L\omega_n = n \pi c / L. The 2-D cavity produced two integer indices and frequencies that are not evenly spaced — they form a 2-D lattice in the (kx,ky)(k_x, k_y) plane, with the actual frequencies given by the distance from the origin. The same idea extends to a 3-D rectangular cavity, where you get three integer indices and the frequencies form a 3-D lattice.

Step 5 — Sanity-check. Three quick checks:

  1. Boundary conditions. Each ϕmn\phi_{mn} has sin(mπx/Lx)\sin(m \pi x / L_x), which vanishes at x=0x = 0 and x=Lxx = L_x. Similarly in yy. All four edges satisfied. ✓
  2. Helmholtz equation. x2[sin(mπx/Lx)]=(mπ/Lx)2sin(mπx/Lx)\partial_x^2[\sin(m \pi x / L_x)] = -(m \pi / L_x)^2 \sin(m \pi x / L_x), and similarly for yy. Adding gives kmn2ϕmn-k_{m n}^2 \phi_{m n}, so 2ϕmn+kmn2ϕmn=0\nabla^2 \phi_{m n} + k_{m n}^2 \phi_{m n} = 0. ✓
  3. Reduces to 1-D. In the limit LyL_y \to \infty at fixed LxL_x, the nn-spacing of kyk_y becomes infinitesimal and you recover a continuous distribution along kyk_y on top of the same 1-D ladder in kxk_x. ✓

Step 6 — The general time-dependent solution. Re-attaching the time dependence,

u(x,y,t)  =  m,n[Amncos(ωmnt)+Bmnsin(ωmnt)]sin ⁣(mπxLx)sin ⁣(nπyLy),u(x, y, t) \;=\; \sum_{m, n} \bigl[\,A_{m n} \cos(\omega_{m n} t) + B_{m n} \sin(\omega_{m n} t)\,\bigr]\, \sin\!\left(\frac{m \pi x}{L_x}\right) \sin\!\left(\frac{n \pi y}{L_y}\right),

with the Amn,BmnA_{m n}, B_{m n} determined by Fourier projection of the initial conditions onto the 2-D mode basis, exactly as in 6.5. The mode catalogue has become a doubly-indexed family but every other step is mechanically the same as the 1-D case.

Mode shapes, made visible

mode(m, n) = (1, 1)eigenshapesin(mπx/Lₓ) · sin(nπy/L_y)wavenumberk = 4.443 m⁻¹frequency (Lₓ = 1 m, c = 343 m/s)f = ω / 2π = 242.5 Hzm = nodes along x; n = nodes along y.

Each mode is a product of one sine in x and one sine in y. The two integer indices (m, n) label which mode you are looking at: m counts the half-wavelengths along x, n counts them along y. The two contributions add in quadrature to give the squared wavenumber, kₘₙ² = (mπ / Lₓ)² + (nπ / L_y)². Changing the aspect ratio changes how the two indices weight the eigenfrequency, but the mode catalogue stays the doubly-indexed lattice you see here.

Pick a mode index pair (m,n)(m, n) and the aspect ratio Ly/LxL_y / L_x to see the corresponding mode shape and the eigenfrequency. The first integer counts the number of half-wavelengths along xx (and therefore the number of interior nodal lines perpendicular to xx); the second does the same for yy. The (1,1)(1, 1) mode is the lowest fundamental — a single positive blob with no interior nodes. The (2,1)(2, 1) mode has a single nodal line at x=Lx/2x = L_x / 2. The (2,2)(2, 2) mode has a “checkerboard” pattern with two nodal lines.

Aspect ratio matters in a way it didn’t for 1-D. A near-square cavity gives nearly-degenerate frequencies for (m,n)(m, n) and (n,m)(n, m) — they coincide exactly when Lx=LyL_x = L_y. A stretched cavity breaks the degeneracy. Real concert halls and listening rooms deliberately avoid simple integer ratios for their dimensions to keep mode frequencies from clustering.

Mode density grows with frequency

In one dimension the modes are evenly spaced and the modal density is constant. In two dimensions the modes are points on a 2-D lattice, and the number of modes with ωmnΩ\omega_{m n} \leq \Omega is approximately the area of a quarter-circle of radius Ω/c\Omega / c in (kx,ky)(k_x, k_y)-space, weighted by the lattice density:

N(Ω)    14π(Ω/c)2LxLyπ2  =  LxLyΩ24πc2.N(\Omega) \;\approx\; \frac{1}{4} \cdot \pi (\Omega/c)^2 \cdot \frac{L_x L_y}{\pi^2} \;=\; \frac{L_x L_y\, \Omega^2}{4 \pi c^2}.

Differentiate to get the modal density:

D2D(ω)  =  dNdω  =  LxLyω2πc2.D_{2D}(\omega) \;=\; \frac{d N}{d \omega} \;=\; \frac{L_x L_y\, \omega}{2 \pi c^2}.

The modal density grows linearly with frequency in 2-D. In 3-D it grows quadratically (as we saw in 6.5). The Schroeder frequency, above which a room has so many overlapping modes that the field looks statistically uniform, is set by this growth and is the central organising idea of Sound 7.8.

On unbounded domains: scattering and radiation

The Helmholtz equation on a bounded domain produces eigenvalues and modes. On an unbounded domain it produces wave-like solutions instead, parameterised continuously by direction. The simplest examples in 3-D:

The “boundary condition at infinity” for an unbounded Helmholtz problem is called the Sommerfeld radiation condition: ϕ\phi at large rr must look like an outgoing spherical wave eikr/re^{i k r}/r, not an incoming one. This is the mathematical statement that energy radiates away from the source — it cannot have arrived from infinity in the steady state. Imposing it is what makes scattering and radiation problems have unique solutions.

The Sound book applies these unbounded solutions in Sound Ch 6 — Sources and radiation: a pulsating sphere radiates the spherical-wave Helmholtz solution, a dipole radiates the gradient of one, and a piston in a baffle radiates an integral of them weighted by the piston surface.

What we use it for

The next lesson, 6.8 — The Schrödinger equation, shows that the same separation-of-variables machine applies to a PDE with imaginary time coefficient, with consequences that look very different from the acoustics-flavoured Helmholtz problem but use the identical mathematics.