s⁴ │ 1 2 3s³ │ 1 2s² │ 0 3s¹ │ ?s⁰ │ ?s⁴ │ 1 2 3s³ │ 1 2s² │ ε 3s¹ │ 2 − 3/εs⁰ │ 3s⁴ │ 1 2 3s³ │ 1 2s² │ 0.01 3s¹ │ −298s⁰ │ 3s³ │ 1 2s² │ 3 Ks¹ │ ?s⁰ │ ?s³ │ 1 2s² │ 3 Ks¹ │ (6−K)/3 0s⁰ │ Ks³ │ 1 2s² │ 3 3s¹ │ 1 0s⁰ │ 3s³ │ 1 2s² │ 3 8s¹ │ −0.67 0s⁰ │ 8s³ │ 1 2s² │ 3 6s¹ │ 0 0s⁰ │ ?s³ │ 1 2s² │ 3 6s¹ │ 6 0s⁰ │ 6K = ?1 / s(s+1)(s+2)y(t)εK = 36s
−3−2−101−2−1012σ, real partjω, imaginary partS-PLANE (POLES)right half0510152025−10123time (s)ySTEP RESPONSE y(t)closed loop
Lit wire with moving dashes: a signal is flowing along itBlocks: the gain knob, the plant, the output, the sign counter; the Routh table is the card lying flatPlots: the poles on the s-plane and the step response, computed from the modelPills carry ε, the value of K, and the derivative 6s into the tableTwo special cases of the Routh table. A zero only in the first column is replaced by a tiny positive ε; a whole row of zeros is replaced by the derivative of the auxiliary polynomial taken from the row above. With the gain K kept as a letter, the table gives the stable range of the loop K/(s(s+1)(s+2)): 0 < K < 6. At K = 6 two poles sit on the jω axis and the output rings at 1.41 rad/s. The ε trick works because the signs of the first column do not depend on how small ε is, once it is small enough. Some texts let ε approach zero from the negative side instead; the count of sign changes comes out the same.

A zero in the first column

  1. Take s⁴ + s³ + 2s² + 2s + 3 and build its Routh table. The s² row comes out as 0 and 3. Every entry of the next row divides by that first-column 0, so the table is stuck.

Finding the gain limit

A row of zeros

The working

# step 1/11 · zero-first
# about: Routh table

s⁴ |  1    2    3
s³ |  1    2
s² |  (1·2 − 1·2)/1 = 0    (1·3 − 1·0)/1 = 3
s¹ |  ? = (0·2 − 1·3)/0   divide by zero!

Only the FIRST entry of the s² row is zero;
the rest of the row (3) is not.

Poles are computed numerically from the polynomial, and the step responses are integrated from y''' + 3y'' + 2y' + K·y = K·u with a fourth-order Runge–Kutta step of 0.002 s. Every value in the figure comes from that model. The Python on each step is plain Python 3 with no libraries. To check poles with a library, python-control's control.poles(control.feedback(K * G, 1)) gives the closed-loop poles directly.