---
title: RLC ringing
heading: Energy swinging between the electric and magnetic fields
eyebrow: C2 · Lesson 15 · RLC ringing
xp: 50
---

::: hook
Put a capacitor and an inductor together and something new happens: the circuit rings. The charged capacitor drives current into the inductor; the inductor's field keeps that current going after the capacitor is empty, charging it the other way; and back again. Energy swings between the electric field in the capacitor and the magnetic field in the coil, like a pendulum swapping height for speed, while the resistance slowly drains it away. Every radio tuner, oscillator and filter with a sharp peak is built on this.

::: play
- A real loop with a coil, a capacitor and a resistor, solved as a field problem. Press Play and watch the electric field (between the plates) and the magnetic field (through the coil) take turns.
- When is the current largest: when the capacitor is full, or when it's empty?
- Change the plate gap. It changes C, and with it the ringing frequency.
:::
:::

```sim field
scene: rlc
show: B, E, current
```

::: predict
## A 10 mH inductor and a 100 nF capacitor ring together. Roughly what frequency?

- [ ] 160 Hz
- [x] 5 kHz
- [ ] 50 kHz
- [ ] 1 MHz

::: reveal
About 5 kHz: $f_0 = 1/(2\pi\sqrt{LC}) = 1/(2\pi\sqrt{10^{-2} \times 10^{-7}}) = 1/(2\pi \times 3.16 \times 10^{-5}) \approx 5.0$ kHz. The frequency depends only on L and C. Resistance decides how quickly the ringing dies away, and, if it's large enough, whether the circuit rings at all.
:::
:::

::: nameit
## The series RLC circuit

**The equation.** With charge $q$ on the capacitor and current $i = dq/dt$, KVL around a series loop driven by $V$:

$$L\frac{d^2q}{dt^2} + R\frac{dq}{dt} + \frac{q}{C} = V$$

the damped oscillator of A8, with these parameters:

$$\omega_0 = \frac{1}{\sqrt{LC}} \qquad \alpha = \frac{R}{2L} \qquad \zeta = \frac{\alpha}{\omega_0} = \frac{R}{2}\sqrt{\frac{C}{L}}$$

**Three behaviors**, decided by the damping ratio ζ:

- **Underdamped** ($\zeta < 1$): rings at $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$ inside an envelope $e^{-\alpha t}$.
- **Critically damped** ($\zeta = 1$, $R = 2\sqrt{L/C}$): the fastest settling with no overshoot.
- **Overdamped** ($\zeta > 1$): creeps to the final value without ringing, slower than critical.

**Overshoot.** For a step input, the first peak overshoots the final value by a fraction

$$e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$$

which is 16% at ζ = 0.5 and 4.3% at ζ = 0.707.

**Quality factor.** $Q = \frac{1}{2\zeta} = \frac{1}{R}\sqrt{\frac{L}{C}}$. Roughly, the ringing lasts about Q cycles before it's mostly gone, since the energy falls by $e^{-2\pi/Q}$ each cycle.

**Where the energy is.** When the capacitor's voltage peaks, the current is zero: all the energy is in the electric field, $\frac12CV^2$. A quarter cycle later the capacitor is empty and the current peaks: all of it is in the magnetic field, $\frac12LI^2$. The resistor takes a little on every swing.
:::

```sim circuit
V1 in 0 step 5      @ 0,0 down
R1 in a 20          @ 0,0 right
L1 a out 10m        @ 2,0 right
C1 out 0 100n       @ 4,0 down
slider: R1 1..2k log
slider: C1 10n..1u log
scope: v(in), v(out)
time: 0..2m s
meter: v(out)
```

A 5 V step into a series RLC circuit. Critical damping here is $2\sqrt{L/C}$ = 632 Ω. Slide R from a few ohms, where the output rings for many cycles, through 632 Ω, where it settles fastest without overshoot, to 2 kΩ, where it creeps.

::: example
## A series RLC has L = 10 mH, C = 100 nF and R = 20 Ω. At what frequency does it ring, and how much does a step overshoot?

::: solution
1. **Ringing frequency.**
   $$\begin{aligned} f_0 &= \frac{1}{2\pi\sqrt{LC}} \\ &= \frac{1}{2\pi\sqrt{10^{-9}}}\ \text{Hz} \\ &= 5.03\ \text{kHz} \end{aligned}$$
