---
title: The Nyquist stability criterion
heading: Plotting L(jω) in the complex plane, counting encirclements of −1, the relation Z = N + P, loops with integrators and with unstable open-loop poles, conditional stability, and why the test works with measured data and time delays
eyebrow: S9 · Lesson 24 · The Nyquist stability criterion
xp: 50
---

::: hook
Harry Nyquist worked on telephone repeater amplifiers at Bell Labs, where Harold Black's new negative-feedback amplifiers sometimes "sang", oscillating on their own. In 1932 he showed how to predict this from the open-loop frequency response alone: plot $L(j\omega)$ in the complex plane and see how the curve winds around the point −1. The test needs no model, handles time delays exactly and copes with open-loop-unstable plants, which makes it the foundation of every frequency-domain stability measure.
:::

::: play
- The Nyquist plot of $L = K/(s + 1)^3$: the solid curve for ω from 0 to ∞, its mirror image (dashed) for negative frequencies, and the critical point −1.
- The curve crosses the negative real axis at $-K/8$, where the phase reaches −180°, at ω = √3.
- For K < 8 the crossing is to the right of −1 and the curve doesn't encircle it: stable. For K > 8 it encircles −1 twice clockwise: two closed-loop poles in the right half-plane.
:::

```sim plot
view: complex
range: 3
axes: Re L, Im L
slider: K = 1..14 = 4
curve: K/(1 + j*u)^3 | over: u = 0..60
curve: K/(1 - j*u)^3 | over: u = 0..60 | dashed
dot: -1 | label: −1
dot: -K/8 | label: crossing
readout: real-axis crossing = -K/8 | digits: 3
readout: closed-loop poles in the right half-plane = 2*(1 - step(8 - K))
```

::: predict
## The loop $L = K/((s - 1)(s + 4))$ has an unstable open-loop pole. For what K is the closed loop stable?

- [ ] Never: feedback can't fix an unstable plant
- [ ] K < 4
- [x] K > 4
- [ ] Every K > 0

::: reveal
With one open-loop pole in the right half-plane (P = 1), stability needs the Nyquist plot to encircle −1 once counterclockwise. $L(0) = -K/4$, and the plot is a closed loop from there through the lower half-plane back to the origin, so it encircles −1 exactly when K/4 > 1. The characteristic polynomial $s^2 + 3s + K - 4$ agrees: stable for K > 4.
:::
:::

::: nameit
## The plot

Trace $L(j\omega)$ for ω from −∞ to ∞. For a real system the negative-frequency half is the mirror image of the positive half in the real axis. If L has poles on the imaginary axis (integrators), the path detours around them on small semicircles to the right, which maps to large arcs in the plot.

## The criterion

$$Z = N + P$$

- **P:** open-loop poles of L in the right half-plane (known from the model);
- **N:** net number of **clockwise** encirclements of −1 by the plot (counterclockwise counts negative);
- **Z:** closed-loop poles in the right half-plane, the zeros of $1 + L$.

The closed loop is stable when Z = 0, so for a stable open loop (P = 0) the plot must not encircle −1, and for P unstable open-loop poles it must encircle −1 P times counterclockwise.

## Why it works

$1 + L(s)$ has the closed-loop poles as its zeros and the open-loop poles as its poles. As s travels once clockwise around the right half-plane, the argument principle says the curve $1 + L(s)$ winds clockwise around the origin (Z − P) times. Shifting by one, that's L winding around −1.

## Reading crossings

Where the plot crosses the negative real axis, the phase is −180° and the crossing point is $-|L|$ there. For $L = K/((s + a)(s + b)(s + c))$ that happens at $\omega^2 = ab + bc + ca$, at the point $-K/((a + b + c)(ab + bc + ca) - abc)$; for $L = K/(s(s + a)(s + b))$ at $\omega^2 = ab$, at $-K/(ab(a + b))$. These are the Routh results again.

## Conditional stability

A plot can cross the negative real axis several times. Then the loop may be stable for a middle range of gain and unstable for both larger and *smaller* gain: if an actuator saturates and the effective gain drops, such a loop can go unstable. Nyquist sees this at a glance; gain-only rules don't.
:::

::: example
## Where does the Nyquist plot of $L = K/(s(s + 1)(s + 5))$ cross the negative real axis?

::: solution
1. **Where the phase is −180°.** The two poles must add 90°:
   $$\angle(j\omega + 1) + \angle(j\omega + 5) = 90°$$
2. **Frequency.** That happens at
   $$\begin{aligned} \omega^2 &= 1 \times 5 \\ \omega &= 2.24\ \text{rad/s} \end{aligned}$$
