TExcelTAD
Home › Control Systems & Automation › Stability: BIBO, Poles and the Routh–Hurwitz Criterion

Stability: BIBO, Poles and the Routh–Hurwitz Criterion

Turn up the gain of the heater loop far enough and the block's temperature starts to swing, each swing larger than the last, until the heater is slamming between off and full power. Every feedback loop that has more than a little lag can do this, and a control engineer's first duty is to know the limit before the hardware finds it. This lesson defines stability properly, ties it to the closed-loop poles, and introduces the Routh–Hurwitz criterion, which finds the gain limit with pencil and paper, without computing a single root.

What stable means

A system is BIBO stable (bounded input, bounded output) if every bounded input produces a bounded output. For an LTI system with transfer function T(s)T(s) (no hidden cancellations) this is equivalent to:

  • every pole of T(s)T(s) has a negative real part (strictly left half-plane);
  • equivalently, the impulse response is absolutely integrable, ∫0∞∣h(t)∣ dt<∞\int_0^\infty \lvert h(t) \rvert\,dt < \infty.
Poles Classification Impulse response
all with Re⁡p<0\operatorname{Re}p < 0 asymptotically stable (BIBO stable) decays to zero
simple poles on the jωj\omega axis, none in the RHP marginally stable stays bounded (constant or a sustained sine) but a matching input makes it grow: not BIBO
any pole with Re⁡p>0\operatorname{Re}p > 0, or a repeated pole on the axis unstable grows without bound

An integrator 1s\frac{1}{s} is the standard marginal case: its impulse response is a constant, but its step response is a ramp. The theory, for discrete time too, is in System Properties and Transfer Functions and Stability. For a feedback loop the poles of interest are the roots of the characteristic equation 1+L(s)=01 + L(s) = 0, i.e. the zeros of the closed-loop denominator.

Pole–zero cancellation can hide instability: if C(s)C(s) cancels an unstable plant pole with a zero, T(s)T(s) looks stable but internal signals (the control effort, for instance) still grow. Stability of a loop means internal stability: every transfer function between any two points in the loop is stable.

The Routh–Hurwitz criterion

For ansn+an−1sn−1+⋯+a0a_n s^n + a_{n-1}s^{n-1} + \dots + a_0 with an>0a_n > 0:

  1. Necessary: all coefficients exist and are positive. A missing or negative coefficient already means at least one root in the closed right half-plane.
  2. Routh array: write the coefficients in two rows, alternating, then build each following row from the two above it:
snanan−2an−4⋯sn−1an−1an−3an−5⋯sn−2b1b2⋯sn−3c1c2⋯b1=an−1an−2−anan−3an−1,b2=an−1an−4−anan−5an−1,c1=b1an−3−an−1b2b1\begin{array}{c|cccc} s^n & a_n & a_{n-2} & a_{n-4} & \cdots \\ s^{n-1} & a_{n-1} & a_{n-3} & a_{n-5} & \cdots \\ s^{n-2} & b_1 & b_2 & \cdots & \\ s^{n-3} & c_1 & c_2 & \cdots & \end{array} \qquad b_1 = \frac{a_{n-1}a_{n-2} - a_n a_{n-3}}{a_{n-1}}, \quad b_2 = \frac{a_{n-1}a_{n-4} - a_n a_{n-5}}{a_{n-1}}, \quad c_1 = \frac{b_1 a_{n-3} - a_{n-1}b_2}{b_1}
  1. Result: the number of roots in the right half-plane equals the number of sign changes in the first column. No sign changes: stable.

For a cubic a3s3+a2s2+a1s+a0a_3 s^3 + a_2 s^2 + a_1 s + a_0 (all positive) the array reduces to one condition worth memorising: a2a1>a3a0a_2 a_1 > a_3 a_0.

Special cases. A zero in the first column (other entries non-zero): replace it by a small ε>0\varepsilon > 0 and continue; count sign changes as ε→0+\varepsilon \to 0^+. A whole row of zeros: the polynomial has roots symmetric about the origin (often a pair on the jωj\omega axis). Form the auxiliary polynomial from the row above, replace the zero row by its derivative's coefficients, and continue; the auxiliary polynomial's roots are the symmetric roots, and on the stability boundary they give the frequency of oscillation.

Worked example: how much gain can the heater take?

Given: the heater block with a 10 s10\ \text{s} sensor lag and a 5 s5\ \text{s} lag in the driver and heater element, G(s)=4(300s+1)(10s+1)(5s+1)G(s) = \frac{4}{(300 s + 1)(10 s + 1)(5 s + 1)}, under P control u=Kpeu = K_p e.

Find: the range of KpK_p for stability and the frequency at which the loop oscillates at the limit.

