ENع
←Nyquist criterion
Lesson 32 · Frequency response

The Nyquist stability criterion

16 min11 steps5 questionsAdvanced
About this lesson

Cut the loop, shake it with sines and plot the open loop L(jω) as one curve. Count how many times that curve winds round −1: with Z = N + P that count tells you how many closed-loop poles are unstable, without solving for a single root. One loop, K/(s + 1)³, is stable at K = 4, on the edge at K = 8 and unstable at K = 12.

You'll learn to

Tick what you feel confident about. These self-checks do not affect your lesson score.

Fig 32 · Interactive
01 / 11

Is this loop stable?

A gain K = 4 drives the plant G(s) = 1/(s + 1)³, and the output is fed back and subtracted. Stable means every root of 1 + K·G(s) = 0 has a negative real part. Can we tell without solving?

plant      G(s) = 1 / (s + 1)³
open loop  L(s) = K·G(s),  K = 4
closed loop T(s) = L / (1 + L)

closed-loop poles: roots of 1 + L(s) = 0
stable  ⇔  all of them have real part < 0

Nyquist: decide this from L(jω) alone,
the open loop's response to sines.
Loading figure…
or ← →
Read the lesson step by step
  1. Is this loop stable?

    A gain K = 4 drives the plant G(s) = 1/(s + 1)³, and the output is fed back and subtracted. Stable means every root of 1 + K·G(s) = 0 has a negative real part. Can we tell without solving?

    plant      G(s) = 1 / (s + 1)³
    open loop  L(s) = K·G(s),  K = 4
    closed loop T(s) = L / (1 + L)
    
    closed-loop poles: roots of 1 + L(s) = 0
    stable  ⇔  all of them have real part < 0
    
    Nyquist: decide this from L(jω) alone,
    the open loop's response to sines.
  2. Everything hinges on −1

    Call L(s) = K·G(s) the open loop: the path round the loop with the feedback cut. A closed-loop pole is a value of s where 1 + L(s) = 0, which means L(s) = −1. So −1 is the critical point.

    1 + L(s) = 0   ⇔   L(s) = −1
    
    open loop   L(s) = K·G(s)
                what a signal meets going once
                round the loop, before the minus sign
    
    critical point   −1 + 0j
    the whole test asks how L sits
    relative to this one point.
  3. A sine in, a sine out

    Feed the open loop a sine at ω = 1 rad/s. Once settled, the output is a sine of the same frequency, 1.414 times as big and 135° behind. That pair is one complex number: L(j1) = −1 − 1j, a dot on the plane.

    L(jω) = 4 / (1 + jω)³
    
    ω = 1:  (1 + j)³ = −2 + 2j
            L(j1) = 4 / (−2 + 2j) = −1 − 1j
    
    |L|  = 4 / 2^1.5 = 1.414   (gain)
    ∠L   = −3·atan(1) = −135°  (phase)
    
    input   cos(t)
    output  1.414·cos(t − 135°)
  4. Sweep ω: the Nyquist plot

    Turn ω from 0 to ∞ and follow the dot. It starts at 4, the phase falls toward −270° and the gain toward 0. It crosses the negative real axis at ω = √3 ≈ 1.73 rad/s, at −0.5. That is the Nyquist plot.

    ω       |L|      ∠L       L(jω)
    0       4.000    0°       4
    1       1.414   −135°    −1 − 1j
    √3      0.500   −180°    −0.5    ← crossing
    ∞       0       −270°    0
    
    phase −180° when 3·atan(ω) = 180°:
      atan(ω) = 60°, ω = √3 = 1.73 rad/s
      |L| = 4 / (1 + 3)^1.5 = 4/8 = 0.5
  5. Close the curve

    The s-plane is a map of every complex s; unstable poles live in its right half. Walk s clockwise round that half: up the jω axis, then round a huge arc. Turning the knob below zero gives the mirror image; the arc squeezes to 0.

    Nyquist contour: s goes clockwise round
    the right half plane
      up the jω axis    ω = −∞ … 0 … +∞
      round a huge arc  |s| → ∞
    
    L(−jω) = conjugate of L(jω): the mirror image
    on the arc: L ≈ 4 / s³ → 0
    
    the image of the contour is one closed curve
  6. Count the turns round −1

    Pin a needle at −1, pointing at the dot. Walk the dot once round the closed curve; the needle's net clockwise turns are N. The curve crosses at −0.5, right of −1, so the needle swings and comes back: N = 0.

    N = net clockwise turns of the needle
        from −1 to L(s), once round the contour
      = clockwise encirclements of −1 by L
    
    K = 4: crossing at −0.5 (right of −1)
           needle swings, then unwinds
           N = 0
  7. Why counting works

    The needle points along 1 + L(s). As s circles the right half plane, each zero of 1 + L inside adds one clockwise turn, each pole inside one anticlockwise turn. Zeros of 1 + L are closed-loop poles; its poles are L's poles.

    argument principle (Cauchy):
    s goes once clockwise round a closed path
      F(s) turns clockwise round 0
      (zeros of F inside) − (poles of F inside) times
    
    F(s) = 1 + L(s)
      zeros of F = closed-loop poles
      poles of F = poles of L (open loop)
    
    F round 0  =  L round −1: the needle
  8. Z = N + P

    So Z = N + P. P counts open-loop poles in the right half plane: none, all three sit at −1. Z counts closed-loop poles there. N = 0 and P = 0 give Z = 0: stable. Check the roots: −0.206 ± 1.375j, −2.587.

    Z = N + P
      Z  closed-loop poles in the right half plane
      N  clockwise encirclements of −1 by L
      P  open-loop poles in the right half plane
    
    K = 4:  N = 0, P = 0  →  Z = 0   stable
    
    check: (s + 1)³ = −4
      s = −0.206 ± 1.375j, −2.587
  9. K = 12: two turns

    Raise K to 12. The same shape grows three times bigger and now crosses at −1.5, left of −1. The needle makes two full clockwise turns: N = 2, so Z = 2 + 0 = 2. Two closed-loop poles are unstable: 0.145 ± 1.983j.

    K = 12:  crossing at −12/8 = −1.5 (left of −1)
             N = 2,  P = 0  →  Z = 2   unstable
    
    check: (s + 1)³ = −12
      s = 0.145 ± 1.983j, −3.289
    
    the step response would grow and swing
    at about 2 rad/s
  10. K = 8: right through −1

    At K = 8 the curve passes through −1 at ω = √3. A sine there returns the same size, upside down; the minus sign flips it back, so it feeds itself. Poles ±j√3: the edge, the same K < 8 limit Routh gives.

    K = 8, ω = √3:  L = 8/8 at −180° = −1
      output = −1 × input, minus sign → +input
      the loop sustains a sine on its own
    
    check: (s + 1)³ = −8
      s = ±1.732j, −3   (marginal)
    
    Routh on s³ + 3s² + 3s + 1 + K:
      stable for −1 < K < 8
  11. Count it in Python

    Automate the count: step ω along the whole axis, add up the small changes in the needle's angle, and divide by a full turn. Pure Python with cmath gives N = 0 at K = 4 and N = 2 at K = 12.

    import cmath, math
    def L(w, K):                  # the open loop K / (s + 1)^3 at s = jw
        return K / (1j * w + 1) ** 3
    def turns(K, n=100000):       # clockwise turns of the needle from -1 to L
        ws = [math.tan(math.pi * (i / n - 0.5)) for i in range(1, n)]
        a = [cmath.phase(L(w, K) + 1) for w in ws]
        d = sum((y - x + math.pi) % (2 * math.pi) - math.pi for x, y in zip(a, a[1:]))
        return round(-d / (2 * math.pi))
    print(L(1, 4))
    for K in (4, 12):
        print('K', K, 'N', turns(K))
    # (-1-1j)
    # K 4 N 0
    # K 12 N 2

Quiz Unlocks after the last step.