---
title: "Problem set 6: robustness, uncertainty and frequency-response computation"
heading: "Problem set 6: tolerable model errors from |T|, delay and gain uncertainty, robust performance, the small-gain theorem, Bode's integral with unstable poles, Nyquist counts, sensitivity peaks and delay margins"
eyebrow: S9 · Problem set 6
type: problems
---

::: hook
These problems cover lessons 28 to 31: how large a model error a loop can tolerate and of what kind, robust stability and robust performance, the costs Bode's integral and right-half-plane poles and zeros impose, and the quantities the frequency-response lab computes: encirclements, sensitivity peaks and delay margins.
:::

::: pool
pick: 12

::: check
kind: parts
given: M = 1.1 | 1.4 | 2 | 3

## A loop's |T| peaks at {M}, and its plant's gain may drift by an unknown factor of any phase at each frequency.

::: part
answer: 100/M
unit: %
tolerance: 0.5%

### Up to what relative error is stability guaranteed?

::: misses
- [any] $|W| < 1/M_t$.
:::
:::

::: part
answer: 20*log(1 + 1/M)
unit: dB
tolerance: 0.5%

### What pure gain increase (zero phase) does that guarantee, in dB?

::: misses
- [any] A real gain of $1 + |W|$.
:::
:::
:::

::: check
kind: parts
given: h = 5 | 20 | 50; w = 20 | 60 | 150; M = 1.2 | 2

## A loop with |T| = {M} at {w} rad/s may contain up to {h} ms of unmodeled delay.

::: part
answer: M*2*abs(sin(w*h*1e-3/2))
tolerance: 0.5%

### What is |WT| at that frequency?

::: misses
- [any] $|W| = 2|\sin(\omega\theta/2)|$, times |T|.
:::
:::
:::

::: check
kind: parts
given: G = 2.5 | 4 | 8; r = 25 | 50 | 100

## A loop's gain margin is {G}; its plant's gain is known only to within +{r}%.

::: part
answer: 20*log(G/(1 + r/100))
unit: dB
tolerance: 1%

### How much gain margin remains in the worst case?

::: misses
- [any] $20\log_{10}(G/(1 + r))$.
:::
:::
:::

::: check
kind: parts
given: S = 0.1 | 0.3; T = 0.8 | 1.2; p = 2 | 3; u = 0.2 | 0.4

## At one frequency |S| = {S}, |T| = {T}, the performance weight is {p} and the uncertainty weight {u}.

::: part
answer: p*S + u*T
tolerance: 0.5%

### What is $|W_pS| + |WT|$?

::: misses
- [any] Add the two weighted magnitudes.
:::
:::

::: part
answer: (1 - p*S)/T*100
unit: %
tolerance: 0.5%

### How large could the uncertainty be at that frequency with robust performance still met?

::: misses
- [any] Solve $|W_pS| + |W||T| = 1$ for |W|.
:::
:::
:::

::: check
kind: parts
given: c = 0.2 | 1 | 5; h = 0.05 | 0.2

## A loop $L = e^{-s\theta}/(\tau_cs)$ has $\tau_c$ = {c} s and θ = {h} s.

::: part
answer: 90 - h/c*180/pi
unit: °
tolerance: 0.5%

### What is its phase margin?

::: misses
- [any] Crossover at $1/\tau_c$: lose $\theta/\tau_c$ radians.
:::
:::

::: part
answer: pi/2*c - h
unit: s
tolerance: 0.5%

### How much more delay can it take?

::: misses
- [pi/2*c] It already has θ.
- [any] Delay margin $(\pi/2)\tau_c$ minus what's there.
:::
:::
:::

::: check
kind: parts
given: M = 1.3 | 1.6 | 2.2

## A loop's sensitivity peaks at {M}.

::: part
answer: 20*log(M/(M - 1))
unit: dB
tolerance: 0.5%

### What gain margin is guaranteed, in dB?

::: misses
- [any] $M_s/(M_s - 1)$.
:::
:::

::: part
answer: 2*asin(1/(2*M))*180/pi
unit: °
tolerance: 0.5%

### What phase margin?

::: misses
- [any] $2\sin^{-1}(1/2M_s)$.
:::
:::
:::

::: check
kind: parts
given: p = 0.5 | 1 | 3; a = 0.3 | 0.5; w = 2 | 10; W = 20 | 50

## A loop of relative degree two has an unstable open-loop pole at +{p} rad/s. It holds |S| at {a} from 0 to {w} rad/s.

::: part
answer: (pi*p - w*ln(a))/(W - w)
tolerance: 1%

### If the rest of Bode's integral is spread evenly from {w} to {W} rad/s, what average ln|S| does that band need?

::: misses
- [-w*ln(a)/(W - w)] The unstable pole adds π p to the integral.
- [any] $(\pi p - w\ln a)/(W - w)$.
:::
:::
:::

