Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

The wave equation: oscillations acquire space

The puzzle: something crosses, and nothing makes the trip

At a football match, a wave goes round the stadium. You can watch it travel: a band of standing, arms-up fans sweeping along the stands, once round the ground in half a minute. And yet nobody in the stadium has moved from their seat. Each person stood up and sat down again, a little after their neighbour did.

Tie a 20 m rope to a wall, pull it taut, and flick the end. Something runs along the rope and slaps the wall a fraction of a second later — you can feel it arrive through the wall if you put your other hand on it. No piece of rope made that trip.

Predict before you calculate

Commit to an answer for each before running anything.

  1. Two pulses on the same rope, one twice as tall as the other. Which reaches the far end first — the taller one, the shorter one, or neither?

  2. A speck of dust rests halfway along the rope. A pulse runs through it and on. Where is the speck afterwards?

  3. You double the tension in the rope. Does the time a pulse takes to cross it halve, fall by some other factor, or stay the same?

  4. You pull the middle of the rope aside into a triangle, hold it still, and let go. Does one pulse leave, or two?

Explore the model

Three animations, all generated from the same wavelab.waves solver the laboratory runs. Every displacement is drawn in millimetres on a string several metres long, so every pulse on screen is hundreds of times steeper than the string it depicts. The axis units say so; the physics assumes the true, gentle slopes.

A pulse runs 2.6 m along a string at 20 m/s. One point of the string, 2 m along, is marked in orange, with a faint trail of everywhere it has been. The trail is a vertical line. The lower panel records the point’s height against time: it rises 10 mm as the front of the pulse arrives, falls as the back leaves, and finishes within 6×10−56\times10^{-5} mm of where it started. Whatever crossed the string, none of the string went with it.

A string pulled into a 10 mm triangle and released from rest. It splits into two triangles of half the height, running apart. The translucent fills beneath are d’Alembert’s two halves, y0(x−vt)/2y_0(x - vt)/2 in blue and y0(x+vt)/2y_0(x + vt)/2 in orange: at the first frame they lie on top of each other and the string is their sum; as they slide apart the string follows. The solver matches the formula to 2×10−142\times 10^{-14} of the height over the whole run — it is at the special time step derived below, where a pluck is carried exactly.

The same pluck computed twice, with the time step 1% under the stability limit (blue) and 1% over it (orange). For a hundred steps the two strings look identical. The bottom panel shows why that is misleading: on a logarithmic axis it tracks the shortest wave the grid can hold, and in the orange run it climbs a straight line from rounding error, multiplying by 1.33 every step. At step 137 it reaches the pulse’s own size, and within a dozen steps the string panel is overwhelmed. Nothing physical happened.

Run the laboratory now, then come back. Four things are worth doing before you read on:

Derive the result

Route (a): module 07’s chain, one step further

Put beads of mass mm on a thread, a distance aa apart, and pull the thread to tension TT. Displace bead nn sideways by yny_n. The stretch of thread to its right is tilted by an angle whose sine is (yn+1−yn)/a2+(yn+1−yn)2(y_{n+1} - y_n)/\sqrt{a^2 + (y_{n+1}-y_n)^2}, and it pulls the bead with a transverse force TT times that sine. For small tilts the square root is just aa, and the two stretches together give

m y¨n=Ta(yn+1−yn)−Ta(yn−yn−1)=Ta(yn+1−2yn+yn−1).m\,\ddot y_n = \frac{T}{a}\left(y_{n+1} - y_n\right) - \frac{T}{a}\left(y_n - y_{n-1}\right) = \frac{T}{a}\left(y_{n+1} - 2y_n + y_{n-1}\right).

This is module 07’s chain exactly, with springs of stiffness ks=T/ak_s = T/a — the dictionary T=ksaT = k_s a that module 07 ended on, now with a reason behind it.

Now let the beads crowd together. Treat the displacements as samples of a smooth function, yn(t)=y(na,t)y_n(t) = y(na, t), and expand the neighbours about x=nax = na:

