---
title: Midterm exam
heading: "Midterm exam: feedback, models, time response, stability, root locus and PID"
eyebrow: S9 · Midterm exam
type: problems
---

::: hook
Twelve problems from the first half of the course: loop gain and sensitivity, physical models, identification and linearization, step-response specifications, the effect of zeros, Routh–Hurwitz, steady-state error, the root locus, lead and lag design, and PID design and tuning. Give yourself two hours and work without the lessons open. "Another set" deals a different exam.
:::

::: pool
pick: 12

::: check
kind: parts
given: A = 3000 | 80000; b = 0.02 | 0.1; p = 25 | 50

## An amplifier with open-loop gain {A} and β = {b}.

::: part
answer: A/(1 + A*b)
tolerance: 0.1%

### Closed-loop gain?

::: misses
- [any] $A/(1 + A\beta)$.
:::
:::

::: part
answer: 100*(1 - (1 - p/100)*(1 + A*b)/(1 + A*(1 - p/100)*b))
unit: %
tolerance: 1%

### Percentage drop if A falls {p}%?

::: misses
- [any] Compute before and after.
:::
:::
:::

::: check
kind: parts
given: V = 12 | 36; K = 0.04 | 0.09; R = 1 | 3; b = 2e-4 | 6e-4; J = 3e-5 | 1e-4; c = 0.5 | 2

## A DC motor ({V} V, $K_t = K_e$ = {K}, R = {R} Ω, b = {b}, J = {J} kg·m²) under proportional speed control $K_p$ = {c} V per rad/s.

::: part
answer: K*V/(R*b + K^2)
unit: rad/s
tolerance: 0.5%

### Open-loop no-load speed?

::: misses
- [any] $K_tV/(Rb + K_tK_e)$.
:::
:::

::: part
answer: 1000*R*J/(R*b + K^2)
unit: ms
tolerance: 0.5%

### Mechanical time constant?

::: misses
- [any] $RJ/(Rb + K_tK_e)$.
:::
:::

::: part
answer: 1000*R*J/(R*b + K^2)/(1 + c*K/(R*b + K^2))
unit: ms
tolerance: 0.5%

### Closed-loop time constant?

::: misses
- [any] $\tau_m/(1 + K_pK_0)$ with $K_0$ the DC gain.
:::
:::
:::

::: check
kind: parts
given: x = 3 | 9; l = 0.4 | 1.6

## A maglev rig at a {x} mm gap; a pendulum {l} m long balanced upright.

::: part
answer: sqrt(2*9.81/(x*1e-3))
unit: rad/s
tolerance: 0.5%

### Maglev's unstable pole?

::: misses
- [any] $\sqrt{2g/x_0}$.
:::
:::

::: part
answer: 1000*ln(2)/sqrt(9.81/l)
unit: ms
tolerance: 0.5%

### Pendulum's doubling time?

::: misses
- [any] ln 2 over $\sqrt{g/l}$.
:::
:::
:::

::: check
kind: parts
given: w = 5 | 25; z = 0.3 | 0.55

## A second-order loop with $\omega_n$ = {w} rad/s and ζ = {z}.

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

### Overshoot?

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

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

### Peak time?

::: misses
- [any] $\pi/\omega_d$.
:::
:::

::: part
answer: 4/(z*w)
unit: s
tolerance: 0.5%

### Settling estimate?

::: misses
- [any] $4/\zeta\omega_n$.
:::
:::
:::

::: check
kind: parts
given: M = 6 | 20; t = 0.4 | 3

## Specifications: at most {M}% overshoot, 2% settling within {t} s.

::: part
answer: -ln(M/100)/sqrt(pi^2 + ln(M/100)^2)
tolerance: 0.5%

### Least ζ?

::: misses
- [any] Invert the overshoot formula.
:::
:::

::: part
answer: 4/t/(-ln(M/100)/sqrt(pi^2 + ln(M/100)^2))
unit: rad/s
tolerance: 0.5%

### $\omega_n$ at the corner of the region?

::: misses
- [any] $(4/t_s)/\zeta$.
:::
:::
:::

::: check
kind: parts
given: t = 0.4 | 1.5; z = 1 | 3

