Waves

Resonance

When a system is driven at its natural frequency, amplitude grows dramatically

Resonance occurs when a system is driven at its natural frequency — energy efficiently transfers, amplitude grows, sometimes dramatically. Pushing a swing at the right rhythm makes it go higher; opera singers shatter glass at its resonant frequency; radio receivers tune to specific stations. Bridges have collapsed (Tacoma Narrows) and buildings have failed (Mexico City 1985) due to resonance with environmental forcing.

  • ConditionDriving frequency = natural frequency
  • Amplitude growthLimited only by damping (or until system breaks)
  • Quality factor QQ = ω₀/Δω; high Q = sharp resonance
  • BandwidthΔω around resonance where amplitude > ½ peak
  • Famous failuresTacoma Narrows (1940), millennium bridge (2000)
  • Useful applicationsTuning radios, MRI, microwaves, instruments

Interactive visualization

Press play, or step through manually. The visualization is yours to drive — try it before reading on.

Open visualization fullscreen ↗

Watch the 60-second explainer

A condensed visual walkthrough — narrated, captioned, under a minute.

The phenomenon

Every oscillator has a natural frequency ω₀ at which it likes to oscillate (= √(k/m) for spring-mass; √(g/L) for pendulum; etc.).

If you apply a periodic driving force F(t) = F₀·cos(ωt), the system oscillates at the DRIVING frequency ω, not the natural one. But the steady-state amplitude depends on how close ω is to ω₀:

Driving frequency vs ω₀Steady-state behavior
ω << ω₀Oscillation in phase with force; small amplitude
ω = ω₀ (resonance)90° phase lag; MAXIMUM amplitude (limited by damping)
ω >> ω₀Oscillation 180° out of phase; small amplitude

The amplitude vs frequency curve has a peak at resonance, with width inversely related to damping.

Quality factor Q

Q measures how "sharp" a resonance is:

Q = ω₀ / Δω = m·ω₀ / b

where b is damping coefficient and Δω is the bandwidth (width where amplitude = ½ peak).

SystemApproximate Q
Car suspension~5
Tuning fork~1000
Pendulum (vacuum)~100,000
Quartz crystal oscillator~10⁴-10⁶
Atomic clock (Cs)~10⁹
LIGO (gravitational wave detector)~10⁶
Helium superfluid~10¹¹

Higher Q = narrower resonance, more selective, but slower energy decay.

Real-world resonance

SystemResonance role
Wine glass shatters at right pitchSinger matches glass's natural frequency
Tacoma Narrows Bridge collapseWind vortex shedding matched torsional natural frequency
Millennium Bridge swayingPedestrian footstep frequency synced with lateral mode
Mexico City earthquake (1985)Soft-soil shock wave frequency matched buildings' natural frequencies → many failed
Tuning forksDesigned for specific frequencies; small Q
Musical instrumentsResonance amplifies certain harmonics → distinctive timbre
Microwave ovensDriver at 2.45 GHz matches water's molecular resonance (loosely)
Atomic spectroscopyAtoms absorb only at specific frequencies (resonance with electronic transitions)
LIGO interferometerMirror suspensions tuned to high Q for sensitivity

JavaScript — resonance simulation

// Driven damped harmonic oscillator
function drivenOscillator(omega_0, gamma, omega_drive, F_0, m, t_max = 50, dt = 0.001) {
  let x = 0, v = 0;
  const trajectory = [];
  for (let t = 0; t < t_max; t += dt) {
    const F = F_0 * Math.cos(omega_drive * t);
    const a = (F - 2 * gamma * m * v - omega_0 * omega_0 * m * x) / m;
    v += a * dt;
    x += v * dt;
    if (Math.round(t * 100) === t * 100) trajectory.push({ t, x, v });
  }
  return trajectory;
}

// Steady-state amplitude as function of driving frequency
function steadyStateAmplitude(omega_0, gamma, omega_drive, F_0, m) {
  // A = F_0 / (m · √((ω₀² - ω²)² + (2γω)²))
  const denominator = m * Math.sqrt(
    Math.pow(omega_0*omega_0 - omega_drive*omega_drive, 2) +
    Math.pow(2 * gamma * omega_drive, 2)
  );
  return F_0 / denominator;
}

// Q factor
function qualityFactor(omega_0, gamma) {
  return omega_0 / (2 * gamma);
}

// Sweep driving frequency, find peak
const omega_0 = 10;     // natural freq
const gamma = 0.5;      // damping
const F_0 = 1, m = 1;

const responseCurve = [];
for (let omega = 1; omega <= 20; omega += 0.1) {
  responseCurve.push({
    omega,
    A: steadyStateAmplitude(omega_0, gamma, omega, F_0, m)
  });
}

const peak = responseCurve.reduce((a, b) => a.A > b.A ? a : b);
console.log(`Peak at ω = ${peak.omega.toFixed(1)} (vs ω₀ = ${omega_0})`);
console.log(`Q ≈ ${qualityFactor(omega_0, gamma).toFixed(1)}`);

// Tuned circuit: resonant frequency f = 1/(2π√(LC))
function lcResonantFrequency(L, C) {
  return 1 / (2 * Math.PI * Math.sqrt(L * C));
}

console.log(`L = 100 µH, C = 300 pF: f = ${(lcResonantFrequency(100e-6, 300e-12) / 1e6).toFixed(2)} MHz`);
// ~919 kHz — typical AM radio range

