The loop
A gain K feeds the plant G(s) = 1/(s(s+1)(s+2)), and feedback closes the loop. The closed-loop poles are the roots of s³ + 3s² + 2s + K = 0. At K = 0 they sit on the open-loop poles: 0, −1 and −2.
Turn K up to 0.2. The pole at 0 moves left and the pole at −1 moves right, along the real axis, as the sketching rules predicted. The third pole moves left from −2. Poles now: −0.121, −0.791 and −2.088.
Breakaway
Rearrange the equation: a real pole sits at σ when K = −(σ³ + 3σ² + 2σ). Plot that. Between 0 and −1 it rises from zero, peaks and falls back. A line at K = 0.2 cuts the curve exactly where the poles are.
Raise K and the line rises. Its two crossings close in and merge at the top of the hump: K = 0.385. The two poles meet at σ = −0.423. This meeting place is the breakaway point.
The top of the hump is where its slope is zero: dK/ds = −(3s² + 6s + 2) = 0. That gives s = −0.423 or s = −1.577. Only −0.423 is on the locus; −1.577 needs a negative K.
Above 0.385 the line clears the hump: no real poles are left between 0 and −1. The pair breaks away at ±90° as complex poles. At K = 1 they are −0.338 ± 0.562j, so the response now swings.
Imaginary-axis crossing
Keep turning. The Routh array of s³ + 3s² + 2s + K has one entry that depends on K: (6 − K)/3. While it is positive, every pole is in the left half. At K = 3 it is 1.00; poles −0.164 ± 1.047j.
At K = 6 the entry hits zero. The row above gives 3s² + 6 = 0, so s = ±j√2 = ±1.414j. The poles sit on the imaginary axis: the output swings for ever at 1.414 rad/s, a period of 4.44 s.
Turn K to 10. The entry is now −1.33, so two poles have crossed into the right half: 0.154 ± 1.732j. Their swing grows instead of fading. This loop is stable only for 0 < K < 6.
The two special points split the gain into ranges. Up to 0.385: no swing. From 0.385 to 6: it swings and settles. From 6 up: unstable. The next lesson picks a gain inside the middle range.
The working
# step 1/10 · loop
# about: Gain K, Plant G(s), Feedback loop, Closed-loop poles, poles on the map
G(s) = 1 / (s(s + 1)(s + 2))
closed loop: 1 + K·G(s) = 0
s(s + 1)(s + 2) + K = 0
s³ + 3s² + 2s + K = 0
K = 0 → poles 0, -1, -2
(the open-loop poles)
Every pole in the figure is an exact root of s³ + 3s² + 2s + K = 0 for the K shown, found by bisection and then the quadratic formula. The locus is drawn from the same roots for K from 0 to 10. The Python uses only the standard library. With python-control installed, ct.root_locus_plot(ct.tf([1], [1, 3, 2, 0])) draws the same locus.