2. **Damping ratio.**
   $$\begin{aligned} \zeta &= \frac R2\sqrt{\frac CL} \\ &= 10 \times 0.00316 \\ &= 0.032 \end{aligned}$$
3. **Overshoot.**
   $$\begin{aligned} \text{overshoot} &= e^{-\zeta\pi/\sqrt{1 - \zeta^2}} \\ &= 91\% \end{aligned}$$
   so it nearly doubles its final value on the first swing.

**Answer:** it rings at 5.03 kHz, and a step overshoots by 91%, nearly doubling its final value on the first swing.
:::
:::

::: example
## For the same circuit, what is its Q and roughly how long does the ringing last?

::: solution
1. **Q.**
   $$\begin{aligned} Q &= \frac{1}{2\zeta} \\ &= 15.8 \end{aligned}$$
2. **Decay rate.** The envelope decays as $e^{-\alpha t}$ with
   $$\begin{aligned} \alpha &= \frac{R}{2L} \\ &= 1000\ \text{s}^{-1} \end{aligned}$$
3. **Settling time.** It settles within 2% after about
   $$\begin{aligned} t_s &\approx \frac4\alpha \\ &= 4\ \text{ms} \end{aligned}$$
   some 20 cycles.

**Answer:** Q is 15.8, and the ringing lasts about 4 ms (some 20 cycles) before it settles within 2%.
:::
:::

::: example
## A circuit-board trace has about 10 nH of inductance and drives a 10 pF input. At what frequency does an edge ring, and what series resistance would damp it critically?

::: solution
1. **Ringing frequency.**
   $$\begin{aligned} f_0 &= \frac{1}{2\pi\sqrt{LC}} \\ &= \frac{1}{2\pi\sqrt{10^{-8} \times 10^{-11}}}\ \text{Hz} \\ &= 503\ \text{MHz} \end{aligned}$$
2. **Critical resistance.** Critical damping in series needs
   $$\begin{aligned} R &= 2\sqrt{\frac LC} \\ &= 2\sqrt{1000}\ \Omega \\ &= 63\ \Omega \end{aligned}$$
3. **A real driver.** A driver with a few ohms of output resistance leaves the edge badly underdamped, ringing at 500 MHz.
4. **The usual fix.** That's why fast digital outputs get series termination resistors of 22 to 47 Ω placed right at the driver.

**Answer:** an edge rings at about 503 MHz, and 63 Ω in series would damp it critically.
:::
:::

::: check
given: L = 1 | 10 | 100; C = 10 | 100 | 1000
answer: 1/(2*pi*sqrt(L*1e-3*C*1e-9))
unit: Hz
tolerance: 0.5%

## A {L} mH inductor rings with a {C} nF capacitor. What is the natural frequency $f_0$?

::: right
Right. $f_0 = 1/(2\pi\sqrt{LC})$ = {answer}.
:::

::: misses
- [1/sqrt(L*1e-3*C*1e-9)] That's $\omega_0$ in rad/s. Divide by 2π for hertz.
- [1/(2*pi*L*1e-3*C*1e-9)] Take the square root of LC.
- [any] Not yet. $f_0 = 1/(2\pi\sqrt{LC})$.
:::
:::

::: check
given: R = 10 | 47 | 100; L = 10 | 100; C = 100 | 470
answer: R/2*sqrt(C*1e-9/(L*1e-3))
tolerance: 0.5%

## A series RLC circuit has R = {R} Ω, L = {L} mH and C = {C} nF. What is its damping ratio ζ?

::: right
Right. $\zeta = \frac R2\sqrt{C/L}$ = {answer}.
:::

::: misses
- [R/2*sqrt(L*1e-3/(C*1e-9))] It's $\sqrt{C/L}$, not $\sqrt{L/C}$.
- [R*sqrt(C*1e-9/(L*1e-3))] Include the factor of ½.
- [any] Not yet. $\zeta = \frac R2\sqrt{C/L}$.
:::
:::

::: check
given: L = 1 | 10 | 100; C = 10 | 100 | 1000
answer: 2*sqrt(L*1e-3/(C*1e-9))
unit: Ω
tolerance: 0.5%

## What series resistance critically damps {L} mH with {C} nF?

::: right
Right. $R = 2\sqrt{L/C}$ = {answer}.
:::

::: misses
- [sqrt(L*1e-3/(C*1e-9))] That's half of it: $2\sqrt{L/C}$.
- [2*sqrt(C*1e-9/(L*1e-3))] It's $\sqrt{L/C}$.
- [any] Not yet. Set ζ = 1: $R = 2\sqrt{L/C}$.
:::
:::

