5
Part Zero · Foundations

PDEs and separation of variables

Pluck a guitar string and it sings a note, plus a handful of quieter notes above it, and nothing in between. Why only those? The string could, in principle, wobble at any rate it likes.

The answer comes from an equation for something spread out in space, a partial differential equation, and from the fact that the string is pinned at both ends. Keep this chapter in mind: in Part One the very same mathematics will tell an electron trapped in a box which energies it is allowed to have.

The wave equation

Cut the string into tiny pieces. Each piece is pulled by its neighbours, and the net pull depends on how sharply the string bends there, its second derivative in space. Newton’s law then gives

∂2y∂t2=v2 ∂2y∂x2\frac{\partial^2 y}{\partial t^2} = v^2\,\frac{\partial^2 y}{\partial x^2}

where vv is the speed of waves on the string, set by its tension and mass per length. Any shape you give the string obeys this rule from then on.

DeeperA piece of length dxdx and mass μ dx\mu\,dx under tension TT feels a vertical force T [y′(x+dx)−y′(x)]≈T y′′ dxT\,[y'(x+dx) - y'(x)] \approx T\,y''\,dx for small slopes. So μ y¨=T y′′\mu\,\ddot y = T\,y'', giving v=T/μv = \sqrt{T/\mu}.

Separating the variables

Guess a solution in which the shape and the timing are separate: y(x,t)=X(x) T(t)y(x,t) = X(x)\,T(t). Substituting splits the equation into one for space and one for time, linked by a single constant. The space part, with the ends pinned at x=0x = 0 and x=Lx = L, only has solutions for special values of that constant:

Xn(x)=sin⁡nπxL,fn=n v2L,n=1,2,3,…X_n(x) = \sin\frac{n\pi x}{L}, \qquad f_n = \frac{n\,v}{2L}, \quad n = 1, 2, 3, \dots

These are the normal modes. Each one fits a whole number of half-waves between the ends. Show mode 1. The points that never move are the nodes.

This is the answer to the opening question. The boundary conditions allow only whole numbers of half-waves, so only frequencies f1,2f1,3f1,…f_1, 2f_1, 3f_1, \dots can sound. On a guitar’s low E string they are 82.4, 164.8, 247.2 Hz and so on.

Plucking anywhere

A real pluck is not one clean mode. It is a triangle, and every triangle is a sum of modes with particular strengths. Pluck the string at 0.20 of its length and . The bars show how much of each mode is present.

Pluck exactly in the middle and every even mode vanishes, because the middle is a node of all of them: you cannot excite a mode by pushing where it never moves. Pluck near the end and the high modes get stronger, which is why guitarists pick near the bridge for a brighter sound.

DeeperFor a triangle of height hh peaked at x=px = p, the mode strengths are bn=2hL2n2π2 p(L−p)sin⁡nπpLb_n = \dfrac{2hL^2}{n^2\pi^2\,p(L-p)}\sin\dfrac{n\pi p}{L}. The 1/n21/n^2 is why high notes are quiet; the sine is why plucking at a node kills a mode. Checked numerically against the integral bn=2L∫0Lysin⁡(nπx/L) dxb_n = \tfrac{2}{L}\int_0^L y\sin(n\pi x/L)\,dx.

Heat: the same modes, dying away

Heat along a metal rod follows a different equation, with one time derivative instead of two: ∂u/∂t=α ∂2u/∂x2\partial u/\partial t = \alpha\,\partial^2 u/\partial x^2. Keep both ends in ice and separate the variables again. You get the same sine shapes, but instead of oscillating, each one fades:

un(x,t)=sin⁡nπxL  e−α(nπ/L)2tu_n(x,t) = \sin\frac{n\pi x}{L}\;e^{-\alpha (n\pi/L)^2 t}

Mode nn decays n2n^2 times faster than the first. Watch a hot spot in the plate: . The sharp bumps vanish almost at once and the temperature relaxes into a smooth single arch before fading away.

A preview of quantum mechanics

Twenty chapters from now, an electron confined to a box will obey Schrödinger’s equation, which is another of these partial differential equations. Pinned at the walls, it will have the same sine-shaped modes, and its allowed energies will go as n2n^2: 1, 4, 9, 16. The discreteness that gave quantum mechanics its name is, in this case, the discreteness of a guitar string. Established

What you now have

Two equations of physics, the wave equation and the heat equation, and one method that cracks both on simple shapes (it works for Laplace’s equation too): separate the variables, apply the boundary conditions, and add up the modes.

· · ·

Three questions to carry with you.

Why does a string only play certain frequencies?tap
Its ends are pinned, so only shapes with a whole number of half-waves fit, giving frequencies f₁, 2f₁, 3f₁ and so on.
Why does plucking in the middle remove the even harmonics?tap
The middle is a node of every even mode, and a mode cannot be excited by pushing where it does not move.
In the heat equation, why do sharp features disappear first?tap
Sharp features are made of high modes, and mode n decays n² times faster than the first.

And one to work out. A string’s fundamental is 110 Hz. What is the frequency of its fourth mode?

f₄ =Hz

Sources: W. A. Strauss, Partial Differential Equations: An Introduction. S. J. Farlow, Partial Differential Equations for Scientists and Engineers. Mode strengths checked numerically (audit 005).

Next · Chapter 6
Fourier series and transforms

An MRI scanner never takes a picture. It measures a Fourier transform (k-space).

Turn the page