## A plant $(1 - s/z)/(\tau s + 1)$ with τ = {t} s and a zero at +{z}.

::: part
answer: 1/(z*t)
tolerance: 0.5%

### Initial dip?

::: misses
- [any] $1/(z\tau)$.
:::
:::

::: part
answer: t*ln(1 + 1/(z*t))
unit: s
tolerance: 0.5%

### Zero-crossing time?

::: misses
- [any] Solve $y(t) = 0$.
:::
:::
:::

::: check
kind: parts
given: a = 1 | 2; b = 4 | 7; c = 12 | 25

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

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

### Critical gain?

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

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

### Oscillation frequency?

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

::: check
kind: parts
given: a = 1 | 3; b = 3 | 6 | 8; c = 4 | 10; d = 1 | 5

## The polynomial $s^4 + \given{a}s^3 + \given{b}s^2 + \given{c}s + \given{d}$.

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

### First-column entry of the $s^2$ row?

::: misses
- [any] $(a_3a_2 - a_4a_1)/a_3$.
:::
:::

::: part
answer: (1 - step(a*b - c)) + (1 - step((a*b - c)*(c - a^2*d/(a*b - c)))) + (1 - step(c - a^2*d/(a*b - c)))
tolerance: 0

### Right-half-plane roots?

::: misses
- [any] Count the sign changes.
:::
:::
:::

::: check
kind: parts
given: K = 25 | 90; a = 3 | 9; R = 0.5 | 2; G = 15 | 60; c = 2 | 3; e = 5 | 9

## A servo $L = \given{K}/(s(s + \given{a}))$ tracking {R} rad/s; a loop $L = \given{G}/((s + \given{c})(s + \given{e}))$.

::: part
answer: R*a/K
unit: rad
tolerance: 0.5%

### Servo's ramp lag?

::: misses
- [any] $R/K_v$.
:::
:::

::: part
answer: 100/(1 + G/(c*e))
unit: %
tolerance: 0.5%

### Second loop's step error?

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

::: check
kind: parts
given: a = 0.5 | 2; b = 5 | 9

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

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

### Centroid?

::: misses
- [any] Sum of poles over 3.
:::
:::

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

### Breakaway point?

::: misses
- [any] $3s^2 + 2(a + b)s + ab = 0$.
:::
:::

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

### Gain there?

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

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

## A lead for $G = 1/(s(s + \given{a}))$, targeting $-\given{c} \pm j\given{w}$ with its 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] Raise the plant's angle 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] Seen at 90° minus the deficiency.
:::
:::
:::

::: check
kind: parts
given: K = 1.5 | 6; z = 0.04 | 0.12; p = 0.008 | 0.02; c = 1.5 | 3; w = 2 | 5

## A lag (zero −{z}, pole −{p}) on a loop with $K_v$ = {K} and 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: t = 6 | 30; P = 5 | 25; c = 1.5 | 3

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

::: 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$.
:::
:::
:::

::: check
kind: parts
given: d = 3 | 8; a = 0.5 | 2; T = 2 | 7

## A relay test (±{d}) gives oscillation amplitude {a} and period {T} s. Ziegler–Nichols PID:

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

### $K_p$?

::: misses
- [any] $0.6K_u$ with $K_u = 4d/\pi a$.
:::
:::

::: 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: K = 0.6 | 2.5; t = 6 | 50; h = 0.8 | 3

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

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

### $K_p$?

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

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

### $T_i$?

::: misses
- [any] $\min(\tau, 8\theta)$.
:::
:::
:::

::: check
kind: parts
given: a = 3 | 5 | 8; d = 1 | 2 | 4; K = 0.5 | 3

## A step test's output reaches 28.3% of its change {a} s after the step and 63.2% {d} s after that; its gain is {K}.

::: part
answer: 1.5*d
unit: s
tolerance: 0.5%

### What τ does the two-point fit give?

::: misses
- [any] $1.5(t_{63} - t_{28})$.
:::
:::

::: part
answer: 1.5*d/(2*K*(a - 0.5*d))
tolerance: 1%

### What SIMC $K_p$ goes with $\tau_c$ = θ?

::: misses
- [any] $\tau/(2K\theta)$ with $\theta = t_{63} - \tau$.
:::
:::
:::
:::