::: check
kind: parts
given: z = 5 | 10 | 40; p = 0.5 | 1 | 2

## A plant has a right-half-plane zero at +{z} and pole at +{p} rad/s.

::: part
answer: (z + p)/(z - p)
tolerance: 0.5%

### What is the smallest achievable $M_s$?

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

::: part
answer: z/(4*p)
tolerance: 0.5%

### By how much does the rule-of-thumb crossover window ($2p < \omega_c < z/2$) exceed a factor of one, as the ratio of its ends?

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

::: check
kind: parts
given: K = 3 | 6 | 12 | 20; a = 1 | 2

## The loop $L = K/(s + \given{a})^3$ with K = {K}.

::: part
answer: K/(8*a^3)
tolerance: 0.5%

### Where does its Nyquist plot cross the negative real axis, as a magnitude?

::: misses
- [K/a^3] At ω = √3 a the magnitude is $K/(2a)^3$.
- [any] $|L(j\sqrt3a)| = K/(8a^3)$.
:::
:::

::: part
answer: 2*step(K/(8*a^3) - 1)
tolerance: 0
unit: poles

### How many closed-loop poles are in the right half-plane?

::: misses
- [any] Zero if the crossing is inside −1, two if outside.
:::
:::
:::

::: check
kind: parts
given: K = 5 | 20 | 50; t = 0.02 | 0.1 | 0.5

## A loop $L = \given{K}/(s(\given{t}s + 1))$.

::: part
answer: sqrt((-1 + sqrt(1 + 4*K^2*t^2))/(2*t^2))
unit: rad/s
tolerance: 0.5%

### Where does it cross over?

::: misses
- [any] Solve $\omega^2(1 + \tau^2\omega^2) = K^2$.
:::
:::

::: part
answer: (pi/2 - atan(t*sqrt((-1 + sqrt(1 + 4*K^2*t^2))/(2*t^2))))/sqrt((-1 + sqrt(1 + 4*K^2*t^2))/(2*t^2))*1000
unit: ms
tolerance: 0.5%

### What is its delay margin?

::: misses
- [any] PM in radians over $\omega_c$.
:::
:::
:::

::: check
kind: parts
given: t = 1 | 5; d = 10 | 30; w = 0.5 | 2

## A plant $K/(\tau s + 1)$ was modeled with τ = {t} s, but the true time constant may be up to {d}% longer.

::: part
answer: d/100*t*w/sqrt(1 + (t*(1 + d/100)*w)^2)
tolerance: 0.5%

### How large is the relative model error at {w} rad/s?

::: misses
- [any] $|P_\text{true}/P - 1| = \frac{\Delta\tau\,\omega}{\sqrt{1 + (\tau + \Delta\tau)^2\omega^2}}$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 3; b = 0.2 | 0.5 | 0.9

## Two stable systems are connected in a feedback loop; one has peak gain {a}.

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

### Below what peak gain must the other be for the small-gain theorem to guarantee stability?

::: misses
- [any] The product must be below 1.
:::
:::

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

### If the other's peak gain is {b}, by what factor could the first one's grow before the guarantee is lost?

::: misses
- [a*b] That's the product itself; the margin is its inverse.
- [any] The product {a} × {b} must stay below 1.
:::
:::
:::

::: check
kind: parts
given: M = 0.5 | 2 | 4; f = 100 | 140 | 165

## At some frequency the 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|?

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

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

### What is |T|?

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

::: check
kind: parts
given: K = 0.5 | 2 | 8; h = 0.05 | 0.2

## A loop $L = Ke^{-s\theta}/s$ has K = {K} s⁻¹ and θ = {h} s.

::: part
answer: 20*log(pi/(2*K*h))
unit: dB
tolerance: 0.5%

### What is its gain margin?

::: misses
- [any] Phase −180° at $\pi/(2\theta)$, where |L| = $2K\theta/\pi$.
:::
:::

::: part
answer: 90 - K*h*180/pi
unit: °
tolerance: 0.5%

### And its phase margin?

::: misses
- [any] Crossover at K: lose Kθ radians.
:::
:::
:::

::: check
kind: choice

## A loop meets |WT| < 1 at every frequency for a weight covering a ±30% gain error. A colleague notes that the gain margin alone would have allowed +100%. Why the difference?

- [ ] The robust test is wrong
- [x] The gain margin covers only a real gain change at the phase crossover; |WT| < 1 covers a 30% error of any phase at every frequency, a much larger set of plants, so it's stricter about size
- [ ] Gain margins are always optimistic by a factor of three
- [ ] |T| peaks at the phase crossover

::: misses
- [1] Both are right about different sets of errors.
- [3] There's no fixed ratio between them.
- [4] |T| usually peaks near the gain crossover.
:::
:::
:::
