Control Systems at Working Depth: Time-Domain Specifications, Routh and Root Locus, Bode Margins, Lead–Lag and PID Design, State Space, Time Delay and Final Elements
Routh, Root Locus and Bode Margins
Routh–Hurwitz: form the array from the characteristic polynomial; the number of sign changes in the first column equals the number of right-half-plane roots. For s⁴ + 2s³ + 3s² + 4s + 5 the first column is 1, 2, 1, −6, 5: two sign changes, 2 RHP roots (confirmed: 0.29 ± 1.42j). For the gain range of s³ + 6s² + 11s + K, the s¹ row is (66 − K)/6, so the loop is stable for 0 < K < 66 and oscillates at K = 66 at ω = √11 = 3.32 rad/s (the s² row 6s² + 66 = 0). A zero in the first column signals a root on the axis; a whole row of zeros means a symmetric root pair, solved from the auxiliary polynomial. Root locus (roots of 1 + KG = 0 as K goes 0 → ∞): for G = K/[s(s + 2)(s + 4)] there are 3 branches starting at 0, −2, −4 and ending at infinity along asymptotes at ±60° and 180° from the centroid σ = (0 − 2 − 4)/3 = −2; the breakaway point solves dK/ds = 0, 3s² + 12s + 8 = 0 → s = -0.845 (the other root, -3.155, is not on the locus); the locus crosses the imaginary axis at ω = √8 = 2.828 rad/s with K = 48 (the Routh limit of s³ + 6s² + 8s + K). Add a pole and the locus bends right; add a zero and it bends left (stabilising).
Bode margins. For L(s) = 20/[s(1 + 0.1s)(1 + 0.01s)] the magnitude crosses 0 dB at the gain-crossover frequency ω_gc = 12.44 rad/s, where the phase is −90° − arctan(0.1ω) − arctan(0.01ω), so the phase margin PM = 180° + ∠L(jω_gc) = 31.7°. The phase reaches −180° at the phase-crossover frequency ω_pc = 31.6 rad/s, where |L| = 0.1818, so the gain margin GM = −20 log|L(jω_pc)| = 14.8 dB. Both must be positive for stability of a minimum-phase loop; the rule of thumb is PM 30–60° and GM > 6 dB, and PM ≈ 100ζ degrees (for ζ < 0.6). A Nyquist plot says the same: N = Z − P encirclements of −1 count unstable closed-loop poles Z given P open-loop RHP poles (stable iff N = −P). Gain margin is the factor by which K can rise before instability: 10^(GM/20) = 5.50 here, so the same loop with K = 20 × 5.5 = 110 would sit on the stability boundary.
| Method | Answers | Example result |
|---|---|---|
| Routh array | RHP root count, K range | 0 < K < 66 for s³ + 6s² + 11s + K |
| Root locus | Pole paths against K | Breakaway −0.845; K = 48 at ±j2.83 |
| Bode margins | PM, GM from open loop | PM 32°, GM 15 dB |
Routh–Hurwitz: form the array from the characteristic polynomial; the number of sign changes in the first column equals the number of right-half-plane roots. For s⁴ + 2s³ + 3s² + 4s + 5 the…
Lead, Lag and PID Compensators and Ziegler–Nichols Tuning
A lead compensator G_c = (1 + αTs)/(1 + Ts) (α < 1) adds a maximum phase φ_m = arcsin[(1 − α)/(1 + α)] at ω_m = 1/(T√α), and raises the gain at ω_m by 1/√α. For φ_m = 45°: α = (1 − sin 45°)/(1 + sin 45°) = 0.1716 and the gain boost is 2.414 (7.7 dB) — a single lead stage should supply no more than about 60° (α ≈ 0.07), beyond which two stages are cascaded. Design: find the phase deficit at the wanted crossover, add 5–10° margin, choose α, place ω_m at the new crossover, and set the gain so that |G_cG| = 1 there. Example: 30° needed at ω_m = 5 rad/s gives α = 0.3333 and T = 1/(5√α) = 0.3464 s, G_c = (1 + 0.1155s)/(1 + 0.3464s) with a compensating gain 1/√α = 1.73. Lead speeds the response, raises bandwidth and phase margin but amplifies noise. A lag compensator (1 + Ts)/(1 + βTs), β > 1, lowers high-frequency gain by β (so the crossover moves down where the phase is better) and raises low-frequency gain — it improves K_v and steady-state accuracy at the cost of speed; its corner is kept a decade below the crossover. Lead–lag does both.
PID controller u = K_p[e + (1/T_i)∫e dt + T_d de/dt]: P gives proportional correction (leaves an offset in a type-0 plant); I removes the offset but adds lag and can cause windup (hence anti-windup); D anticipates and adds damping but amplifies noise (hence a filter on D and derivative on measurement). Ziegler–Nichols closed-loop tuning: raise K_p on a P-only loop until sustained oscillation — ultimate gain K_u and ultimate period P_u. For K_u = 8, P_u = 2 s: P K_p = 0.5K_u = 4; PI K_p = 0.45K_u = 3.6, T_i = P_u/1.2 = 1.667 s; PID K_p = 0.6K_u = 4.8, T_i = P_u/2 = 1 s, T_d = P_u/8 = 0.25 s. These give a quarter-amplitude decay, which is aggressive; the open-loop (process reaction curve) variant reads delay L and time constant τ from a step test and sets K_p = 1.2τ/(KL) for PID. Cascade control puts a fast inner loop (valve position, flow) inside a slow outer one so disturbances are corrected before reaching the outer variable; feed-forward acts on a measured disturbance before it shows up as error; ratio control holds one flow in fixed proportion to another (air to fuel).
| Compensator | Transfer function | Effect |
|---|---|---|
| Lead | (1 + αTs)/(1 + Ts), α < 1 | + phase near ω_m, faster, noisier |
| Lag | (1 + Ts)/(1 + βTs), β > 1 | + low-frequency gain, better K_v, slower |
| PI | K_p(1 + 1/T_is) | Removes offset |
| PID | K_p(1 + 1/T_is + T_ds) | Offset removed and damping added |
- Find the phase deficitAt the wanted crossover
- Add 5–10° margin
- Choose αφ_m = arcsin[(1 − α)/(1 + α)]
- Place ω_m at the new crossover
- Set gain so |G_cG| = 1 there
A lead compensator G_c = (1 + αTs)/(1 + Ts) (α < 1) adds a maximum phase φ_m = arcsin[(1 − α)/(1 + α)] at ω_m = 1/(T√α), and raises the gain at ω_m by 1/√α. For φ_m = 45°: α = (1 − sin…
State Space, Time Delay and Final Control Elements
State space: ẋ = Ax + Bu, y = Cx + Du. The transfer function is G(s) = C(sI − A)⁻¹B + D, and its poles are the eigenvalues of A. For A = [[0, 1], [−2, −3]], B = [0, 1]ᵀ, C = [1, 0]: det(sI − A) = s² + 3s + 2 → poles −1 and −2, G(s) = 1/(s² + 3s + 2). Controllability needs rank[B, AB, …, Aⁿ⁻¹B] = n (here [B, AB] = [[0, 1], [1, −3]], rank 2, so controllable); observability needs rank[C; CA; …] = n. With full-state feedback u = −Kx the closed-loop matrix is A − BK; to place the poles at −3 and −4 for the example, s² + (3 + k₂)s + (2 + k₁) = s² + 7s + 12 gives k₁ = 10, k₂ = 4. A time delay e^(−sT) has unit gain and phase −ωT rad: it adds lag without reducing gain, so it eats phase margin; the delay margin DM = PM(rad)/ω_gc — for PM = 45° and ω_gc = 2 rad/s, DM = 0.393 s — is the extra delay the loop tolerates. A Padé approximation e^(−sT) ≈ (1 − sT/2)/(1 + sT/2) turns it into a rational function (with a right-half-plane zero, giving the inverse response seen in some processes). The Smith predictor removes the delay from the loop dynamics (not from the output).
Final control elements. A control valve passes Q = C_v√(ΔP/SG) (gpm, psi) and has an inherent characteristic relating flow to stem lift x: linear Q/Q_max = x; equal-percentage Q/Q_max = R^(x − 1) with rangeability R ≈ 50 (at 50% lift only 14% of the flow, then a constant % change in flow per unit lift — the gain that stays nearly constant once the system pressure drop is installed); quick-opening for on-off service. Choose fail-open or fail-close for the safe state. A servo valve (torque motor + flapper-nozzle + spool) positions hydraulic flow at high bandwidth. A DC servo motor is, to first order, ω/V = K_m/(τ_ms + 1) with the mechanical time constant τ_m = RJ/(K_tK_b + RB); an AC servo adds a two-phase winding. A stepper motor moves one fixed step per pulse, open loop: a 1.8° step gives 360/1.8 = 200 steps per revolution, so 1000 pulses/s turn it at 1000/200 = 5 rev/s = 300 rpm; 16× microstepping gives 3200 steps/rev; torque falls with step rate and a stalled step is lost silently, so position feedback is needed for safety-critical motion. Supervisory control, DCS and PLC: a DCS coordinates many continuous loops across a plant with set-point hierarchy; a PLC executes discrete sequence logic (ladder) in a scan cycle; supervisory control sets set-points and optimises, not closing the fast loops.
| Element | Key figure |
|---|---|
| Equal-percentage valve, R = 50 | 14% of full flow at 50% lift |
| Stepper, 1.8° step | 200 steps/rev; 1000 pulses/s = 300 rpm |
| DC servo motor | First-order: K_m/(τ_ms + 1) |
| Delay margin | PM/ω_gc = 0.393 s for 45° at 2 rad/s |
State space: ẋ = Ax + Bu, y = Cx + Du. The transfer function is G(s) = C(sI − A)⁻¹B + D, and its poles are the eigenvalues of A. For A = [[0, 1], [−2, −3]], B = [0, 1]ᵀ, C = [1, 0]: det(sI…
Key takeaways
- Second order: ω_n = √K, ζ = 1/√K for K/[s(s + 2)]; M_p = 100 exp(−πζ/√(1 − ζ²)), t_s ≈ 4/(ζω_n); ramp error 1/K_v for type 1.
- Routh: sign changes in the first column count RHP roots; for s³ + 6s² + 11s + K stability needs K < 66. Root-locus asymptote centroid, breakaway from dK/ds = 0, axis crossing from Routh.
- Bode: PM = 180° + ∠L at gain crossover, GM = −20 log|L| at phase crossover; both positive for stability; delay margin = PM(rad)/ω_gc.
- Lead α = (1 − sin φ_m)/(1 + sin φ_m), ω_m = 1/(T√α); lag raises low-frequency gain; Ziegler–Nichols PID: K_p = 0.6K_u, T_i = P_u/2, T_d = P_u/8.
- State space: poles are eigenvalues of A; controllability rank [B AB…]; state feedback places poles; valves are linear, equal-percentage or quick-opening; a 1.8° stepper has 200 steps/rev.
Practice questions (24)
Attempt each one before opening the answer. Every explanation names the tempting wrong option as well as the right one, because that is where marks are lost.
A unity-feedback loop has G(s) = K/[s(s + 2)] with K = 4. The percentage overshoot of its step response (one decimal) is:
Numerical answer — type the value.
Show answer
Answer: 16.3
ω_n = 2, ζ = 1/√4 = 0.5; M_p = 100 exp(−π × 0.5/√0.75) = 16.3%.For the same loop with K = 4 the steady-state error to a unit-ramp input is:
Show answer
Answer: A — 0.5
The loop is type 1, K_v = lim sG(s) = K/2 = 2, so e_ss = 1/K_v = 0.5. A step would give zero error; a parabola, infinity.The polynomial s³ + 6s² + 11s + K has all roots in the left half-plane for:
Show answer
Answer: C — 0 < K < 66
The s¹ row of the Routh array is (6 × 11 − K)/6, positive only if K < 66, and the last row needs K > 0. At K = 66 the roots on the axis are ±j√11.
Show the other 21 questions
For the root locus of G(s) = K/[s(s + 2)(s + 4)], the gain K at which the locus crosses the imaginary axis is:
Numerical answer — type the value.
Show answer
Answer: 48
The characteristic polynomial is s³ + 6s² + 8s + K; Routh gives (48 − K)/6 in the s¹ row, so K = 48 and ω = √8 = 2.83 rad/s.For the loop L(s) = 20/[s(1 + 0.1s)(1 + 0.01s)], the system is stable with:
Show answer
Answer: D — a phase margin of about 32° and a gain margin of about 15 dB
ω_gc = 12.4 rad/s with PM = 32°, and ω_pc = 31.6 rad/s with GM = 14.8 dB; both are positive so the closed loop is stable.A lead compensator is to supply a maximum phase lead of 45°. The value of α in (1 + αTs)/(1 + Ts) is (four decimals):
Numerical answer — type the value.
Show answer
Answer: 0.1716
α = (1 − sin 45°)/(1 + sin 45°) = 0.2929/1.7071 = 0.1716; the gain at ω_m rises by 1/√α = 2.414 (7.7 dB).A P-only loop oscillates steadily at K_u = 8 with period P_u = 2 s. The Ziegler–Nichols PID setting for the derivative time T_d in seconds is (two decimals):
Numerical answer — type the value.
Show answer
Answer: 0.25
Ziegler–Nichols PID: K_p = 0.6K_u = 4.8, T_i = P_u/2 = 1 s, T_d = P_u/8 = 0.25 s.A system has A = [[0, 1], [−2, −3]]. Its poles are:
Show answer
Answer: A — −1 and −2
The poles are the eigenvalues of A: det(sI − A) = s² + 3s + 2 = (s + 1)(s + 2). The matrix entries themselves are not the poles.A loop has a phase margin of 45° at a gain-crossover frequency of 2 rad/s. The delay margin in seconds (three decimals) is:
Numerical answer — type the value.
Show answer
Answer: 0.393
DM = PM(rad)/ω_gc = 0.7854/2 = 0.393 s; any extra delay beyond that drives the phase margin negative.Which statements about final control elements are correct?
Show answer
Answer: A — A 1.8° stepper motor has 200 steps per revolution; B — An equal-percentage valve passes only about 14% of full flow at 50% lift when R = 50; D — A stepper motor in open loop can lose steps without any indication
Servo valves exist for high bandwidth proportional hydraulic positioning; an on-off solenoid valve has no continuous response at all.A second-order system has ω_n = 10 rad/s and ζ = 0.5. Its 2 % settling time, using t_s ≈ 4/(ζω_n), in s, is ____.
Numerical answer — type the value.
Show answer
Answer: 0.8
t_s = 4/(ζω_n) = 4/5 = 0.8 s. Using 4/ω_n = 0.4 s ignores damping; the envelope decays as e^(−ζω_n t), so ζ belongs in the denominator.A unity-feedback system has G(s) = 4/(s + 2). Its steady-state error to a unit step (three decimals) is ____.
Numerical answer — type the value.
Show answer
Answer: 0.333
K_p = G(0) = 2, so e_ss = 1/(1 + K_p) = 1/3 = 0.333. Writing 1/K_p = 0.5 uses the ramp-error form; a type-0 loop always leaves this finite step offset.On a Bode plot, a pole at the origin (1/s) contributes
Show answer
Answer: C — a −20 dB/decade magnitude line at all frequencies and a constant −90° phase
|1/(jω)| = 1/ω falls 20 dB per decade through 0 dB at ω = 1, and its angle is fixed at −90°. The +20 dB/decade, +90° option describes a zero at the origin; −45° is the phase of a real pole only at its corner.The PID controller term that most strongly amplifies high-frequency measurement noise is the
Show answer
Answer: A — derivative term
The derivative gain grows as ω (K_d s), so fast noise is magnified; practical controllers add a filter on that term. The integral term does the opposite, attenuating high frequencies as 1/ω.A first-order system has ẋ = −2x + u and y = 3x. Its dc gain y/u is ____.
Numerical answer — type the value.
Show answer
Answer: 1.5
G(s) = C(sI − A)⁻¹B = 3/(s + 2), so G(0) = 1.5. Answering 3 takes only the output gain C and forgets that the state settles at x = u/2.A control valve with an equal-percentage characteristic gives
Show answer
Answer: C — equal fractional changes in flow for equal increments of stem travel
Equal percentage means dQ/Q ∝ dx, an exponential curve; each step of travel changes the flow by the same percentage of its current value. Proportional flow is the linear trim, and "nearly full flow early" is quick-opening.An underdamped second-order step response shows a 25 % peak overshoot. The damping ratio ζ (three decimals) is ____.
Numerical answer — type the value.
Show answer
Answer: 0.404
ζ = −ln(M_p)/√(π² + ln²M_p) = 1.386/√(9.870 + 1.922) = 0.404. Inverting with M_p = 0.25 as a percentage-free number is essential; using ln 25 instead gives a meaningless ζ above 1.For the root locus of G(s)H(s) = K/[s(s + 2)(s + 4)], the asymptotes meet the real axis at σ = ____.
Numerical answer — type the value.
Show answer
Answer: -2
σ = (Σ poles − Σ zeros)/(n − m) = (0 − 2 − 4)/3 = −2, with asymptotes at ±60° and 180°. Dividing by 2 instead of the pole–zero excess 3 gives −3.A P-only test gives ultimate gain K_u = 10 and ultimate period P_u = 3 s. The Ziegler–Nichols PI setting for the integral time T_i, in s, is ____.
Numerical answer — type the value.
Show answer
Answer: 2.5
Z–N closed-loop PI: K_c = 0.45K_u = 4.5 and T_i = P_u/1.2 = 2.5 s. The PID rule T_i = P_u/2 = 1.5 s is the tempting mix-up between the two tuning rows.For A = [[0, 1], [0, 0]] (a double integrator), the (1, 2) entry of the state-transition matrix e^(At) at t = 3 s is ____.
Numerical answer — type the value.
Show answer
Answer: 3
A is nilpotent (A² = 0), so e^(At) = I + At = [[1, t], [0, 1]] and the (1, 2) entry is t = 3. Answering e³ ≈ 20.1 exponentiates the entries one by one, which is not how a matrix exponential works.A liquid control valve (specific gravity 1) has C_v = 10 and a pressure drop of 16 psi. Using Q = C_v√(ΔP/G), the flow in US gpm is ____.
Numerical answer — type the value.
Show answer
Answer: 40
Q = 10 × √16 = 40 gpm. Forgetting the square root gives 160 gpm; flow through a restriction grows only with the square root of the pressure drop.For the root locus of G(s)H(s) = K/[s(s + 2)(s + 4)], the break-away point on the real axis between 0 and −2 is s = ____ (three decimals).
Numerical answer — type the value.
Show answer
Answer: -0.845
K = −s(s + 2)(s + 4) = −(s³ + 6s² + 8s); dK/ds = 0 gives 3s² + 12s + 8 = 0, s = −0.845 or −3.155. Only -0.845 lies on a locus segment (between 0 and −2); −3.155 is on a non-locus stretch, so it is the tempting wrong root.A lead compensator (1 + αTs)/(1 + Ts) has α = 4 and T = 0.1 s. The maximum phase lead it supplies, in degrees (two decimals), is ____.
Numerical answer — type the value.
Show answer
Answer: 36.87
sin φ_m = (α − 1)/(α + 1) = 3/5, so φ_m = 36.87°, occurring at ω_m = 1/(T√α) = 5 rad/s. Using tan φ_m = 3/5 gives 30.96°, the wrong inverse function.For an underdamped second-order system with fixed ω_n, the damping ratio is raised from 0.2 to 0.6. Which statements are correct?
Show answer
Answer: A — The 2 % settling time decreases.; C — The peak overshoot decreases.; D — The peak time increases.
Overshoot e^(−ζπ/√(1−ζ²)) falls, ω_d = ω_n√(1−ζ²) falls so t_p = π/ω_d grows, and t_s ≈ 4/(ζω_n) shrinks. Rise time INCREASES with ζ because the response becomes more sluggish, so the last statement is the trap.