Sub topic 16
Damping, Driving, and Resonance
Earlier chapters treated the oscillator as ideal: it swings forever at constant amplitude. Real springs and pendulums lose energy, and real systems are often pushed by an outside force. This chapter adds a damping force and a periodic driving force to the spring-mass model. Doing so explains why oscillations die out, why a push at the right frequency builds up large motion, and where the pure SHM model stops being enough.
Prerequisites: the SHM equation a = -ω²x, the solution x(t) = A cos(ωt + φ), energy in SHM, and basic derivatives of exponentials.
Adding a damping force
Friction, air drag, and fluid resistance take energy out of the motion. The simplest model is viscous damping, a force opposite to the velocity and proportional to its size:
F_damp = -b v
Here b is the damping coefficient in kg/s. Newton's second law for a spring-mass system becomes:
m x'' + b x' + k x = 0
Two quantities describe the result:
- ω₀ = √(k/m) is the natural angular frequency, the one the undamped system would have.
- γ = b/(2m) is the decay rate, in 1/s.
Dividing by m gives x'' + 2γ x' + ω₀² x = 0. The behaviour depends on how γ compares with ω₀.
| Regime | Condition | Motion |
|---|---|---|
| Underdamped | γ < ω₀ | Oscillates with shrinking amplitude |
| Critically damped | γ = ω₀ (b = 2√(km)) | Returns to equilibrium fastest without oscillating |
| Overdamped | γ > ω₀ | Creeps back slowly, no oscillation |
The underdamped solution
For light damping the solution is a cosine inside an exponential envelope:
x(t) = A e^(−γt) cos(ωd t + φ), with ωd = √(ω₀² − γ²)
Three consequences follow:
- The amplitude falls to 1/e of its value after a time 1/γ.
- The damped frequency ω_d is slightly lower than ω₀, so the period is slightly longer. For light damping the change is tiny.
- Energy is proportional to amplitude squared, so E(t) ∝ e^(−2γt) = e^(−bt/m).
The quality factor Q = ω₀/(2γ) = √(km)/b measures how weakly damped the system is. A high Q means many oscillations before the motion fades. The amplitude shrinks by a factor e^(−π/Q) each cycle.
Worked example, using the earlier spring (m = 0.5 kg, k = 20 N/m) with b = 0.4 kg/s:
- γ = 0.4/(2 × 0.5) = 0.4 s⁻¹
- ω₀ = 6.325 rad/s, so Q = 6.325/0.8 ≈ 7.9
- The amplitude falls to 1/e in 1/γ = 2.5 s.
- Critical damping would need b = 2√(20 × 0.5) = 2√10 ≈ 6.32 kg/s, about sixteen times more.
Checking damping numerically
The semi-implicit Euler method from the simulation chapter needs only one change: the acceleration now includes the damping term. For a start from rest at x = 0.10 m, the analytic solution is x(t) = 0.10 e^(−γt) [cos(ωd t) + (γ/ωd) sin(ω_d t)].
import math
k, m, b = 20.0, 0.5, 0.4
gamma = b / (2 * m)
omega0 = math.sqrt(k / m)
omega_d = math.sqrt(omega0**2 - gamma**2)
x, v = 0.10, 0.0
dt = 0.001
steps = 2000 # simulate 2 seconds
for _ in range(steps):
a = (-k * x - b * v) / m
v += a * dt # velocity first (semi-implicit Euler)
x += v * dt
t = steps * dt
analytic = 0.10 * math.exp(-gamma * t) * (
math.cos(omega_d * t) + (gamma / omega_d) * math.sin(omega_d * t)
)
print(f"numerical x = {x:.4f} m, analytic x = {analytic:.4f} m")If you shrink dt, the two values move closer together.
Driving the oscillator
Now add an external force F₀ cos(ωt), where ω is the drive frequency. The drive frequency is a separate quantity from ω₀:
m x'' + b x' + k x = F₀ cos(ωt)
The solution has two parts. The transient is the damped motion above, which dies out as e^(−γt). The steady state is what remains: the system oscillates at the drive frequency ω, not at ω₀, with a constant amplitude:
A(ω) = (F₀/m) / √((ω₀² − ω²)² + (2γω)²)
The steady-state motion also lags the drive by a phase δ, where tan δ = 2γω / (ω₀² − ω²). Here the phase from the earlier chapter becomes physically meaningful. It is set by the drive, not by initial conditions.
Resonance
Resonance is the large response when the drive frequency is close to ω₀. In the formula, the first term under the square root vanishes at ω = ω₀, leaving only the damping term. Key facts:
- The amplitude peaks at ω_r = √(ω₀² − 2γ²). For light damping this is almost exactly ω₀.
- At ω₀ the amplitude is about F₀/(bω₀), which equals Q × F₀/k.
- Far below resonance (ω → 0), the amplitude approaches F₀/k, the static stretch under a constant force F₀.
- Phase lag is near 0° well below resonance, 90° at resonance, and approaches 180° well above it.
- The drive delivers the most power at resonance because force and velocity are in step there.
The diagram shows the amplitude response for Q = 5 in units where ω₀ = 1 and F₀/m = 1.
The x-axis is categorical, so the points are not evenly spaced in frequency. The narrow peak is the important feature. Higher Q gives a taller and narrower peak.
The next program evaluates the same formula for our spring. It prints amplitudes at several fractions of ω₀.
import math
k, m, b, F0 = 20.0, 0.5, 0.4, 0.2
omega0 = math.sqrt(k / m)
gamma = b / (2 * m)
for ratio in (0.5, 0.9, 0.99, 1.0, 1.01, 1.1, 2.0):
w = ratio * omega0
amp = (F0 / m) / math.sqrt((omega0**2 - w**2) ** 2 + (2 * gamma * w) ** 2)
print(f"w/w0 = {ratio:4.2f}: amplitude = {amp * 1000:7.2f} mm")Limits and common errors
- Confusing ω₀, ω_d, and ω. The natural frequency, the damped frequency, and the drive frequency are three different numbers. In steady state the system follows the drive frequency.
- Expecting infinite amplitude. Without damping (b = 0) the formula diverges at ω₀, but any real system has damping, and the amplitude is finite and set by Q. A real system may also leave the linear regime or break first.
- Assuming the pendulum behaves the same way. A pendulum is only linear at small angles. A strongly driven pendulum is anharmonic, so its resonance peak bends and can show amplitude jumps and chaos. The formulas here apply only when the response stays small.
- Assuming all damping is viscous. Dry friction removes a constant amount of energy per distance, so the amplitude falls in a straight line rather than exponentially. The −bv model is a good approximation for slow motion in air or a fluid.
- Blaming every collapse on resonance. The Tacoma Narrows Bridge failure is often called resonance, but it is better explained as aeroelastic flutter, where the wind motion feeds on the bridge's own motion.
Exercise
A mass of 0.5 kg on a 20 N/m spring has damping b = 0.4 kg/s and is driven by a force with amplitude F₀ = 0.2 N at its natural frequency. Estimate the steady-state amplitude and compare it with the static stretch F₀/k.
Show answer
ω₀ = √(20/0.5) = 6.325 rad/s. At resonance the amplitude is about F₀/(bω₀) = 0.2/(0.4 × 6.325) ≈ 0.079 m, or 79 mm. The static stretch is F₀/k = 0.2/20 = 0.010 m. The ratio is about 7.9, which equals Q = ω₀/(2γ) = 6.325/0.8 ≈ 7.9. The drive at resonance produces eight times the displacement of a steady force of the same size.
Exercise
For the same system, how long does the free motion take to lose half of its energy once the drive is switched off? Use E ∝ e^(−bt/m).
Show answer
Energy halves when e^(−bt/m) = 1/2, so t = (m/b) ln 2 = (0.5/0.4) × 0.693 ≈ 0.87 s. This is shorter than the 2.5 s amplitude time constant because energy falls twice as fast as amplitude.