---
title: Designing a second-order response
heading: Overshoot, peak time and settling, and choosing R to meet them
eyebrow: C2 · Lesson 17 · Designing a second-order response
xp: 40
---

::: hook
Engineers rarely ask "is it underdamped?" They ask "how much does it overshoot, and how soon does it settle?" A power supply's output may overshoot by no more than a few percent when the load changes; a measurement must settle within a microsecond; a servo should get where it's going quickly without ringing. For a second-order circuit, all of these follow from the damping ratio and the resonant frequency, so a specification can be turned straight into component values.
:::

::: play
- A 5 V step drives a series RLC (L = 10 mH, C = 100 nF). Adjust R and watch the overshoot, the time of the first peak and how long it rings.
- At about 374 Ω the overshoot is 10%. At 632 Ω it's critically damped: no overshoot, and the quickest settling without one.
- Well above that, it's overdamped and creeps up slowly.
:::
:::

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

::: predict
## A step response must overshoot by no more than 5%. What damping ratio does that need, roughly?

- [ ] At least 0.1
- [ ] At least 0.3
- [x] At least about 0.7
- [ ] Exactly 1

::: reveal
About 0.69. Overshoot falls steeply with damping: ζ = 0.3 overshoots 37%, ζ = 0.5 overshoots 16%, ζ = 0.7 about 5%, and ζ = 1 not at all. Many designs aim for ζ near 0.7 as a balance of speed and overshoot.
:::
:::

::: nameit
## The measures

For an underdamped second-order step response with damping ratio ζ and resonant frequency $\omega_0$ (lessons 15 and 16), with $\omega_d = \omega_0\sqrt{1 - \zeta^2}$:

| Measure | Formula |
|---|---|
| overshoot (fraction) | $M_p = e^{-\zeta\pi/\sqrt{1 - \zeta^2}}$ |
| peak time | $t_p = \pi/\omega_d$ |
| 2% settling time | $t_s \approx \frac{4}{\zeta\omega_0}$ |
| quality factor | $Q = \frac{1}{2\zeta}$ |

## Working backward

From a required overshoot $M_p$:

$$\zeta = \frac{-\ln M_p}{\sqrt{\pi^2 + \ln^2M_p}}$$

Then the component values follow from ζ. For a series RLC, $R = 2\zeta\sqrt{L/C}$; for a parallel one, $R = \frac{1}{2\zeta}\sqrt{L/C}$. If the settling time is also specified, it fixes $\omega_0$ and so $LC$.

## Trade-offs

Lower damping gives a faster first rise but more overshoot and longer ringing; higher damping removes the overshoot but, past critical damping, slows the approach. Critical damping (ζ = 1) is the fastest response with no overshoot at all, which is why meters, door closers and car suspensions aim near it.
:::

::: example
## Choose R for a series RLC with L = 10 mH and C = 100 nF to overshoot 10%.

::: solution
1. **Damping ratio for 10% overshoot.** With $\ln 0.1 = -2.303$ and $\pi^2 = 9.870$,
   $$\begin{aligned} \zeta &= \frac{2.303}{\sqrt{9.870 + 5.302}} \\ &= 0.591 \end{aligned}$$
2. **Characteristic resistance.**
   $$\sqrt{L/C} = 316\ \Omega$$
3. **Resistance.**
   $$\begin{aligned} R &= 2 \times 0.591 \times 316\ \Omega \\ &= 374\ \Omega \end{aligned}$$

**Answer:** R = 374 Ω gives 10% overshoot.
:::
:::

::: example
## For that design, when does the first peak come, and how long does it take to settle within 2%?

::: solution
1. **Ringing frequency.** With $\omega_0 = 31{,}600$ rad/s,
   $$\begin{aligned} \omega_d &= 31{,}600\sqrt{1 - 0.349} \\ &= 25{,}500\ \text{rad/s} \end{aligned}$$
2. **First peak.**
   $$\begin{aligned} t_p &= \frac{\pi}{25{,}500}\ \text{s} \\ &= 123\ \mu\text{s} \end{aligned}$$
3. **Settling time.**
   $$\begin{aligned} t_s &\approx \frac{4}{0.591 \times 31{,}600}\ \text{s} \\ &= 214\ \mu\text{s} \end{aligned}$$

**Answer:** the first peak comes at 123 µs, and the response settles within 2% after about 214 µs.
:::
:::

::: example
## A series RLC has L = 1 mH and R = 100 Ω. What capacitance gives ζ = 0.707, and how much does its step response overshoot?

::: solution
1. **Solve for C.** For a series RLC, $\zeta = \frac R2\sqrt{\frac CL}$, so
   $$\begin{aligned} C &= \frac{4\zeta^2L}{R^2} \\ &= \frac{4 \times 0.5 \times 10^{-3}}{10^4}\ \text{F} \\ &= 200\ \text{nF} \end{aligned}$$
2. **Overshoot.**
   $$e^{-\pi\zeta/\sqrt{1 - \zeta^2}} = 4.3\%$$
3. **Why 0.707.** Damping ratio 0.707 is a common target: the fastest rise with modest overshoot, and in the frequency domain the flattest response with no peak, the Butterworth response C4 builds on.

**Answer:** 200 nF gives ζ = 0.707, and the step response overshoots by 4.3%.
:::
:::

::: check
given: z = 0.2 | 0.4 | 0.6 | 0.8
answer: 100*exp(-z*pi/sqrt(1 - z^2))
tolerance: 0.5%

## A second-order system has ζ = {z}. By what percentage does its step response overshoot?

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

::: misses
- [100*exp(-z*pi)] Divide the exponent by $\sqrt{1 - \zeta^2}$.
- [any] Not yet. $M_p = e^{-\zeta\pi/\sqrt{1 - \zeta^2}}$.
:::
:::

