---
title: "Problem set 5: frequency-domain analysis and design"
heading: "Problem set 5: loop Bode plots, the Nyquist criterion, stability margins and loop shaping"
eyebrow: S9 · Problem set 5
type: problems
---

::: hook
These problems cover lessons 23 to 26: crossover, phase and delay on Bode plots, encirclements and real-axis crossings on Nyquist plots, gain, phase, delay and modulus margins, and lead and lag compensators designed in the frequency domain.
:::

::: pool
pick: 12

::: check
kind: parts
given: K = 10 | 40 | 150; t = 0.05 | 0.25; w = 3 | 15

## The 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%

### Crossover?

::: misses
- [any] Solve $\omega\sqrt{1 + \omega^2\tau^2} = K$.
:::
:::

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

### Phase margin?

::: misses
- [any] 90° − $\tan^{-1}\omega_c\tau$.
:::
:::

::: part
answer: 20*log(K/(w*sqrt(1 + w^2*t^2)))
unit: dB
tolerance: 0.05

### Gain at {w} rad/s?

::: misses
- [any] $20\log(K/(\omega\sqrt{1 + \omega^2\tau^2}))$.
:::
:::
:::

::: check
kind: parts
given: w = 20 | 200; T = 2 | 15; P = 40 | 55

## A loop crossing at {w} rad/s with {P}° of phase margin; a {T} ms delay is added.

::: part
answer: w*T/1000*180/pi
unit: °
tolerance: 0.5%

### Phase the delay costs at crossover?

::: misses
- [any] $\omega_cT$ in degrees.
:::
:::

::: part
answer: P*pi/180/w*1000
unit: ms
tolerance: 0.5%

### Delay margin before the delay was added?

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

::: check
kind: parts
given: a = 2 | 8; b = 30 | 80; w = 4 | 20; n = 3 | 5; m = 1 | 2

## $L = K/(s(s/\given{a} + 1)(s/\given{b} + 1))$; and a loop with {n} poles and {m} zeros.

::: part
answer: -90 - atan(w/a)*180/pi - atan(w/b)*180/pi
unit: °
tolerance: 0.5%

### First loop's phase at {w} rad/s?

::: misses
- [any] Sum each factor's phase.
:::
:::

::: part
answer: -20*(n - m)
unit: dB/dec
tolerance: 0

### Second loop's high-frequency slope?

::: misses
- [any] −20 per pole, +20 per zero.
:::
:::
:::

::: check
kind: parts
given: K = 20 | 100; a = 1 | 2; b = 3 | 5; c = 10 | 20

## $L = \given{K}/((s + \given{a})(s + \given{b})(s + \given{c}))$.

::: part
answer: sqrt(a*b + b*c + c*a)
unit: rad/s
tolerance: 0.5%

### Phase crossover?

::: misses
- [any] $\sqrt{ab + bc + ca}$.
:::
:::

::: part
answer: -K/((a + b + c)*(a*b + b*c + c*a) - a*b*c)
tolerance: 0.5%

### Where the Nyquist plot crosses the negative real axis?

::: misses
- [any] $-K/((a + b + c)(ab + bc + ca) - abc)$.
:::
:::

::: part
answer: 20*log(((a + b + c)*(a*b + b*c + c*a) - a*b*c)/K)
unit: dB
tolerance: 0.05

### Gain margin in dB?

::: misses
- [any] $-20\log$ of the crossing's distance.
:::
:::
:::

::: check
kind: parts
given: K = 3 | 15; a = 0.5 | 2; b = 4 | 10

## $L = \given{K}/(s(s + \given{a})(s + \given{b}))$.

::: part
answer: -K/(a*b*(a + b))
tolerance: 0.5%

### Negative real-axis crossing?

::: misses
- [any] $-K/(ab(a + b))$.
:::
:::

::: part
answer: -K*(a + b)/(a*b)^2
tolerance: 0.5%

### The vertical asymptote Re L approaches as ω → 0?

::: misses
- [any] $L = \frac{K/ab}{s(s/a + 1)(s/b + 1)}$: Re → $-\frac{K}{ab}\left(\frac{1}{a} + \frac{1}{b}\right)$.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 2; b = 4 | 9; N = -1 | 1 | 3; P = 1 | 2

## A plant with poles at +{a} and −{b} under gain K; separately, a loop with P = {P} and N = {N}.

::: part
answer: a*b
tolerance: 0.5%

### Least K to stabilize the first?

::: misses
- [any] $|L(0)| = K/ab$ must exceed 1.
:::
:::

::: part
answer: N + P
tolerance: 0

### Closed-loop RHP poles of the second?

::: misses
- [any] Z = N + P.
:::
:::
:::

::: check
kind: parts
given: K = 4 | 25; T = 4 | 30

## $L = Ke^{-sT}/s$ with K = {K} s⁻¹ and T = {T} ms.

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

### Phase margin?

::: misses
- [any] $90° - KT$.
:::
:::

