6.4 Boundary conditions

Separation of variables — and almost every other PDE technique — produces a family of allowed solutions parameterised by some constant. The boundary conditions are what cut that family down to the actual physical answer. They are also the most common source of errors in PDE work: a problem with the wrong boundary conditions is, mathematically, a different problem, and will give the wrong modes, the wrong reflection coefficients, the wrong steady-state, the wrong everything.

This lesson lays out the four families of boundary conditions you will meet across the bookshelf, the physics that selects each one, and a worked example showing what happens when you choose wrong.

What a boundary condition is

A PDE describes the relation between a field and its partial derivatives at every interior point of a domain. By itself, the equation has infinitely many solutions — any combination of mode shapes, any choice of FF and GG in the d’Alembert formula, any harmonic interior. The boundary conditions specify the value of the field (or some derivative of it) on the boundary of the domain, and together with the PDE they cut the infinite family down to a unique solution.

For an elliptic PDE that is the whole story. For a parabolic PDE you also need an initial condition; for a hyperbolic PDE you need two (initial value plus initial velocity). But the boundary conditions are the part that depends on what the walls of the domain are like.

What kind of condition is physically appropriate depends on what the field represents and what the boundary represents:

The same boundary that is Dirichlet for one variable is often Neumann for another. Naming the field whose boundary condition you are stating is half the battle.

The four families

Dirichlet — value fixed

A Dirichlet boundary condition specifies the value of the field at the boundary:

u(boundary)  =  α,u(\text{boundary}) \;=\; \alpha,

usually α=0\alpha = 0 when the equation is homogeneous (so the problem stays homogeneous). Physical examples:

The corresponding mode shapes vanish at the boundary. For the clamped string on [0,L][0, L] these are sin(nπx/L)\sin(n \pi x / L) — the modes we derived in 6.3.

Neumann — normal derivative fixed

A Neumann boundary condition specifies the normal derivative of the field:

un(boundary)  =  β,\frac{\partial u}{\partial n}(\text{boundary}) \;=\; \beta,

with β=0\beta = 0 in the homogeneous case. Physical examples:

The corresponding mode shapes have zero slope at the boundary. For a free–free string on [0,L][0, L] they are cos(nπx/L)\cos(n \pi x / L) — the same frequency spectrum as the clamped case (modulo the n=0n = 0 rigid translation), but the spatial shapes are cosines rather than sines.

Robin (impedance) — linear combination fixed

A Robin boundary condition specifies a linear combination of uu and its normal derivative:

αu  +  βun  =  0\alpha\, u \;+\; \beta\, \frac{\partial u}{\partial n} \;=\; 0

at the boundary. Robin is the generic boundary condition: Dirichlet is the special case β=0\beta = 0 and Neumann is α=0\alpha = 0. Physical examples are everywhere:

The corresponding mode shapes solve a transcendental quantisation equation rather than the clean kL=nπk L = n \pi of the Dirichlet or Neumann cases — the impedance ratios enter the equation and the modes are generally not exactly sinusoidal.

Periodic — wrap-around

A periodic boundary condition identifies opposite faces of the domain:

u(0,t)  =  u(L,t),ux(0,t)  =  ux(L,t).u(0, t) \;=\; u(L, t), \qquad \frac{\partial u}{\partial x}(0, t) \;=\; \frac{\partial u}{\partial x}(L, t).

The domain has no free boundary — it wraps around, like a ring. Physical examples:

The corresponding mode shapes are the full Fourier set {eiknx}\{e^{i k_n x}\} with kn=2πn/Lk_n = 2 \pi n / L for integer nn (positive and negative), or equivalently {1,cos(2πnx/L),sin(2πnx/L)}\{1, \cos(2\pi n x / L), \sin(2\pi n x / L)\}.

Boundary conditions on a 2-D or 3-D domain

In one spatial dimension the boundary is two points. In two dimensions it is a curve; in three it is a surface. The same four families apply at every point of the boundary, but you can have different types on different stretches. A typical example: a rectangular plate with one edge held at a fixed temperature (Dirichlet), an adjacent edge insulated (Neumann), and the remaining two edges in contact with a cooling bath (Robin). The interior temperature distribution that emerges from those mixed boundary conditions can be quite intricate; that is what the elliptic problem is for.

