---
title: First- and second-order step responses
heading: Time constants, rise and settling times, the second-order system's natural frequency and damping ratio, overshoot and peak time, and turning time-domain specifications into a region of the s-plane
eyebrow: S9 · Lesson 7 · First- and second-order step responses
xp: 50
---

::: hook
"Settle within half a second with no more than 10% overshoot" is a typical requirement for a control loop. To design for it you need to know which pole locations produce which step responses. For first- and second-order systems the answer is exact and simple, and since most well-designed loops are dominated by one or two poles (lesson 8), these formulas are the working vocabulary of control design.
:::

::: play
- The step response of $\omega_n^2/(s^2 + 2\zeta\omega_ns + \omega_n^2)$, with sliders for the damping ratio ζ and the natural frequency $\omega_n$.
- Lower ζ means more overshoot and more ringing; the readouts give the overshoot, peak time and 2% settling estimate.
- Raising $\omega_n$ with ζ fixed squeezes the whole response in time without changing its shape: overshoot depends on ζ alone.
:::

```sim plot
view: graph
x: t = 0..3 s
y: y = 0..1.8
slider: z = 0.05..0.95 = 0.5
slider: w = 2..30 = 10 rad/s log
plot: 1 - exp(-z*w*t)*(cos(w*sqrt(1 - z^2)*t) + z/sqrt(1 - z^2)*sin(w*sqrt(1 - z^2)*t)) | samples: 600 | label: y(t)
plot: 1 + exp(-z*w*t)/sqrt(1 - z^2) | dashed | color: ch3 | label: envelope
plot: 1.02 + 0*t | dashed | color: ch4 | label: 2% band
plot: 0.98 + 0*t | dashed | color: ch4
readout: overshoot, % = 100*exp(-pi*z/sqrt(1 - z^2)) | digits: 3
readout: peak time, s = pi/(w*sqrt(1 - z^2)) | digits: 3
readout: settling estimate 4/ζω, s = 4/(z*w) | digits: 3
```

::: predict
## A loop must overshoot no more than 10%. What's the least damping ratio its dominant poles can have?

- [ ] 0.1
- [ ] 0.3
- [x] About 0.6
- [ ] 0.9

::: reveal
Overshoot is $e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$, which equals 10% at ζ = 0.591. That's a cone in the s-plane: poles within ±53.8° of the negative real axis (cos⁻¹ 0.591).
:::
:::

::: nameit
## First order

$\frac{1}{\tau s + 1}$ reaches 63% at τ, rises from 10% to 90% in $\tau\ln 9 = 2.20\tau$ and stays within 2% after $\tau\ln 50 = 3.91\tau$.

## Second order

$$\frac{\omega_n^2}{s^2 + 2\zeta\omega_ns + \omega_n^2}, \qquad s = -\zeta\omega_n \pm j\omega_n\sqrt{1 - \zeta^2} = -\sigma \pm j\omega_d$$

For $0 < \zeta < 1$ the step response is $1 - e^{-\sigma t}\left(\cos\omega_dt + \frac{\zeta}{\sqrt{1 - \zeta^2}}\sin\omega_dt\right)$, with

- **overshoot** $M_p = e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$, so $\zeta = \dfrac{-\ln M_p}{\sqrt{\pi^2 + \ln^2M_p}}$;
- **peak time** $t_p = \pi/\omega_d$;
- **settling time** (2%) $t_s \approx 4/\sigma = 4/\zeta\omega_n$, from the envelope;
- **rise time** roughly $1.8/\omega_n$ near ζ = 0.5.

## Specifications as a region

The poles sit at distance $\omega_n$ from the origin, at angle $\cos^{-1}\zeta$ from the negative real axis. Overshoot sets a maximum angle, settling time a minimum $\sigma$ (poles to the left of $-4/t_s$), and rise time a minimum $\omega_n$. A design puts the dominant poles inside all three regions.
:::

::: example
## A loop has $\omega_n$ = 10 rad/s and ζ = 0.5. Predict its step response.

