TOOLS / ROUTH ARRAY

Routh array calculator

Build the Routh–Hurwitz table of a characteristic polynomial and count its right-half-plane roots without solving for them, including both special cases.

System / G(s) = N(s) / D(s)

Coefficients in descending powers (1 3 2) or an expression such as s(s+1)(s+2).

L(s) = K·G(s); the closed loop is K·G/(1 + K·G) with unity negative feedback.

G(s) =11s + 300.24s³ + 4.06s² + 3.5s
Poles of G(s)
−16.01−0.91110
Zeros of G(s)
−2.727
DC gain G(0)
∞
Closed-loop poles at this K (1)
−13.01−1.952 ± 2.407j
Stability
Closed loop stable: every pole is in the left half-plane.
Special cases:

Closed-loop characteristic polynomial D(s) + K·N(s): p(s) = 0.24s³ + 4.06s² + 14.5s + 30

Row12Sign
s³0.2414.5+
s²4.0630+
s¹12.7270+
s⁰300+
    Sign changes in the first column
    0
    Right-half-plane roots
    0
    Imaginary-axis roots
    0
    Left-half-plane roots
    3
    Numerical roots (check)

    −13.01−1.952 ± 2.407j

    The numerical roots agree with the table.

    Same result in code

    MATLAB
    % MATLAB has no built-in Routh table; check the root count directly.
    p = [0.24 4.06 14.5 30];
    r = roots(p)
    nRHP = sum(real(r) > 0)
    Python (python-control)
    import numpy as np
    
    p = [0.24, 4.06, 14.5, 30]
    r = np.roots(p)
    print(r, np.sum(r.real > 0))

    MATLAB uses the Control System Toolbox; Python uses python-control 0.10 or later (pip install control).

    WHAT IT COMPUTES

    What this calculator computes

    By default the table uses the closed-loop characteristic polynomial D(s) + K·N(s) of the system above; you can also type any polynomial directly.

    The number of sign changes in the first column equals the number of right-half-plane roots. For s⁴ + s³ + 2s² + 2s + 3 a zero appears in the first column; replacing it with ε gives the column 1, 1, ε, −3/ε, 3, with two sign changes, so two roots lie in the right half-plane.

    READ THE RESULT

    How to read the result

    • Zero in the first column (rest of the row not zero): the zero is replaced by a small positive ε and the table continues. Entries are shown by their leading behaviour as ε → 0⁺, which fixes their signs.
    • Row of zeros: the row above gives the auxiliary polynomial A(s); its derivative replaces the zero row. A(s) is a factor of the polynomial, and its roots are symmetric about the origin, so this case signals roots on the imaginary axis or mirror pairs.
    • Roots at s = 0 (a zero constant term) are factored out first and counted on the imaginary axis.
    METHOD

    Method and conventions

    • Entries are carried as truncated series in ε, so cancellations that only show up at higher order in ε are still resolved exactly instead of depending on one small number.
    • The counts are cross-checked against the numerical roots of the same polynomial, which are listed below the table.
    LIMITS

    Coefficients must be numbers; to find the stable range of a symbolic gain K, use the root locus calculator, which computes it directly.