Bounded in, bounded out
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.
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.
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.
Feedback and the gain K
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.
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.
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.
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.
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.
Where the edge is
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.
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.
The working
# step 1/10 · bounded
# about: Input r(t), input r(t)
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
Every curve is simulated from y''' + 3y'' + 2y' = u with a fourth-order Runge-Kutta step of 0.005 s, from rest; the poles are exact roots of the cubic. The Python is plain Python 3 with built-in complex numbers: Durand-Kerner improves three guesses at once until they are the three roots.