---
title: Stability and the Routh–Hurwitz criterion
heading: Bounded-input bounded-output stability, why every pole must be in the left half-plane, the Routh array, its special cases, and finding the range of gain that keeps a loop stable and the frequency it oscillates at when it isn't
eyebrow: S9 · Lesson 9 · Stability and the Routh–Hurwitz criterion
xp: 50
---

::: hook
Turn up the gain of almost any feedback loop far enough and it starts to oscillate. Where that happens, and at what frequency, can be found without solving for a single pole: in 1877 Edward Routh showed how to count a polynomial's right-half-plane roots from its coefficients with a few multiplications. It's still the quickest way to find the range of gain a loop tolerates, and it works with symbols, so it gives formulas rather than single numbers.
:::

::: play
- The root locus of $L = K/(s(s + a)(s + 5))$: the closed-loop poles as K rises from zero, with dots at the slider's K.
- Two branches bend toward the right half-plane and cross the imaginary axis at $K = 5a(a + 5)$, at $\omega = \sqrt{5a}$.
- Move the pole at −a and watch the critical gain change. The readout is the Routh result.
:::

```sim plot
view: splane
x: sigma = -8..2 rad/s
y: omega = -6..6 rad/s
slider: a = 0.5..4 = 1
slider: K = 0..120 = 10 step 0.5
den: s*(s + a)*(s + 5)
locus: K = 0..400
readout: critical gain = 5*a*(a + 5) | digits: 4
readout: crossing frequency, rad/s = sqrt(5*a) | digits: 4
```

::: predict
## A loop $L = K/(s(s + 1)(s + 5))$ has closed-loop characteristic polynomial $s^3 + 6s^2 + 5s + K$. Above what K is it unstable?

- [ ] 5
- [ ] 6
- [x] 30
- [ ] It's stable for every K

::: reveal
The Routh array's $s^1$ row is $(6 \times 5 - K)/6$, which turns negative above K = 30. At K = 30 that row is zero, and the row above, $6s^2 + 30 = 0$, gives the poles on the axis: $s = \pm j\sqrt{5}$, an oscillation at 2.24 rad/s.
:::
:::

::: nameit
## Stability

A linear system is **BIBO stable** (every bounded input gives a bounded output) exactly when every pole of its transfer function has a negative real part. Poles on the imaginary axis are **marginally stable**: a bounded input at their frequency grows without bound.

## A quick necessary condition

Every coefficient of the characteristic polynomial must be present and of one sign. That's enough for first- and second-order polynomials, but not beyond.

## The Routh array

For $a_ns^n + a_{n-1}s^{n-1} + \dots + a_0$, write the coefficients in two rows, alternating:

$$\begin{array}{c|ccc} s^n & a_n & a_{n-2} & a_{n-4} \\ s^{n-1} & a_{n-1} & a_{n-3} & a_{n-5} \\ s^{n-2} & b_1 & b_2 & \\ \vdots \end{array} \qquad b_1 = \frac{a_{n-1}a_{n-2} - a_na_{n-3}}{a_{n-1}}$$

and so on, each entry built from the two rows above. **The number of sign changes in the first column equals the number of right-half-plane roots.**

## Results worth knowing

- A cubic $s^3 + a_2s^2 + a_1s + a_0$ is stable when all coefficients are positive and $a_2a_1 > a_0$.
- $L = K/(s(s + a)(s + b))$ is stable for $0 < K < ab(a + b)$ and oscillates at $\sqrt{ab}$ at the limit.
- $L = K/((s + a)(s + b)(s + c))$ is stable up to $K = (a + b + c)(ab + bc + ca) - abc$, oscillating at $\sqrt{ab + bc + ca}$.

## Special cases

A whole row of zeros means roots symmetric about the origin, often a pair on the imaginary axis: the row above forms the **auxiliary polynomial**, whose roots they are. A single zero in the first column is replaced by a small ε and the signs counted as ε → 0⁺.
:::

::: example
## How many right-half-plane roots does $s^4 + 2s^3 + 3s^2 + 4s + 5$ have?

::: solution
1. **First two rows.** From the coefficients:
   $$\begin{aligned} s^4&:\ 1,\ 3,\ 5 \\ s^3&:\ 2,\ 4 \end{aligned}$$
2. **The $s^2$ row.**
   $$\begin{aligned} \frac{2 \cdot 3 - 1 \cdot 4}{2} &= 1 \\ \frac{2 \cdot 5 - 0}{2} &= 5 \end{aligned}$$
