---
title: Repeated roots and critical damping
heading: The fastest settle without overshoot
eyebrow: A8 · Lesson 21 · Repeated roots
xp: 40
---

::: hook
A meter needle, a car's suspension, a scope probe's compensation: each wants to settle as quickly as possible without overshooting. Too little damping and it rings; too much and it creeps. The boundary between the two is **critical damping**, where the characteristic equation's two roots merge into one. The exponential trick then gives only one solution, $e^{rt}$, and the second one turns out to be something new: $te^{rt}$.
:::

::: play
- The solid curve is a critically damped response, $y = (1 + \omega_0t)e^{-\omega_0t}$, starting at 1 with zero slope. The dashed curves are its two pieces, $e^{-\omega_0t}$ and $\omega_0te^{-\omega_0t}$.
- The second piece rises and falls. Where does it peak?
- Change $\omega_0$. Everything scales in time, and nothing ever overshoots zero.
:::
:::

```sim plot
view: graph
x: t = 0..5 ms
y: y = -0.2..1.1
slider: w0 = 0.5..5 step 0.1 = 2 rad/ms
plot: (1 + w0*t)*exp(-w0*t) | label: critically damped
plot: exp(-w0*t) | label: e^(−ω₀t) | dashed | color: ch2
plot: w0*t*exp(-w0*t) | label: ω₀t e^(−ω₀t) | dashed | color: ch3
readout: second piece peaks at = 1/w0 ms | digits: 3
readout: time to fall to 2% = 5.83/w0 ms | digits: 3
```

::: predict
## For $\ddot y + 4\dot y + 4y = 0$, the characteristic equation is $(r + 2)^2 = 0$. Besides $e^{-2t}$, what is the second solution?

- [ ] $e^{-2t}$ again
- [x] $te^{-2t}$
- [ ] $e^{2t}$
- [ ] $e^{-4t}$

::: reveal
$te^{-2t}$. Check it: $y = te^{-2t}$ gives $\dot y = (1 - 2t)e^{-2t}$ and $\ddot y = (-4 + 4t)e^{-2t}$, and $(-4 + 4t) + 4(1 - 2t) + 4t = 0$. A repeated root always brings a factor of $t$, the same pattern you'll see whenever a system is driven exactly at its own natural rate.
:::
:::

::: nameit
## Repeated roots

If $r^2 + pr + q = 0$ has a double root, $r = -\frac{p}{2}$ (which happens when $p^2 = 4q$), the two independent solutions are

$$e^{rt} \qquad te^{rt}$$

and the general solution is $y = (c_1 + c_2t)e^{rt}$. Matching $y(0) = y_0$ and $\dot y(0) = v_0$ gives $c_1 = y_0$ and $c_2 = v_0 - ry_0$.

**Where $te^{rt}$ comes from (reduction of order).** Try $y = u(t)e^{rt}$. Substituting, the terms in $u$ and $\dot u$ cancel because $r$ is a double root, leaving $\ddot u = 0$: $u = c_1 + c_2t$.

## Critical damping in circuits

In damping-ratio form, $\ddot y + 2\zeta\omega_0\dot y + \omega_0^2y = 0$ has a double root at $\zeta = 1$, $r = -\omega_0$. For a series RLC circuit ($\zeta = \frac{R}{2}\sqrt{C/L}$), that means

$$R_\text{crit} = 2\sqrt{\frac{L}{C}}$$

Released from rest, a critically damped system settles to within 2% in about $5.8/\omega_0$, the fastest of any response that never crosses zero. With a little less damping ($\zeta \approx 0.7$) it settles sooner still, at the price of a small overshoot; many designs accept that trade.
:::

::: example
## Solve $\ddot y + 4\dot y + 4y = 0$ with $y(0) = 1$, $\dot y(0) = 0$.

::: solution
1. **Double root.** $r = -2$, so
   $$y = (c_1 + c_2t)e^{-2t}$$
