TExcelTAD
Home › Control Systems & Automation › Transfer Functions, Poles and Zeros for Control

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 dkdtk\frac{d^k}{dt^k} by sks^k and divide output by input:

any(n)+⋯+a1y˙+a0y=bmu(m)+⋯+b0u⟹G(s)=bmsm+⋯+b0ansn+⋯+a0a_n y^{(n)} + \dots + a_1\dot y + a_0 y = b_m u^{(m)} + \dots + b_0 u \quad \Longrightarrow \quad G(s) = \frac{b_m s^m + \dots + b_0}{a_n s^n + \dots + a_0}

Physical plants are proper (m≤nm \le n) and nearly always strictly proper (m<nm < n): their gain falls at high frequency. The relative degree n−mn - m sets the high-frequency slope (−20(n−m) dB/decade-20(n - m)\ \text{dB/decade}) and the final phase (−90∘(n−m)-90^\circ(n - m)), which limits how fast a loop can be.

Control engineers write the same function in two forms:

G(s)=K (τzs+1)sN(τ1s+1)(τ2s+1)⏟time-constant (Bode) form=k (s−z1)sN(s−p1)(s−p2)⏟pole-zero (root-locus) formG(s) = \underbrace{K\,\frac{(\tau_{z} s + 1)}{s^N(\tau_1 s + 1)(\tau_2 s + 1)}}_{\text{time-constant (Bode) form}} = \underbrace{k\,\frac{(s - z_1)}{s^N(s - p_1)(s - p_2)}}_{\text{pole-zero (root-locus) form}}

The time-constant form shows the DC gain KK (or the velocity gain, if N=1N = 1) and the corner frequencies 1/τ1/\tau directly; the pole-zero form shows the root-locus gain kk and the pole positions. Converting: pi=−1/τip_i = -1/\tau_i, and k=K τz/(τ1τ2)k = K\,\tau_z/(\tau_1\tau_2).

What poles and zeros tell you

Feature Effect on the response
real pole p=−1/τp = -1/\tau a mode e−t/τe^{-t/\tau}; the farther left, the faster
complex pair −σ±jωd-\sigma \pm j\omega_d a decaying oscillation e−σtsin⁡ωdte^{-\sigma t}\sin\omega_d t (second order)
pole at s=0s = 0 (NN of them) integration: the system type NN; a type-1 plant (motor position) never settles to a step input on its own
pole with Re⁡p>0\operatorname{Re} p > 0 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
e−θse^{-\theta s} pure dead time: no response for θ\theta seconds, phase −ωθ-\omega\theta 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 s=z>0s = z > 0 is limited to a bandwidth of roughly z/2z/2.

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 e−θs≈1−θs/21+θs/2e^{-\theta s} \approx \frac{1 - \theta s/2}{1 + \theta s/2}: dead time behaves like a right-half-plane zero at 2/θ2/\theta, with the same bandwidth limit.

Worked example: a plant that goes the wrong way

Given: G(s)=2(1−0.5s)(s+1)(2s+1)G(s) = \frac{2(1 - 0.5 s)}{(s + 1)(2 s + 1)}.

Find: poles, zeros, DC gain, relative degree, the initial slope and the direction of the step response, and the pole-zero form.

Solve:

  • Poles −1-1 and −0.5 rad/s-0.5\ \text{rad/s} (time constants 1 s1\ \text{s} and 2 s2\ \text{s}); zero at s=+2s = +2 (right half-plane). DC gain G(0)=2G(0) = 2.
  • Relative degree 1, so the step response starts with a finite slope. By the initial-value theorem, y˙(0+)=lim⁡s→∞s⋅s G(s) 1s=lim⁡s G(s)=2×(−0.5)2=−0.5 s−1\dot y(0^+) = \lim_{s \to \infty} s \cdot s\,G(s)\,\frac{1}{s} = \lim s\,G(s) = \frac{2 \times (-0.5)}{2} = -0.5\ \text{s}^{-1}: it starts downwards, then turns and rises to 2.
  • Pole-zero form: G(s)=−0.5 (s−2)(s+1)(s+0.5)G(s) = \frac{-0.5\,(s - 2)}{(s + 1)(s + 0.5)}; the leading coefficient is negative, the sign of the high-frequency gain.

