Exploring Mechanics / 8. Oscillations

8. Oscillations, Resonance, and Chaos

Nearly anything given a small nudge away from a stable resting point oscillates back and forth in exactly the same mathematical way.

Simple Harmonic Motion

Make a prediction first: a mass on a spring is pulled twice as far from its resting position before being released. Does it complete each full back-and-forth cycle twice as slowly, since it now has twice as far to travel?

x(t) = Acos(ωt + φ)   ·   ω = √(k/m)   ·   T = 2π/ω

A — amplitude: the maximum displacement from equilibrium
ω — angular frequency; T — period (time for one full cycle); φ — phase (where in the cycle it starts)
k — spring constant; m — mass
Restoring force: always points back toward equilibrium, and (for SHM specifically) grows in direct proportion to displacement: F = −kx

The answer to the prediction is no — and that's the single most surprising fact about simple harmonic motion. Amplitude A doesn't appear anywhere in the period formula T = 2π√(m/k). A bigger swing does have farther to travel, but it also picks up proportionally more restoring force and speed along the way, and those two effects exactly cancel.

For math enthusiasts: why F = −kx leads to a cosine solution

Newton's Second Law with a linear restoring force gives m(d²x/dt²) = −kx, or d²x/dt² = −(k/m)x. The function that keeps reproducing itself (times a negative constant) under differentiation twice is exactly sine or cosine, which is why x(t) = Acos(ωt + φ) solves the equation for ω = √(k/m) — you can check this by differentiating it twice and substituting back in.

Widget 1 — Spring-Mass Simulator

Change the mass or spring stiffness and watch the period change — but change only the amplitude, and the period stays exactly the same, confirming the prediction above. The two bars track kinetic and potential energy trading places, always summing to the same total.

Position, x(t)

t (s) x (m)
KE PE
Spring constant, k40 N/m
Mass, m1.0 kg
Amplitude, A0.15 m
Angular frequency, ω = √(k/m)6.32 rad/s
Period, T = 2π/ω0.99 s
Total energy, ½kA²0.45 J

Widget 2 — Phase-Space Plot: Velocity vs. Position

Instead of plotting position against time, plot velocity against position at the same instant. SHM always traces a perfect ellipse here — a single, elegant fingerprint of "restoring force proportional to displacement."

x v
Current position, x—
Current velocity, v—
For math enthusiasts: why phase space is exactly an ellipse

With x = Acos(ωt) and v = −Aωsin(ωt), then (x/A)² + (v/Aω)² = cos²(ωt) + sin²(ωt) = 1 — the equation of an ellipse with semi-axes A and Aω, for any amplitude or frequency at all. The system's entire future is completely captured by where its single dot currently sits on that curve.

Try it for real: rubber band and a weight

  1. Hang a weight from a rubber band or slinky and time 10 full bounces, twice — once with a small pull, once with a much bigger one. The times per bounce should come out nearly identical, matching the amplitude-independent period here.

Pendulums

Make a prediction first: a heavy bowling ball and a light tennis ball hang from identical strings of the same length. Swung gently, does one swing back and forth faster than the other?

T = 2π√(L/g)  (for small swing angles)

T — period; L — pendulum length; g — local gravitational acceleration
Small-angle approximation — valid for swings up to roughly 15–20°; the period formula drifts noticeably beyond that

Mass doesn't appear anywhere in the small-angle period formula — the answer to the prediction is no, they swing at the same rate, regardless of weight. That's the same mass-cancellation trick from free fall, and for the same underlying reason: a heavier bob feels proportionally more restoring force and proportionally more inertia resisting it, and the two cancel exactly.

Widget 1 — Pendulum Timer

Set a length and a planet's gravity, then use the on-screen swing count to check your own reaction-time-based timing against the exact formula.

Length, L1.0 m
Gravity, g9.8 m/s²
Period, T = 2π√(L/g)2.01 s
Full swings completed0

Widget 2 — When the Small-Angle Approximation Breaks Down

"Small angle" is doing real work in that formula. Push the release angle up toward 90° and watch the true period pull noticeably ahead of the constant-T approximation.

Release angle, θ₀15°
Small-angle period, T₀2.01 s
More accurate real period2.01 s
Error from using the simple formula0.03%
For math enthusiasts: the correction series, and physical vs. simple pendulums

The exact large-angle period is T = T₀(1 + θ₀²/16 + 11θ₀⁴/3072 + ⋯), with θ₀ in radians — a correction that grows with the square of the angle, which is why it's negligible for a small nudge but very much not for a wide swing. Separately, a real swinging object with size and shape (a "physical pendulum" — a swinging rod, a person on a swing) follows the same form with L replaced by I/(md), where I is its moment of inertia and d is the distance from the pivot to its center of mass — the "simple pendulum" (a point mass on a massless string) is the special case where all the mass already sits at that one distance.

Widget 3 — Small-Angle vs. Exact Pendulum

Release the exact (nonlinear) pendulum and the small-angle approximation side by side from a wide starting angle, and watch them fall out of sync — the two only stay locked together for genuinely small swings.