2. **Fit the start.** $y(0) = 1$ and $\dot y(0) = 0$ give
   $$\begin{aligned} c_1 &= 1 \\ c_2 - 2c_1 &= 0 \end{aligned}$$
   so $c_2 = 2$.

**Answer:** $y = (1 + 2t)e^{-2t}$.
:::
:::

::: example
## A series RLC has $L$ = 10 mH and $C$ = 1 µF. What $R$ damps it critically, and how fast does it settle?

::: solution
1. **Critical resistance.**
   $$\begin{aligned} R &= 2\sqrt{\frac{0.01}{10^{-6}}} \\ &= 2 \times 100 \\ &= 200\ \Omega \end{aligned}$$
2. **Natural frequency.**
   $$\begin{aligned} \omega_0 &= \frac{1}{\sqrt{LC}} \\ &= 10^4\ \text{rad/s} \end{aligned}$$
3. **Settling time.** It settles to 2% in about
   $$\begin{aligned} t &= \frac{5.8}{10^4}\ \text{s} \\ &= 0.58\ \text{ms} \end{aligned}$$

**Answer:** 200 Ω damps it critically, and it settles to 2% in about 0.58 ms.
:::
:::

::: example
## A critically damped system has $\alpha = 10^4$ s⁻¹. How long does its step response take to get within 2% of the final value?

::: solution
1. **Write the error.** The step response is $1 - (1 + \alpha t)e^{-\alpha t}$, so with $x = \alpha t$ the error is
   $$(1 + x)e^{-x}$$