3. **The poles' product there.**
   $$\begin{aligned} &(j\omega + 1)(j\omega + 5) \\ &= 5 - \omega^2 + 6j\omega \\ &= 6j\omega \end{aligned}$$
4. **Value of L.**
   $$\begin{aligned} L &= \frac{K}{j\omega \cdot 6j\omega} \\ &= -K/30 \end{aligned}$$
5. **Read off the gains.** The plot passes −1 when K = 30, the Routh limit, and for K = 10 it crosses at −0.33, three times short of −1.

**Answer:** it crosses at −K/30, at ω = 2.24 rad/s, so it reaches −1 when K = 30.
:::
:::

::: example
## How does the Nyquist plot of a loop with an integrator, $L = 2/(s(0.5s + 1)(0.1s + 1))$, start?

::: solution
1. **Low-frequency form.** As ω → 0⁺,
   $$L \approx \frac{2}{j\omega}\left(1 - j\omega(0.5 + 0.1)\right)$$
2. **The asymptote.** So the plot comes in from far down the imaginary axis along the vertical line
   $$\begin{aligned} \operatorname{Re} L &= -2 \times 0.6 \\ &= -1.2 \end{aligned}$$
3. **Closing the contour.** The detour around the pole at the origin closes it with a large clockwise arc through the right half-plane.
4. **What decides stability.** Whether −1 is encircled still depends only on the real-axis crossing.
5. **The real-axis crossing.** In factored form the loop is $40/(s(s + 2)(s + 10))$, which crosses at $\omega = \sqrt{20}$, at
   $$\begin{aligned} L &= \frac{-40}{2 \times 10 \times 12} \\ &= -0.167 \end{aligned}$$
6. **Conclusion.** There's no encirclement, so the loop is stable, with six times more gain available before it isn't.

**Answer:** it starts far down the imaginary axis along the line Re L = −1.2, and it crosses the real axis at −0.167, so the loop is stable with six times more gain available.
:::
:::

::: example
## A plant with an unstable pole, $L = K/(s - 1)$, is put under proportional control. Use the Nyquist criterion to find the stable gains.

::: solution
1. **Shape of the plot.** L(jω) traces a circle from −K at ω = 0 to the origin as ω → ∞, and the negative frequencies close it: a circle of diameter K through −K and 0.
2. **What stability needs.** With P = 1 open-loop pole in the right half-plane, stability needs one counterclockwise encirclement of −1.
3. **When that happens.** The circle encircles −1 exactly when K > 1.
4. **Check.** The closed-loop pole is at
   $$s = 1 - K$$
   which is in the left half-plane exactly when K > 1.
5. **Unstable plants.** Unstable plants need enough gain, and a gain margin that guards against the gain falling.

**Answer:** the loop is stable for K > 1.
:::
:::

::: check
given: K = 10 | 50 | 200; a = 1 | 2; b = 4 | 6; c = 10 | 15
answer: -K/((a + b + c)*(a*b + b*c + c*a) - a*b*c)
tolerance: 0.5%

## Where does the Nyquist plot of $L = \given{K}/((s + \given{a})(s + \given{b})(s + \given{c}))$ cross the negative real axis?

::: right
Right. At $\omega^2 = ab + bc + ca$, at {answer}.
:::

::: misses
- [-K/((a + b + c)*(a*b + b*c + c*a))] The real part there also includes −abc: use $(a + b + c)(ab + bc + ca) - abc$.
- [any] Not yet. Find where the imaginary part of the denominator vanishes.
:::
:::

::: check
given: N = -1 | 1 | 2; P = 1 | 2
answer: N + P
tolerance: 0

## A loop has {P} open-loop poles in the right half-plane, and its Nyquist plot encircles −1 a net {N} times clockwise. How many closed-loop poles are in the right half-plane?

::: right
Right. Z = N + P = {answer}.
:::

::: misses
- [N] Add the open-loop unstable poles: Z = N + P.
- [P - N] Clockwise encirclements add to Z.
- [any] Not yet. Z = N + P.
:::
:::

::: check
given: a = 0.5 | 1 | 2; b = 3 | 6
answer: a*b
tolerance: 0.5%

## A plant has an unstable pole at +{a} and a stable one at −{b}. Under gain K, $L = K/((s - \given{a})(s + \given{b}))$. What's the least K that stabilizes it?

::: right
Right. The plot starts at $L(0) = -K/ab$ and must encircle −1 once counterclockwise: K > {answer}.
:::

::: misses
- [a] Both poles set the DC gain: $|L(0)| = K/ab$.
- [any] Not yet. Check where the plot starts and what encirclement P = 1 needs.
:::
:::

