Standing Waves and Harmonics

Every guitarist and violinist already knows something a mathematician can prove: a clamped string doesn't vibrate any old way. Pluck it, bow it, hit it — and out comes one clean pitch (plus a family of higher "ring" tones baked in), never a random smear of frequencies. That is why instruments sound musical instead of like a cymbal crash or a rustling leaf. The mathematics behind that everyday fact is separation of variables applied to the wave equation on a finite, fixed-end string.

On a finite string clamped at both ends — u(0, t) = u(L, t) = 0 — separation of variables gives the wave equation's normal modes. The spatial part is again \sin\frac{n\pi x}{L}; the time part, with no damping, oscillates rather than decays:

u_n(x, t) = \sin\frac{n\pi x}{L}\,\Big(a_n\cos\omega_n t + b_n\sin\omega_n t\Big), \qquad \omega_n = \frac{n\pi c}{L}.

Each mode is a standing wave: a fixed sine shape that breathes up and down at its own frequency \omega_n, with nodes (still points) where the sine vanishes. Only a discrete ladder of frequencies is allowed — that discreteness is exactly the mathematical fingerprint of a musical pitch.

The harmonic series you can hear

The frequencies are evenly spaced: \omega_n = n\,\omega_1. The lowest, \omega_1, is the fundamental — the pitch you hear — and the higher modes are its harmonics (overtones) at 2\times, 3\times, the frequency. This integer ladder is exactly what makes a plucked string sound musical rather than noisy.

The spatial shapes \sin(n\pi x/L) aren't unique to strings — you meet the identical family of sine patterns as the spatial part of the heat equation on an interval. The difference is entirely in the time behaviour: a heat mode decays away (e^{-\lambda_n t}, energy leaking out as heat spreads and evens out), while a wave mode oscillates forever (\cos\omega_n t, no energy loss, since an ideal string never gets tired of vibrating). Same spatial fingerprint, two completely different physical stories.

A real pluck is a superposition of modes. Releasing the string from an initial shape f(x) at rest gives

u(x, t) = \sum_{n=1}^{\infty} b_n\,\cos(\omega_n t)\,\sin\frac{n\pi x}{L},

with the b_n the Fourier sine coefficients of the pluck — so the shape of the pluck sets the mix of overtones, which is the string's timbre.

Worked example — fundamental vs. 2nd harmonic

Take a string of length L = \pi with wave speed c = 1, so \omega_n = n.

Fundamental (n = 1): the shape \sin(x) is one big hump filling the whole string, zero only at the two clamped ends — no interior nodes. It oscillates with frequency \omega_1 = 1.

Second harmonic (n = 2): the shape \sin(2x) is two humps of opposite sign, with a single stationary node sitting exactly at the midpoint x = \pi/2 — a point on the string that never moves at all, even though everything around it is vibrating. It oscillates at \omega_2 = 2.

Compare the frequencies: \omega_2 / \omega_1 = 2. The second harmonic oscillates exactly twice as fast as the fundamental — and a frequency ratio of exactly 2 is precisely what a musician calls an octave. The whole Western musical scale is built on ratios just like this one, all falling straight out of the integer ladder \omega_n = n\omega_1.

Worked example — forcing a harmonic by hand

Guitarists exploit this directly with a trick called a natural harmonic. Rest a finger very lightly on the string exactly at its midpoint (without pressing it down to the fret) and pluck — instead of the usual fundamental note, you hear a clear, bell-like pitch exactly one octave higher.

Here's why the mathematics forces that outcome. The fundamental mode \sin(x) has its maximum displacement right at the midpoint — an antinode, the point moving the most. A light finger touch pins the midpoint to zero displacement, which is incompatible with the fundamental (and with every odd harmonic n = 1, 3, 5, \dots, each of which also has an antinode at the centre). Those modes are suppressed almost instantly.

The lowest surviving mode compatible with a forced node at the midpoint is exactly n = 2 — the second harmonic already has a natural node there, so it doesn't mind the finger at all. Forcing a node at the centre is, physically, forcing the string into (predominantly) its n = 2 mode — and that mode rings out at \omega_2 = 2\omega_1, one octave above the open string. This is exactly why touching a string lightly at its midpoint produces a "harmonic" note an octave higher.

Pick a harmonic, watch it ring

On [0, \pi] with c = 1, mode n is \cos(nt)\sin(nx). Choose n to switch harmonics — count the nodes — and advance t to watch it vibrate. Higher harmonics have more nodes and oscillate faster, just as your ear reports.

It is tempting to picture a real, ringing guitar string as vibrating in a single mode — "the" fundamental, say. That's not what actually happens. A genuine pluck almost always excites many modes at once: the string's true motion is the full superposition

u(x, t) = \sum_{n=1}^{\infty} b_n\,\cos(\omega_n t)\,\sin\frac{n\pi x}{L},

with the fundamental usually dominant (largest b_1, so it sets the pitch you name), but a whole tail of harmonics riding along on top of it, exactly the way a Fourier series mixes many sine waves into one signal. The precise strengths b_1, b_2, b_3, \dots — how loud each overtone is relative to the fundamental — is exactly what makes a guitar string sound different from a piano string playing the identical pitch: same fundamental frequency, wildly different mixture of overtones, wildly different timbre. Reaching for "it's just one pure mode" throws away the entire reason instruments have distinctive voices.

This is much older mathematics than it looks. Around 2,500 years ago, Pythagoras (or at least the school of thinkers working under his name) is said to have experimented with a single-stringed instrument called a monochord, sliding a bridge along the string and listening. Halve the vibrating length and the pitch jumps up an octave; use two-thirds of the length and you get a pleasing interval we now call a perfect fifth. They had discovered, purely by ear and simple fractions, the same integer harmonic ratios that fall straight out of \omega_n = n\omega_1 — two thousand years before anyone had written down a wave equation, let alone solved one.

That ancient discovery is still exactly why a guitar's frets sit at the particular spots they do: each fret shortens the vibrating length to a specific fraction, tuned to land on a harmonically pleasing frequency ratio. And it's why a piano string's blend of harmonics — set by where and how hard the hammer strikes — gives the piano its warm, layered character while a harpsichord's different pluck point gives a brighter, more nasal one. Physics and music theory turn out to be, quite literally, the very same mathematics, discovered independently a couple of millennia apart.