---
title: Sensitivity and fundamental limitations
heading: The sensitivity and complementary sensitivity functions and why they add to one, the waterbed effect and Bode's sensitivity integral, and the limits that right-half-plane zeros, unstable poles and time delays put on any controller
eyebrow: S9 · Lesson 28 · Sensitivity and fundamental limitations
xp: 50
---

::: hook
It would be nice to have a loop that rejects every disturbance at every frequency, ignores sensor noise and responds instantly. Mathematics says no. The sensitivity function, which shapes disturbance rejection, and the complementary sensitivity, which passes noise, always add up to one, and Hendrik Bode proved in 1945 that pushing sensitivity down at some frequencies forces it up at others. Some plants make matters worse: a right-half-plane zero caps how fast any controller can make the loop, an unstable pole sets a minimum speed, and a delay caps it again. Knowing these limits tells you when to stop tuning and change the hardware.
:::

::: play
- The magnitudes of the sensitivity $S = 1/(1 + L)$ and the complementary sensitivity $T = L/(1 + L)$ for $L = K/(s(s + 1)(s + 5))$.
- At low frequency |S| is small (good disturbance rejection) and T ≈ 1. At high frequency T is small (sensor noise blocked) and S ≈ 1. Between them, near crossover, both rise.
- Raise K: the low-frequency dip in |S| deepens and widens, and the peak above 0 dB grows. That's the **waterbed effect**.
:::

```sim plot
view: graph
x: w = 0.01..100 rad/s log
y: m = -40..15 dB
slider: K = 1..25 = 4 log
plot: 20*log(abs(1/(1 + K/((j*w)*(j*w + 1)*(j*w + 5))))) | samples: 600 | label: |S|
plot: 20*log(abs(K/((j*w)*(j*w + 1)*(j*w + 5))/(1 + K/((j*w)*(j*w + 1)*(j*w + 5))))) | samples: 600 | color: ch3 | label: |T|
plot: 0*w | dashed | color: ch4 | label: 0 dB
```

::: predict
## A boost converter has a right-half-plane zero at 18 kHz in its control-to-output response. Roughly how high can its voltage loop's crossover go?

- [ ] Any frequency, with enough phase lead
- [x] Well below the zero, about 9 kHz at most
- [ ] Exactly 18 kHz
- [ ] Above 36 kHz

::: reveal
A right-half-plane zero adds phase lag like a pole while raising the gain like a zero, and no controller can cancel it (that would need an unstable controller pole, lesson 4). A common rule keeps the crossover below half the zero, here 9 kHz, and in practice designers aim for a fifth to a third of it.
:::
:::

::: nameit
## Two functions that add to one

$$S = \frac{1}{1 + L}, \qquad T = \frac{L}{1 + L}, \qquad S + T = 1$$

S maps output disturbances to the output and the reference to the error; T maps the reference to the output and *sensor noise* to the output. Since they add to one, they can't both be small at the same frequency: a loop gives up disturbance rejection exactly where it starts rejecting noise.

## Bode's sensitivity integral

If L has relative degree at least two and $p_k$ are its right-half-plane poles,

$$\int_0^\infty \ln|S(j\omega)|\,d\omega = \pi\sum_k\text{Re}\,p_k$$

For a stable L the right side is zero: every decibel of attenuation below crossover is paid for by amplification elsewhere. Unstable poles make the bill larger.

## Limits from the plant

Rules of thumb for the crossover (Skogestad and Postlethwaite):

- **RHP zero at z:** $\omega_c < z/2$.
- **RHP pole at p:** $\omega_c > 2p$; the loop must be fast enough to catch the instability.
- **Time delay θ:** $\omega_c < 1/\theta$.

An unstable pole together with an RHP zero forces a peak sensitivity of at least $M_s \ge \left|\frac{z + p}{z - p}\right|$, whatever the controller. When z and p are close, no controller gives a usable loop.

## Where these come from in electronics

A boost or buck-boost converter has an RHP zero at $\omega_z = R(1 - D)^2/L$ (continuous conduction); a magnetic levitation rig and a balancing robot have unstable poles; digital controllers and slow sensors add delay.
:::

::: example
## A boost converter has L = 22 µH, a 10 Ω load and duty cycle 0.5. Where's its RHP zero, and what crossover does that allow?

::: solution
1. **RHP zero.**
   $$\begin{aligned} f_z &= \frac{R(1 - D)^2}{2\pi L} \\ &= \frac{10 \times 0.25}{2\pi \times 22 \times 10^{-6}}\ \text{Hz} \\ &= 18.1\ \text{kHz} \end{aligned}$$