Try it for real: same length, different weight

  1. Tie a heavy washer and a light one to identical-length strings and swing them side by side with small swings — they should stay in sync the whole time, confirming mass doesn't affect the period.

Damping

Make a prediction first: a car's shock absorbers wear out and provide less resistance than they should. Does the car now bounce back to level faster after a bump, or slower?

ζ = c / (2√(mk))  — the damping ratio sorts every case into one of three regimes

ζ — damping ratio: ζ < 1 underdamped, ζ = 1 critically damped, ζ > 1 overdamped
c — damping coefficient (resistance strength); m — mass; k — spring constant

Counterintuitively, less damping doesn't mean a faster return to rest — it means the car overshoots level and oscillates before settling (underdamped). The fastest possible return without any overshoot at all is exactly ζ = 1 (critically damped) — piling on more damping than that (overdamped) actually slows the return back down again, just without any bounce.

Widget 1 — Damped-Oscillator Explorer

Slide the damping ratio through all three regimes and watch both the motion and the decay envelope change character.

t (s) x (relative)
Damping ratio, ζ1.00
Natural frequency, ωn = √(k/m)6.32 rad/s
RegimeCritically damped
For math enthusiasts: the three solution forms

Underdamped (ζ < 1): x(t) = Ae−ζωntcos(ωdt), with ωd = ωn√(1−ζ²) — an oscillation inside a decaying envelope. Critically damped (ζ = 1): x(t) = (A + Bt)e−ωnt — the fastest non-oscillating return. Overdamped (ζ > 1): a sum of two decaying exponentials, both slower than the critical case's — piling on damping trades oscillation for sluggishness.

Widget 2 — Car Suspension After a Bump

Same three regimes, now as an actual worn-vs-fresh shock absorber: watch what "less damping" really looks like on the road.

Shock conditionζ = 1.00
BehaviorReturns to level fastest, no bounce

Try it for real: press down on a car's bumper

  1. Push down firmly on a parked car's hood or bumper and let go. A car with healthy shocks settles in about one gentle dip; one with worn shocks bounces noticeably before settling — that's a real damping ratio dropping toward (or below) the underdamped regime.

Driven Oscillations

Make a prediction first: you push a playground swing at exactly its own natural back-and-forth rate versus at some random, mismatched rate. Does the timing of your pushes actually matter, as long as you're putting in the same effort?

Steady-state amplitude: A(ω) = F₀/m / √[(ωn²−ω²)² + (2ζωnω)²]

ω — the driving (pushing) frequency; ωn — the system's own natural frequency
F₀ — the strength of each push; δ — the phase lag between the push and the resulting motion

Timing matters enormously — that's the whole answer to the prediction. Push at nearly the natural frequency and even gentle pushes build up a large steady swing; push at a badly mismatched rate and you mostly fight the swing's own motion, getting a disappointing amplitude no matter how hard you push.

Widget 1 — Swing-Pushing Explorer

Slide the pushing rate away from the natural frequency (1.0× on the slider) and watch the steady swing amplitude collapse — along with the timing between your push and the swing's own motion drifting out of sync.

ω/ωₙ amplitude (relative)
Push rate, ω/ωn1.00×
Damping in the system, ζ0.15
Steady-state amplitude (relative)—
Phase lag, δ, between push and motion—
Timing description—
For math enthusiasts: the phase lag formula and its three landmarks

δ = atan[2ζωnω / (ωn² − ω²)]. Far below resonance (ω ≪ ωn), the motion follows the push almost instantly (δ ≈ 0). Far above resonance (ω ≫ ωn), the motion lags a full half-cycle behind (δ ≈ 180°) — you're effectively pushing against the swing more often than with it, which is exactly why the amplitude is small there too. Exactly at resonance, the lag is precisely 90°, the quarter-cycle timing that turns out to pump in energy most efficiently.

Try it for real: swing timing

  1. Push a playground swing at its own natural rate (matching its already-established rhythm) versus deliberately pushing too fast or too slow — the mismatched timing builds up almost no height even with equally hard pushes.

Resonance

Make a prediction first: soldiers marching in perfect step across a lightweight footbridge have, historically, occasionally caused the bridge to sway alarmingly or even fail — while the same soldiers walking normally (out of step) across it would not. What's different about marching in step?

Resonance: driving frequency ≈ natural frequency ⟹ amplitude peaks

Resonance — driving a system at (or very near) its own natural frequency, producing a dramatically larger steady-state response than any other driving frequency
Lower damping ⟹ a taller, narrower resonance peak; higher damping ⟹ a shorter, broader one

Marching in step means every footfall is a push delivered at the exact same frequency, over and over — the last tab's amplitude formula peaking right where driving frequency matches the bridge's own natural sway frequency. Normal out-of-step walking spreads footfalls across essentially random timing relative to the bridge's motion, which barely pumps in any energy at all.

Widget 1 — Resonance Curve Family

The same driving-frequency sweep from the last tab, now with multiple damping levels drawn together. Low damping doesn't just raise the peak — it makes the peak dangerously narrow, meaning even a small mismatch between driving and natural frequency still gives a huge response.