// Wine glass resonance — natural frequency
function wineGlassFrequency(thickness, radius, height, density = 2500, E = 70e9) {
  // Approximate; depends on mode
  // Lowest mode ~ √(E/ρ) · t / (R²)
  const v_sound = Math.sqrt(E / density);
  return v_sound * thickness / (4 * Math.PI * radius * height);
}

console.log(`Wine glass (1mm, 4cm radius, 12cm tall): ${wineGlassFrequency(0.001, 0.04, 0.12).toFixed(0)} Hz`);
// ~340 Hz (~ E4)

// Pendulum resonance: try driving at various frequencies
function pendulumResonance(L, drive_freq, drive_amplitude_angle, gamma = 0.05, t_max = 30, dt = 0.01) {
  const g = 9.81;
  const omega_0 = Math.sqrt(g / L);
  const omega_drive = 2 * Math.PI * drive_freq;
  let theta = 0, omega = 0;
  let max_amplitude = 0;
  for (let t = 0; t < t_max; t += dt) {
    const driving = drive_amplitude_angle * Math.cos(omega_drive * t);
    const alpha = -(g/L) * Math.sin(theta) - 2 * gamma * omega + driving;
    omega += alpha * dt;
    theta += omega * dt;
    if (Math.abs(theta) > max_amplitude) max_amplitude = Math.abs(theta);
  }
  return { omega_0, omega_drive, max_amplitude };
}

// Pendulum natural f = √(g/L)/(2π); for L = 1m, f ≈ 0.498 Hz
console.log(pendulumResonance(1, 0.498, 0.01));  // Resonance — large amplitude
console.log(pendulumResonance(1, 1.0, 0.01));     // Off resonance — small amplitude

Where resonance matters

  • Engineering — avoiding catastrophic resonance. Buildings, bridges, airplanes, ships designed to avoid resonance with environmental forces.
  • Engineering — exploiting resonance. MRI, radio, microwaves, atomic clocks all rely on tuned resonance.
  • Music. Instruments designed for specific resonant frequencies. Singers, pipes, strings, drums all use natural frequencies.
  • Electronics. LC resonant circuits for tuning, filtering, frequency synthesis.
  • Atomic physics. Atomic clocks lock to electron transition frequencies; cesium clock at 9.192 GHz defines the second.
  • Astronomy. Stellar oscillations (helioseismology) reveal interior structure; resonant orbits of planets/moons.
  • Medical imaging. Magnetic Resonance Imaging — proton resonance in magnetic field.

Common mistakes

  • Confusing natural and driving frequency. Natural is system property. Driving is external. Resonance is when they match.
  • Forgetting damping always present. Real systems have damping — amplitude doesn't grow infinite even at exact resonance. Q factor measures sharpness; bandwidth is finite.
  • Treating resonance as inevitable failure. Many systems intentionally USE resonance (radios, MRI). Failure occurs when resonance is unintended and amplitude exceeds material limits.
  • Ignoring multiple modes. Real structures have many natural frequencies (modes). Need to consider all relevant ones — primary mode, secondary, etc.
  • Conflating resonance with sympathetic vibration. Resonance — driving force directly drives the oscillator. Sympathetic vibration — energy transfers between coupled oscillators (similar effect, related but different).
  • Forgetting transient vs steady-state. Initial transient response is different from steady-state. At resonance, system takes time to build up amplitude (~Q cycles).

Frequently asked questions

Why does resonance amplify so much?

Driving force adds energy in PHASE with the oscillator's motion — every push reinforces. Off-resonance, some pushes oppose motion, canceling. At exact resonance, all energy adds. Without damping, amplitude grows unbounded. With damping (real systems), amplitude reaches a maximum where energy added per cycle equals energy dissipated.

What's the quality factor Q?

Q = ω₀ / Δω, where ω₀ is resonant frequency and Δω is the bandwidth (width at half-power). High Q = sharp, narrow resonance peak (e.g., Q = 10,000 for crystal oscillator). Low Q = broad, less peaked (Q ~ 5 for car suspension). Pendulums in vacuum: Q ~ 100,000.

How did Tacoma Narrows Bridge fail?

Wind created vortices that shed at frequency near the bridge's torsional resonance. Wind energy transferred to the bridge structure efficiently, twisting it more violently than designed for. After several hours of oscillation, the bridge collapsed (1940). Modern bridges use active damping and are designed to avoid resonance with predictable wind patterns.

How do radios tune to stations?

An LC circuit (inductor + capacitor) has resonant frequency f = 1/(2π√(LC)). By varying L or C, you tune to different frequencies. Only the station broadcasting at the matched frequency drives significant current — everything else is filtered out. AM, FM, satellite all use this principle.

How do opera singers shatter glass?

Wine glass has a natural resonant frequency (~3000 Hz for typical glass). Singer matches this frequency precisely, sustains the note. Glass amplitude grows; eventually exceeds material's tensile limit → cracks form, glass shatters. Easier with thin crystal (lower damping). Frequency must be very precise — within a few Hz.

How does MRI use resonance?

Place body in strong magnetic field. Hydrogen nuclei (protons) precess at a specific frequency determined by field strength (Larmor frequency). RF pulses at this frequency drive proton precession (resonance). When pulse stops, protons relax, emitting RF — detected to create images. Frequency tuning identifies which atoms are present and where.

Can a person dancing sync up resonate a building?

Yes — Millennium Bridge in London (2000) had unexpected lateral oscillation when crowds walked across. People naturally walked in step with the swaying motion, amplifying it (positive feedback). Bridge had to be closed for two years for damper retrofitting. Now opened, but with damping that prevents the resonance from building.