yn±1=y±a yx+a22 yxx±a36 yxxx+a424 yxxxx+⋯y_{n\pm1} = y \pm a\,y_x + \frac{a^2}{2}\,y_{xx} \pm \frac{a^3}{6}\,y_{xxx} + \frac{a^4}{24}\,y_{xxxx} + \cdots

In the sum yn+1+yn−1y_{n+1} + y_{n-1} every odd term cancels, so the second difference is

yn+1−2yn+yn−1=a2 yxx+a412 yxxxx+⋯y_{n+1} - 2y_n + y_{n-1} = a^2\,y_{xx} + \frac{a^4}{12}\,y_{xxxx} + \cdots

Keep the leading term, divide by aa, and write μ=m/a\mu = m/a for the mass per unit length:

μ ∂2y∂t2=T ∂2y∂x2.\mu\,\frac{\partial^2 y}{\partial t^2} = T\,\frac{\partial^2 y}{\partial x^2}.

Module 07 already knew the answer to the speed. Its dispersion relation ω(k)=2ks/m ∣sin⁡(ka/2)∣\omega(k) = 2\sqrt{k_s/m}\,|\sin(ka/2)| is a straight line at small kaka, with slope aks/m=(T/a) a2/m=T/μa\sqrt{k_s/m} = \sqrt{(T/a)\,a^2/m} = \sqrt{T/\mu}. The discarded a4yxxxx/12a^4 y_{xxxx}/12 is exactly what bends that line over at larger kk: expanding the sine to the next order gives ω2≈(T/μ) k2(1−(ka)2/12)\omega^2 \approx (T/\mu)\,k^2\left(1 - (ka)^2/12\right), the same twelve.

Route (b): Newton for a piece of string

Forget beads. Take a short piece of a continuous string, between xx and x+dxx + \mathrm{d}x, and list the forces on it. At each end the rest of the string pulls along its own direction with tension TT. If the string is tilted at angle θ(x)\theta(x) at the left end and θ(x+dx)\theta(x + \mathrm{d}x) at the right, the vertical parts of the two pulls are −Tsin⁡θ(x)-T\sin\theta(x) and +Tsin⁡θ(x+dx)+T\sin\theta(x + \mathrm{d}x), and they cancel only if the string is straight.

For small slopes, sin⁡θ≈tan⁡θ=yx\sin\theta \approx \tan\theta = y_x. The net vertical force is then T[yx(x+dx)−yx(x)]=T yxx dxT\left[y_x(x + \mathrm{d}x) - y_x(x)\right] = T\,y_{xx}\,\mathrm{d}x, the piece has mass μ dx\mu\,\mathrm{d}x, and Newton’s second law reads

μ dx  ytt=T yxx dx⟹μ ytt=T yxx.\mu\,\mathrm{d}x\;y_{tt} = T\,y_{xx}\,\mathrm{d}x \qquad\Longrightarrow\qquad \mu\,y_{tt} = T\,y_{xx}.

Two routes meeting at one equation is the lesson. The wave equation is not about beads and it is not about strings: it is about any medium whose pieces are pulled back toward the line by their neighbours, in proportion to how far out of line they are. Write the speed as

  v=Tμ  \boxed{\;v = \sqrt{\frac{T}{\mu}}\;}

and the equation takes the form every later part of the course will recognise:

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

D’Alembert’s solution: every solution is two travelling shapes

Try y=f(x−vt)y = f(x - vt) for any twice-differentiable function ff. By the chain rule, each time derivative brings down a factor −v-v and each space derivative a factor 1:

ytt=v2f′′(x−vt),yxx=f′′(x−vt),y_{tt} = v^2 f''(x - vt), \qquad y_{xx} = f''(x - vt),

so ytt=v2yxxy_{tt} = v^2 y_{xx}, whatever ff is. The graph of f(x−vt)f(x - vt) is the graph of ff shifted right by vtvt: a shape moving toward +x+x at speed vv, unchanged. By the same argument g(x+vt)g(x + vt) is a shape moving toward −x-x. The remarkable thing is that there is nothing else.

