Anything near a stable balance point swings like a spring. Time a pendulum, damp it, drive it at its own frequency and couple two together to find their normal modes
Pull almost anything a little way from where it rests and let go, and it swings back and forth with a rhythm of its own. Push it in time with that rhythm and a small effort builds into a large motion.
That is why a child can be swung high, and how a radio picks one station out of the air.
Drag the mass or the bob, let go, and time it. Change the amplitude, the mass, the stiffness, the length and the gravity one at a time and see which of them change the period; then release the pendulum from 150°.
Lengths in metres, times in seconds, forces in newtons, energies in joules. On the charts each curve is scaled to its own largest value, so compare their timing, not their heights. Idealised: no friction or air resistance, a spring with no mass that obeys Hooke’s law exactly, and a pendulum that is a point mass on a rigid rod with no mass (a string would go slack above 90°). Both are stepped with the velocity Verlet method at 960 steps a second, which holds the energy steady to four or five digits without any correction. An arrow that would run off the picture is cut short. History: a pendulum that beats seconds is 0.994 m long, and in 1791 the French Academy considered defining the metre that way before choosing a fraction of the Earth’s meridian instead.
A spring pulls back with a force proportional to how far it is stretched, F = −kx. That is Hooke’s law, and the minus sign says the force always points towards the rest position. Newton’s second law then gives
a = −(k/m) x
In calculus this says that the second derivative of x is −ω2 times x itself, with ω = √(k/m), and the functions with that property are sines and cosines: x = A cos ωt when released from rest at A. The velocity is −Aω sin ωt and the acceleration −Aω2 cos ωt, each a quarter of a cycle ahead of the one before. One cycle takes T = 2π/ω = 2π√(m/k), in which A does not appear. The reference circle is the same fact in a picture: a point circling at steady angular speed ω has a horizontal position A cos ωt, so its shadow is the mass. See also: Second-Order & Oscillators in Differential Equations.
For a pendulum the part of the weight along the arc is −mg sin θ, so the angular acceleration is −(g/l) sin θ, with the mass cancelled. For small angles in radians sin θ ≈ θ, and the equation becomes the spring’s with g/l in place of k/m: T0 = 2π√(l/g). At larger angles sin θ falls behind θ, the pull back is weaker than a spring’s would be, and the swing takes longer:
T = T0 (1 + θ02/16 + 11θ04/3072 + …)
The exact value is T0 divided by the arithmetic–geometric mean of 1 and cos(θ0/2): 1.18 T0 at 90°, 1.76 T0 at 150°, and without limit as θ0 approaches 180°. Galileo noticed that small swings of different sizes take nearly equal times. The story that he did so watching a lamp in Pisa cathedral comes from his pupil and biographer Vincenzo Viviani and is probably embellished. Christiaan Huygens built the first pendulum clock in 1656, and in 1659 found the curve along which the time really is the same for every amplitude. It is not a circle but a cycloid, the path of a point on the rim of a rolling wheel.
Why does so much else behave this way? Near any stable equilibrium the potential energy has a valley, and close to its bottom almost any smooth valley looks like a parabola. A parabola is the potential energy of a spring. So bridges, molecules, guitar strings and planets nudged from their orbits all oscillate, for small disturbances, like a mass on a spring. See also: Work and Energy (Reading the Hill).
Move the drive frequency through the natural frequency and watch the swing grow and shrink, then press Sweep to draw the whole curve. The other tabs let you pluck the mass and watch it die away, and push a swing in or out of time.
A 1 kg mass on a 40 N/m spring. “The push” is the extra spring force the moved support applies, k times the support’s displacement; friction is taken as proportional to speed. Simulated with fourth-order Runge–Kutta at 480 steps a second. A lime point appears once successive cycles agree to 0.3% and is refreshed every cycle after that; with light damping the last few per cent of the climb take a while, as the orange ring shows. The peak’s height is close to Q, and its width to f0/Q, only when the damping is light.
Add friction proportional to speed and move the support by s = D cos ωt. The equation of motion is
a = −ω02(x − s) − γv
Its solution has two parts. The transient is the oscillator’s own free motion, whose size falls as e−γt/2; it depends on how you started and is soon forgotten. What remains is the steady state, x = A cos(ωt − δ), at the frequency of the drive, not the oscillator’s own:
A = Dω02 / √((ω02 − ω2)2 + γ2ω2), tan δ = γω/(ω02 − ω2)
The lag δ climbs from 0 to 180°, and it is exactly 90° at ω = ω0 whatever the damping. A quarter cycle behind in position means in step in velocity, so there the push always acts along the motion, and the power absorbed is greatest. The amplitude peaks slightly lower, at √(ω02 − γ2/2), a difference too small to see when the damping is light.
One number, the quality factor Q = ω0/γ, describes the whole picture. When the damping is light it is the height of the resonance peak compared with the response to slow shaking; the natural frequency divided by the width of the peak at half power; the energy stored over the energy lost in each radian of the oscillation; and a measure of how long the thing rings, since the amplitude falls to 1/e after about Q/π oscillations. A peak can be tall and narrow or low and broad, but a system with a sharp peak always takes a long time to settle. With γ = 2ω0, or Q = ½, ringing stops altogether: this is critical damping, the quickest return with no overshoot.
Resonance is everywhere because oscillators are. The curve you swept is the same one, with the letters changed, for a radio’s tuning circuit, for an atom absorbing light and for the nuclei in an MRI scanner. And since any repeating push can be written as a sum of sines, knowing the response to each sine is enough to know the response to all of them. See also: Fourier Analysis, Second-Order & Oscillators.
Drag one pendulum aside, let go, and watch the other steal its motion and hand it back. Then start them together, start them opposite, and open the row of masses to see the same idea become a wave.
Two 1 kg bobs on rigid, massless rods; energies in millijoules. The equations are the small-swing ones (the restoring force is taken as proportional to the displacement), which is accurate to about 1% at these angles, and there is no friction. The “share” is the square of the resting pendulum’s largest swing over the square of the other’s starting swing. Stepped with velocity Verlet at 480 steps a second.
Let x1 and x2 be the sideways displacements of two equal bobs. Each is pulled towards its own rest position, and the spring pulls each towards the other:
a1 = −(g/l) x1 − (k/m)(x1 − x2), a2 = −(g/l) x2 − (k/m)(x2 − x1)
Neither equation can be solved without the other. But add them, and the spring disappears: x1 + x2 swings at ω1 = √(g/l). Subtract them, and x1 − x2 swings at ω2 = √(g/l + 2k/m). In these two combinations the pendulums do not influence each other at all. They are the normal modes, and every motion is a sum of them. In matrix language the accelerations are a symmetric matrix times the displacements; its eigenvectors are the shapes of the modes and its eigenvalues are −ω2. That works for any number of coupled oscillators: N of them have N modes. See also: Eigenvectors & Eigenvalues.
Two sines of slightly different frequency drift in and out of step, and their sum swells and fades once every 2π/(ω2 − ω1): these are beats, the same effect as the throb of two nearly matched tuning forks. Pulling aside one of two identical pendulums starts both modes with equal size, so half a beat later they cancel completely on that pendulum and all the energy has crossed. When the pendulums differ the modes are lopsided, the cancellation is never complete, and some of the energy stays at home.
In a row of N masses the modes are standing waves with 1, 2, … N humps, at frequencies 2√(k/m) sin(jπ/2(N + 1)). A travelling pulse is a sum of them. With more and more masses the row becomes a string, and oscillation becomes wave motion. See also: From Oscillators to Fields, Introduction to Waves. The atoms in a molecule vibrate in normal modes too, and infrared spectroscopy identifies molecules by the frequencies of those modes.
In 1665 Huygens, ill in bed, noticed that two pendulum clocks hung from a common beam always fell into step, swinging in opposite directions. That is synchronisation, and it is a different effect. It needs friction and a source of energy, here the clocks’ driving weights, and it settles to one rhythm and stays there. The pendulums in this demo have neither, and they go on trading energy for ever.
Spot a mistake or have an idea?