3. **The $s^1$ and $s^0$ rows.**
   $$\begin{aligned} s^1&:\ \frac{1 \cdot 4 - 2 \cdot 5}{1} = -6 \\ s^0&:\ 5 \end{aligned}$$
4. **Count sign changes.** The first column reads 1, 2, 1, −6, 5: two sign changes, so two roots in the right half-plane, even though every coefficient is positive.
5. **Check.** The roots are at 0.288 ± j1.416.

**Answer:** two roots in the right half-plane, at 0.288 ± j1.416.
:::
:::

::: example
## Three amplifier stages each have a pole at −1, −2 and −3 (in units of some reference frequency) and a loop gain K. When does the loop oscillate?

::: solution
1. **Characteristic polynomial.**
   $$\begin{aligned} &(s + 1)(s + 2)(s + 3) + K \\ &= s^3 + 6s^2 + 11s + 6 + K \end{aligned}$$
2. **Stability condition.** Stability needs
   $$6 \times 11 > 6 + K$$
   so K < 60.
3. **Oscillation frequency.** At K = 60 the $s^2$ row gives
   $$6s^2 + 66 = 0$$
   so the loop oscillates at $\sqrt{11}$ = 3.32.
4. **What it means.** This is why a three-pole amplifier can't take much feedback without compensation.

**Answer:** the loop oscillates once K reaches 60, at $\sqrt{11}$ = 3.32 in the same reference units.
:::
:::

::: example
## An unstable plant has $L = K(s + 1)/(s(s - 1)(s + 4))$. For what gains is the loop stable?

::: solution
1. **Characteristic polynomial.**
   $$\begin{aligned} &s(s - 1)(s + 4) + K(s + 1) \\ &= s^3 + 3s^2 + (K - 4)s + K \end{aligned}$$
2. **Routh array.** The first rows are $1, K - 4$ and $3, K$, then
   $$\begin{aligned} s^1&:\ \frac{3(K - 4) - K}{3} = \frac{2K - 12}{3} \\ s^0&:\ K \end{aligned}$$
3. **Stability condition.** All positive needs K > 6.
4. **At the boundary.** At K = 6 the $s^2$ row gives
   $$3s^2 + 6 = 0$$
   so it oscillates at $\sqrt2$ = 1.41 rad/s.
5. **Unstable plants.** An unstable plant needs a minimum gain to be stabilized, and here there's no maximum.

**Answer:** the loop is stable for every K > 6; at K = 6 it oscillates at 1.41 rad/s.
:::
:::

::: check
given: a = 1 | 2 | 4; b = 5 | 10
answer: a*b*(a + b)
tolerance: 0.5%

## A loop $L = K/(s(s + \given{a})(s + \given{b}))$. What's the largest K for which it's stable?

::: right
Right. Routh on $s^3 + (a + b)s^2 + abs + K$: K < ab(a + b) = {answer}.
:::

::: misses
- [a*b] That's the $s^1$ coefficient, not the limit on K.
- [any] Not yet. A cubic needs $a_2a_1 > a_0$.
:::
:::

::: check
given: a = 1 | 3 | 6; b = 4 | 12
answer: sqrt(a*b)
unit: rad/s
tolerance: 0.5%

## At its stability limit, $L = K/(s(s + \given{a})(s + \given{b}))$ oscillates. At what frequency?

::: right
Right. The auxiliary polynomial $(a + b)s^2 + K_\text{max}$ gives $\omega = \sqrt{ab}$ = {answer} rad/s.
:::

::: misses
- [a*b] Take the square root.
- [any] Not yet. Solve the $s^2$ row's polynomial at the critical K.
:::
:::

::: check
given: a = 1 | 2; b = 3 | 5; c = 8 | 20
answer: (a + b + c)*(a*b + b*c + c*a) - a*b*c
tolerance: 0.5%

## A loop $L = K/((s + \given{a})(s + \given{b})(s + \given{c}))$. What's the largest stable K?

::: right
Right. $(a + b + c)(ab + bc + ca) - abc$ = {answer}.
:::

::: misses
- [(a + b + c)*(a*b + b*c + c*a)] The polynomial's constant term is $abc + K$, so subtract abc.
- [any] Not yet. Apply $a_2a_1 > a_0$ with $a_0 = abc + K$.
:::
:::

::: check
given: a = 1 | 3; b = 3 | 6 | 8; c = 4 | 10; d = 1 | 5
answer: (1 - step(a*b - c)) + (1 - step((a*b - c)*(c - a^2*d/(a*b - c)))) + (1 - step(c - a^2*d/(a*b - c)))
tolerance: 0

