ENع
←Stability (BIBO)
Lesson 22 · Steady-state error and stability

What stability means: bounded input, bounded output

14 min10 steps5 questionsIntermediate
About this lesson

A system is BIBO stable when every bounded input gives a bounded output. Follow one plant, G(s) = 1/(s(s+1)(s+2)): on its own a step makes it ramp away, with feedback and a small gain it settles, at K = 6 it swings for ever, and above that it blows up. The poles explain every case, and the edge sits at K = 6.

You'll learn to

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

Fig 22 · Interactive
01 / 10

Bounded: never past a limit

A signal is bounded if it never goes past some fixed limit, however long you wait. Our test input is a unit step: it jumps to 1 and stays there. It never goes past 1, so it is bounded.

r(t) = 1 for t ≥ 0          (unit step)
|r(t)| ≤ 1 for every t       → bounded

bounded   there is a number M with
          |signal(t)| ≤ M for all time
unbounded no such M: it grows for ever
Loading figure…
or ← →
Read the lesson step by step
  1. Bounded: never past a limit

    A signal is bounded if it never goes past some fixed limit, however long you wait. Our test input is a unit step: it jumps to 1 and stays there. It never goes past 1, so it is bounded.

    r(t) = 1 for t ≥ 0          (unit step)
    |r(t)| ≤ 1 for every t       → bounded
    
    bounded   there is a number M with
              |signal(t)| ≤ M for all time
    unbounded no such M: it grows for ever
  2. Bounded in, bounded out

    A system is BIBO stable (bounded input, bounded output) if every bounded input gives a bounded output. One bounded input that makes the output run away is enough to call the system unstable.

    BIBO stable:
      every bounded input  →  a bounded output
    
    not BIBO stable:
      at least ONE bounded input → an output
      that grows without limit
    
    The question for this lesson: does the
    output settle at all?
  3. The plant alone runs away

    Our plant is G(s) = 1/(s(s + 1)(s + 2)). Its pole at s = 0 is an integrator: it keeps adding up the input. The step makes the output climb like a ramp: 4.25 at 10 s, 9.25 at 20 s. Not BIBO stable.

    G(s) = 1 / (s (s + 1)(s + 2))
    poles  0, −1, −2      (one at s = 0)
    
    step in, loop open:
    y(t) = t/2 − 3/4 + e^(−t) − e^(−2t)/4
    y(10) = 4.25    y(20) = 9.25
    
    The t/2 term never stops growing.
  4. Close the loop, K = 2

    Now feed the output back and act on the error: u = K·(r − y), with gain K = 2. The same step goes in. The output overshoots to 1.39, then settles back towards 1. Feedback made it bounded.

    u = K (r − y)           K = 2
    
    closed loop:
    T(s) = K / (s³ + 3s² + 2s + K)
         = 2 / (s³ + 3s² + 2s + 2)
    
    peak     1.39
    at 20 s  1.01   (heading for 1)
  5. The poles say why

    The closed-loop poles are −2.52 and −0.24 ± 0.86j, all left of the imaginary axis. Each one adds a term that fades away, as in the lesson "Where the poles sit decides the response". All poles strictly left means BIBO stable.

    poles of s³ + 3s² + 2s + 2:
      −2.52
      −0.24 ± 0.86j
    
    every real part < 0  → every term fades
                         → BIBO stable
    
    Equivalent test: the impulse response
    dies out fast enough that ∫|h(t)| dt
    is finite.
  6. K = 6: it swings forever

    Turn the gain up to 6. Two poles slide onto the imaginary axis at ±1.41j. The output swings between 0.10 and 1.90, once every 4.4 s, and never settles. This is called marginally stable.

    s³ + 3s² + 2s + 6 = (s + 3)(s² + 2)
    poles  −3,  ±j√2 = ±1.41j
    
    step response after 10 s:
      between 0.10 and 1.90
      period 2π/√2 = 4.4 s
    
    No decay, no growth: marginally stable.
  7. Marginal is not BIBO stable

    Swap the step for sin(1.41t), still bounded by 1, at exactly the poles' frequency. Every swing pushes in time with the last: the output reaches 5.71 by 10 s and 11.69 by 20 s, growing for ever.

    r(t) = sin(√2 t)       |r| ≤ 1, bounded
    
    Y(s) = T(s)·R(s) now has ±j√2 TWICE
    → a term like t·sin(√2 t)
    
    largest |y| up to 10 s   5.71
    largest |y| up to 20 s   11.69
    
    One bounded input, unbounded output:
    marginal is NOT BIBO stable.
  8. K = 10: it blows up

    Turn K up to 10 and the pair crosses into the right half: 0.15 ± 1.73j. A positive real part means a term that grows like e^(0.15t). Even the plain step now gives swings of 18.99 by 20 s.

    poles of s³ + 3s² + 2s + 10:
      −3.31
      +0.15 ± 1.73j   ← right half
    
    growth  e^(0.154 t): ×4.7 every 10 s
    largest |y| from 15 to 20 s   18.99
    
    Too much gain made a stable plant unstable.
  9. The edge: 0 < K < 6

    For this loop every K between 0 and 6 is stable, and K = 6 is the edge. We found it by solving for the poles. The next lesson, The Routh-Hurwitz test, finds it from the coefficients alone: 3 × 2 > K.

    K       worst real part   verdict
    0..6    < 0               stable
    6       0  (±1.41j)       marginal
    > 6     > 0               unstable
    
    cubic s³ + a2 s² + a1 s + a0 is stable
    when all aᵢ > 0 and a2·a1 > a0:
    3 · 2 > K   →   K < 6
  10. Check it in Python

    A few lines of Python find the three poles for any K and print the largest real part. Negative means stable, zero means marginal, positive means unstable. Tools such as python-control's poles() do the same.

    # closed loop: s^3 + 3s^2 + 2s + K = 0
    def poles(K):
        p = lambda s: s**3 + 3 * s**2 + 2 * s + K
        r = [(0.4 + 0.9j) ** n for n in range(3)]
        for _ in range(100):  # Durand-Kerner: improve all 3 guesses
            r = [x - p(x) / ((x - r[i - 1]) * (x - r[i - 2]))
                 for i, x in enumerate(r)]
        return r
    for K in (2, 6, 10):
        worst = max(z.real for z in poles(K))
        print(K, round(worst, 2) + 0.0)
    # 2 -0.24
    # 6 0.0
    # 10 0.15

Quiz Unlocks after the last step.