Waves & the Wave Equation
Before quantum mechanics was mechanics, it was wave mechanics — and every wave idea Schrödinger needed was already a century old. Superposition, interference, and frequencies quantized by boundary conditions all live on an ordinary stretched string. Master the classical wave equation now, and the "weird" quantum features of Term 1 turn out to be old friends wearing new collars.
Learning Objectives
After this lesson you will be able to:
- Define a mechanical wave and derive the one-dimensional wave equation from Newton's second law applied to a stretched string.
- Prove and apply d'Alembert's solution , reading off propagation speed and direction.
- Describe harmonic waves via amplitude, wavenumber , angular frequency , and the dispersion relation , in real and complex-exponential form.
- Predict constructive/destructive interference from path difference, and derive the beat envelope of two nearby frequencies.
- Derive the normal modes of a string with fixed ends and explain quantization by boundary conditions — the classical ancestor of quantum energy levels.
- Recognize the same equation in transverse and longitudinal waves (string, elastic rod, gas column) with = stiffness/inertia, and distinguish the medium velocity from the wave speed.
Intuition
Drop a pebble in a pond, or flick the end of a rope: a pattern travels while the medium only jiggles locally. That is a wave — a propagating disturbance carrying energy and momentum without transporting matter. Every water molecule (and every fan in a stadium wave) returns to where it started; the shape moves on.
Three structural facts about the wave equation matter more than any single solution. It is linear, so solutions add — superposition and interference. It is second order in time, so initial shape and initial velocity must be supplied. And confining a wave — pinning a string at both ends — turns a continuum of possible frequencies into a discrete ladder. Replace "string displacement" by "wavefunction" and these become quantum superposition, quantum dynamics, and quantized energy levels. This lesson is Term 1 in disguise.
Theory
The wave equation from Newton's second law
A mechanical wave is a disturbance of a deformable medium that propagates through it, driven by the medium's inertia (it overshoots equilibrium) and its restoring force (it gets pulled back). On a string the disturbance is the transverse displacement : each point moves perpendicular to the propagation direction (sound in air is longitudinal; the math is the same). The state of the medium is a whole function — our first infinite-dimensional system.
Take a string of uniform linear mass density (kg/m) under uniform tension (N), displaced slightly from the -axis. The element between and has mass . Tension pulls tangentially at both ends, so with the local angle to the horizontal, the net transverse force is . For small slopes () we set , and the horizontal components cancel to first order (tension stays uniform; no horizontal acceleration). Then, by the definition of the derivative of ,
Newton's second law gives, cancelling ,
— the 1D wave equation. The speed is set entirely by the medium: stiffer restoring force (larger ) means faster; more inertia (larger ) means slower.
One equation, many media
The string is one instance of a structure that recurs across physics. Waves are first sorted by how the medium moves relative to the direction of travel. In a transverse wave the disturbance is perpendicular to the propagation direction: the string, shear waves in a solid, and light, whose fields point across its direction of travel. (Surface waves on water are neither: each parcel of water moves on a near-circular orbit, mixing both.) In a longitudinal wave the disturbance lies along the propagation direction, so the medium is alternately compressed and rarefied: sound in a gas, compression waves in a rod. The mathematics does not care which. In each case Newton's law on a small element pits a stiffness (the restoring force per unit deformation) against an inertia, and returns the same equation with .
Elastic rod. Let be the longitudinal displacement of the cross-section that sits at in equilibrium, in a thin rod of density , cross-sectional area and Young's modulus . The rod is locally stretched by the strain , so by Hooke's law the force transmitted across the section at is . The slice between and has mass and feels the net force , hence : the wave equation again, with . For steel ( Pa, kg/m³) this is about km/s, fifteen times faster than sound in air.
Gas column. In a pipe of gas with equilibrium pressure and density , the same displacement field changes the density by and hence the pressure by , where is the gas's bulk modulus. The pressure difference across a slab accelerates it, , so with . Differentiating once in shows that and obey the same equation, which is why sound is equally well called a pressure wave or a density wave. The physics hides in . Newton (1687) took the compressions to be isothermal, , and got about 290 m/s for air: some 15% too slow. Laplace (1816) saw that acoustic oscillations are far too fast for heat to flow between compressed and rarefied regions, so the compressions are adiabatic, with for air. Then m/s at 20 °C, the measured value.
| Medium | Wave | Stiffness | Inertia | |
|---|---|---|---|---|
| String | transverse | tension | linear density | |
| Thin rod | longitudinal | Young's modulus | density | |
| Gas | longitudinal | bulk modulus | density |
Light belongs on no row of this table: it needs no medium at all. Maxwell's equations hand the same wave equation to the electric and magnetic fields themselves, with in empty space (P.2.1). What every wave transports is energy and momentum; what none transports is the medium.
d'Alembert's general solution
Claim: solves the wave equation for any twice-differentiable , and every solution has this form. Direct check: with , the chain rule gives and , so ✓ (same for ; linearity lets us add). Generality: in the variables , one has and , so
whence is independent of ; integrating, . The graph of is the fixed shape translated rigidly rightward at speed (its argument is constant along ); moves left.
The catch is the single : a sum of two movers solves this equation only when both travel at the one speed the equation owns. Give them unequal speeds and the residual refuses to vanish for any choice of (the demo writes the string coordinate as ):
Interactive demo: Two travelling waves, one wave equation. Send two waves in opposite directions and test whether one wave equation can hold them both.
Harmonic waves, dispersion, and phase vs group velocity
The workhorse solution is the harmonic wave : amplitude , wavenumber (wavelength ), angular frequency (frequency , period ), phase constant . It has the form only if , i.e. , equivalently . A relation is a dispersion relation; the string's is linear, so all harmonic waves share one speed and arbitrary shapes propagate undistorted.
Plot against and the string's dispersion relation is a straight line through the origin with slope , while each harmonic wave is a single point. Two waves obey the same wave equation exactly when both points land on one line — a condition on the ratio and nothing else:
Interactive demo: Do two waves share one wave equation?. Place two harmonic waves on the ω–k plane: they obey the same wave equation only if they share the ratio ω/k.
In a dispersive medium is nonlinear: crests move at the phase velocity while a localized packet (and its energy) moves at the group velocity , and packets spread. Matter waves will prove maximally dispersive () — full treatment in P.4.3.
A third velocity is easily confused with these two. The medium velocity is how fast one bit of the medium moves as the wave passes, not how fast the pattern moves. For the harmonic wave, oscillates with amplitude , set by the amplitude and frequency and unrelated to . The two are linked only through the slope: for any right-mover the chain rule gives , so . The small-slope assumption behind the wave equation, , is therefore the statement that the medium moves slowly compared with the wave. A loud 1 kHz tone in air moves the air at a few mm/s while the sound itself travels at 344 m/s (E6).
The complex representation
Following 0.3.1, write , the complex amplitude packaging amplitude and phase. Derivatives become multiplications (, ) and adding waves becomes adding complex numbers. Because the wave equation is linear with real coefficients, we may compute with throughout and take the real part at the end. For the string this is bookkeeping; in quantum mechanics the complex exponential becomes the physical object itself — no real part taken (P.4.1).
Superposition and interference
The operator is linear: implies . Any linear combination of solutions is a solution — the superposition principle. Superposing two equal-amplitude waves that differ by a phase gives, by the sum-to-product identity,
The resultant amplitude ranges from (constructive, ) to (destructive, ). When the offset comes from two in-phase sources at different distances, with the path difference: constructive at , destructive at . This classical superposition of waves is the direct ancestor of the quantum superposition of states in the State Postulate: the same linearity, with amplitudes reinterpreted as probability amplitudes. In three dimensions the same sum acquires a direction, and interference becomes a pattern painted across space rather than a value at a point — that generalization, and the diffraction and grating physics it unlocks, is P.1.2.
Caution. Superposition adds amplitudes, never intensities. Intensity goes as amplitude squared: two equal in-phase waves give , not ; out of phase they give . The cross term redistributes energy from dark fringes to bright ones — the fringe-averaged intensity is still . The same "add amplitudes, then square" rule governs quantum probability amplitudes, where forgetting it erases every interference effect.
Beats
Superpose equal amplitudes at slightly different frequencies, at a fixed point:
The second factor oscillates fast at the mean frequency; the first is a slow envelope . A detector senses intensity , which peaks twice per envelope period — loudness pulses at the beat frequency .
Standing waves: quantization by boundary conditions
Pin the string at both ends: . Seek normal modes — motions where every point oscillates at one common frequency — with the separation ansatz . Substituting and dividing by gives ; a function of alone equals a function of alone, so both equal a constant, written (a positive constant gives real exponentials that cannot vanish at both ends). Then ; the condition kills , and forces :
Each mode is with ; the general motion is the superposition , coefficients fixed by initial shape and velocity via Fourier analysis (0.3.2). Equivalently a standing wave is two counter-propagating travelers: .
Drag and let the boundary conditions do the quantizing. The left end is pinned for free; the right end lands on its wall only when is a whole multiple of :
Interactive demo: Standing waves on a pinned rope. Drag the wavenumber and find the only values that fit a rope pinned at both ends.
This is the most important idea of the lesson: boundary conditions quantize frequencies — nothing quantum happened; a pinned string simply cannot vibrate at arbitrary frequencies. When de Broglie turns electrons into waves, fitting a whole number of wavelengths around an orbit quantizes the atom (P.3.2), and confining a matter wave in a box quantizes its energy — the infinite square well of P.5.2 is this calculation with a new dispersion relation. Moreover, each classical normal mode — a frozen spatial shape at a single frequency — is the direct ancestor of a quantum stationary state with (P.4.2).
A real pluck is not one mode but a sum of them, , with the amplitudes set by the starting shape; finding them is a Fourier series (Fourier Series & Transforms). Below, a string plucked a third of the way along, built mode by mode; the plot shows the string on the right half and its mirror image on the left, which is how a sine series sees it. Every third mode is missing: each has a node exactly where the string was pulled.
Interactive demo: Fourier synthesis. Build a square wave, a sawtooth or a plucked string from harmonics, and watch the overshoot at a jump refuse to shrink.
Worked Examples
Example 1 — Tuning a guitar string
A guitar's A-string has m and g/m kg/m. What tension tunes its fundamental to Hz? From : m/s, so N. The overtones sit at Hz, Hz, … with m — an evenly spaced frequency ladder, courtesy of the linear dispersion relation. ✓
Example 2 — Two speakers and a path difference
Two speakers driven in phase emit Hz in air ( m/s), so m. A listener stands m from one speaker, m from the other. Path difference m : destructive — a dead spot. Stepping sideways to m : constructive, intensity . At an intermediate point with m, , so the amplitude is and — checking the energy bookkeeping of the Caution above.
Hands-on (Python)
import numpy as np
import matplotlib.pyplot as plt
# --- 1. Two-wave interference (snapshots) and beats ---
x = np.linspace(0, 4, 1000) # metres
A, k = 1.0, 2*np.pi # lambda = 1 m
fig, ax = plt.subplots(2, 1, figsize=(8, 6))
for delta in (0.0, np.pi/2, np.pi):
ax[0].plot(x, A*np.cos(k*x) + A*np.cos(k*x + delta), label=f"delta={delta:.2f}")
ax[0].set(title="Two equal waves, t = 0", xlabel="x (m)"); ax[0].legend()
# Expected: amplitudes 2, 1.41, ~0 -> matches 2A|cos(delta/2)|
t = np.linspace(0, 2, 4000) # seconds
nu1, nu2 = 220.0, 224.0 # Hz -> 4 Hz beat
y = np.cos(2*np.pi*nu1*t) + np.cos(2*np.pi*nu2*t)
env = 2*np.cos(np.pi*(nu1 - nu2)*t) # slow envelope
ax[1].plot(t, y, lw=0.5); ax[1].plot(t, env, "r", t, -env, "r")
ax[1].set(title="Beats: 220 Hz + 224 Hz", xlabel="t (s)")
plt.tight_layout(); plt.show()
# Expected: 8 loudness pulses in 2 s = |nu1 - nu2| = 4 Hz beat frequency.import numpy as np
import matplotlib.pyplot as plt
# --- 2. Standing wave from counter-propagating travelers ---
L, v, n = 1.0, 1.0, 3
k = n*np.pi/L; w = v*k; tau = 2*np.pi/w # mode-3 parameters
x = np.linspace(0, L, 500)
for frac in np.arange(0, 1.0, 0.125): # 8 snapshots over one period
t = frac*tau
plt.plot(x, np.sin(k*x - w*t) + np.sin(k*x + w*t), label=f"t={frac:.3f} tau")
plt.title("n = 3 standing wave: nodes never move")
plt.xlabel("x (m)"); plt.legend(fontsize=7); plt.show()
# Expected: every snapshot vanishes at x = 0, 1/3, 2/3, 1 (fixed nodes);
# the profile 2A sin(kx) cos(wt) breathes in place -- no travel survives.import numpy as np
import matplotlib.pyplot as plt
# --- 3. Fourier synthesis: evolving a plucked (triangular) string ---
L, v, a, h, N = 1.0, 1.0, 0.30, 0.05, 60 # pluck at x=a, height h, N modes
x = np.linspace(0, L, 1000)
y0 = np.where(x < a, h*x/a, h*(L - x)/(L - a)) # initial triangle, released at rest
n = np.arange(1, N + 1)
# b_n = (2/L) * integral y0(x) sin(n pi x/L) dx (np.trapz on NumPy < 2.0):
b = np.array([2/L*np.trapezoid(y0*np.sin(m*np.pi*x/L), x) for m in n])
def y(t): # y(x,t) = sum_n b_n sin(k_n x) cos(w_n t)
return np.sin(np.pi*np.outer(x, n)/L) @ (b*np.cos(n*np.pi*v*t/L))
tau = 2*L/v # fundamental period
for frac in (0.0, 0.1, 0.2, 0.3, 0.4, 0.5):
plt.plot(x, y(frac*tau), label=f"t = {frac:.1f} tau")
plt.title("Plucked string via normal-mode expansion")
plt.xlabel("x (m)"); plt.ylabel("y (m)"); plt.legend(fontsize=8); plt.show()
# Expected: the kink splits into two counter-propagating kinks; at t = 0.5 tau
# the shape is the initial triangle inverted & mirrored; it recurs at t = tau.Exercises
E1 (easy). A wave on a string is (SI). Find the amplitude, wavelength, frequency, speed, and direction of travel.
Solution
m; m so m; s so Hz; m/s; the combination moves in .
E2 (easy). Show directly (chain rule) that solves the wave equation for any twice-differentiable , and give its direction of motion.
Solution
With : , , , so ✓. The argument is constant along : the shape moves in the direction at speed .
E3 (medium). Using complex exponentials, re-derive the resultant amplitude of , then show the intensity averaged over all is .
Solution
Add phasors: , of modulus — matching sum-to-product. Intensity ; averages to zero over , so : interference redistributes energy but conserves it.
E4 (medium). A string is fixed at , but its end at rides a frictionless massless ring on a rod, enforcing (a "free" end). Find the allowed frequencies.
Solution
from ; now requires , so : only odd multiples of a (lower) fundamental . Different boundary conditions, different quantized spectrum — the spectrum encodes the boundary conditions.
E5 (hard). Compute the total energy of a string vibrating in one mode , using kinetic density and potential density . Show it is constant in time.
Solution
and . Using : and . But , so : energy sloshes between kinetic and potential — each normal mode is an independent harmonic oscillator of frequency . Classical physics then hands every mode an average thermal energy ; counting cavity modes this way leads straight to the ultraviolet catastrophe of P.2.1.
E6 (medium). (a) Find the speed of longitudinal waves in a steel rod ( Pa, kg/m³) and of sound in air at 20 °C ( Pa, kg/m³, ), and the wavelength of a 440 Hz tone in each. What would Newton's isothermal assumption have given for air? (b) A 1.00 kHz sound wave in air has displacement amplitude m. Find the maximum speed of the air's motion, compare it with the wave speed, and check that the ratio equals the maximum strain .
Solution
(a) Steel: m/s, so m. Air: m/s, so m. Isothermal (): m/s, 15% low, which is why Laplace's adiabatic correction mattered. The same tone is fifteen times longer in steel because the frequency is fixed by the source and .
(b) , so m/s, i.e. 6.3 mm/s, and . With , ✓, as requires. (This is a loud tone, roughly 100 dB, yet the collective motion is a drift of millimetres per second laid over the molecules' random thermal speeds of about 470 m/s.)
Checkpoint
- What physical assumptions produce for a string?
- Why does describe a rigidly right-moving shape, and what property of the dispersion relation keeps shapes rigid?
- Two equal in-phase waves overlap. What is the intensity relative to one wave alone, and why is energy still conserved?
- Why do fixed ends allow only ? What plays the analogous role for a quantum particle in a box?
- Distinguish phase velocity from group velocity. For which media do they coincide?
- Why do a string, a rod and a gas column obey the same wave equation, and what sets in each? Why was Newton's speed of sound wrong?
Answers
- Small transverse displacements (), uniform tension and density, purely transverse motion, no gravity or damping; Newton's law on an element does the rest.
- Its argument is constant along , so the graph translates rigidly at . Rigidity holds because is linear — all Fourier components share one speed.
- : amplitudes add to and intensity is amplitude squared. Averaged over a fringe pattern the intensity is — interference only redistributes energy.
- forces , so and . For a quantum particle, the wavefunction vanishing at the box walls quantizes and hence the energy (P.5.2).
- moves crests; moves packets and energy. They coincide exactly when — nondispersive media like the ideal string.
- In each, Newton's law on a small element balances a restoring stiffness against an inertia linearly in the small displacement, giving : , , . Newton used the isothermal ; acoustic compressions are too fast for heat to flow, so they are adiabatic, .
Further Reading
- [Gold] Goldstein, Poole & Safko, Ch. 13 — the string's wave equation re-derived from a Lagrangian density; classical field theory in embryo.
- [Gri] Griffiths & Schroeter, §2.4 — wave packets and phase vs group velocity, in their quantum habitat.
- [ER] Eisberg & Resnick, §3.1–3.2 — how the classical wave toolkit is reused for de Broglie's matter waves.
← Prev: Pre-Term Overview · Up: Pre-Term · Next: Wave Propagation, Diffraction & Gratings →