## How many roots of $s^4 + \given{a}s^3 + \given{b}s^2 + \given{c}s + \given{d}$ lie in the right half-plane?

::: right
Right. {answer}: count the sign changes down the first column 1, {a}, $b_1$, $c_1$, {d}.
:::

::: misses
- [any] Not yet. Build the array: $b_1 = (a_3a_2 - a_4a_1)/a_3$, then $c_1 = (b_1a_1 - a_3a_0)/b_1$.
:::
:::

::: check
given: a = 2 | 5; b = 4 | 10; K = 12 | 40
answer: (a*b - K)/a
tolerance: 0.5%

## What's the first-column entry in the $s^1$ row of the Routh array for $s^3 + \given{a}s^2 + \given{b}s + \given{K}$?

::: right
Right. $(a_2a_1 - a_0)/a_2$ = {answer}.
:::

::: misses
- [a*b - K] Divide by the entry above, {a}.
- [any] Not yet. $b_1 = (a_2a_1 - a_3a_0)/a_2$.
:::
:::

::: check
given: a = 2 | 3; b = 5 | 7; c = 9 | 15
answer: sqrt(a*b + b*c + c*a)
unit: rad/s
tolerance: 0.5%

## At its stability limit, $L = K/((s + \given{a})(s + \given{b})(s + \given{c}))$ oscillates. At what frequency?

::: right
Right. $\sqrt{ab + bc + ca}$ = {answer} rad/s.
:::

::: misses
- [sqrt(a*b*c)] The frequency comes from the $s^2$ and $s^0$ terms of the auxiliary polynomial: $\omega^2 = a_1$.
- [any] Not yet. At the limit, $a_2s^2 + a_2a_1 = 0$.
:::
:::

::: check
kind: parts
given: q = 3 | 4 | 6 | 10

## A loop has $L = K(s + 1)/(s(s - 1)(s + \given{q}))$, with one unstable plant pole.

::: part
answer: q*(q - 1)/(q - 2)
tolerance: 0.5%

### Above what gain is it stable?

::: misses
- [any] The characteristic polynomial is $s^3 + (q - 1)s^2 + (K - q)s + K$; the $s^1$ entry must be positive.
:::
:::

::: part
answer: sqrt(q/(q - 2))
unit: rad/s
tolerance: 0.5%

### At what frequency does it oscillate at that gain?

::: misses
- [any] The $s^2$ row: $(q - 1)\omega^2 = K$.
:::
:::
:::

::: check
kind: derivation
vars: a = 1..10, b = 20..50, c = 1..10, d = 0.1..5

## The Routh array of $s^4 + as^3 + bs^2 + cs + d$.

::: step
answer: (a*b - c)/a

### What is the first entry of the $s^2$ row?
:::

::: step
answer: ((a*b - c)/a*c - a*d)/((a*b - c)/a)

### And of the $s^1$ row?
:::

::: step
answer: d

### And of the $s^0$ row?
:::

::: right
Right. Each entry is built from the two rows above it, and only the first column's signs matter.
:::
:::

::: explain
## Why does a whole row of zeros in the Routh array signal roots on the imaginary axis?

::: model
A row vanishes when the polynomial has a factor whose roots are symmetric about the origin, such as $s^2 + \omega^2$, because such a factor contains only even powers of s and the array's elimination steps cancel it exactly. That factor is the auxiliary polynomial formed from the row above the zeros. In a gain study this happens precisely at the critical gain: the closed-loop poles are crossing the imaginary axis as a pair at $\pm j\omega$, so solving the auxiliary polynomial gives the frequency at which the loop will oscillate.
:::
:::

::: practice

::: check
given: a = 0.5 | 3; b = 2 | 8
answer: a*b*(a + b)
tolerance: 0.5%

## Critical gain of $K/(s(s + \given{a})(s + \given{b}))$?

::: misses
- [any] $ab(a + b)$.
:::
:::

::: check
given: a = 1 | 4; b = 2 | 6; c = 10 | 30
answer: (a + b + c)*(a*b + b*c + c*a) - a*b*c
tolerance: 0.5%

## Critical gain of $K/((s + \given{a})(s + \given{b})(s + \given{c}))$?

::: misses
- [any] $(a + b + c)(ab + bc + ca) - abc$.
:::
:::

::: check
given: a = 1.5 | 4; b = 3 | 9
answer: sqrt(a*b)
unit: rad/s
tolerance: 0.5%

## Oscillation frequency at the limit for $K/(s(s + \given{a})(s + \given{b}))$?

::: misses
- [any] $\sqrt{ab}$.
:::
:::
:::