Read what the theorem leaves out. The speed vv is in the equation; the shapes ff and gg are not. The medium chooses the speed, and the hand chooses only the shape. A taller pulse is the same solution multiplied by a constant; a sharper one is a different ff; both travel at T/μ\sqrt{T/\mu}. That is prediction 1 — neither arrives first — and prediction 3: doubling the tension multiplies vv by 2\sqrt 2, so the crossing time falls to 1/21/\sqrt 2, about 71%, and not to half.

The initial-value problem: plucks and strikes

A real string starts with some shape y0(x)y_0(x) and some velocity w0(x)w_0(x). Which ff and gg do those select? At t=0t = 0,

f(x)+g(x)=y0(x),−v f′(x)+v g′(x)=w0(x).f(x) + g(x) = y_0(x), \qquad -v\,f'(x) + v\,g'(x) = w_0(x).

Integrate the second equation, g−f=1v∫0xw0(s) dsg - f = \frac{1}{v}\int_0^x w_0(s)\,\mathrm{d}s up to a constant that cancels, and solve the pair:

  y(x,t)=y0(x−vt)+y0(x+vt)2+12v∫x−vtx+vtw0(s) ds  \boxed{\; y(x,t) = \frac{y_0(x - vt) + y_0(x + vt)}{2} + \frac{1}{2v}\int_{x - vt}^{x + vt} w_0(s)\,\mathrm{d}s \;}

A pluck has a shape and no velocity. The integral vanishes, and the string becomes two copies of the starting shape, each half the height, running apart. It must split — a single copy moving one way would need a velocity from the start, and a string held still has none, so neither direction is preferred and each gets half. That is prediction 4.

A strike has a velocity and no shape: a hammer hitting a piano string, a rectangle of speed ww over a width 2ℓ2\ell. Now only the integral survives. At a given point it counts how much struck string lies within a distance vtvt, so the string rises into a plateau that grows at speed ww until t=ℓ/vt = \ell/v and then holds at height wℓ/vw\ell/v, its edges running outward at vv. The string is left permanently displaced — nothing pulls it back, because moving a whole straight stretch sideways stretches nothing.

Sinusoidal waves, and ω=vk\omega = vk

The course’s travelling wave is

y(x,t)=Re⁡ ⁣[A ei(kx−ωt)]=∣A∣cos⁡(kx−ωt+arg⁡A).y(x,t) = \Real\!\left[A\,e^{\ii(kx - \omega t)}\right] = |A|\cos(kx - \omega t + \arg A).

Factor out kk: kx−ωt=k (x−(ω/k) t)kx - \omega t = k\,(x - (\omega/k)\,t), so this is f(x−vt)f(x - vt) with v=ω/kv = \omega/k. It solves the wave equation exactly when

ω=v k,\omega = v\,k,

the straight-line dispersion relation module 07 found at the bottom of the chain’s band. Every wavelength travels at the same speed: that is what it means for the ideal string to be non-dispersive, and it is why a pulse — a superposition of many wavelengths — keeps its shape. In everyday units, v=ω/k=fλv = \omega/k = f\lambda.

What travels, and what does not

Stand at one point, x0x_0, and watch a right-moving pulse go by. The displacement there is y(x0,t)=f(x0−vt)y(x_0, t) = f(x_0 - vt): as tt runs, the point reads off the pulse’s shape backwards in time, rising as the front arrives and falling as the back leaves. When the pulse has gone, ff has returned to zero, and so has the point. That is prediction 2: the speck ends exactly where it started.

What travelled was the pattern — the fact of being displaced, handed from each piece of string to the next — and, as module 09 shows, the energy that goes with it. The pieces themselves move only sideways, and at a speed with nothing to do with vv:

yt=−v f′(x−vt)=−v yx.y_t = -v\,f'(x - vt) = -v\,y_x .

The transverse velocity is vv times the slope, and since the slope is small, the string moves far more slowly than the wave. In the laboratory’s pulse, the speck’s fastest is 1.14 m/s while the pulse travels at 20 m/s.

