Home/Laboratories/Resonance Lab
Interactive experiment — complete Chapter 7 · Waves and Vibrations

Resonance Lab

Drive a swing at frequencies around f₀ and chart the amplitude peak — then add damping and watch it flatten.

Learn the physics first

Left to itself, a mass on a spring oscillates at its natural frequency f₀ = (1/2π)√(k/m) — for the default 1 kg on a 100 N/m spring that is about 1.59 Hz. Now drive it: push it back and forth with a small force F₀ cos(ωt) at any frequency you choose. Far from f₀ the pushes arrive out of step with the motion and the mass barely responds. But when the drive frequency matches f₀, every push arrives exactly in step and the amplitude climbs until the energy lost to damping balances the energy pumped in — that runaway response is resonance. A playground swing works exactly this way: small pumps delivered once per swing build a huge arc, while pushing at the wrong rate gets you nowhere.

Damping is the brake on the resonance. With light damping the response curve A(f) is a tall, narrow spike — the oscillator is a selective receiver, which is how a radio tunes one station and how a wine glass can be sung to pieces. With heavy damping the peak drops, broadens, and shifts slightly below f₀. A microwave oven drives water molecules at 2.45 GHz and the energetic response cooks your food; engineers add dampers to buildings and car suspensions precisely to kill resonant peaks.

Natural frequencyf₀ = (1/2π) √(k/m)
Steady amplitude when driven at fA = F₀ / √((k − mω²)² + (cω)²),  ω = 2πf
Resonance conditionf_drive ≈ f₀  (peak slightly below f₀ when damping is heavy)
Amplitude exactly at f₀ (light damping)A(f₀) = F₀/(c ω₀)

Model assumptions. The oscillator obeys m x″ + c x′ + k x = F₀ cos(ωt) with F₀ = 1 N, integrated numerically (RK4) in real time — the mass you see is the actual solution, transients included. The curve is the analytic steady state of the same equation, so the two should agree once the transient dies away (give it a few seconds after changing the drive). Note that famous "resonance disasters" like the Tacoma Narrows bridge involved aerodynamic self-excitation, not simple forced resonance.

Experiment

Ready

Amplitude vs drive frequency

theory curve, f₀ marker, live sweep trace

Controls

Live measurements

Natural frequency f₀
—
Drive frequency f
—
Amplitude (theory)
—
Amplitude (measured)
—
Phase lag φ
—
Damping regime
—

Drive force F₀ = 1 N throughout. The measured amplitude is taken from the live simulation; let it settle for a few seconds after a change, then compare it with the theory point on the curve.

Try this. With light damping (c = 0.5 N·s/m), enable auto-sweep and watch the mass erupt as the drive crosses f₀ — the mint trace climbs the spike. Then set c = 8 N·s/m and sweep again: the peak drops by more than a factor of ten and broadens, and its tip slides below f₀. That is what shock absorbers do to a car.

Predict before you check

Recommended settings: k = 100 N/m, m = 1.0 kg (the defaults). Predict the natural frequency f₀ = (1/2π)√(k/m) of this oscillator.

Hz

Understand

Experiment completion

Sweep through resonance with light and heavy damping, check the phase lag at f₀, then pass the quiz.

Where to go next