Transfer Functions, Poles and Zeros for Control
The models of the last four lessons are differential equations. A control engineer rarely solves them directly; the first step is to turn each into a transfer function and read its behaviour off the poles and zeros. You met transfer functions in Laplace for circuits and for systems; this lesson adds what matters for feedback: the time-constant form engineers write by hand, the system type, zeros that make a plant go the wrong way first, and dead time.
From ODE to transfer function
For a linear model with zero initial state, replace each by and divide output by input:
Physical plants are proper () and nearly always strictly proper (): their gain falls at high frequency. The relative degree sets the high-frequency slope () and the final phase (), which limits how fast a loop can be.
Control engineers write the same function in two forms:
The time-constant form shows the DC gain (or the velocity gain, if ) and the corner frequencies directly; the pole-zero form shows the root-locus gain and the pole positions. Converting: , and .
What poles and zeros tell you
| Feature | Effect on the response |
|---|---|
| real pole | a mode ; the farther left, the faster |
| complex pair | a decaying oscillation (second order) |
| pole at ( of them) | integration: the system type ; a type-1 plant (motor position) never settles to a step input on its own |
| pole with | an unstable mode: the open-loop plant runs away (inverted pendulum, exothermic reactor) |
| left-half-plane zero | speeds up the response and adds phase lead; close to the origin it causes overshoot |
| right-half-plane zero | non-minimum phase: the step response starts in the wrong direction, and the zero caps the achievable bandwidth |
| pure dead time: no response for seconds, phase that grows without limit |
A right-half-plane zero appears whenever two paths with opposite signs and different speeds add: boiler drum level (cold feedwater first shrinks the bubbles, so the level drops before it rises), a boost converter's output voltage against duty cycle, steering the rear of a car. Feedback cannot remove it; a loop around a plant with a zero at is limited to a bandwidth of roughly .
Dead time has no rational transfer function. For analysis with tools that need polynomials, replace it by a Padé approximation, the first-order one being : dead time behaves like a right-half-plane zero at , with the same bandwidth limit.
Worked example: a plant that goes the wrong way
Given: .
Find: poles, zeros, DC gain, relative degree, the initial slope and the direction of the step response, and the pole-zero form.
Solve:
- Poles and (time constants and ); zero at (right half-plane). DC gain .
- Relative degree 1, so the step response starts with a finite slope. By the initial-value theorem, : it starts downwards, then turns and rises to 2.
- Pole-zero form: ; the leading coefficient is negative, the sign of the high-frequency gain.
Check:
import numpy as np
import control as ct
G = ct.tf([-1.0, 2.0], [2.0, 3.0, 1.0]) # 2(1 - 0.5 s) / ((s + 1)(2 s + 1))
print("poles:", np.round(ct.poles(G).real, 3), " zeros:", np.round(ct.zeros(G).real, 3), f" DC gain {ct.dcgain(G):.2f}")
t = np.linspace(0, 15, 15001)
y = ct.step_response(G, T=t).outputs
k = np.argmin(y)
print(f"initial slope {(y[1] - y[0]) / (t[1] - t[0]):.3f} 1/s, undershoot to {y[k]:.4f} at t = {t[k]:.3f} s, "
f"crosses zero at t = {t[k:][np.argmax(y[k:] > 0)]:.3f} s, y(15 s) = {y[-1]:.3f}")
# dead time: 0.5 s with a first-order Pade approximation, added to a first-order lag
num, den = ct.pade(0.5, 1)
D = ct.tf(num, den)
print("Pade(0.5 s, 1): zero at", np.round(ct.zeros(D).real, 3), "pole at", np.round(ct.poles(D).real, 3))
w = np.array([0.5, 2.0, 5.0])
exact = -np.degrees(w * 0.5)
pade = np.degrees(np.angle(D(1j * w)))
for wi, e, p in zip(w, exact, pade):
print(f"w = {wi:3.1f} rad/s: exact delay phase {e:7.1f} deg, Pade {p:7.1f} deg")poles: [-1. -0.5] zeros: [2.] DC gain 2.00
initial slope -0.499 1/s, undershoot to -0.0833 at t = 0.365 s, crosses zero at t = 0.811 s, y(15 s) = 1.997
Pade(0.5 s, 1): zero at [4.] pole at [-4.]
w = 0.5 rad/s: exact delay phase -14.3 deg, Pade -14.3 deg
w = 2.0 rad/s: exact delay phase -57.3 deg, Pade -53.1 deg
w = 5.0 rad/s: exact delay phase -143.2 deg, Pade -102.7 deg
The step response dips to at and only crosses zero at : a controller that reacts to that first dip pushes the wrong way. The Padé zero sits at , and its phase matches the true delay well up to about and lags behind above it; that is enough for loop design, where the crossover frequency of a loop with dead time ends up below anyway.
In the lab: what a zero does to the frequency response
In the Bode lab choose three real poles at , and with . At the readouts give and a phase of : three poles, a slope of above the last corner. Switch on a zero at : the gain at rises to and the phase to . A left-half-plane zero adds and up to ; a right-half-plane zero would add the same gain but subtract the phase, which is why it hurts a loop. (Ignore the lab's margin readouts here.)
Guided lab: find a plant's transfer function from its step response
Hand calculation. For the heater block with its sensor lag, the expected model is K/W: two real poles at and , DC gain , relative degree 2 (the measured temperature starts with zero slope).
Simulation. Fit G to your logged data by trying candidate models in the program's step response (or use scipy.optimize.curve_fit on the analytic step response).
What you would measure. Apply a power step (from to , supply current-limited, PWM) after the block has been at room temperature for an hour; log every second. Read the DC gain from the final value (expect of ), the dominant time constant from the 63 % point, and look at the first 30 seconds: a flat start shows the sensor lag (relative degree 2), a dip would mean a right-half-plane zero (you should not see one here).
Hazards and safe setup. As in the heater labs: thermal cut-out, current limit, non-flammable base, never unattended.
Pitfalls
- Reading the DC gain from the pole-zero form's leading coefficient instead of .
- Cancelling a right-half-plane zero with a controller pole: the cancellation is never exact, and the closed loop hides an unstable mode.
- Treating dead time as a small extra lag: its phase grows without bound with frequency.
- Using a Padé approximation for time-domain plots without noticing the artificial initial dip it produces.
Practice
- Write in time-constant form. What are its type and velocity gain?
- What is the initial slope of the unit-step response of ?
- Give the first-order Padé approximation of a delay and the location of its zero.
Answer
- : type 1, velocity gain .
- Relative degree 2, so the slope starts at zero.
- , zero at .
Test yourself
A plant with a right-half-plane zero responds to a positive step by
- rising faster than without the zero
- first moving in the opposite direction
- oscillating forever
- not moving at all
What is the system type of ?
- 0
- 1
- 2
- 3
The time-constant form has , , . Its pole-zero form gain in is
- 3
- 0.75
- 12
- 1.5
In the Bode lab, adding a left-half-plane zero at 5 Hz to three poles changed the phase at 1 kHz from to