Two honesty notes. The ideal string has no motion along its own length at all, by assumption, so the vertical trail in the animation is partly built in. A real string’s pieces do move slightly along it, by an amount second order in the slope — and they return too. The claim that survives is the one that matters: after the pulse, nothing is anywhere else.

How the computer solves it: the chain, rebuilt

To integrate the wave equation numerically, sample the string at points xi=i Δxx_i = i\,\Delta x and times tn=n Δtt_n = n\,\Delta t, and replace each second derivative by its centred difference:

yin+1−2yin+yin−1Δt2=v2 yi+1n−2yin+yi−1nΔx2.\frac{y_i^{n+1} - 2y_i^n + y_i^{n-1}}{\Delta t^2} = v^2\,\frac{y_{i+1}^n - 2y_i^n + y_{i-1}^n}{\Delta x^2}.

Solved for the future, this is the leapfrog scheme,

yin+1=2yin−yin−1+S2(yi+1n−2yin+yi−1n),S=v ΔtΔx,y_i^{n+1} = 2y_i^n - y_i^{n-1} + S^2\left(y_{i+1}^n - 2y_i^n + y_{i-1}^n\right), \qquad S = \frac{v\,\Delta t}{\Delta x},

where SS is the Courant number. Now look at the right-hand side of the difference equation before dividing: it is μ Δx  y¨i=(T/Δx)(yi+1−2yi+yi−1)\mu\,\Delta x\;\ddot y_i = (T/\Delta x)\left(y_{i+1} - 2y_i + y_{i-1}\right). That is Newton’s law for a mass μ Δx\mu\,\Delta x on springs of stiffness T/ΔxT/\Delta x — route (a)'s chain, with the beads a grid spacing apart. The computer solves the continuum equation by quietly rebuilding the chain it came from. Discretisation runs the continuum limit backwards.

One condition makes the scheme trustworthy. In one time step the update at point ii consults only points i−1i-1, ii and i+1i+1, so information on the grid moves at most one spacing per step. The true solution at xix_i depends on everything within v Δtv\,\Delta t of it. If v Δt>Δxv\,\Delta t > \Delta x, the solution depends on points the scheme never looked at, and no arrangement of numbers can get it right. The Courant–Friedrichs–Lewy condition is

  S=v ΔtΔx≤1  \boxed{\; S = \frac{v\,\Delta t}{\Delta x} \le 1 \;}

and violating it is not a small inaccuracy. The next section shows what it is.

Verify computationally

Each check below is also a test in the project’s suite, so these claims cannot silently rot.

1. The solver against d’Alembert. A Gaussian pluck on a 4 m string is integrated at a fixed Courant number S=0.5S = 0.5 and compared, at every point, with the exact solution. Halving the grid spacing — and with it the step — reduces the L2L^2 error by factors of 3.996, 4.002, 4.001 and 4.000, and the fitted exponent is -2.000: the scheme is second order, as the centred differences promise. This convergence test is run before any animation on this page is rendered.

2. The stencil is the chain. simulate_string is handed a 201-point string, and coupled.simulate_coupled — module 07’s integrator, which knows nothing about grids — is handed the chain of masses μ Δx\mu\,\Delta x on springs T/ΔxT/\Delta x. Started identically, they agree for 2000 steps to about 1×10−141\times 10^{-14} of the largest displacement. The closing claim of the derivation is not an analogy.

3. The magic step. At S=1S = 1 exactly, the stencil simplifies to yin+1=yi+1n+yi−1n−yin−1y_i^{n+1} = y_{i+1}^n + y_{i-1}^n - y_i^{n-1}, which moves any travelling shape by exactly one grid spacing per step.

4. Past the limit. The pluck is run at S=1.01S = 1.01.

