A zero in the first column
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.
When only the first entry of a row is zero, replace it with ε, a tiny positive number, and carry on. The s¹ entry becomes (ε·2 − 1·3)/ε = 2 − 3/ε. The s⁰ entry is 3.
As ε shrinks, 2 − 3/ε becomes hugely negative: −298 when ε = 0.01. The first column reads +, +, +, −, +. Two sign changes mean two right-half-plane poles. The s-plane agrees: 0.41 ± 1.29j.
Finding the gain limit
Now a design question. The plant 1/(s(s+1)(s+2)) sits in a unity-feedback loop behind a gain K. The closed-loop poles are the roots of s³ + 3s² + 2s + K. How big can K get before the loop goes unstable?
Build the table with K left as a letter. The first two rows copy the coefficients: 1, 2 and 3, K. Then s¹ gets (3·2 − 1·K)/3 = (6 − K)/3, and s⁰ gets K.
Stable means no sign changes, so every first-column entry must be positive. (6 − K)/3 > 0 needs K < 6, and the s⁰ entry needs K > 0. The loop is stable for 0 < K < 6. The gain limit is 6.
Turn the knob to K = 3. The first column is 1, 3, 1, 3: no sign changes. All three poles sit in the left half, at −2.67 and −0.16 ± 1.05j. The step response swings, then settles at 1.
Turn up to K = 8. The s¹ entry is (6 − 8)/3 = −0.67, so the column reads +, +, −, +: two sign changes, two right-half-plane poles at 0.08 ± 1.59j. The output swings wider and wider.
A row of zeros
At exactly K = 6 the s¹ entry is (6 − 6)/3 = 0, and the rest of that row is 0 too. A whole row of zeros is the second special case. It means roots in mirror pairs, here on the jω axis.
Read the row above as a polynomial: 3s² + 6, the auxiliary polynomial. Its roots, ±j√2 ≈ ±1.41j, are poles of the loop. Its derivative, 6s, fills the zero row. The column 1, 3, 6, 6 has no sign change.
With two poles exactly on the jω axis the loop is marginally stable: the step response oscillates for ever at √2 ≈ 1.41 rad/s, a period of 4.44 s. So K must stay below 6. Real designs keep a margin, like K = 3.
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.