stepK = 101 / (s(s + 2))× −4 or ○ −3→ 1K = 10−1 ± 3jK = 10
−8−6−4−20−4−2024σ, real partjω, imaginary partS-PLANEunstable →±60° from −2024681000.511.52time (s)ySTEP RESPONSE y(t)without itnow
Lit wire with moving dashes: a signal is flowing along itBlocks: the step input, the summing junction, the gain K, the plant G(s), the output, the tray of extra parts, the gain knob and the closed-loop pole tilePlots: the s-plane (× open-loop poles, ○ open-loop zero, ● closed-loop poles, the root locus, dashed asymptotes) and the step response, integrated from the loopThe pill carries a new gain into the K block, or the extra pole or zero into the plantOne feedback loop, three plants. G(s) = 1 / (s(s + 2)) gives a straight locus at σ = −1. Add a pole at −4 and the branches bend right, toward the unstable half, crossing the imaginary axis at K = 48. Swap it for a zero at −3 and they bend left, round a circle centred on the zero, and the loop gets faster. The rules used here are the standard Evans sketching rules: branches start at open-loop poles and end at open-loop zeros or at infinity, and n − m of them follow asymptotes from the centre (Σ poles − Σ zeros)/(n − m).

The starting loop

  1. 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

Add a zero

The pattern

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.