5. Photogates, and what they measure. Two detectors record the string where they sit, and the pulse’s arrival at each is timed by the centroid of its record. With the time step fixed for the fastest string, tension is swept over a decade: the fitted exponent of vv against TT is 0.5000000, and against μ\mu it is -0.5000000, every speed within 3×10−93\times 10^{-9} of T/μ\sqrt{T/\mu}. Nine pulses of three heights and three widths on one string arrive at the same speed to 10-7 — the falsifier for “shaking harder makes it faster”, run nine times.

Timing the peak of each record instead reads slow, by the relative amount (1−S2)(Δx/σ)2/4(1 - S^2)(\Delta x/\sigma)^2/4 for a Gaussian of width σ\sigma — measured to within 0.4% of that formula at S=0.25S = 0.25, 0.5 and 0.75, and exactly vv at S=1S = 1. This is grid dispersion: on the grid, short wavelengths travel slightly slower than long ones, and the peak of a pulse drifts back. The centroid is immune, because it responds only to the dispersion relation’s slope at k=0k = 0, where the grid is exact. The laboratory’s measurement part turns the same distinction into an error bar.

6. Energy. Over sixteen transits between two fixed ends, the solver’s total energy wobbles by 4.7×10−44.7\times 10^{-4} of itself at S=0.5S = 0.5 and does not drift; halve the step and the wobble falls fourfold. What that energy is, and where on the string it lives, is module 09.

Transfer the idea

