The starting loop
Start with the loop from the lesson "The root locus idea": G(s) = 1/(s(s + 2)). Its locus runs straight up and down the line σ = −1. At K = 10 the output overshoots 35.1% and settles in 3.54 s.
Add a pole
Now give the plant one more pole, at −4: G(s) = 1/(s(s + 2)(s + 4)). The s-plane gets a third ×. At K = 0 the closed-loop poles sit on the three ×, so there are now three branches.
Sweep K up. Two branches meet at −0.85, leave the axis and curve right, toward lines at ±60° from −2. The third runs left from −4. The extra pole pushed the locus toward the unstable half.
At K = 48 two poles reach ±2.83j, on the imaginary axis. The output now swings for ever and never settles. Any more gain pushes them into the right half: unstable. Without the extra pole, no gain could do this.
Back at K = 10. The leading poles now sit at −0.62 ± 1.31j, closer to the imaginary axis than −1 ± 3j. So the loop is slower: it settles in 6.00 s, against 3.54 s without the extra pole (dashed).
Add a zero
Take the extra pole away and add a zero at −3 instead: G(s) = (s + 3)/(s(s + 2)). A zero is marked ○. At K = 0 the two closed-loop poles start on the two × again.
Sweep K. The poles meet at −1.27, then bend left on a circle around the zero and rejoin the axis at −4.73. One branch ends on the zero; the other runs off to the left. The zero pulled everything left.
At K = 10 both poles are real: −3.55 and −8.45. The output settles in 0.75 s instead of 3.54 s. Its small 3.5% overshoot comes from the zero itself, not from swinging poles.
The pattern
Branches start on poles and end on zeros or at infinity. Poles minus zeros sets how many run away: 2 at ±90°, 3 at ±60° and 180°, 1 at 180°. Extra poles bend the locus right; zeros pull it left.
Python with complex numbers checks both stories: the quadratic formula gives the zero loop's poles at K = 10, and K = 48 puts a root of the pole loop exactly on the imaginary axis.
The working
# step 1/10 · base
# about: Input: unit step, Compare: input − output, Gain K, Plant G(s), Output y(t), Feedback path, open-loop poles 0 and −2, closed-loop poles, root locus, step response
G(s) = 1 / (s(s + 2)) poles 0, −2 no zeros
closed-loop poles: s² + 2s + K = 0
s = −1 ± j√(K − 1) (K > 1)
K = 10: s = −1 ± 3j
overshoot 35.1 % settles (2 %) in 3.54 s
stable for every K > 0
Every curve is the step response of the closed loop K·G / (1 + K·G), integrated from its own equations (fourth-order Runge-Kutta: 3.125 ms steps on the plot, 1 ms steps for the measured numbers). Overshoot and 2% settling times are measured on that curve, so they include the effect of the zero and of the third pole. Poles push and zeros pull is a rule of thumb, not a law: where the extra part sits matters. A pole far to the left bends the locus only a little, and a zero placed this way is what a lead compensator or the D in a PD controller adds on purpose. The Python uses only the standard library. With python-control installed, ct.root_locus_map(ct.tf([1, 3], [1, 2, 0]), gains=[10]) returns the same closed-loop poles.