::: check
given: K = 5 | 30 | 100; a = 1 | 3; b = 5 | 10
answer: -K/(a*b*(a + b))
tolerance: 0.5%

## Where does the Nyquist plot of $L = \given{K}/(s(s + \given{a})(s + \given{b}))$ cross the negative real axis?

::: right
Right. At ω = $\sqrt{ab}$, at $-K/(ab(a + b))$ = {answer}.
:::

::: misses
- [-K/(a*b)] At that frequency the denominator is $-\omega^2(a + b)$, with $\omega^2 = ab$.
- [any] Not yet. Find where the phase is −180°.
:::
:::

::: check
given: K = 0.5 | 2 | 10; t = 0.2 | 1; r = 0.05 | 0.5
answer: -K*(t + r)
tolerance: 0.5%

## A type-1 loop $L = K/(s(\tau_1s + 1)(\tau_2s + 1))$ with K = {K}, $\tau_1$ = {t} s and $\tau_2$ = {r} s. What vertical line does its Nyquist plot approach as ω → 0?

::: right
Right. $L \approx \frac{K}{j\omega}(1 - j\omega(\tau_1 + \tau_2))$, so Re L → $-K(\tau_1 + \tau_2)$ = {answer}.
:::

::: misses
- [-K*t] Each time constant contributes.
- [any] Not yet. Expand L to first order in ω.
:::
:::

::: check
given: K = 2 | 5 | 12 | 30
answer: 2*(1 - step(8 - K))
tolerance: 0

## The loop $L = \given{K}/(s + 1)^3$ is closed. How many closed-loop poles are in the right half-plane?

::: right
Right. The plot crosses the negative real axis at −{K}/8, so it encircles −1 twice when K > 8 and not at all when K < 8: {answer}.
:::

::: misses
- [any] Not yet. Find the crossing at ω = √3 and count encirclements.
:::
:::

::: check
kind: parts
given: a = 0.5 | 1 | 3; K = 4 | 6 | 10

## A plant with an unstable pole at +{a} is under proportional control: $L = \given{K}/(s - \given{a})$.

::: part
answer: a - K
tolerance: 0.5%

### Where is the closed-loop pole?

::: misses
- [any] $1 + L = 0$ gives $s = a - K$.
:::
:::

::: part
answer: K/a
tolerance: 0.5%

### By what factor could the gain fall before the loop goes unstable?

::: misses
- [a/K] The gain must stay above a: divide K by a.
- [any] K/a.
:::
:::
:::

::: check
kind: derivation
vars: K = 1..1000, a = 0.5..5, b = 0.5..5, c = 0.5..5

## The loop $L = K/((s + a)(s + b)(s + c))$.

::: step
answer: sqrt(a*b + b*c + c*a)

### At what frequency is its phase −180°?
:::

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

### Where does its Nyquist plot cross the negative real axis?
:::

::: right
Right. Expanding the denominator at $s = j\omega$ makes the imaginary part vanish at $\omega^2 = ab + bc + ca$.
:::
:::

::: explain
## Why can the Nyquist criterion handle a time delay when the Routh test can't?

::: model
A time delay multiplies the loop gain by $e^{-sT}$, which isn't a ratio of polynomials, so the characteristic equation has infinitely many roots and the Routh array, which works on polynomial coefficients, has nothing to act on. The Nyquist criterion only needs the value of $L(j\omega)$ at each frequency, and a delay simply rotates each point by $-\omega T$ without changing its distance from the origin. You can plot the rotated curve and count encirclements of −1 exactly as before. The same property lets the test run on a measured frequency response, with no model at all.
:::
:::

::: practice

::: check
given: K = 20 | 120; a = 1 | 3; b = 4 | 8; c = 12 | 20
answer: -K/((a + b + c)*(a*b + b*c + c*a) - a*b*c)
tolerance: 0.5%

## Real-axis crossing of $\given{K}/((s + \given{a})(s + \given{b})(s + \given{c}))$?

::: misses
- [any] At $\omega^2 = ab + bc + ca$.
:::
:::

::: check
given: K = 8 | 60; a = 0.5 | 2; b = 4 | 12
answer: -K/(a*b*(a + b))
tolerance: 0.5%

## Real-axis crossing of $\given{K}/(s(s + \given{a})(s + \given{b}))$?

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

::: check
given: N = -2 | 0 | 1; P = 2 | 3
answer: N + P
tolerance: 0

## Z for P = {P}, N = {N} clockwise?

::: misses
- [any] Z = N + P.
:::
:::
:::