::: part
answer: pi/(2*T/1000)/K
tolerance: 0.5%

### Gain margin as a factor?

::: misses
- [any] $(\pi/2T)/K$.
:::
:::
:::

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

## A loop with peak sensitivity $M_s$ = {M}.

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

### Guaranteed phase margin?

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

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

### Guaranteed gain margin in dB?

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

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

### Closest approach of the Nyquist plot to −1?

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

::: check
kind: parts
given: z = 0.35 | 0.5 | 0.65

## The standard loop $\omega_n^2/(s(s + 2\zeta\omega_n))$ with ζ = {z}.

::: part
answer: atan(2*z/sqrt(sqrt(1 + 4*z^4) - 2*z^2))*180/pi
unit: °
tolerance: 0.5%

### Phase margin?

::: misses
- [any] The exact formula.
:::
:::

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

### Closed-loop overshoot?

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

::: check
kind: parts
given: a = 2.5 | 6 | 12; z = 3 | 40

## A lead with zero at {z} rad/s and α = {a}.

::: part
answer: asin((a - 1)/(a + 1))*180/pi
unit: °
tolerance: 0.5%

### Maximum phase?

::: misses
- [any] $\sin^{-1}\frac{\alpha - 1}{\alpha + 1}$.
:::
:::

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

### Where?

::: misses
- [any] $\sqrt{\alpha}\omega_z$.
:::
:::

::: part
answer: 10*log(a)
unit: dB
tolerance: 0.05

### Gain added there?

::: misses
- [any] 10 log α.
:::
:::
:::

::: check
kind: parts
given: K = 8 | 30; t = 0.08 | 0.15; w = 20 | 50; P = 45 | 55

## Lead design: make $G = \given{K}/(s(\given{t}s + 1))$ cross at {w} rad/s with {P}° of margin.

::: part
answer: P - 90 + atan(w*t)*180/pi
unit: °
tolerance: 0.5%

### Phase the lead must add?

::: misses
- [any] Target phase −180° + PM, minus the plant's phase.
:::
:::

::: part
answer: (1 + sin((P - 90 + atan(w*t)*180/pi)*pi/180))/(1 - sin((P - 90 + atan(w*t)*180/pi)*pi/180))
tolerance: 0.5%

### α?

::: misses
- [any] $\frac{1 + \sin\phi}{1 - \sin\phi}$.
:::
:::

::: part
answer: w*sqrt(1 + w^2*t^2)/(K*sqrt((1 + sin((P - 90 + atan(w*t)*180/pi)*pi/180))/(1 - sin((P - 90 + atan(w*t)*180/pi)*pi/180))))
tolerance: 0.5%

### $K_c$?

::: misses
- [any] $K_c\sqrt{\alpha}|G| = 1$.
:::
:::
:::

::: check
kind: parts
given: w = 8 | 60; z = 0.8 | 5; p = 0.1 | 0.4; K = 5 | 20

## A lag (zero {z} rad/s, pole {p} rad/s) on a loop crossing at {w} rad/s with $K_v$ = {K}.

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

### Phase cost at crossover?

::: misses
- [any] Zero's phase minus pole's.
:::
:::

::: part
answer: K*z/p
unit: s^-1
tolerance: 0.5%

### New $K_v$?

::: misses
- [any] × z/p.
:::
:::
:::

::: check
kind: parts
given: a = 0.5 | 2 | 5; K = 3 | 10

## A plant with an unstable pole is under proportional control: $L = \given{K}/(s - \given{a})$.

::: part
answer: a - K
tolerance: 0.5%

### Where is the closed-loop pole?

::: misses
- [any] $s = a - K$.
:::
:::

::: part
answer: 20*log(K/a)
unit: dB
tolerance: 0.5%

### How far could the gain fall before instability, in dB?

::: misses
- [any] $20\log_{10}(K/a)$.
:::
:::
:::

::: check
kind: parts
given: z = 2 | 5; p = 20 | 50; w = 5 | 10 | 30

## A lead $C = (1 + s/\given{z})/(1 + s/\given{p})$ is evaluated at {w} rad/s.

::: part
answer: 20*log(sqrt(1 + (w/z)^2)/sqrt(1 + (w/p)^2))
unit: dB
tolerance: 0.5%

### What is its gain?

::: misses
- [any] $\sqrt{1 + (\omega/z)^2}/\sqrt{1 + (\omega/p)^2}$.
:::
:::

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

### And its phase?

::: misses
- [any] Zero's angle minus pole's.
:::
:::
:::

::: check
kind: parts
given: k = 2 | 4 | 10; P = 50 | 65

## A loop with {P}° of phase margin gets integral action from a PI zero {k} times below crossover.

::: part
answer: P - atan(1/k)*180/pi
unit: °
tolerance: 0.5%

### What margin is left?

::: misses
- [any] Subtract $\tan^{-1}(1/k)$.
:::
:::
:::
:::
