---
title: "Problem set 3: root locus, compensation and PID"
heading: "Problem set 3: sketching root loci, lead and lag design, PID structure and PID tuning"
eyebrow: S9 · Problem set 3
type: problems
---

::: hook
These problems cover lessons 13 to 16: root-locus rules and the angle and magnitude conditions, lead and lag compensator design, the structure and practical details of PID controllers, and tuning them from plant tests.
:::

::: pool
pick: 12

::: check
kind: parts
given: a = 1 | 3; b = 6 | 12

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

::: part
answer: -(a + b)/3
unit: rad/s
tolerance: 0.5%

### Asymptote centroid?

::: misses
- [any] Sum of poles over n − m.
:::
:::

::: part
answer: (-(a + b) + sqrt((a + b)^2 - 3*a*b))/3
unit: rad/s
tolerance: 0.5%

### Breakaway point?

::: misses
- [any] $dK/ds = 0$.
:::
:::

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

### Gain where it crosses the imaginary axis?

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

::: check
kind: parts
given: n = 4 | 5; m = 1 | 2; p = 2 | 6; q = 1 | 3

## A loop gain with {n} poles and {m} zeros, whose poles add up to −{p}·{n} and zeros to −{q}·{m}.

::: part
answer: 180/(n - m)
unit: °
tolerance: 0.5%

### Angle of the first asymptote?

::: misses
- [any] $180°/(n - m)$.
:::
:::

::: part
answer: (-p*n + q*m)/(n - m)
unit: rad/s
tolerance: 0.5%

### Centroid?

::: misses
- [any] (Σp − Σz)/(n − m).
:::
:::
:::

::: check
kind: parts
given: c = 1 | 3; w = 2 | 4; z = 4 | 6; a = 2 | 5; v = 1 | 3

## A loop $K(s + \given{z})/((s + \given{c})^2 + \given{w}^2)$; and $L = K/(s(s + \given{a}))$.

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

### Departure angle from the upper pole of the first loop?

::: misses
- [any] 180° + zero angles − other pole angles.
:::
:::

::: part
answer: a^2/4 + v^2
tolerance: 0.5%

### Gain putting the second loop's poles at $-\given{a}/2 \pm j\given{v}$?

::: misses
- [any] Magnitude condition.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; c = 3 | 4; w = 3 | 5

## Lead design for $G = 1/(s(s + \given{a}))$ with target poles at $-\given{c} \pm j\given{w}$ and the lead zero at −{c}.

::: part
answer: (arg(-c + j*w) + arg(a - c + j*w))*180/pi - 180
unit: °
tolerance: 0.5%

### Angle deficiency?

::: misses
- [any] The plant's angle must be raised to −180°.
:::
:::

::: part
answer: c + w/tan((90 - ((arg(-c + j*w) + arg(a - c + j*w))*180/pi - 180))*pi/180)
unit: rad/s
tolerance: 0.5%

### Lead pole?

::: misses
- [any] Pole seen at 90° minus the deficiency.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; c = 2 | 3; w = 3 | 4; z = 1.5 | 3; p = 7 | 12

## $L = K(s + \given{z})/(s(s + \given{a})(s + \given{p}))$ at the point $-\given{c} + j\given{w}$.

::: part
answer: (arg(z - c + j*w) - arg(p - c + j*w))*180/pi
unit: °
tolerance: 0.5%

### Phase the compensator adds there?

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

::: part
answer: abs(-c + j*w)*abs(a - c + j*w)*abs(p - c + j*w)/abs(z - c + j*w)
tolerance: 0.5%

### K from the magnitude condition?

::: misses
- [any] $|s||s + a||s + p|/|s + z|$.
:::
:::

::: part
answer: abs(-c + j*w)*abs(a - c + j*w)*abs(p - c + j*w)/abs(z - c + j*w)*z/(a*p)
unit: s^-1
tolerance: 0.5%

### $K_v$ with that K?

::: misses
- [any] $\lim sL(s) = Kz/(ap)$.
:::
:::
:::

::: check
kind: parts
given: K = 3 | 7; z = 0.05 | 0.2; p = 0.01 | 0.025; c = 2 | 4; w = 3 | 6

## A lag with zero −{z} and pole −{p} is added to a loop with $K_v$ = {K}, dominant poles near $-\given{c} \pm j\given{w}$.

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

### New $K_v$?

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

::: part
answer: (arg(z - c + j*w) - arg(p - c + j*w))*180/pi
unit: °
tolerance: 1%

### Phase it adds at the dominant pole?

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

::: check
kind: parts
given: K = 0.8 | 5; T = 0.1 | 1.5; D = 0.01 | 0.05; N = 8 | 15

## A PID with $K_p$ = {K}, $T_i$ = {T} s, $T_d$ = {D} s and derivative filter N = {N}.

::: part
answer: K/T
unit: s^-1
tolerance: 0.5%

### $K_i$?

::: misses
- [any] $K_p/T_i$.
:::
:::

::: part
answer: K*D
unit: s
tolerance: 0.5%

### $K_d$?

::: misses
- [any] $K_pT_d$.
:::
:::

::: part
answer: N/D
unit: rad/s
tolerance: 0.5%

### Derivative filter pole?

::: misses
- [any] $N/T_d$.
:::
:::
:::

::: check
kind: parts
given: t = 8 | 40; P = 3 | 15; c = 1 | 4

