Oscillations and Resonance

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

Oscillations and Resonance

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.

Spring and Pendulum

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°.

Arrows
—
stopwatch: the last full swing
1.4050 s
formula: 2π√(m/k)
0.40000 J
total energy, ½mv2 + ½kx2
−4.00 N
restoring force, −kx
Change the amplitude and time it again: a bigger swing has further to go, but the spring pulls harder all the way, and the period comes out the same. More mass makes it slower; a stiffer spring makes it quicker.
restoring forcevelocityaccelerationfurthest out: velocity zero, force greatestpassing rest: fastest, no force
Arrows
Release from
—
stopwatch: the last full swing
2.8375 s
small-swing formula: 2π√(l/g)
2.8869 s
exact period at 30°
—
timed ÷ small-swing formula (exact: 1.0174)
2.6277 J
total energy
0.9936 m
length that swings in exactly 2 s here
From 30° the swing takes 1.017 times as long as the formula says. The formula is an approximation for small swings; the mass still makes no difference at any angle.
exact periodfirst correctionyour timingsrestoring forcevelocityacceleration along the arc

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.

Go deeper:Why a Sine Wave, and Why Almost Anything Swings

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).

Driven to Resonance

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.

—
swing of the mass, measured over the last cycle
99.8 mm
steady swing, from the formula
—
lag behind the support, measured
82.5°
lag, from the formula
1.007 Hz
natural frequency, √(k/m) ÷ 2π
10
quality factor Q = ω0/γ
10.01 × shake
tallest steady swing (100.1 mm): about Q
0.101 Hz
width of the peak at half power, f0/Q
—
average power from the push, last cycle
—
average power lost to friction, last cycle
124.35 mW
both, in the steady state (formula)
10.0 mm
where the support is now
Resonance. The mass runs 83° behind the support, close to a quarter of a cycle, so the push is in the direction the mass is already moving almost all the time (on the power chart the rose curve hardly dips below zero). Every cycle adds energy until friction removes it as fast as the motor supplies it.
support, and measured pointsthe massformulapush, k × support positionvelocity

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.

Resonance in the world, and two things that are not quite it

Tuning a radio
The tuner is an electrical circuit with a natural frequency. Signals from every station reach it at once; only the one near that frequency builds up a large response. A high Q means a narrow peak, and a sharper choice of station.
A wine glass and a singer
A good glass rings for seconds when tapped, so its Q is large. A loud note held at exactly the ringing pitch can build the vibration up until the glass breaks. It has been done on camera; it is hard, because the peak is so narrow.
MRI
In a strong magnet, the nuclei of hydrogen atoms have a natural frequency set by the field. A scanner drives them with radio waves at that frequency and listens to the response. The R in MRI is resonance.
Tacoma Narrows, 1940
Usually given as the classic example of resonance, and it was not one. No outside push kept time with the bridge. A steady wind fed energy into a twisting motion that the motion itself amplified: aeroelastic flutter, a self-excited instability.
The Millennium Bridge, 2000
London’s footbridge swayed sideways on its opening day. Walkers on a swaying deck adjust their steps to keep their balance, and the sideways pushes of a large crowd doing so fed the sway and made it grow: a feedback between the crowd and the bridge. Dampers were added and it reopened in 2002.
Go deeper:The Resonance Curve and the Meaning of Q

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.

Two Pendulums Talking

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.

—
“together” mode, timed
0.4984 Hz
formula: √(g/l) ÷ 2π
—
“mirror” mode, timed
0.5561 Hz
formula: √(g/l + 2k/m) ÷ 2π
—
there-and-back time of the energy, from the two timed modes
17.35 s
formula: 2π/(ω2 − ω1)
0.0%
largest share the resting pendulum has taken so far
100.0%
predicted largest share
220.133 mJ
total energy
Pulling one aside starts both modes at once, in equal amounts (the lower two charts). They run at slightly different frequencies, so they drift out of step and back. When they are in step the motions add up on pendulum 1 and cancel on pendulum 2; half a beat later it is the other way round. That is all the sloshing is.
pendulum 1pendulum 2springforce of the springvelocity“together” mode“mirror” mode

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.

Go deeper:Normal Modes

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.

Key Takeaways

  • A force that points back to rest and grows in proportion to the displacement gives a sine wave, with a period, 2π√(m/k) for a spring, that does not depend on the amplitude.
  • A pendulum’s period, 2π√(l/g), ignores its mass, and ignores its amplitude only while the swing is small.
  • Driven at its natural frequency, an oscillator lags by a quarter cycle and builds up to about Q times the drive; light damping means a tall, narrow peak.
  • Coupled oscillators have normal modes, motions at a single frequency, and everything else they do is those modes added together.

Spot a mistake or have an idea?

Search