Check your understanding

  1. Two pulses are sent along the same stretched rope, one after the other. The second is made by flicking the end twice as hard, so it is twice as tall, and twice as fast, so it is half as wide. How does its speed along the rope compare with the first pulse’s?

    A. The same. The rope’s tension and mass per length set the speed; the flick sets only the shape. B. Faster. The taller, sharper pulse carries more energy and so outruns the first. C. Slower. A sharper pulse stretches the rope more, and the extra stretch has to be pulled back. D. Faster, by a factor of two, since the hand moved twice as fast.

    Check your answer

    Correct answer: A — The same. The rope’s tension and mass per length set the speed; the flick sets only the shape.

    • A. Right. The wave equation mu y_tt = T y_xx contains T and mu and nothing else, so every solution travels at v = sqrt(T/mu) whatever shape it has. Height cannot matter because the equation is linear: a taller pulse is the same motion scaled. Width cannot matter because d’Alembert’s solution f(x - vt) moves any f at all, sharp or broad. Measured on the simulated string, nine pulses of three heights and three widths arrive at the same speed to one part in ten million.

    • B. It does carry more energy, and that energy arrives sooner only because more of it is sent, not because it travels faster. Energy and speed are separate questions here: the speed is fixed by the medium, and module 09 shows that the energy then rides along at exactly that same speed. Harder flicks change what arrives, never when.

    • C. The extra stretch is real, but it is second order in the slope, and the model that gives v = sqrt(T/mu) has already thrown it away by assuming the slope is small. Within that model the tension is the same everywhere and so is the speed. A pulse steep enough for the stretch to matter is one the ideal string no longer describes.

    • D. The hand’s speed sets how fast each piece of rope moves up and down — the transverse velocity — not how fast the disturbance moves along. The two are independent: a simulated pulse on a 20 m/s string moved its pieces at 1.1 m/s. Speed up the hand and the pieces move faster sideways while the pulse travels at exactly the same 20 m/s.

  2. A small speck of dust rests on a long horizontal string. A single hump-shaped pulse travels along the string, passes the speck, and continues on. Where is the speck once the pulse has gone?

    A. Exactly where it started. It rose and fell as the pulse passed, and nothing carried it along. B. A little way along, in the direction the pulse was travelling. C. Raised slightly, since the pulse lifted it and nothing pushed it back down. D. Carried along with the pulse all the way to the end of the string.

    Check your answer

    Correct answer: A — Exactly where it started. It rose and fell as the pulse passed, and nothing carried it along.

    • A. Right. At the speck’s position the displacement is y = f(x0 - vt): it follows the shape of the pulse in time, rising and falling, and returns to f = 0 once the pulse has gone. The pulse is a pattern handed from each piece of string to the next, and the pieces stay home. In the simulation the speck rose 10 mm and finished within a millionth of that of zero.

    • B. This is the picture to give up: that a wave is stuff moving. The speck is attached to one piece of string, and that piece is pulled up by its neighbour on one side and back down by its neighbour on the other. Nothing in either pull points along the string, and the ideal string has no along-the-string motion at all. What travels is the shape — the same way a stadium wave travels round the stadium while every fan keeps their seat.

    • C. Something did push it back down: the back half of the pulse. As the trailing edge passes, the string’s slope reverses and its neighbours pull it toward the line. A string left permanently displaced does exist — a strike leaves a plateau — but that needs a starting velocity, and a pulse that simply passes by delivers none net.

    • D. If the pulse carried the string with it, a pulse sent down a rope would pile rope up at the far wall, and the rope would be shorter after every flick. What reaches the wall is a disturbance and its energy. The rope stays where it is.

  3. A long taut string is pulled into a triangle 12 mm tall at its middle, held still, and released. Once the motion has had time to separate, what does the string look like?

    A. Two triangles, each 6 mm tall, travelling away from each other at the wave speed. B. One 12 mm triangle, travelling in one direction at the wave speed. C. A 12 mm triangle that stays in the middle and oscillates up and down in place. D. Two 12 mm triangles, travelling away from each other.

    Check your answer

    Correct answer: A — Two triangles, each 6 mm tall, travelling away from each other at the wave speed.

    • A. Right. d’Alembert’s solution for a shape released from rest is y = [y0(x - vt) + y0(x + vt)]/2: half the shape running right, half running left. At t = 0 the two halves lie on top of each other and add up to the original. It must split, because a string released from rest has no velocity to prefer either direction, and it must split evenly for the same reason.

    • B. A single right-moving triangle needs y_t = -v y_x from the very first instant: the front of the triangle already rising, the back already falling. A string held still and let go has y_t = 0 everywhere, so it cannot be a single travelling shape. Starting velocity picks the direction; with none, both directions get half.

    • C. That is what a single mass on a spring would do, and it is the right picture for the whole string only when both ends are close enough to reflect the halves straight back — standing waves, module 11. On a long string the two halves simply leave.

    • D. The direction is right and the height is not. Two full-height triangles would contain twice the displacement the string started with, and the equation is linear: at t = 0 the two travelling pieces must add up to exactly the original shape, so each is half.

  4. A rope 12 m long with a total mass of 0.60 kg is held under a tension of 80 N. How long does a pulse take to travel from one end to the other, in seconds?

    Check your answer

    Correct answer: 0.3 (± 0.01)

    The mass per unit length is mu = 0.60 kg / 12 m = 0.050 kg/m, so v = sqrt(T/mu) = sqrt(80 / 0.050) = sqrt(1600) = 40 m/s, and the crossing takes 12 m / 40 m/s = 0.30 s. The total mass enters only through mu: double the rope’s length at the same mu and the speed is unchanged while the trip takes twice as long. Check the units as you go — N/(kg/m) is (kg m/s^2)(m/kg) = m^2/s^2, whose square root is a speed.

  5. A string with tension 50 N and linear density 5.0 g/m is simulated with the leapfrog scheme on a grid of spacing 2.0 mm. What is the largest time step, in microseconds, for which the scheme is stable?

    Check your answer

    Correct answer: 20.0 (± 0.5)

    First the wave speed, in SI units: mu = 5.0 g/m = 0.0050 kg/m, so v = sqrt(50 / 0.0050) = 100 m/s. The Courant condition S = v dt / dx <= 1 then gives dt <= dx / v = 0.0020 m / 100 m/s = 2.0e-5 s = 20 microseconds. Physically: in one step, nothing may travel further than one grid spacing, because each point is updated only from its immediate neighbours. Run at 1% over this and the shortest wave the grid holds grows by a factor of 1.33 every step, from rounding error, until it swamps everything.

  6. Two snapshots of a string taken 0.10 s apart show the same hump, unchanged in shape, whose peak has moved from x = 3.0 m to x = 2.4 m. Which description fits?

    A. y = g(x + vt) with v = 6.0 m/s — a left-mover. B. y = f(x - vt) with v = 6.0 m/s — a right-mover. C. y = f(x - vt) with v = -6.0 m/s. D. y = g(x + vt) with v = 0.6 m/s.

    Check your answer

    Correct answer: A — y = g(x + vt) with v = 6.0 m/s — a left-mover.

    • A. Right. The peak moved 0.6 m toward -x in 0.10 s, so the pattern travels at 6.0 m/s in the -x direction. A function of x + vt keeps its value when x decreases as t increases, which is exactly that motion: the peak sits where x + vt is constant. With v positive, the sign inside the argument carries the direction and v carries only the speed.

    • B. A function of x - vt keeps its value where x - vt is constant, so its peak moves to larger x as t grows. This peak moved to smaller x. The sign inside the argument is the direction; get it backwards and every reflection problem in module 10 comes out upside down.

    • C. Algebraically that is the same function as g(x + vt) with v = 6.0 m/s, so this is not wrong so much as a bookkeeping hazard. The course keeps v = sqrt(T/mu) positive, as a property of the medium, and writes the direction into the argument. A negative “speed” means a quantity that is sometimes a speed and sometimes not.

    • D. The direction is right and the speed is off by the time interval. Speed is distance over time: 0.6 m in 0.10 s is 6.0 m/s. A distance of 0.6 m would have taken a whole second at 0.6 m/s.

  7. The wave equation d^2y/dt^2 = v^2 d^2y/dx^2 can be reached from module 07’s chain of masses and from Newton’s law for a small piece of string. Describe both routes in words, say where they meet, and name the approximation both of them need.

    Check your answer

    The chain route starts from N beads of mass m, spacing a, on a thread under tension T. Each bead is pulled toward its neighbours, and for small slopes the transverse pull of each stretch of thread is T times the height difference over a: a spring of stiffness T/a. That gives module 07’s equation m y_n’’ = (T/a)(y_{n+1} - 2 y_n + y_{n-1}). Now let the beads crowd together: write y_n = y(na, t) and Taylor-expand the neighbours about x = na. The combination y_{n+1} - 2 y_n + y_{n-1} becomes a^2 times the second derivative in x, so y_tt = (T a/m) y_xx, and with mu = m/a that is y_tt = (T/mu) y_xx. The chain’s dispersion relation says the same thing independently: at small ka its slope is a sqrt(k_s/m), which is sqrt(T/mu).