2. **Crossover limit.** The crossover should stay below about 9 kHz.
3. **Heavy load.** It must be lower still at heavy load, since a smaller R lowers the zero.
4. **High duty cycle.** A larger D shrinks $(1 - D)^2$ and drops the zero fast: at D = 0.75,
   $$f_z = 4.5\ \text{kHz}$$

**Answer:** the zero is at 18.1 kHz, so the crossover should stay below about 9 kHz, and lower at heavy load or high duty cycle.
:::
:::

::: example
## A plant has an unstable pole at +2 rad/s and an RHP zero at +10 rad/s. What's the best peak sensitivity any controller can reach?

::: solution
1. **Sensitivity bound.**
   $$\begin{aligned} M_s &\ge \frac{10 + 2}{10 - 2} \\ &= 1.5 \end{aligned}$$
2. **Crossover window.** The loop also needs crossover above 2p = 4 rad/s and below z/2 = 5 rad/s, a narrow window.
3. **A slower zero.** Had the zero been at 5 rad/s, the bound would be 2.33 and the window empty.
4. **The remedy.** Change the sensor or actuator location to move the zero.

**Answer:** no controller can get $M_s$ below 1.5, and the crossover must fit between 4 and 5 rad/s.
:::
:::

::: example
## A loop has an unstable plant pole at +2 rad/s and holds |S| at 0.5 from 0 to 5 rad/s. If the amplification Bode's integral demands is spread evenly from 5 to 50 rad/s, how big is it?

::: solution
1. **What the integral must equal.**
   $$\pi \times 2 = 6.28$$
2. **The attenuated band.** From 0 to 5 rad/s it contributes
   $$5\ln 0.5 = -3.47$$
3. **What the upper band must supply.**
   $$6.28 + 3.47 = 9.75$$
4. **Spread over 5 to 50 rad/s.** The average $\ln|S|$ and the |S| it means:
   $$\begin{aligned} \overline{\ln|S|} &= 9.75/45 \\ &= 0.217 \\ |S| &= e^{0.217} \\ &= 1.24 \end{aligned}$$
   a 1.9 dB rise.
5. **Compare a stable plant.** With the same attenuation it would need only 3.47/45, a 0.7 dB rise: the unstable pole more than doubles the bill.

**Answer:** |S| = 1.24 across 5 to 50 rad/s, a 1.9 dB rise, against 0.7 dB for a stable plant.
:::
:::

::: check
given: M = 0.5 | 1 | 2; f = 100 | 140 | 170
answer: 1/abs(1 + M*exp(-j*f*pi/180))
tolerance: 0.5%

## At some frequency a loop gain has magnitude {M} and phase −{f}°. How much are disturbances at that frequency amplified (|S|)?

::: right
Right. $|S| = 1/|1 + L|$ = {answer}.
:::

::: misses
- [1/(1 + M)] Add L as a complex number, with its phase.
- [any] Not yet. $|S| = 1/|1 + L(j\omega)|$.
:::
:::

::: check
given: p = 0.5 | 2 | 5; q = 0 | 1 | 3
answer: pi*(p + q)
tolerance: 0.5%

## A loop of relative degree two has right-half-plane poles at +{p} and, if not zero, +{q} rad/s. What's $\int_0^\infty\ln|S|\,d\omega$?

::: right
Right. π times the sum of the unstable poles' real parts: {answer} rad/s.
:::

::: misses
- [0] That's for a stable open loop. Unstable poles add $\pi\sum p_k$.
- [any] Not yet. Bode's integral with unstable poles.
:::
:::

::: check
given: z = 4 | 10 | 30; p = 1 | 2
answer: (z + p)/(z - p)
tolerance: 0.5%

## A plant has an RHP zero at +{z} and an RHP pole at +{p} rad/s. What's the smallest peak sensitivity achievable?

::: right
Right. $M_s \ge (z + p)/(z - p)$ = {answer}.
:::

::: misses
- [(z - p)/(z + p)] That's below 1; the bound is its reciprocal.
- [any] Not yet. $M_s \ge |z + p|/|z - p|$.
:::
:::

::: check
given: R = 5 | 20; D = 0.3 | 0.6; L = 10 | 47
answer: R*(1 - D)^2/(2*pi*L*1e-6)/1000
unit: kHz
tolerance: 0.5%