2. **Solve for 2%.** Set it to 0.02 and solve numerically (Newton's method converges in a few steps):
   $$x = 5.83$$
3. **Convert to time.**
   $$\begin{aligned} t &= 5.83/\alpha \\ &= 0.583\ \text{ms} \end{aligned}$$
4. **Compare first order.** A first-order system with the same time constant would need $\ln 50 = 3.91$ time constants; the critically damped one needs more because it starts out flat.

**Answer:** it gets within 2% after 0.583 ms.
:::
:::

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

## What resistance damps a series RLC with $L$ = {L} mH and $C$ = {C} µF critically?

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

::: misses
- [sqrt(L*1e-3/(C*1e-6))] Include the 2: $\zeta = \frac{R}{2}\sqrt{C/L} = 1$.
- [2*sqrt(L/C)] Use henries and farads.
- [any] Not yet. Set $\zeta = 1$.
:::
:::

::: check
given: w = 1 | 3; t = 0.5 | 1
answer: (1 + w*t)*exp(-w*t)
tolerance: 0.5%

## A critically damped system with $\omega_0$ = {w} starts at 1 with zero slope. What is $y(\given{t})$?

::: right
Right. $(1 + \omega_0t)e^{-\omega_0t}$ = {answer}.
:::

::: misses
- [exp(-w*t)] That ignores the $te^{rt}$ piece, which zero starting slope requires.
- [any] Not yet. $y = (1 + \omega_0t)e^{-\omega_0t}$.
:::
:::

::: check
given: r = -2 | -5; y0 = 1 | 3; v0 = 0 | 4
answer: v0 - r*y0

## For a double root $r$ = {r}, $y = (c_1 + c_2t)e^{rt}$ with $y(0) = \given{y0}$ and $\dot y(0) = \given{v0}$. What is $c_2$?

::: right
Right. $\dot y(0) = c_2 + rc_1$, so $c_2 = v_0 - ry_0$ = {answer}.
:::

::: misses
- [v0] The $e^{rt}$ factor also contributes $rc_1$ to the starting slope.
- [v0 + r*y0] Move $rc_1$ across: subtract.
- [any] Not yet. Differentiate and set $t = 0$.
:::
:::

::: check
given: a = 2 | 5 | 0.5
answer: 1/a
tolerance: 0.5%

## At what time does $te^{-\given{a}t}$ reach its peak?

::: right
Right. The derivative $(1 - at)e^{-at}$ is zero at $t = 1/a$ = {answer}.
:::

::: misses
- [a] The peak comes sooner for faster decay: $1/a$.
- [any] Not yet. Set the derivative to zero.
:::
:::

::: check
given: p = 4 | 6 | 10
answer: p^2/4

## For which $q$ does $r^2 + \given{p}r + q = 0$ have a repeated root?

::: right
Right. The discriminant $p^2 - 4q$ is zero when $q = p^2/4$ = {answer}.
:::

::: misses
- [p/2] That's the size of the repeated root.
- [p^2] The discriminant is $p^2 - 4q$.
- [any] Not yet. Set the discriminant to zero.
:::
:::

::: check
kind: choice

## A system is critically damped. You add a little more resistance. What happens?

- [x] It becomes overdamped: no overshoot, but it settles more slowly
- [ ] It starts to ring
- [ ] It settles faster
- [ ] Nothing changes

::: right
Right. The double root splits into two real roots, one closer to zero, and that slow root lengthens the tail.
:::

::: misses
- [2] Ringing comes from less damping, not more.
- [3] Past critical, more damping only adds sluggishness.
- [any] What happens to the roots?
:::
:::

::: check
kind: parts
given: a = 2 | 5 | 10; v0 = 1 | 3

## A critically damped system $\ddot y + 2\given{a}\dot y + \given{a}^2y = 0$ starts at $y = 0$ with $\dot y$ = {v0}.

::: part
answer: 1/a
tolerance: 0.5%

### When does $y$ peak?

::: misses
- [any] $y = v_0te^{-at}$.
:::
:::

::: part
answer: v0/(a*exp(1))
tolerance: 0.5%

### What is the peak value?

::: misses
- [v0/a] There's a factor $e^{-1}$ from the exponential.
- [any] $v_0\frac1ae^{-1}$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..5, t = 0..3

## Check that $y = te^{-at}$ solves $\ddot y + 2a\dot y + a^2y = 0$.

::: step
answer: (1 - a*t)*exp(-a*t)

### What is $\dot y$?
:::

::: step
answer: (a^2*t - 2*a)*exp(-a*t)

### What is $\ddot y$?
:::

::: right
Right. $(a^2t - 2a) + 2a(1 - at) + a^2t = 0$: the repeated root's second solution.
:::
:::

::: explain
## Why is critical damping the fastest response that never overshoots?

::: model
With less damping than critical, the roots are complex and the response oscillates, so it crosses zero and overshoots. With more, the roots are real and distinct, and the one closer to zero decays slowly, stretching the tail. Critical damping is exactly the boundary: the two roots meet at $-\omega_0$, as far from zero as real roots can get together, so the response decays as fast as possible while still having no oscillation to cause an overshoot.
:::
:::

::: practice

::: check
given: w = 1..10 int
answer: 5.83/w
tolerance: 1%

## A critically damped system with $\omega_0$ = {w} rad/ms is released from rest. About how long until it's within 2% of zero?

::: misses
- [4/w] That's the rule for a first-order system. A critically damped one needs about $5.8/\omega_0$.
- [any] About $5.83/\omega_0$.
:::
:::

::: check
given: R = 100 | 200; L = 1 | 4
answer: 4*L*1e-3/R^2*1e6
unit: µF
tolerance: 0.5%

## A series RLC has {R} Ω and {L} mH. What capacitance makes it critically damped?

::: misses
- [any] $R = 2\sqrt{L/C}$, so $C = 4L/R^2$.
:::
:::

::: check
given: a = 2..9 int
answer: exp(-1)/a
tolerance: 0.5%

## What is the largest value of $te^{-\given{a}t}$?

::: misses
- [exp(-1)] At $t = 1/a$, the value is $\frac{1}{a}e^{-1}$.
- [any] Evaluate at $t = 1/a$.
:::
:::
:::