## PI control with $T_i$ = τ on $P = \given{P}/(\tau s + 1)$, τ = {t} ms, for a {c} ms closed-loop time constant.

::: part
answer: t/(P*c)
tolerance: 0.5%

### $K_p$?

::: misses
- [any] $\tau/(K_0\tau_c)$.
:::
:::

::: part
answer: 1000/(P*c)
unit: s^-1
tolerance: 0.5%

### $K_i$?

::: misses
- [any] $K_p/T_i$, with $T_i$ in seconds.
:::
:::
:::

::: check
kind: parts
given: T = 0.8 | 2.5; D = 0.04 | 0.15; K = 2 | 6; e = 3 | 8; s = 2 | 5

## A PID with $T_i$ = {T} s, $T_d$ = {D} s and $K_p$ = {K}, saturated for {s} s with error {e}.

::: part
answer: (-T + sqrt(T^2 - 4*T*D))/(2*T*D)
unit: rad/s
tolerance: 0.5%

### Slower zero?

::: misses
- [any] Roots of $T_iT_ds^2 + T_is + 1$.
:::
:::

::: part
answer: (-T - sqrt(T^2 - 4*T*D))/(2*T*D)
unit: rad/s
tolerance: 0.5%

### Faster zero?

::: misses
- [any] The other root.
:::
:::

::: part
answer: K/T*e*s
tolerance: 0.5%

### Integral growth during saturation?

::: misses
- [any] $K_iet$.
:::
:::
:::

::: check
kind: parts
given: K = 4 | 12; T = 2 | 9

## An ultimate-gain test: $K_u$ = {K}, $T_u$ = {T} s. Ziegler–Nichols PID settings:

::: part
answer: 0.6*K
tolerance: 0.5%

### $K_p$?

::: misses
- [any] $0.6K_u$.
:::
:::

::: part
answer: T/2
unit: s
tolerance: 0.5%

### $T_i$?

::: misses
- [any] $T_u/2$.
:::
:::

::: part
answer: T/8
unit: s
tolerance: 0.5%

### $T_d$?

::: misses
- [any] $T_u/8$.
:::
:::
:::

::: check
kind: parts
given: d = 2 | 10; a = 0.4 | 1.6; T = 1.5 | 6

## A relay test with amplitude ±{d} gives oscillation of amplitude {a} and period {T} s.

::: part
answer: 4*d/(pi*a)
tolerance: 0.5%

### Ultimate gain?

::: misses
- [any] $4d/(\pi a)$.
:::
:::

::: part
answer: 0.45*4*d/(pi*a)
tolerance: 0.5%

### Ziegler–Nichols PI $K_p$?

::: misses
- [any] $0.45K_u$.
:::
:::

::: part
answer: T/1.2
unit: s
tolerance: 0.5%

### Its $T_i$?

::: misses
- [any] $T_u/1.2$.
:::
:::
:::

::: check
kind: parts
given: K = 0.4 | 3; t = 4 | 30; h = 0.5 | 2.5; c = 1 | 2

## An FOPDT plant: K = {K}, τ = {t} s, θ = {h} s, SIMC with $\tau_c$ = {c}θ.

::: part
answer: t/(K*(c*h + h))
tolerance: 0.5%

### $K_p$?

::: misses
- [any] $\tau/(K(\tau_c + \theta))$.
:::
:::

::: part
answer: (t + 4*(c*h + h) - abs(t - 4*(c*h + h)))/2
unit: s
tolerance: 0.5%

### $T_i$?

::: misses
- [any] $\min(\tau, 4(\tau_c + \theta))$.
:::
:::

::: part
answer: 1.2*t/(K*h)
tolerance: 0.5%

### For comparison, the Ziegler–Nichols step-response PID $K_p$?

::: misses
- [any] $1.2\tau/(K\theta)$.
:::
:::
:::

::: check
kind: parts
given: t = 0.05 | 0.5 | 3; K = 2 | 10

## A plant $\given{K}/(\tau s + 1)^3$ with τ = {t} s, under proportional control.

::: part
answer: 8/K
tolerance: 0.5%

### Ultimate gain?

::: misses
- [any] The loop gain at the limit is 8.
:::
:::

::: part
answer: 2*pi*t/sqrt(3)
unit: s
tolerance: 0.5%

### Ultimate period?

::: misses
- [any] $2\pi\tau/\sqrt{3}$.
:::
:::
:::

::: check
kind: parts
given: c = 1 | 2; w = 1 | 3; p = 4 | 8

## A loop $L = K/(((s + \given{c})^2 + \given{w}^2)(s + \given{p}))$ has a complex pole pair and a real pole.

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

### At what angle does the locus leave the upper complex pole?

::: misses
- [any] 180° minus 90° (from the conjugate pole) minus the angle from the real pole.
:::
:::
:::

::: check
kind: parts
given: K = 0.5 | 2; t = 10 | 40; h = 2 | 5

## A step test gives K = {K}, τ = {t} s and θ = {h} s. Tune a Ziegler–Nichols PI from the step-response rules.

::: part
answer: 0.9*t/(K*h)
tolerance: 0.5%

### What $K_p$?

::: misses
- [any] $0.9\tau/(K\theta)$.
:::
:::

::: part
answer: 0.9*t/(K*h)/(3*h)
tolerance: 0.5%

### What $K_i$?

::: misses
- [any] $T_i = 3\theta$.
:::
:::
:::
:::
