← All days ◀ Day 12Day 14 ▶
15-Day Differential Equations Course · Week 3 · Day 13

Waves and Laplace's Equation

Change one time derivative to two and diffusion becomes a wave. Derive the wave equation for a string and a shaft, see d'Alembert's beautiful solution — two copies of the shape running in opposite directions — and the harmonics behind every musical note. Then let time stop: Laplace's equation for steady temperature fields, solved by relaxation.

⏱ about 2–3 hours🧪 Lab: Vibrating string and heated plate❓ 5-question quiz

1Today's goals

  • Derive the wave equation and the wave speed for a string, a bar and a shaft in torsion
  • Use d'Alembert's solution and the reflection at fixed ends
  • Find natural frequencies fₙ = n·c/2L and explain missing harmonics
  • Solve Laplace's equation by relaxation and know its mean-value property
  • Classify second-order PDEs as hyperbolic, parabolic or elliptic

2The wave equation

A string under tension T with mass μ per metre. A small element bent into a curve feels a net vertical force T·uxx·dx (the tension pulls it towards the straight line). Newton:

μ·utt = T·uxx → utt = c²·uxx, c = √(T/μ)
SystemWave speed cTypical value
String√(T/μ)100 – 400 m/s for instrument strings
Axial waves in a bar√(E/ρ)≈ 5100 m/s (steel)
Torsional waves in a shaft√(G/ρ)≈ 3200 m/s (steel)
Sound in a pipe√(γp/ρ)≈ 343 m/s in air at 20 °C

3d'Alembert: two travelling copies

Any function of x − ct is a shape moving right at speed c, and any function of x + ct moves left. Both satisfy the wave equation, and so does their sum. For a string released from rest in shape f(x):

u(x, t) = ½·[ f(x − ct) + f(x + ct) ]

The initial bump splits into two half-height copies that run apart. At a fixed end the copy reflects upside down (mathematically: extend f as an odd function beyond the end). After a time 2L/c everything returns to the start — the string is periodic.

4Standing waves and harmonics

Separation of variables again (as on Day 12), but now T″ = −c²λT gives oscillation instead of decay:

u = Σ sin(nπx/L)·[ An·cos(nπct/L) + Bn·sin(nπct/L) ] fₙ = n·c/(2L)

The frequencies are whole-number multiples of the fundamental — the harmonic series that makes a string sound musical. Pluck at a point and every mode with a node there is not excited: pluck at L/2 and all even harmonics vanish (a hollow sound); pluck near the end and the high harmonics are strong (a bright sound).

Fixed–free shafts, and why drums sound "out of tune"

A shaft fixed at one end and free at the other has u = 0 at x = 0 and ux = 0 at x = L. The modes become sin((2n − 1)πx/2L) with frequencies (2n − 1)·c/(4L): only odd multiples, like a clarinet. A drum membrane obeys the 2-D wave equation; on a circle its modes are Bessel functions whose frequencies are not whole-number multiples, which is why most drums have no clear pitch. Timpani are the exception: the air in the kettle and around the head pulls their main modes close to a harmonic series.

5Laplace's equation: when time stops

Let a heat problem run until nothing changes. Then ut = 0 and in two dimensions

∂²u/∂x² + ∂²u/∂y² = 0

It describes steady temperature in a plate, electrostatic potential, groundwater pressure, potential flow round a wing, and the stress function in torsion of a non-circular shaft. Its solutions (harmonic functions) have two remarkable properties:

  • Mean value: the value at any point equals the average around any circle centred there. On a grid: each point equals the average of its four neighbours.
  • Maximum principle: the hottest and coldest points are on the boundary — never inside, unless there is a source.

The mean-value property gives a solution method a child could follow: guess any values, then repeatedly replace each interior point by the average of its neighbours. This relaxation (Jacobi, Gauss–Seidel, and the faster over-relaxed SOR) converges to the answer.

TypePrototypeCharacterInformation travels
Hyperbolicutt = c²uxxWaves, sharp fronts keep their shapeAt finite speed c
Parabolicut = αuxxDiffusion, smoothingInstantly, but weakly
Ellipticuxx + uyy = 0Equilibrium, smooth everywhereEvery point depends on the whole boundary

6Worked example

A guitar's A string: L = 0.65 m, fundamental 110 Hz, μ = 6.0 g/m. What tension?c = 2·L·f₁ = 2 × 0.65 × 110 = 143 m/s T = μ·c² = 0.006 × 143² = 123 N (about 12.5 kg-force) Harmonics: 110, 220, 330, 440 … Hz. Pluck at L/5 → modes 5, 10, 15 … are silent.
Torsional natural frequency of a 1 m steel shaft, fixed at one end, free at the other (no disc)c = √(G/ρ) = √(80×10⁹ / 7850) = 3192 m/s f₁ = c/(4L) = 3192/4 = 798 Hz, f₂ = 3·c/(4L) = 2394 Hz With a heavy disc at the free end the shaft acts as a spring and f₁ drops to (1/2π)·√(k_t/J) — the lumped model of Day 5.
Where you meet thisTorsional and axial resonances of long drive shafts, water hammer in pipes (a pressure wave at ~1200 m/s), ultrasonic flaw detection, stress waves in impact and Hopkinson-bar tests, seismic waves; and for Laplace: temperature in a cylinder head, electric fields in insulators, seepage under a dam, and the torsion of splined and keyed shafts.

7Lab: the vibrating string

Press P. With "d'Alembert halves" on, the orange dashed curve is the right-moving copy and the black dashed one the left-moving copy; their sum is the blue string. The space–time map shows the two waves crossing and reflecting. Pluck at 0.5 and look at the harmonic bars: the even ones disappear.

The heated plate

Set the four edge temperatures. The solver relaxes the plate towards Laplace's equation (watch the convergence plot fall). With only the top at 100 °C, the centre settles at exactly 25 °C — the average of the four edges. Add a hot or cold pipe and turn on the heat-flow arrows: they always cross the isotherms at right angles.

8Pro tips and common mistakes

  • The wave speed is not the speed of the string's particles — they move up and down; the shape moves sideways at c.
  • Real strings and shafts have some stiffness and damping, so high harmonics are slightly sharp and die faster.
  • For Laplace problems the answer depends on the whole boundary: one wrong boundary value spoils the interior everywhere.

9Practice

  1. A string of μ = 1 g/m under 80 N tension is 0.4 m long. Find its first three frequencies.
  2. Show that u = f(x − ct) satisfies the wave equation for any twice-differentiable f.
  3. In the plate lab, set top 100, others 0 and read the centre. Now set top 100 and left 100. Predict the centre first.
  4. Find the first axial natural frequency of a 2 m steel bar free at both ends (modes cos(nπx/L), fₙ = n·c/2L).

10Quick quiz

5 questions. Click an answer — you get the explanation straight away.

Progress is kept in this browser (and in your account when signed in).