Check:

python · try it yourself
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 −0.083-0.083 at 0.37 s0.37\ \text{s} and only crosses zero at 0.81 s0.81\ \text{s}: a controller that reacts to that first dip pushes the wrong way. The Padé zero sits at +2/θ=4 rad/s+2/\theta = 4\ \text{rad/s}, and its phase matches the true delay well up to about ωθ=1\omega\theta = 1 and lags behind above it; that is enough for loop design, where the crossover frequency of a loop with dead time ends up below 1/θ1/\theta anyway.

In the lab: what a zero does to the frequency response

In the Bode lab choose three real poles at 11, 1010 and 100 Hz100\ \text{Hz} with K=0 dBK = 0\ \text{dB}. At 1 kHz1\ \text{kHz} the readouts give ∣L∣=−120.04 dB\lvert L \rvert = -120.04\ \text{dB} and a phase of −263.7∘-263.7^\circ: three poles, a slope of −60 dB/decade-60\ \text{dB/decade} above the last corner. Switch on a zero at 5 Hz5\ \text{Hz}: the gain at 1 kHz1\ \text{kHz} rises to −74.02 dB-74.02\ \text{dB} and the phase to −173.9∘-173.9^\circ. A left-half-plane zero adds +20 dB/decade+20\ \text{dB/decade} and up to +90∘+90^\circ; 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.)

6040200-20-40-60-80|L| (dB)-270-180-90090100m1101001k10k100k1Mf (Hz)phase (deg)GM 41.7 dB|L| exactphase exactasymptotesunity-feedback closed loop: stable

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 4(300s+1)(10s+1)\frac{4}{(300 s + 1)(10 s + 1)} K/W: two real poles at −0.00333-0.00333 and −0.1 rad/s-0.1\ \text{rad/s}, DC gain 4 K/W4\ \text{K/W}, 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 00 to 6.25 W6.25\ \text{W}, 12 V12\ \text{V} 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 ±20 %\pm 20\,\% of 4 K/W4\ \text{K/W}), 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 kk instead of G(0)G(0).
  • 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

  1. Write G(s)=10(s+2)s(s+5)G(s) = \frac{10(s + 2)}{s(s + 5)} in time-constant form. What are its type and velocity gain?
  2. What is the initial slope of the unit-step response of 6(s+2)(s+3)\frac{6}{(s + 2)(s + 3)}?
  3. Give the first-order Padé approximation of a 0.2 s0.2\ \text{s} delay and the location of its zero.
Answer
  1. G=4(0.5s+1)s(0.2s+1)G = \frac{4(0.5 s + 1)}{s(0.2 s + 1)}: type 1, velocity gain Kv=4 s−1K_v = 4\ \text{s}^{-1}.
  2. Relative degree 2, so the slope starts at zero.
  3. 1−0.1s1+0.1s\frac{1 - 0.1 s}{1 + 0.1 s}, zero at s=+10 rad/ss = +10\ \text{rad/s}.

Test yourself

A plant with a right-half-plane zero responds to a positive step by

  1. rising faster than without the zero
  2. first moving in the opposite direction
  3. oscillating forever
  4. not moving at all

What is the system type of G(s)=5s2(s+4)G(s) = \frac{5}{s^2(s + 4)}?

  1. 0
  2. 1
  3. 2
  4. 3

The time-constant form Kτzs+1(τ1s+1)K\frac{\tau_z s + 1}{(\tau_1 s + 1)} has K=3K = 3, τz=0.5\tau_z = 0.5, τ1=2\tau_1 = 2. Its pole-zero form gain kk in ks−zs−pk\frac{s - z}{s - p} is

  1. 3
  2. 0.75
  3. 12
  4. 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 −263.7∘-263.7^\circ to

  1. −353.7∘-353.7^\circ
  2. −173.9∘-173.9^\circ
  3. −263.7∘-263.7^\circ
  4. 0∘0^\circ