---
title: Damped and driven oscillations
heading: Q, resonance and ring-down
eyebrow: B1 · Lesson 43 · Damped and driven oscillations
xp: 40
---

::: hook
A quartz watch crystal is a tiny tuning fork that rings at 32,768 Hz and keeps ringing for about half a second after a tap. A car's suspension, by contrast, is damped so heavily it barely bounces at all. Both are springs with masses and friction, and one number describes the difference: the quality factor Q. It says how many cycles an oscillator rings before it fades, and also how sharply it responds when driven near its natural frequency. It's the same Q you'll meet in every resonant circuit.
:::

::: play
- A mass on a spring is driven by a steady sinusoidal force. The curve is the response amplitude, relative to how far the same force would stretch the spring slowly, against the drive frequency as a fraction of the natural frequency.
- Raise Q. The peak gets taller (about Q times the slow-push deflection) and narrower.
- With Q below about 0.7 there's no peak at all: that's how vibration mounts and suspensions are tuned.
:::
:::

```sim plot
view: graph
x: r = 0..3
y: A = 0..20
slider: Q = 0.5..20 step 0.5 = 5
slider: r0 = 0..3 step 0.02 = 1
plot: 1/sqrt((1 - r^2)^2 + (r/Q)^2) | label: amplitude ratio | samples: 900
marker: x = r0 | label: drive / natural frequency
readout: amplitude ratio at the marker = 1/sqrt((1 - r0^2)^2 + (r0/Q)^2) | digits: 3
readout: half-power bandwidth, as a fraction of f₀ = 1/Q | digits: 3
readout: phase lag at the marker, ° = arg((1 - r0^2) - j*r0/Q)*(-180/pi) | digits: 3
```

::: predict
## A 32,768 Hz crystal has Q = 50,000. If it's tapped and left alone, about how long does its ringing take to fade to $1/e$ of its amplitude?

- [ ] About 1.5 µs, one cycle
- [ ] About 1.5 s
- [x] About 0.5 s
- [ ] About 50,000 s

::: reveal
About 0.5 s. The amplitude decays with time constant $\frac{Q}{\pi f_0} = \frac{50\,000}{\pi \times 32\,768} = 0.49$ s, which is about 16,000 cycles. A high Q means low loss per cycle, so the oscillation lasts a long time, and the circuit driving it needs to supply only a tiny bit of energy each cycle.
:::
:::

::: nameit
## Damped oscillations

A mass $m$ on a spring $k$ with a damping force $-bv$ obeys

$$m\ddot x + b\dot x + kx = 0$$

the equation of A8. Its natural frequency is $\omega_0 = \sqrt{k/m}$, and its **damping ratio** is $\zeta = \frac{b}{2\sqrt{km}}$. With $\zeta < 1$ it rings at nearly $\omega_0$ inside an envelope $e^{-t/\tau}$ with

$$\tau = \frac{2m}{b} = \frac{1}{\zeta\omega_0}$$

## The quality factor

$$Q = \frac{1}{2\zeta} = \frac{\sqrt{km}}{b}$$

Three readings of the same number:

- **ring-down:** the amplitude falls by $1/e$ in about $\frac{Q}{\pi}$ cycles;
- **energy:** each cycle loses a fraction $\frac{2\pi}{Q}$ of the stored energy;
- **resonance:** driven at $\omega_0$, the amplitude is $Q$ times the deflection the same force gives slowly ($F_0/k$), and the half-power bandwidth is $\Delta f = \frac{f_0}{Q}$.

## Driven oscillations

With a drive $F_0\cos\omega t$, the steady response has amplitude

$$A = \frac{F_0/k}{\sqrt{(1 - r^2)^2 + (r/Q)^2}}, \qquad r = \frac{\omega}{\omega_0}$$

lagging the drive by 0° well below resonance, 90° at resonance, and 180° well above. Well above resonance the mass barely moves: a heavy mass on a soft spring isolates vibration, which is how sensitive instruments are mounted.

## Electrical analog

A series RLC circuit obeys the same equation, with inductance for mass, resistance for damping and $1/C$ for stiffness: $Q = \frac{1}{R}\sqrt{\frac{L}{C}}$. Crystals are used as resonators because their mechanical Q (tens of thousands to millions) is far beyond what coils and capacitors reach.
:::