## A boost converter has L = {L} µH, a {R} Ω load and duty cycle {D}. Where's its right-half-plane zero?

::: right
Right. $R(1 - D)^2/(2\pi L)$ = {answer} kHz.
:::

::: misses
- [R*(1 - D)/(2*pi*L*1e-6)/1000] The factor $(1 - D)$ is squared.
- [any] Not yet. $\omega_z = R(1 - D)^2/L$.
:::
:::

::: check
given: b = 1 | 5; a = 2 | 10; c = 12 | 20
answer: exp(b*ln(a)/(c - b))
tolerance: 0.5%

## A stable loop holds |S| at 1/{a} for all ω below {b} rad/s. If the compensating rise is spread evenly from {b} to {c} rad/s (and |S| = 1 above), what |S| does that band have?

::: right
Right. The area $b\ln a$ must be repaid over $c - b$: $|S| = e^{b\ln a/(c - b)}$ = {answer}.
:::

::: misses
- [a] The repayment is spread over a wider band than the attenuation, so the peak is lower than {a}.
- [any] Not yet. Balance $\int\ln|S|\,d\omega = 0$.
:::
:::

::: check
given: l = 0.2 | 0.5 | 1.5
answer: 2*sqrt(9.81/l)
unit: rad/s
tolerance: 0.5%

## By the rule $\omega_c > 2p$, how fast must the loop balancing a {l} m inverted pendulum cross over?

::: right
Right. p = $\sqrt{g/l}$, so $\omega_c$ > {answer} rad/s.
:::

::: misses
- [sqrt(9.81/l)] That's the pole itself; the rule asks for twice it.
- [any] Not yet. Find the unstable pole, then double it.
:::
:::

::: check
kind: parts
given: M = 0.5 | 1 | 2 | 5; f = 120 | 150 | 170

## At some frequency a loop gain has magnitude {M} and phase −{f}°.

::: part
answer: 1/sqrt(1 + 2*M*cos(f*pi/180) + M^2)
tolerance: 0.5%

### What is |S| there?

::: misses
- [1/(1 + M)] The phase matters: $|1 + L|$ is a vector sum.
- [any] $1/|1 + L|$.
:::
:::

::: part
answer: M/sqrt(1 + 2*M*cos(f*pi/180) + M^2)
tolerance: 0.5%

### And |T|?

::: misses
- [any] $|L|/|1 + L|$.
:::
:::
:::

::: check
kind: derivation
vars: z = 10..100, p = 0.1..4

## A plant has an RHP zero at z and an RHP pole at p, with z > p.

::: step
answer: (z + p)/(z - p)

### What is the smallest possible peak sensitivity?
:::

::: step
answer: z/2

### By the rule of thumb, what is the most the crossover may be?
:::

::: step
answer: 2*p

### And the least?
:::

::: right
Right. The zero caps the bandwidth and the pole sets a floor; when they get close, no controller works well.
:::
:::

::: explain
## Why can't a controller simply cancel a plant's right-half-plane zero?

::: model
Cancelling a zero at +z would need a controller pole at +z, an unstable controller mode. Even if the cancellation were exact on paper, that mode would still be excited by noise and initial conditions and grow without bound inside the controller, and in practice the plant's zero is never known exactly, so the cancellation would leave a closed-loop pole near +z. The zero stays in every closed-loop transfer function from the reference, which means the output must initially move the wrong way, and the faster the loop tries to respond the larger that wrong-way excursion. That's why an RHP zero caps the achievable bandwidth no matter how the controller is designed.
:::
:::

::: practice

::: check
given: M = 0.3 | 1.5; f = 120 | 160
answer: 1/abs(1 + M*exp(-j*f*pi/180))
tolerance: 0.5%

## |S| for |L| = {M} at −{f}°?

::: misses
- [any] $1/|1 + L|$.
:::
:::

::: check
given: z = 6 | 20; p = 0.5 | 3
answer: (z + p)/(z - p)
tolerance: 0.5%

## Lowest $M_s$ with an RHP zero at {z} and pole at {p}?

::: misses
- [any] $(z + p)/(z - p)$.
:::
:::

::: check
given: R = 2 | 50; D = 0.2 | 0.7; L = 4.7 | 100
answer: R*(1 - D)^2/(2*pi*L*1e-6)/1000
unit: kHz
tolerance: 0.5%

## Boost RHP zero: L = {L} µH, R = {R} Ω, D = {D}?

::: misses
- [any] $R(1 - D)^2/(2\pi L)$.
:::
:::
:::