The string route never mentions beads. Take a piece of string between x and x + dx. The tension pulls along the string at each end, and if the string is tilted differently at the two ends the vertical parts of those pulls do not cancel. For small slopes the sine of the tilt angle is the slope itself, so the net vertical force is T times the change in slope across the piece, T y_xx dx. Newton’s law for its mass mu dx gives mu y_tt = T y_xx. They meet at the same equation with the same speed, v = sqrt(T/mu). That agreement is the point: the wave equation is not about beads or about strings, but about any medium whose pieces are pulled back toward the line by their neighbours in proportion to how far out of line they are. Both routes need small slopes, |dy/dx| << 1. In the chain route it hides in the bead’s pull, where sin(theta) was replaced by the height difference over a; in the string route it replaces sin(theta) by the slope, lets the length of the piece be dx, and keeps the tension the same at both ends. A steep pulse breaks the model, not the mathematics.

Exam-style problems for this module — the ones worth doing with a pen — are collected in the problem set.

Explain it in your own words

Answer in a few sentences each. No number will save you.

  1. Explain what moves in a stadium wave, and what does not. Then explain what moves along a flicked rope, using the same words, and say what plays the part of each fan.

  2. Why can “how hard you flick” not appear in the speed of the pulse? Give an answer that uses the wave equation, and a second answer that does not use any equation at all.

  3. A string released from rest in a triangle splits into two triangles. A friend says one triangle travelling to the right would conserve energy just as well. Explain what is wrong with that, without mentioning energy.

  4. A simulation of a vibrating string blows up after 140 steps. Explain why this is a statement about the numerical method and not about the string, and say what single change would fix it.