::: example
## A 0.2 kg mass hangs on a 2000 N/m spring with damping $b = 0.4$ N·s/m. Find $\omega_0$, ζ, Q and the ring-down time constant.

::: solution
1. **Natural frequency.**
   $$\begin{aligned} \omega_0 &= \sqrt{2000/0.2} \\ &= 100\ \text{rad/s} \end{aligned}$$
   which is 15.9 Hz.
2. **Damping ratio and Q.**
   $$\begin{aligned} \zeta &= \frac{0.4}{2\sqrt{2000 \times 0.2}} \\ &= 0.01 \end{aligned}$$
   so $Q = 50$.
3. **Ring-down time constant.** The amplitude decays with
   $$\begin{aligned} \tau &= \frac{2m}{b} \\ &= 1\ \text{s} \end{aligned}$$
   about 16 cycles.
4. **At resonance.** Driven at resonance, it swings 50 times as far as the same force would stretch it slowly.

**Answer:** $\omega_0 = 100$ rad/s, ζ = 0.01, Q = 50, and the ring-down time constant is 1 s.
:::
:::

::: example
## A 32,768 Hz crystal has Q = 50,000. What is its bandwidth, and its ring-down time constant?

::: solution
1. **Bandwidth.**
   $$\begin{aligned} \Delta f &= \frac{32\,768}{50\,000} \\ &= 0.66\ \text{Hz} \end{aligned}$$
2. **Ring-down time constant.**
   $$\begin{aligned} \tau &= \frac{Q}{\pi f_0} \\ &= 0.49\ \text{s} \end{aligned}$$
3. **What it means.** The narrow bandwidth is what makes it a precise frequency reference: only a drive within a fraction of a hertz excites it.

**Answer:** the bandwidth is 0.66 Hz, and the ring-down time constant is 0.49 s.
:::
:::

::: example
## A ringing oscillator's amplitude falls from 10 mm to 6 mm over 5 cycles. Find its logarithmic decrement and Q.

::: solution
1. **Logarithmic decrement.** It's the log of the amplitude ratio per cycle:
   $$\begin{aligned} \delta &= \frac{1}{5}\ln\frac{10}{6} \\ &= 0.102 \end{aligned}$$
2. **Q.** For light damping,
   $$\begin{aligned} Q &\approx \frac{\pi}{\delta} \\ &= 30.8 \end{aligned}$$
3. **Measuring it in practice.** Measuring over several cycles averages out reading errors. This is the standard way to find Q from a ringdown on a scope: count cycles until the amplitude halves, then
   $$\begin{aligned} Q &\approx \frac{\pi n}{\ln 2} \\ &= 4.5n \end{aligned}$$

**Answer:** the logarithmic decrement is 0.102, and Q is about 30.8.
:::
:::

::: check
given: k = 500 | 2000; m = 0.05 | 0.5
answer: sqrt(k/m)/(2*pi)
unit: Hz
tolerance: 0.5%

## A {m} kg mass sits on a {k} N/m spring. What is its natural frequency in hertz?

::: right
Right. $\frac{1}{2\pi}\sqrt{k/m}$ = {answer}.
:::

::: misses
- [sqrt(k/m)] That's in rad/s.
- [any] Not yet. $f_0 = \frac{\omega_0}{2\pi}$.
:::
:::

::: check
given: b = 0.5 | 2; k = 500 | 2000; m = 0.1 | 0.5
answer: b/(2*sqrt(k*m))
tolerance: 0.5%

## A {m} kg mass on a {k} N/m spring has damping $b$ = {b} N·s/m. What is its damping ratio?

::: right
Right. $\zeta = \frac{b}{2\sqrt{km}}$ = {answer}.
:::

::: misses
- [b/sqrt(k*m)] Include the factor 2.
- [any] Not yet. $\zeta = b/(2\sqrt{km})$.
:::
:::

::: check
given: b = 0.5 | 2; k = 500 | 2000; m = 0.1 | 0.5
answer: sqrt(k*m)/b
tolerance: 0.5%

## Same oscillator ({m} kg, {k} N/m, $b$ = {b} N·s/m). What is its Q?

::: right
Right. $Q = \frac{\sqrt{km}}{b}$ = {answer}.
:::