::: check
given: z = 0.3 | 0.4 | 0.5 | 0.7
answer: 100*exp(-pi*z/sqrt(1 - z^2))
unit: %
tolerance: 1%

## A circuit with ζ = {z} gets a step. By what percentage does it overshoot?

::: right
Right. $e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$ = {answer}.
:::

::: misses
- [100*exp(-pi*z)] Include the $\sqrt{1 - \zeta^2}$ in the denominator.
- [100*(1 - z)] It's exponential in ζ.
- [any] Not yet. Overshoot $= e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::

::: check
given: R = 200 | 400 | 600; L = 10; C = 100
answer: sqrt(1/(L*1e-3*C*1e-9) - (R/(2*L*1e-3))^2)/(2*pi)
unit: Hz
tolerance: 0.5%

## A series RLC circuit with R = {R} Ω, L = 10 mH and C = 100 nF rings after a step. At what frequency?

::: right
Right. $f_d = \frac{1}{2\pi}\sqrt{\omega_0^2 - \alpha^2}$ = {answer}, a little below $f_0$.
:::

::: misses
- [1/(2*pi*sqrt(L*1e-3*C*1e-9))] That's $f_0$, without damping. Damping lowers it slightly.
- [any] Not yet. $\omega_d = \sqrt{\omega_0^2 - \alpha^2}$ with $\alpha = R/2L$.
:::
:::

::: check
kind: parts
given: L = 2 | 10; C = 2 | 10 | 50

## A trace of {L} nH drives a {C} pF input.

::: part
answer: 1/(2*pi*sqrt(L*1e-9*C*1e-12))/1e6
unit: MHz
tolerance: 0.5%

### At what frequency does an edge ring?

::: misses
- [any] $\frac{1}{2\pi\sqrt{LC}}$.
:::
:::

::: part
answer: 2*sqrt(L*1e-9/(C*1e-12))
unit: Ω
tolerance: 0.5%

### What series resistance damps it critically?

::: misses
- [sqrt(L*1e-9/(C*1e-12))] Critical damping in series is $2\sqrt{L/C}$.
- [any] $R = 2\sqrt{L/C}$.
:::
:::
:::

::: check
kind: derivation
vars: L = 0.000000001..1, C = 0.000000000001..0.001, R = 0.01..10000

## A series RLC with L, C and R.

::: step
answer: 1/sqrt(L*C)

### What's $\omega_0$?
:::

::: step
answer: R/2*sqrt(C/L)

### What's ζ?
:::

::: step
answer: 1/(R*sqrt(C/L))

### What's Q, $\frac{1}{2\zeta}$?
:::

::: right
Right. Less series resistance means less damping and higher Q.
:::
:::

::: explain
## In a ringing LC circuit, why is the current largest at the moment the capacitor is empty?

::: model
Energy moves back and forth between the capacitor's electric field and the inductor's magnetic field, with the total nearly constant. When the capacitor has discharged completely, none of the energy is left in its field, so it must all be in the inductor's field, $\frac12LI^2$, which means the current is at its peak. Equivalently, the capacitor has been pushing current the whole time it had voltage, so the current keeps growing until the voltage reaches zero, and only then does the inductor start slowing it as it charges the capacitor the other way.
:::
:::

::: practice

::: check
given: L = 1 | 4; C = 1 | 4
answer: 1/(2*pi*sqrt(L*1e-3*C*1e-6))
unit: Hz
tolerance: 0.5%

## {L} mH with {C} µF. Natural frequency?

::: misses
- [1/sqrt(L*1e-3*C*1e-6)] Divide by 2π.
- [any] $1/(2\pi\sqrt{LC})$.
:::
:::

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

## ζ = {z}. What is Q?

::: misses
- [2*z] It's the reciprocal: $1/(2\zeta)$.
- [any] $Q = 1/(2\zeta)$.
:::
:::

::: check
given: k = 4 | 9 | 16
answer: 1/sqrt(k)
tolerance: 0.5%

## The capacitance in an LC circuit is made {k} times larger. By what factor does the natural frequency change?

::: misses
- [1/k] $f \propto 1/\sqrt{C}$.
- [sqrt(k)] More capacitance lowers the frequency.
- [any] $1/\sqrt k$.
:::
:::
:::