::: solution
1. **Damped frequency and decay rate.**
   $$\begin{aligned} \omega_d &= 10\sqrt{0.75} \\ &= 8.66\ \text{rad/s} \\ \sigma &= 5\ \text{s}^{-1} \end{aligned}$$
2. **Overshoot.**
   $$\begin{aligned} M_p &= e^{-\pi \times 0.5/0.866} \\ &= 16.3\% \end{aligned}$$
3. **Peak time.**
   $$\begin{aligned} t_p &= \pi/8.66 \\ &= 0.363\ \text{s} \end{aligned}$$
4. **Settling time (2%).**
   $$\begin{aligned} t_s &\approx 4/5 \\ &= 0.8\ \text{s} \end{aligned}$$
   A simulation gives 0.81 s.

**Answer:** it overshoots 16.3%, peaks at 0.363 s and settles within 2% by about 0.8 s.
:::
:::

::: example
## Find the s-plane region for at most 10% overshoot and 2% settling within 0.5 s.

::: solution
1. **Overshoot limit.** 10% overshoot needs ζ ≥ 0.591, which puts the poles within 53.8° of the negative real axis.
2. **Settling limit.**
   $$\begin{aligned} \sigma &\ge 4/0.5 \\ &= 8\ \text{s}^{-1} \end{aligned}$$
3. **Where the two meet.** The slowest poles that do both sit where the cone meets the line σ = 8:
   $$\begin{aligned} \omega_n &= 8/0.591 \\ &= 13.5\ \text{rad/s} \\ \omega_d &= 10.9\ \text{rad/s} \end{aligned}$$

**Answer:** the poles must lie within 53.8° of the negative real axis with σ of at least 8 s⁻¹; the slowest allowed poles have $\omega_n$ = 13.5 rad/s and $\omega_d$ = 10.9 rad/s.
:::
:::

::: example
## A step response overshoots by 25% and peaks at 0.2 s. Find ζ, $\omega_n$ and the settling time.

::: solution
1. **Damping from the overshoot.**
   $$\begin{aligned} \zeta &= \frac{-\ln 0.25}{\sqrt{\pi^2 + \ln^2 0.25}} \\ &= \frac{1.386}{3.434} \\ &= 0.404 \end{aligned}$$
2. **Frequency from the peak time.**
   $$\begin{aligned} \omega_d &= \pi/0.2 \\ &= 15.7\ \text{rad/s} \\ \omega_n &= \frac{15.7}{\sqrt{1 - 0.404^2}} \\ &= 17.2\ \text{rad/s} \end{aligned}$$
3. **Settling time (2%).**
   $$\begin{aligned} t_s &\approx \frac{4}{\zeta\omega_n} \\ &= 4/6.93 \\ &= 0.58\ \text{s} \end{aligned}$$
4. **What it shows.** Two numbers read off a scope pin down the whole second-order model.

**Answer:** ζ = 0.404 and $\omega_n$ = 17.2 rad/s, and it settles in about 0.58 s.
:::
:::

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

## A second-order system has ζ = {z}. What's its step overshoot?

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

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

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

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

::: right
Right. ζ = {answer}.
:::

::: misses
- [-ln(M/100)/pi] Use the exact inverse, with the $\sqrt{\pi^2 + \ln^2M_p}$.
- [any] Not yet. Invert $M_p = e^{-\pi\zeta/\sqrt{1 - \zeta^2}}$.
:::
:::

::: check
given: w = 2 | 10 | 50; z = 0.3 | 0.7
answer: pi/(w*sqrt(1 - z^2))
unit: s
tolerance: 0.5%

## A system with $\omega_n$ = {w} rad/s and ζ = {z}. When does its step response peak?

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

::: misses
- [pi/w] Use the damped frequency $\omega_n\sqrt{1 - \zeta^2}$.
- [any] Not yet. $t_p = \pi/\omega_d$.
:::
:::

::: check
given: w = 4 | 20 | 100; z = 0.3 | 0.5 | 0.7
answer: 4/(z*w)
unit: s
tolerance: 0.5%

## Estimate the 2% settling time for $\omega_n$ = {w} rad/s and ζ = {z}.

::: right
Right. $4/\zeta\omega_n$ = {answer} s.
:::

::: misses
- [4/w] Use the real part of the poles, $\zeta\omega_n$.
- [any] Not yet. The envelope decays as $e^{-\zeta\omega_nt}$.
:::
:::

::: check
given: t = 0.5 | 3 | 40
answer: t*ln(9)
unit: ms
tolerance: 0.5%

## A first-order system has a time constant of {t} ms. What's its 10–90% rise time?

::: right
Right. $\tau\ln 9$ = {answer} ms.
:::

::: misses
- [t] That's the time to 63%.
- [any] Not yet. Solve $1 - e^{-t/\tau}$ = 0.1 and 0.9.
:::
:::

::: check
given: s = 2 | 5; w = 3 | 6 | 12
answer: s/sqrt(s^2 + w^2)
tolerance: 0.5%

## A pair of poles sits at $-\given{s} \pm j\given{w}$. What's their damping ratio?

::: right
Right. $\zeta = \sigma/\sqrt{\sigma^2 + \omega_d^2}$ = {answer}.
:::

::: misses
- [s/w] Divide by the distance from the origin, $\omega_n$.
- [any] Not yet. ζ is the cosine of the angle from the negative real axis.
:::
:::

::: check
kind: parts
given: M = 5 | 15 | 25 | 40; t = 0.05 | 0.2 | 1

## A step response overshoots by {M}% and peaks at {t} s.

::: part
answer: -ln(M/100)/sqrt(pi^2 + ln(M/100)^2)
tolerance: 0.5%

### What is ζ?

::: misses
- [any] $\zeta = -\ln M_p/\sqrt{\pi^2 + \ln^2M_p}$.
:::
:::

::: part
answer: pi/t/sqrt(1 - (ln(M/100)^2/(pi^2 + ln(M/100)^2)))
unit: rad/s
tolerance: 0.5%

### What is $\omega_n$?

::: misses
- [pi/t] That's $\omega_d$; divide by $\sqrt{1 - \zeta^2}$.
- [any] $\omega_n = \frac{\pi/t_p}{\sqrt{1 - \zeta^2}}$.
:::
:::
:::

::: check
kind: derivation
vars: z = 0.05..0.95, w = 0.1..1000

## A second-order system has damping ratio z and natural frequency w.

::: step
answer: z*w

### What is the decay rate σ?
:::

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

### What is $\omega_d$?
:::

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

### When does the step response peak?
:::

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

### What is the overshoot (as a fraction)?
:::

::: right
Right. σ sets how fast the ringing dies, $\omega_d$ how fast it rings, and their ratio the overshoot.
:::
:::

::: explain
## Why does overshoot depend only on the damping ratio and not on the natural frequency?

::: model
Changing $\omega_n$ while holding ζ fixed moves the poles along a ray from the origin, which scales them all by the same factor. Scaling every pole by a factor k is the same as running the system's clock k times faster: the response has exactly the same shape, compressed in time. The peak value, and so the overshoot, doesn't change; only when it happens does. Overshoot is set by the ray's angle, which is $\cos^{-1}\zeta$, so it depends on ζ alone.
:::
:::

::: practice

::: check
given: z = 0.15 | 0.35 | 0.55 | 0.75
answer: 100*exp(-pi*z/sqrt(1 - z^2))
unit: %
tolerance: 0.5%

## Overshoot for ζ = {z}?

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

::: check
given: M = 1 | 8 | 15 | 40
answer: -ln(M/100)/sqrt(pi^2 + ln(M/100)^2)
tolerance: 0.5%

## Damping ratio for {M}% overshoot?

::: misses
- [any] Invert the overshoot formula.
:::
:::

::: check
given: w = 3 | 30; z = 0.4 | 0.8
answer: pi/(w*sqrt(1 - z^2))
unit: s
tolerance: 0.5%

## Peak time for $\omega_n$ = {w}, ζ = {z}?

::: misses
- [any] $\pi/\omega_d$.
:::
:::
:::