Advanced: stability, the magic step, images, and what a first PDE is

Von Neumann’s argument. Where exactly does S≤1S \le 1 come from? Try a single Fourier mode on the grid, yin=gneikiΔxy_i^n = g^n e^{\ii k i \Delta x}, and ask how its amplitude gg changes per step. Substituting into the leapfrog stencil gives

g2−2[1−2S2sin⁡2 ⁣(kΔx2)]g+1=0.g^2 - 2\left[1 - 2S^2\sin^2\!\left(\frac{k\Delta x}{2}\right)\right] g + 1 = 0 .

The two roots multiply to 1. While the bracket lies between -1 and 1 they are a complex conjugate pair on the unit circle, ∣g∣=1|g| = 1, and the mode neither grows nor decays. Once the bracket falls below -1 they are real, one of them has ∣g∣>1|g| > 1, and the mode grows exponentially. The bracket stays in range for every kk if and only if S≤1S \le 1. The worst mode is the shortest the grid can hold, kΔx=πk\Delta x = \pi, where for S>1S > 1

∣g∣=(2S2−1)+(2S2−1)2−1,|g| = \left(2S^2 - 1\right) + \sqrt{\left(2S^2 - 1\right)^2 - 1} ,

1.3266 at S=1.01S = 1.01. That is the number the blow-up in the verification section matched — and since rounding error contains every kk in small amounts, there is always a seed for it to grow from.

Why S = 1 is exact. With ∣g∣=1|g| = 1, write g=e−iωΔtg = e^{-\ii\omega\Delta t} and the same equation becomes the grid’s dispersion relation,

sin⁡ ⁣(ωΔt2)=S sin⁡ ⁣(kΔx2).\sin\!\left(\frac{\omega\Delta t}{2}\right) = S\,\sin\!\left(\frac{k\Delta x}{2}\right).

At S=1S = 1 the two sines are equal, so ωΔt=kΔx\omega\Delta t = k\Delta x and ω=vk\omega = vk exactly — every wavelength the grid can hold travels at exactly vv, and there is no grid dispersion at all. For S<1S < 1, expanding both sines gives ω≈vk[1−(1−S2)(kΔx)2/24]\omega \approx vk\left[1 - (1 - S^2)(k\Delta x)^2/24\right]: short waves lag, which is the photogate bias measured above. The step that is exact and the step that is unstable are 1%1\% apart.

The half-line, by images. d’Alembert’s solution lives on an infinite line. Put a fixed end at x=0x = 0, where y(0,t)=0y(0, t) = 0 for all time, and it still works, by a trick. Extend the starting shape to negative xx as an odd function, y0(−x)=−y0(x)y_0(-x) = -y_0(x), and solve on the whole line. At x=0x = 0 the two halves are then always equal and opposite, so the displacement there is zero for ever — the boundary condition, satisfied by symmetry rather than imposed. A pulse approaching the wall meets its own upside-down image coming the other way, and after they pass through each other the image is the one that emerges: a fixed end returns a pulse inverted. Extend evenly instead and the slope at x=0x = 0 vanishes — a free end — which returns the pulse upright. Module 10 derives both results properly, as the two limits of one formula.

What makes a PDE “first”. The wave equation is the simplest hyperbolic equation, and its character is in d’Alembert’s variables: x−vtx - vt and x+vtx + vt are constant along lines in the (x,t)(x, t) plane called characteristics, and information moves only along them. The solution at (x,t)(x, t) depends on the starting data only in the interval [x−vt,x+vt][x - vt, x + vt] — its domain of dependence — and on nothing outside it. The CFL condition is the discrete echo of that fact: the grid’s own domain of dependence, one spacing per step, must contain the true one. The heat equation, yt=D yxxy_t = D\,y_{xx}, looks almost identical and behaves completely differently: it has no characteristics, a disturbance is felt everywhere instantly, and shapes smear instead of travelling. One derivative in time rather than two is the whole difference.