Waves & the Wave Equation
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.
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 $\sin\theta \approx \tan\theta = \partial y/\partial x$, 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.
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.
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.
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.
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: .
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).
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 $\nu_2 = 220\nu_3 = 330\lambda_n = 2L/n = 1.30,\ 0.650,\ 0.433$ 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 $\lambda = v/\nu = 0.500r_1 = 3.00r_2 = 3.75$ 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: $A + Ae^{i\delta} = Ae^{i\delta/2}(e^{-i\delta/2} + e^{i\delta/2}) = 2A\cos(\delta/2),e^{i\delta/2}2A|\cos(\delta/2)|$ — 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 $E_n = K + U = \tfrac14\mu L\omega_n^2A_n^2 = \text{const}$: 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.
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?
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.
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 →