When you set up separation of variables on a higher-dimensional domain, you separate the spatial variables further — u(x,y,t)=X(x)Y(y)T(t)u(x, y, t) = X(x)\, Y(y)\, T(t) — and each variable’s boundary conditions select its own ladder of modes. The full mode catalogue is the outer product: {Xm}m=1{Yn}n=1\{X_m\}_{m=1}^\infty \otimes \{Y_n\}_{n=1}^\infty.

A cautionary worked example: wrong BC, wrong modes

Imagine an organ pipe open at both ends, like an orchestral flute. We want its acoustic modes.

The physically correct setup. Pressure is the natural field. At an open end the pressure perturbation is approximately zero — the air at the opening is in contact with the atmosphere, which buffers any fluctuation. The boundary conditions on pressure are therefore Dirichlet at both ends:

p(0,t)  =  p(L,t)  =  0.p(0, t) \;=\; p(L, t) \;=\; 0.

Separation of variables gives mode shapes pn(x)sin(knx)p_n(x) \propto \sin(k_n x) with kn=nπ/Lk_n = n \pi / L and frequencies ωn=nπc/L\omega_n = n \pi c / L. The fundamental is ω1=πc/L\omega_1 = \pi c / L — the standard open–open flute formula. Half a wavelength fits between the two ends in the lowest mode.

A common mistake. Suppose we instinctively write boundary conditions in terms of the displacement field ξ\xi rather than the pressure, and then carry over the same Dirichlet statement: ξ(0,t)=ξ(L,t)=0\xi(0, t) = \xi(L, t) = 0. This says the air at each open end cannot move, which is the opposite of the truth — the air at an open end is most free to move. We have just specified the physics of a closed–closed tube while believing we were specifying an open–open one.

The mode shapes that come out of this wrong setup are ξn(x)sin(knx)\xi_n(x) \propto \sin(k_n x) with the same kn=nπ/Lk_n = n \pi / L. The frequencies are the same as the correct open–open case, by accident of symmetry. So a frequency-only sanity check would pass. But the spatial shapes are wrong — they have nodes where the correct shapes have antinodes — and any subsequent calculation that uses the field’s behaviour at the boundary (intensity, impedance, radiation pattern, coupling to a player’s lip) would carry the wrong sign or magnitude.

The correct displacement statement. The right boundary condition for ξ\xi at an open end is Neumann: the air can move freely, so xξ=0\partial_x \xi = 0. With Neumann on ξ\xi the mode shapes are ξn(x)cos(knx)\xi_n(x) \propto \cos(k_n x) with kn=nπ/Lk_n = n \pi / L — pressure nodes at the ends become displacement antinodes, exactly as physics demands. Same frequencies, correct shapes.

The moral. Before you write a boundary condition down, name the field whose boundary value you are stating and ask which of the four families fits the physics at that point for that field. Pressure at a free surface is Dirichlet; displacement at the same surface is Neumann. These are dual statements of the same physical fact, but they translate into mathematically different equations. Get the type right.

The full acoustic-tube treatment is in Sound 7.6 — Tube modes, which has tables of the modes for every endpoint combination (closed–closed, open–closed, open–open, with and without flanges).

Why the BC choice matters for completeness

There is one further reason to care about the boundary conditions, which only becomes apparent when you try to use the modes for a calculation. A solution by separation of variables looks like

u(x,t)  =  ncnXn(x)Tn(t),u(x, t) \;=\; \sum_n c_n\, X_n(x)\, T_n(t),

with the XnX_n‘s the mode shapes selected by the BCs. To match arbitrary initial conditions u(x,0)=f(x)u(x, 0) = f(x), you need to expand ff in the basis {Xn}\{X_n\}. That expansion will work — for any sufficiently well-behaved ff — if and only if the XnX_n‘s form a complete orthogonal set on the domain.

This is not automatic. It is automatic for the four standard families above, because each leads to a self-adjoint spatial operator (the formal name for “an operator with nice eigenfunctions”) and the Sturm–Liouville theorem then guarantees the eigenfunctions are complete and orthogonal. Choose a non-standard boundary condition that is not self-adjoint and the mode catalogue may not span the space of physical initial conditions — leaving the technique stranded.

In the rest of the bookshelf you will always be in the standard cases. This is mentioned here so that the reason separation of variables works is visible, not just the mechanics.

The next lesson, 6.5 — Modes and mode sums, develops the orthogonality, the Fourier-projection step that pulls out the coefficients {cn}\{c_n\}, and the modal-density bookkeeping that becomes important when there are many modes within a band of interest.