Solve:

  • Characteristic polynomial: (300s+1)(10s+1)(5s+1)+4Kp=15000s3+4550s2+315s+(1+4Kp)(300 s + 1)(10 s + 1)(5 s + 1) + 4K_p = 15000 s^3 + 4550 s^2 + 315 s + (1 + 4K_p).
  • Routh array:
s315000315s245501+4Kps14550×315−15000(1+4Kp)45500s01+4Kp\begin{array}{c|cc} s^3 & 15000 & 315 \\ s^2 & 4550 & 1 + 4K_p \\ s^1 & \frac{4550 \times 315 - 15000(1 + 4K_p)}{4550} & 0 \\ s^0 & 1 + 4K_p & \end{array}
  • Stability needs 4550×315>15000(1+4Kp)4550 \times 315 > 15000(1 + 4K_p), i.e. 1+4Kp<95.551 + 4K_p < 95.55, so 0<Kp<23.6 W/K0 < K_p < 23.6\ \text{W/K} (the lower limit Kp>−0.25K_p > -0.25 is irrelevant for a heater).
  • At Kp=23.6K_p = 23.6 the s1s^1 row is zero. The auxiliary polynomial from the s2s^2 row is 4550s2+95.55=04550 s^2 + 95.55 = 0: s=±j0.145 rad/ss = \pm j0.145\ \text{rad/s}, an oscillation with a period of 2π/0.145=43.4 s2\pi/0.145 = 43.4\ \text{s}.

These two numbers, the ultimate gain Ku=23.6 W/KK_u = 23.6\ \text{W/K} and the ultimate period Pu=43.4 sP_u = 43.4\ \text{s}, are exactly what the Ziegler–Nichols closed-loop tuning method measures on a real plant. Note that without the two small lags (a first-order plant) no gain would ever make the loop unstable: the small lags the model is tempted to drop are what set the limit.

Check: a Routh routine with the ε\varepsilon rule, compared with numerically computed roots.

python · try it yourself
import numpy as np

def routh_first_column(coeffs, eps=1e-9):
    """First column of the Routh array (zero pivots replaced by eps)."""
    n = len(coeffs)
    cols = (n + 1) // 2
    rows = [np.zeros(cols), np.zeros(cols)]
    rows[0][: len(coeffs[0::2])] = coeffs[0::2]
    rows[1][: len(coeffs[1::2])] = coeffs[1::2]
    for _ in range(n - 2):
        a, b = rows[-2], rows[-1]
        if abs(b[0]) < eps:
            b = b.copy(); b[0] = eps
            rows[-1] = b
        new = np.zeros(cols)
        for j in range(cols - 1):
            new[j] = (b[0] * a[j + 1] - a[0] * b[j + 1]) / b[0]
        rows.append(new)
    return np.array([r[0] for r in rows])

def report(name, coeffs):
    col = routh_first_column(np.array(coeffs, dtype=float))
    changes = int(np.sum(np.diff(np.sign(col)) != 0))
    rhp = int(np.sum(np.roots(coeffs).real > 1e-9))
    print(f"{name:28s} sign changes {changes}, roots in RHP {rhp}")

for Kp in (10.0, 23.0, 24.0, 40.0):
    report(f"heater, Kp = {Kp:4.1f} W/K", [15000, 4550, 315, 1 + 4 * Kp])
report("s^4 + s^3 + 2s^2 + 2s + 3", [1, 1, 2, 2, 3])          # zero in the first column
Ku = (4550 * 315 / 15000 - 1) / 4
w = np.sqrt((1 + 4 * Ku) / 4550)
print(f"ultimate gain {Ku:.2f} W/K, oscillation {w:.4f} rad/s, period {2 * np.pi / w:.1f} s")
heater, Kp = 10.0 W/K        sign changes 0, roots in RHP 0
heater, Kp = 23.0 W/K        sign changes 0, roots in RHP 0
heater, Kp = 24.0 W/K        sign changes 2, roots in RHP 2
heater, Kp = 40.0 W/K        sign changes 2, roots in RHP 2
s^4 + s^3 + 2s^2 + 2s + 3    sign changes 2, roots in RHP 2
ultimate gain 23.64 W/K, oscillation 0.1449 rad/s, period 43.4 s

The fourth polynomial has all coefficients positive and still two right-half-plane roots: the coefficient test is necessary, not sufficient. Its Routh array hits a zero in the first column at the s2s^2 row; the ε\varepsilon rule finds the two sign changes.

In the lab: watch a loop go unstable