ζ = 0.05 ζ = 0.15 ζ = 0.4 ζ = 1.0 ω/ωₙ amplitude (relative)
Inspect damping level, ζ0.05
Peak amplitude (relative)10.01×
Frequency where the peak occurs, ωpeak/ωn0.995×
For math enthusiasts: why the peak sits slightly below ωₙ

Maximizing A(ω) with respect to ω gives the peak exactly at ωpeak = ωn√(1 − 2ζ²), slightly below the natural frequency itself, with peak height growing roughly as 1/(2ζ) for small ζ. As ζ → 0, the peak frequency creeps back toward exactly ωn and the peak height blows up without bound — an undamped system driven exactly at resonance has no steady-state amplitude limit at all.

Widget 2 — Why Engineers Fear Resonance

The Tacoma Narrows Bridge (1940) and the original Millennium Bridge's pedestrian-induced sway are the textbook cases: a structure's natural frequency happened to land inside a range that wind or footsteps could realistically drive it at.

natural, fₙ driving, f_d
Structure's natural frequency1.0 Hz
Driving frequency (footsteps, wind gusts, ...)1.0 Hz
Frequency mismatch0.0%
Risk assessment🔴 High — near-perfect resonance match

Try it for real: wine glass and your voice

  1. Tap a wine glass to hear its natural pitch, then try humming that exact same note near it — with the glass close to your mouth, you may feel it buzz distinctly more than at any other pitch you hum, a small-scale version of the same effect.

Coupled Oscillators and Nonlinear Motion

Make a prediction first: two double pendulums are released from angles that differ by less than a tenth of a degree — close enough to look identical to the eye. A minute later, are they still swinging in near-identical paths, or could they be doing something completely different from each other?

Two tuning forks at slightly different pitches, played together, produce a slow "wah-wah-wah" throb called beats — a simple, exactly-solvable stand-in for the same energy-sloshing idea behind two coupled pendulums trading swing amplitude back and forth. A double pendulum, meanwhile, is simple to describe and almost impossible to predict for long: it's chaotic.

Beat frequency — |f₁ − f₂|, the slow throbbing rate from combining two nearby frequencies
Normal modes — the special combined motions of a coupled system that do repeat cleanly, unlike a generic combination
Chaos — a deterministic system (no randomness anywhere in the equations) whose outcomes are still practically unpredictable because tiny input differences blow up over time

Widget 1 — Beats: Two Nearby Frequencies Combined

Bring the two frequencies close together and watch the combined wave's envelope throb slowly — that slow envelope rate is exactly the difference between the two frequencies, nothing more exotic than simple addition of two waves.

t (s) displacement
Frequency 1, f₁4.0 Hz
Frequency 2, f₂4.5 Hz
Beat frequency, |f₁ − f₂|0.5 Hz
Time between loud/quiet pulses2.00 s
For math enthusiasts: the trig identity behind beats

sin(2πf₁t) + sin(2πf₂t) = 2cos(2π (f₁−f₂)⁄₂t) sin(2π (f₁+f₂)⁄₂t). Read the right side as a fast oscillation at the average frequency, whose amplitude is itself slowly modulated by a cosine at half the frequency difference — since amplitude modulation doesn't care about sign, the perceived beat rate is the full difference |f₁ − f₂|.

Widget 2 — Double Pendulum: Sensitive Dependence on Initial Conditions

Two double pendulums, released a hair's breadth apart in starting angle. Watch how long they stay looking alike — and how total, unrecognizable the split becomes afterward. Nothing random is happening in the equations at all; the unpredictability is entirely built from the ordinary nonlinear physics compounding on itself.

Starting angle (both rods), θ₀100°
Initial gap between the two runs0.05°
Elapsed time0.0 s
Tip separation (blue vs. red)—
For math enthusiasts: why "chaotic" doesn't mean "random"

The double pendulum's equations of motion are completely deterministic — given exact initial conditions, the future is, in principle, exactly fixed. What makes it chaotic is that nearby starting points separate exponentially over time (roughly Δθ(t) ≈ Δθ₀eλt for a positive "Lyapunov exponent" λ), so any real-world uncertainty in your starting angle — no matter how tiny — eventually grows to swamp any prediction. It's the polar opposite of the orbit simulator from Section 6, where nearby starting speeds gave smoothly, predictably different (not wildly diverging) ellipses.

Widget 3 — Coupled Pendulums and Normal Modes

Two pendulums linked by a spring have exactly two motions that repeat cleanly on their own (the normal modes) — swinging together, or swinging opposite each other. Push just one and watch the energy slosh back and forth between them instead.

Widget 4 — Lissajous Figures

Two perpendicular simple harmonic motions, one on each axis — change the frequency ratio and watch the combined path snap between different closed loops, the same patterns behind classic oscilloscope displays.

Try it for real: two out-of-tune guitar strings

  1. Tune two guitar strings almost, but not quite, to the same pitch, then pluck both together — you'll hear the volume throb up and down at the beat frequency, exactly matching Widget 1.