::: misses
- [b/(2*sqrt(k*m))] That's ζ; $Q = \frac{1}{2\zeta}$.
- [any] Not yet. $Q = 1/(2\zeta)$.
:::
:::

::: check
given: F = 0.5 | 2; k = 100 | 400; Q = 10 | 30
answer: Q*F/k*1000
unit: mm
tolerance: 0.5%

## A spring of {k} N/m carrying a mass with Q = {Q} is driven at resonance by a {F} N sinusoidal force. About what amplitude results?

::: right
Right. $Q\frac{F_0}{k}$ = {answer}.
:::

::: misses
- [F/k*1000] That's the slow-push deflection; at resonance it's Q times bigger.
- [any] Not yet. Q times $F_0/k$.
:::
:::

::: check
given: f0 = 1000 | 32768 | 10e6; Q = 100 | 20000
answer: f0/Q
unit: Hz
tolerance: 0.5%

## A resonator at {f0} Hz has Q = {Q}. What is its half-power bandwidth?

::: right
Right. $f_0/Q$ = {answer}.
:::

::: misses
- [f0*Q] Higher Q means a narrower response.
- [any] Not yet. $\Delta f = f_0/Q$.
:::
:::

::: check
given: m = 0.1 | 1; b = 0.05 | 0.2
answer: 2*m/b
unit: s
tolerance: 0.5%

## A {m} kg oscillator has damping $b$ = {b} N·s/m. What is the time constant of its amplitude's decay?

::: right
Right. $\tau = \frac{2m}{b}$ = {answer}.
:::

::: misses
- [m/b] The amplitude decays as $e^{-bt/2m}$.
- [any] Not yet. The envelope is $e^{-bt/2m}$.
:::
:::

::: check
kind: parts
given: A0 = 10 | 20; An = 6 | 5; n = 5 | 10

## A ringdown falls from {A0} mm to {An} mm over {n} cycles.

::: part
answer: ln(A0/An)/n
tolerance: 0.5%

### What is the logarithmic decrement?

::: misses
- [log(A0/An)/n] Use the natural logarithm.
- [any] $\delta = \frac1n\ln\frac{A_0}{A_n}$.
:::
:::

::: part
answer: pi*n/ln(A0/An)
tolerance: 0.5%

### What is Q, approximately?

::: misses
- [any] $Q \approx \pi/\delta$.
:::
:::
:::

::: check
kind: derivation
vars: F = 0.1..10, k = 10..1000, Q = 5..100

## A spring k with quality factor Q is driven at resonance by a force of amplitude F.

::: step
answer: F/k

### What would the static deflection be?
:::

::: step
answer: Q*F/k

### What is the amplitude at resonance?
:::

::: right
Right. Resonance multiplies the static response by Q.
:::
:::

::: explain
## Why does a high-Q oscillator respond so strongly when driven exactly at its natural frequency?

::: model
At resonance the drive pushes in step with the motion, so every cycle it adds energy. The amplitude grows until the energy lost per cycle to damping equals the energy the drive adds. With little damping (high Q), each cycle loses only a small fraction of the stored energy, so the amplitude must grow large before the losses catch up with the input. Off resonance the drive is partly out of step: it adds energy during part of a cycle and takes it back during another, so the amplitude stays small.
:::
:::

::: practice

::: check
given: z = 0.05 | 0.1 | 0.25
answer: 1/(2*z)
tolerance: 0.5%

## What Q corresponds to a damping ratio of {z}?

::: misses
- [1/z] $Q = \frac{1}{2\zeta}$.
- [any] $Q = 1/(2\zeta)$.
:::
:::

::: check
given: Q = 5 | 10 | 20 | 50 | 100 | 1000
answer: 100*2*pi/Q
tolerance: 0.5%

## An oscillator has Q = {Q}. About what percentage of its stored energy does it lose each cycle?

::: misses
- [100/Q] It's $\frac{2\pi}{Q}$.
- [any] $2\pi/Q$.
:::
:::

::: check
given: R = 10 | 50; L = 1 | 10; C = 0.1 | 1
answer: sqrt(L*1e-3/(C*1e-6))/R
tolerance: 0.5%

## A series RLC circuit has $R$ = {R} Ω, $L$ = {L} mH and $C$ = {C} µF. What is its Q?

::: misses
- [any] $Q = \frac{1}{R}\sqrt{L/C}$.
:::
:::
:::