The PID lab tests stability with Routh–Hurwitz on every slider move. Use the default plant 1(s+1)(0.5s+1)\frac{1}{(s + 1)(0.5 s + 1)} with Kp=0.5K_p = 0.5, Kd=0K_d = 0: the characteristic polynomial is 0.5s3+1.5s2+1.5s+Ki0.5 s^3 + 1.5 s^2 + 1.5 s + K_i, and the cubic condition 1.5×1.5>0.5Ki1.5 \times 1.5 > 0.5 K_i gives Ki<4.5 s−1K_i < 4.5\ \text{s}^{-1}. At Ki=4K_i = 4 the lab shows a stable but violent response (overshoot 81.51 %81.51\,\%, settling 85.76 s85.76\ \text{s}); at Ki=5K_i = 5 it reports "unstable". At exactly 4.54.5 the poles are −3-3 and ±j1.732\pm j1.732: a sustained oscillation with period 3.63 s3.63\ \text{s}.

r = 1+C(s): Kp 0.5, Ki 4, Kd 0P(s) = 1/((1s+1)(0.5s+1))y-T(s) = (0.500 s + 4.000) / (0.500 s^3 + 1.500 s^2 + 1.500 s + 4.000)closed-loop poles: -0.04+j1.66, -2.91, -0.04-j1.660.00.51.01.5050 s100 sty(t)t_s 85.8 s+81.5 %y(t)setpoint10-90 % rise

Guided lab: find the ultimate gain of a real loop

Hand calculation. For your rig, estimate the lags (main time constant, sensor, actuator) and compute KuK_u and PuP_u with the cubic condition, as in the worked example.

Simulation. Enter your polynomial in the program and sweep KpK_p.

What you would measure. On the heater rig (P control from a microcontroller, 12 V12\ \text{V} supply current-limited to 1.5 A1.5\ \text{A}), raise KpK_p in steps around the operating temperature and wait for a small sustained oscillation. Expect KuK_u within a factor of about 1.5 of the model (the lags are poorly known) and PuP_u within ±20 %\pm 20\,\%. The oscillation may not be sinusoidal: once the heater saturates at 0 or 14.4 W14.4\ \text{W}, the loop is nonlinear and the amplitude stops growing (a limit cycle, see Nonlinearities). For a faster demonstration, a small DC motor speed loop shows the same behaviour in milliseconds.

Hazards and safe setup. An oscillating heater loop drives the block hotter than its setpoint: keep the software limit and the 70–80 ∘C70\text{–}80\,^\circ\text{C} thermal cut-out active, run at a low setpoint, stop as soon as the oscillation is clear. On a motor rig, an unstable loop can slam the motor between full forward and reverse: clamp it, current-limit the supply, keep the amplitude small.

Pitfalls

  • Declaring a loop stable because all coefficients are positive (only sufficient up to second order).
  • Trusting a transfer function in which an unstable pole was cancelled.
  • Treating a marginally stable system as stable: an integrator alone is not BIBO stable.
  • Forgetting that Routh–Hurwitz says nothing about how stable a loop is: a loop just inside the limit rings for a long time; margins measure the distance (Stability Margins).

Practice

  1. Is s3+2s2+3s+10s^3 + 2s^2 + 3s + 10 stable? How many roots are in the right half-plane?
  2. For L=Ks(s+2)(s+4)L = \frac{K}{s(s + 2)(s + 4)}, find the range of KK for stability and the oscillation frequency at the limit.
  3. Why is a pure first-order plant under P control stable for every Kp>0K_p > 0?
Answer
  1. 2×3=6<102 \times 3 = 6 < 10: unstable. First column 1,2,−2,101, 2, -2, 10: two sign changes, two roots in the RHP.
  2. s3+6s2+8s+Ks^3 + 6 s^2 + 8 s + K: 48>K48 > K, so 0<K<480 < K < 48; at K=48K = 48: 6s2+48=06 s^2 + 48 = 0, ω=8=2.83 rad/s\omega = \sqrt 8 = 2.83\ \text{rad/s}.
  3. The closed loop is first order with pole −(1+KpK)/τ-(1 + K_p K)/\tau, always in the left half-plane.

Test yourself

An integrator 1s\frac{1}{s} is

  1. BIBO stable
  2. marginally stable, not BIBO stable
  3. unstable with a right-half-plane pole
  4. stable only with feedback

For a cubic a3s3+a2s2+a1s+a0a_3s^3 + a_2s^2 + a_1s + a_0 with all coefficients positive, stability requires

  1. a3a0>a2a1a_3a_0 > a_2a_1
  2. a2a1>a3a0a_2a_1 > a_3a_0
  3. a1>a0a_1 > a_0
  4. nothing more

The heater with lags of 300, 10 and 5 s under P control becomes unstable above

  1. 4 W/K4\ \text{W/K}
  2. 23.6 W/K23.6\ \text{W/K}
  3. 95.5 W/K95.5\ \text{W/K}
  4. never

A row of zeros in the Routh array indicates

  1. a computation error
  2. roots symmetric about the origin, often a pair on the imaginary axis
  3. a double pole at the origin
  4. that the system is stable