::: check
given: Mp = 2 | 5 | 20
answer: -ln(Mp/100)/sqrt(pi^2 + ln(Mp/100)^2)
tolerance: 0.5%

## What damping ratio gives {Mp}% overshoot?

::: right
Right. $\frac{-\ln M_p}{\sqrt{\pi^2 + \ln^2M_p}}$ = {answer}.
:::

::: misses
- [-ln(Mp/100)/pi] Use the full formula; the approximation ignores the $\sqrt{1 - \zeta^2}$.
- [any] Not yet. Invert the overshoot formula.
:::
:::

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

## What series resistance gives ζ = {z} with L = {L} mH and C = {C} nF?

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

::: misses
- [z/2*sqrt(L*1e-3/(C*1e-9))] That has the parallel circuit's form, flipped; in series, $R = 2\zeta\sqrt{L/C}$.
- [any] Not yet. Solve $\zeta = \frac R2\sqrt{C/L}$.
:::
:::

::: check
given: z = 0.3 | 0.6; f0 = 1 | 10
answer: pi/(2*pi*f0*1000*sqrt(1 - z^2))*1e6
unit: µs
tolerance: 0.5%

## A system with ζ = {z} and a resonant frequency of {f0} kHz takes a step. When is its first peak?

::: right
Right. $\pi/\omega_d$ = {answer}.
:::

::: misses
- [pi/(2*pi*f0*1000)*1e6] Use the damped frequency, $\omega_0\sqrt{1 - \zeta^2}$.
- [any] Not yet. $t_p = \pi/\omega_d$.
:::
:::

::: check
given: z = 0.2 | 0.5 | 0.7; f0 = 1 | 50
answer: 4/(z*2*pi*f0*1000)*1e6
unit: µs
tolerance: 0.5%

## About how long does a system with ζ = {z} and $f_0$ = {f0} kHz take to settle within 2%?

::: right
Right. $4/(\zeta\omega_0)$ = {answer}.
:::

::: misses
- [4/(z*f0*1000)*1e6] Use $\omega_0 = 2\pi f_0$.
- [any] Not yet. The envelope decays as $e^{-\zeta\omega_0t}$.
:::
:::

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

## What is the quality factor of a system with ζ = {z}?

::: right
Right. $Q = 1/(2\zeta)$ = {answer}.
:::

::: misses
- [1/z] $Q = 1/(2\zeta)$.
- [any] Not yet. $Q = 1/2\zeta$.
:::
:::

::: check
kind: design
choose: R1
goal: peak(v(out)) = 5.5 ± 1%
solution: R1 = 373.9

## Choose $R_1$ so the 5 V step overshoots by 10%: a peak of 5.5 V.

```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
scope: v(out)
time: 0..1m s
```

::: right
Right. About 374 Ω: ζ = 0.59.
:::
:::

::: check
kind: design
choose: R1
goal: peak(v(out)) < 5.05; final(v(out)) = 5 ± 1%
solution: R1 = 632

## Choose $R_1$ so the output never overshoots by more than 1% and is within 1% of 5 V by 0.5 ms.

```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
scope: v(out)
time: 0..0.5m s
```

::: right
Right. Near critical damping, $2\sqrt{L/C}$ = 632 Ω. Much lower overshoots; much higher is too slow.
:::
:::

::: check
kind: parts
given: L = 1 | 10; R = 50 | 200; z = 0.5 | 0.707

## A series RLC has L = {L} mH and R = {R} Ω, and should have ζ = {z}.

::: part
answer: 4*z^2*L*1e-3/R^2*1e9
unit: nF
tolerance: 0.5%

### What capacitance does that need?

::: misses
- [any] $C = \frac{4\zeta^2L}{R^2}$.
:::
:::

::: part
answer: exp(-pi*z/sqrt(1 - z^2))*100
unit: %
tolerance: 0.5%

### How much will its step response overshoot?

::: misses
- [any] $e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::
:::

::: check
kind: derivation
vars: z = 0.05..0.95, w = 100..10000000

## A second-order system with damping z and natural frequency w (rad/s).

::: step
answer: exp(-pi*z/sqrt(1 - z^2))

### What fraction does it overshoot?
:::

::: step
answer: w*sqrt(1 - z^2)

### At what frequency does it ring?
:::

::: step
answer: pi/(w*sqrt(1 - z^2))

### When is the first peak?
:::

::: right
Right. Overshoot depends only on ζ; the timing scales with $1/\omega_n$.
:::
:::

::: explain
## Why do so many designs aim for a damping ratio near 0.7 rather than 1?

::: model
A critically damped system (ζ = 1) never overshoots, but it approaches its final value rather slowly near the end. Reducing ζ to about 0.7 makes the response rise noticeably faster, at the cost of only about 5% overshoot, and it settles within a few percent in less time than the critically damped one does. For many uses a small, brief overshoot is a fair price for speed. Where any overshoot is unacceptable, as when it could damage a part or trip a limit, designers move toward ζ = 1.
:::
:::

::: practice

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

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

::: misses
- [any] $2\sqrt{L/C}$.
:::
:::

::: check
given: z = 0.3 | 0.7; f0 = 1 | 5
answer: f0*sqrt(1 - z^2)
unit: kHz
tolerance: 0.5%

## A system has ζ = {z} and $f_0$ = {f0} kHz. At what frequency does it ring?

::: misses
- [any] $f_0\sqrt{1 - \zeta^2}$.
:::
:::

::: check
given: Q = 0.5 | 2 | 10
answer: 1/(2*Q)
tolerance: 0.5%

## What damping ratio goes with Q = {Q}?

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