Resonance Simulator: Driven Oscillator & Natural Frequency

simulator intermediate ~10 min
Loading simulation...
At resonance (f₀ = f_d = 3 Hz), amplitude ratio ~5x with Q factor ~15

With natural frequency 3 Hz, damping 0.1, and driving at resonance, the oscillator amplitude is roughly 5 times the driving amplitude. The quality factor Q = 15 means the system is moderately selective.

Formula

A(w) = F₀ / sqrt((w₀² - w²)² + (2bw)²)
Q = w₀ / (2b)
Phase: phi = atan2(2bw, w₀² - w²)

The Physics of Resonance

Resonance is perhaps the most dramatic phenomenon in wave physics. When a driving force matches a system's natural frequency, even tiny periodic pushes can build up enormous oscillations. This principle explains how an opera singer can shatter a wine glass, how the Tacoma Narrows Bridge tore itself apart, and how every musical instrument produces sound. This simulation lets you tune the driving frequency and watch the amplitude response change in real time.

The Driven Harmonic Oscillator

The driven, damped harmonic oscillator is described by mx'' + bx' + kx = F₀cos(wt). Its steady-state solution has amplitude A = F₀/sqrt((w₀²-w²)² + (2bw/m)²), where w₀ = sqrt(k/m) is the natural angular frequency. At resonance (w = w₀), the amplitude becomes A = F₀/(2bw₀/m), limited only by damping. Without damping, the amplitude would grow without bound.

Quality Factor and Selectivity

The quality factor Q = w₀/(2b/m) quantifies the sharpness of the resonance peak. A high-Q system (low damping) responds strongly at one specific frequency — like a tuning fork (Q ~ 1000) or a laser cavity (Q ~ 10⁸). A low-Q system responds broadly — like a car suspension designed to absorb bumps across many frequencies. Q also determines how long oscillations persist after driving stops: the ring-down time is roughly Q/f₀ seconds.

Phase Relationship

At resonance, the oscillator's motion lags the driving force by exactly 90°. Below resonance, the system follows the driver nearly in phase. Above resonance, it opposes the driver, lagging by nearly 180°. This phase relationship is key to understanding energy transfer: maximum power transfer occurs at resonance because force and velocity are exactly in phase.

FAQ

What is resonance?

Resonance occurs when a system is driven at or near its natural frequency, causing dramatically amplified oscillations. The driving force efficiently transfers energy to the system because each push arrives in phase with the existing motion, like pushing a swing at just the right moment.

What is the quality factor Q?

The quality factor Q measures how sharply tuned a resonance is. Q = f₀/Δf where Δf is the bandwidth at half-maximum power. High Q means sharp resonance (tuning fork, Q~1000). Low Q means broad resonance (car suspension, Q~1). Q is inversely related to damping.

How does damping affect resonance?

Damping removes energy from the system through friction, viscosity, or radiation. Higher damping lowers the resonance peak amplitude and broadens it across a wider frequency range. With very high damping, the resonance peak disappears entirely (overdamped system).

What are real-world examples of resonance?

Musical instruments (strings, air columns), the Tacoma Narrows Bridge collapse (1940), MRI machines (nuclear magnetic resonance), microwave ovens (water molecule resonance at 2.45 GHz), and earthquake damage to buildings with matching natural frequencies.

Sources

Embed

<iframe src="https://homo-deus.com/lab/sound-music/resonance/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub