---
title: Frequency response from poles and zeros
heading: Sketching a Bode plot in your head
eyebrow: A10 · Lesson 23 · Bode plots from poles
xp: 40
---

::: hook
A transfer function's poles and zeros tell you its frequency response, almost without arithmetic. Each pole bends the magnitude curve down by 20 dB per decade from its corner frequency on, and pulls the phase back by 90°; each zero does the opposite. An engineer looking at $H(s) = \frac{1000}{(s + 10)(s + 100)}$ can say at once that it's flat to 10 rad/s, falls at 20 dB per decade to 100 rad/s, then at 40 dB per decade. This lesson teaches that sketch and explains why it works.
:::

::: play
- The Bode plot is for two real poles, $H = \frac{1}{(1 + jf/f_1)(1 + jf/f_2)}$.
- Move the corners. Watch the slope change from 0 to $-20$ to $-40$ dB per decade, and the phase sweep from 0° to $-180°$.
- Put the two corners together. Is the curve at that frequency $-3$ dB or $-6$ dB?
:::
:::

```sim plot
view: bode
x: f = 1..100k Hz log
slider: f1 = 10..1000 = 100 Hz log
slider: f2 = 100..20k = 5k Hz log
H: 1/((1 + j*f/f1)*(1 + j*f/f2))
readout: gain at f1, dB = 20*log(1/(sqrt(2)*sqrt(1 + (f1/f2)^2))) | digits: 3
readout: phase at f1, degrees = -45 - atan(f1/f2)*180/pi | digits: 3
```

::: predict
## A single-pole low-pass has its corner at 1 kHz. About how much does it attenuate at 100 kHz?

- [ ] 3 dB
- [ ] 20 dB
- [x] 40 dB
- [ ] 100 dB

::: reveal
About 40 dB. 100 kHz is two decades above the corner, and a single pole rolls off at 20 dB per decade. The exact value is $10\log_{10}(1 + 100^2) = 40.0$ dB: far above the corner, the asymptote is essentially exact.
:::
:::

::: nameit
## Magnitude and phase from the factors

Write $H(s) = K\frac{(s - z_1)(s - z_2)\cdots}{(s - p_1)(s - p_2)\cdots}$ and set $s = j\omega$. In decibels, the factors add:

$$|H|_\text{dB} = 20\log_{10}|K| + \sum 20\log_{10}|j\omega - z_i| - \sum 20\log_{10}|j\omega - p_i|$$

and the phase is the sum of the zeros' angles minus the poles' angles. Geometrically, $|j\omega - p|$ is the distance from the point $j\omega$ on the axis to the pole.

## The straight-line sketch

For a real pole written as $\frac{1}{1 + j\omega/\omega_c}$:

| Frequency | Magnitude | Phase |
|---|---|---|
| well below $\omega_c$ | 0 dB, flat | 0° |
| at $\omega_c$ | $-3$ dB | $-45°$ |
| well above $\omega_c$ | $-20$ dB per decade | $-90°$ |

A real zero does the reverse: $+20$ dB per decade and $+90°$. Sketch each factor's straight lines and add them; correct by 3 dB at each corner if you need precision.

## Complex pole pairs

A pair with natural frequency $\omega_0$ and damping $\zeta$ gives $-40$ dB per decade above $\omega_0$ and $-180°$ of phase, with a peak near $\omega_0$ whose height is about $Q = \frac{1}{2\zeta}$ (in dB, $20\log_{10}Q$) when $\zeta$ is small.
:::

::: example
## Sketch $H(s) = \dfrac{1000}{(s + 10)(s + 100)}$.

::: solution
1. **Normalize.**
   $$H(s) = \frac{1}{(1 + s/10)(1 + s/100)}$$
   DC gain 1 (0 dB), corners at 10 and 100 rad/s.
2. **Draw the asymptotes.** Flat to 10, $-20$ dB/decade to 100 (reaching $-20$ dB), then $-40$ dB/decade, so $-60$ dB at 1000 rad/s.
3. **Check.** The exact value at 1000 rad/s is $-60.0$ dB.

**Answer:** flat at 0 dB to 10 rad/s, falling at 20 dB/decade to $-20$ dB at 100 rad/s, then at 40 dB/decade to $-60$ dB at 1000 rad/s.
:::
:::

::: example
## For that $H$, what is the phase at 10 rad/s?

::: solution
1. **The pole at 10.** At its own corner it contributes $-45°$.
2. **The pole at 100.**
   $$-\tan^{-1}\frac{10}{100} = -5.7°$$
3. **Add them.**
   $$-45° - 5.7° = -50.7°$$

**Answer:** the phase at 10 rad/s is $-50.7°$.
:::
:::

::: example
## Sketch $H(s) = \dfrac{s + 10}{s + 100}$, and find its largest phase lead.

::: solution
1. **The two ends.** At low frequency $H \to 0.1$ ($-20$ dB); at high frequency $H \to 1$ (0 dB).
2. **The middle.** The zero at 10 rad/s starts the rise, and the pole at 100 rad/s ends it.
3. **Where the lead peaks.** At the geometric mean of the two corners:
   $$\sqrt{1000} = 31.6\ \text{rad/s}$$
4. **The peak lead.**
   $$\begin{aligned} \phi &= \tan^{-1}3.16 - \tan^{-1}0.316 \\ &= 72.5° - 17.5° \\ &= 54.9° \end{aligned}$$
5. **What it's for.** This is a lead compensator, used to add phase near a feedback loop's crossover.

**Answer:** the gain rises from $-20$ dB to 0 dB between 10 and 100 rad/s, and the largest phase lead is 54.9°, at 31.6 rad/s.
:::
:::

::: check
given: fc = 0.1 | 0.5 | 1 | 2 | 10 | 20
answer: -10*log(2)
tolerance: 0.5%

## A single-pole low-pass has its corner at {fc} kHz. What is its gain at the corner, in dB?

::: right
Right. $20\log_{10}\frac{1}{\sqrt 2}$ = {answer} dB, about $-3$.
:::

::: misses
- [-20*log(2)] That's $-6$ dB, half voltage. The corner is half power: $\frac{1}{\sqrt2}$ in voltage.
- [any] Not yet. $|H| = \frac{1}{\sqrt 2}$ at the corner.
:::
:::

::: check
given: k = 1 | 2 | 3
answer: -20*k

## By the straight-line sketch, what is a single pole's gain {k} decades above its corner, in dB?

::: right
Right. $-20$ dB per decade: {answer} dB.
:::

::: misses
- [-40*k] That's a pair of poles.
- [-6*k] $-6$ dB per octave is the same slope, but this is per decade.
- [any] Not yet. $-20$ dB per decade.
:::
:::

::: check
given: f = 2 | 1.5; fc = 1 | 0.5
answer: -10*log(1 + (f/fc)^2)
tolerance: 0.5%

## What is the exact gain, in dB, of $\frac{1}{1 + jf/f_c}$ at $f$ = {f} kHz, with $f_c$ = {fc} kHz?

::: right
Right. $-10\log_{10}(1 + (f/f_c)^2)$ = {answer} dB.
:::

::: misses
- [-20*log(f/fc)] That's the asymptote; near the corner the exact value differs.
- [any] Not yet. $20\log_{10}\frac{1}{\sqrt{1 + (f/f_c)^2}}$.
:::
:::

::: check
given: f1 = 10 | 100; f2 = 1000 | 2000; f = 10000 | 50000
answer: -20*log(f/f1) - 20*log(f/f2)
tolerance: 1%

## Two real poles have corners at {f1} Hz and {f2} Hz. By the straight-line sketch, what is the gain at {f} Hz, in dB?

::: right
Right. Each pole contributes $-20\log_{10}(f/f_c)$ above its corner: {answer} dB.
:::

::: misses
- [-20*log(f/f1)] Include the second pole too.
- [any] Not yet. Add each pole's asymptote.
:::
:::

::: check
given: f = 1 | 3; fc = 1 | 0.5; f2 = 10 | 20
answer: -atan(f/fc)*180/pi - atan(f/f2)*180/pi
tolerance: 0.5%

## What is the phase, in degrees, of $\frac{1}{(1 + jf/f_c)(1 + jf/f_2)}$ at $f$ = {f}, with $f_c$ = {fc} and $f_2$ = {f2}?

::: right
Right. $-\tan^{-1}(f/f_c) - \tan^{-1}(f/f_2)$ = {answer}°.
:::

::: misses
- [-atan(f/fc)*180/pi] Include the second pole's lag.
- [any] Not yet. Add each pole's phase.
:::
:::

::: check
given: zeta = 0.05 | 0.1 | 0.25
answer: 20*log(1/(2*zeta))
tolerance: 1%

## A complex pole pair has $\zeta$ = {zeta}. About how high, in dB, is its resonant peak?

::: right
Right. About $20\log_{10}Q$ with $Q = \frac{1}{2\zeta}$: {answer} dB.
:::

::: misses
- [20*log(1/zeta)] $Q = \frac{1}{2\zeta}$.
- [any] Not yet. Peak $\approx Q = \frac{1}{2\zeta}$.
:::
:::

::: check
kind: parts
given: z = 5 | 10; p = 100 | 200

## A lead network $H(s) = \dfrac{s + \given{z}}{s + \given{p}}$.

::: part
answer: sqrt(z*p)
unit: rad/s
tolerance: 0.5%

### At what frequency is its phase lead largest?

::: misses
- [(z + p)/2] It's the geometric mean, not the arithmetic one.
- [any] $\sqrt{zp}$.
:::
:::

::: part
answer: (atan(sqrt(p/z)) - atan(sqrt(z/p)))*180/pi
unit: °
tolerance: 0.5%

### What is that lead?

::: misses
- [any] $\tan^{-1}\frac{\omega}{z} - \tan^{-1}\frac{\omega}{p}$ at $\omega = \sqrt{zp}$.
:::
:::
:::

::: check
kind: derivation
vars: K = 1..1000, p = 1..100

## $H(s) = \frac{K}{s + p}$.

::: step
answer: 20*log(K/p)

### What is its DC gain in dB?
:::

::: step
answer: -45

### What is its phase at $\omega = p$, in degrees?
:::

::: right
Right. A single pole costs 45° at its corner and 90° far above it.
:::
:::

::: explain
## Why does each real pole make the magnitude fall at 20 dB per decade above its corner?

::: model
Above the corner, $|1 + j\omega/\omega_c| \approx \omega/\omega_c$, so the pole's factor $\frac{1}{|1 + j\omega/\omega_c|}$ is about $\frac{\omega_c}{\omega}$: inversely proportional to frequency. Ten times the frequency means a tenth of the magnitude, which is $-20$ dB. In decibels the factors of a transfer function add, so several poles stack their slopes: two give $-40$ dB per decade, three give $-60$.
:::
:::

::: practice

::: check
given: fc = 0.1 | 0.5 | 1 | 2 | 5 | 20
answer: -45

## What is the phase of a single-pole low-pass at its corner, {fc} kHz?

::: misses
- [-90] That's far above the corner.
- [any] $-\tan^{-1}(1)$.
:::
:::

::: check
given: K = 2 | 5 | 10 | 20 | 50 | 100 | 1000
answer: 20*log(K)
tolerance: 0.5%

## A transfer function has DC gain {K}. What is that in dB?

::: misses
- [10*log(K)] Voltage gain uses $20\log_{10}$.
- [any] $20\log_{10}K$.
:::
:::

::: check
given: n = 1..6 int
answer: -20*n

## {n} real poles all have corners below 1 kHz. What is the slope well above them, in dB per decade?

::: misses
- [any] $-20$ per pole.
:::
:::
:::
