Routh–Hurwitz Criterion Calculator

JJ Ben-Joseph headshot JJ Ben-Joseph

Enter coefficients like 1,5,6 for s²+5s+6.

Why the Routh–Hurwitz Criterion Matters

The stability of a linear time‑invariant system often reduces to a question about the roots of its characteristic polynomial. If every root has a negative real part, the corresponding system’s impulse response decays over time and the equilibrium is asymptotically stable. Directly solving for polynomial roots, however, can be cumbersome or numerically unstable, especially for degree four or higher. The Routh–Hurwitz criterion offers a purely algebraic alternative: by arranging the polynomial coefficients into a special tabular form and inspecting sign changes in its first column, one can deduce how many roots lie in the open right half of the complex plane without computing the roots explicitly.

Given a polynomial Ps=asn+an1sn-1++a0 with real coefficients and an>0, the Routh–Hurwitz test constructs an n+1×n+12 array known as the Routh table. The first two rows contain the polynomial coefficients in an alternating pattern: the top row lists an, an-2, an-4, ..., while the second row lists an-1, an-3, an-5, .... Subsequent rows are filled with determinants constructed from entries above.

The key insight is that the sequence of elements in the first column of the Routh table encodes the root distribution. Specifically, the number of sign changes in this column equals the number of roots with positive real parts. If all entries in the first column are positive, the polynomial is Hurwitz stable and all roots lie in the left half-plane. Any zero or sign change hints at marginal or unstable behavior. This relationship emerges from complex analysis and the argument principle, yet the algorithm itself requires only elementary arithmetic, making it practical for hand calculations and real-time systems.

Constructing the Routh Table

Our calculator automates the tabulation process using the classic recursion. Let ri denote the i-th row of the table and ri,j its j-th entry. For i≥3 the general formula reads

ri,j=ri-1,0ri-2,j-ri-2,0ri-1,jri-1,0.

When a zero appears as the first element of a row, the division above becomes problematic. Engineers sidestep this singularity by replacing the zero with a tiny positive number known as an epsilon. Alternatively, if an entire row becomes zero, a special auxiliary polynomial derived from the previous row’s entries is used to continue the table. Our script implements the epsilon method for simplicity; if it detects a leading zero, it substitutes 1e-6 to maintain continuity.

Interpreting the Table

Once the table is complete, we inspect the first column. Let the signs of the consecutive entries be s_0, s_1, , s_n. The number of transitions from positive to negative or negative to positive equals the number of right-half-plane roots. For example, consider Ps=s3+2s2+3s+4. The Routh table begins with rows [1,3], [2,4]. Applying the formula yields a third row [2,0] and a final row [4]. The first column sequence is [1,2,2,4], which has no sign changes, indicating all roots have negative real parts. Our calculator automatically builds such tables, displays them, and reports the stability verdict.

Worked Example

Suppose the polynomial is Ps=s4+3s3+3s2+3s+1. Entering the coefficients 1,3,3,3,1 produces the table:

RowEntries

The first column becomes [1,3,2,1,1] with no sign changes, so all roots lie in the left half-plane. If we modify the coefficients to 1,0,-2,0,1, corresponding to s4-2s2+1, the table reveals two sign changes, indicating a pair of unstable roots.

Algorithm Summary

StepDescription
1Read coefficients and verify the leading term is positive.
2Populate the first two rows of the Routh table with alternating coefficients.
3Use the recursive determinant formula to fill lower rows, substituting a small epsilon for zero pivots.
4Inspect the first column for sign changes to count right-half-plane roots.
5Display the completed table and stability conclusion.

Beyond the Basics

The Routh–Hurwitz criterion plays a central role in control theory, where engineers design feedback loops that maintain system stability. By examining how coefficients depend on controller parameters, one can determine ranges that keep all roots in the left half-plane. The test also informs analog circuit design, mechanical vibration analysis, and any discipline where polynomials arise as characteristic equations. Its algebraic nature makes it ideal for symbolic manipulation and real‑time diagnostics.

Historically, Edward Routh and Adolf Hurwitz developed their methods independently in the late nineteenth century. Routh’s approach was rooted in mechanics and focused on polynomial stability without explicitly invoking complex analysis. Hurwitz provided a more general and rigorous formulation using determinants of Hurwitz matrices. Modern texts often present both perspectives, but the tabular Routh test remains a favorite for quick calculations due to its straightforward iterative structure.

While the criterion is exact for polynomials with real coefficients, numerical pitfalls can arise. Very small or very large coefficients may lead to round‑off errors that produce spurious sign changes. Scaling the polynomial to normalize coefficients or using higher‑precision arithmetic can mitigate these issues. Our calculator uses JavaScript’s double‑precision floating‑point arithmetic, which suffices for educational examples but may need enhancement for professional engineering work.

The Routh test also provides more than a yes‑or‑no answer. The magnitude of the first column entries conveys how far the system is from the stability boundary: tiny values near zero indicate that small coefficient perturbations could destabilize the system. By experimenting with coefficients, one can build intuition about robustness. If the first column contains zeros, the system lies on the verge of oscillation, and additional analysis such as the auxiliary polynomial method or root locus techniques becomes necessary.

Beyond single-input, single-output systems, generalized Routh–Hurwitz criteria appear in multivariable control and in the stability analysis of delay differential equations. These advanced topics rely on the same fundamental idea: translating questions about roots into algebraic conditions on coefficients. Mastering the classical table is therefore a gateway to more sophisticated stability tools.

To deepen your understanding, try entering polynomials of different degrees, including ones with alternating signs or repeated roots. Observe how the table changes and how the sign pattern responds. By carefully modifying one coefficient at a time, you can map out the stability region in parameter space. This hands‑on experimentation reveals why the Routh–Hurwitz criterion remains a workhorse in both theoretical and applied settings.

Related Calculators

Rayleigh Criterion Angular Resolution Calculator

Estimate the diffraction-limited angular and linear resolution of an optical system using the Rayleigh criterion.

rayleigh criterion calculator telescope resolution diffraction limit

Sylvester's Criterion Calculator - Test Matrix Definiteness

Check whether a symmetric matrix is positive or negative definite using leading principal minors.

sylvesters criterion calculator positive definite matrix

Fusion Lawson Criterion Calculator - Triple Product Estimator

Calculate the plasma triple product nTτ and compare it with Lawson criterion thresholds for fusion ignition.

Lawson criterion calculator fusion triple product plasma confinement ignition conditions