step rK = 0(s+3) / s(s+1)(s+2)(s+4)yK = 0
−7−6−5−4−3−2−1012−4−2024σ, real partjω, imaginary partS-PLANE60°180°300°σa = −4/31 branch ends here3 branches → ∞0−1−2−4−30 → evensum of poles = −7.00
Lit wire with moving dashes: a signal is flowing along itBlocks: the reference, the compare puck, the gain dial K, the plant G(s) and the outputPlot: the s-plane, with × open-loop poles, ○ the zero and ● the closed-loop polesThe pill travelling into G(s) is the gain K as it is turned upA gain K in a unity feedback loop around G(s) = (s + 3) / (s(s + 1)(s + 2)(s + 4)). The s-plane shows the open-loop poles × and zero ○, and the overlays each sketching rule adds. Then K turns up and the four closed-loop poles, the exact roots of s⁴ + 7s³ + 14s² + (8 + K)s + 3K, trace the locus the rules predicted. The rules here assume negative feedback and K ≥ 0. The real-axis and asymptote rules come from the angle condition: 1 + K·G(s) = 0 needs the angle of G(s) to be an odd multiple of 180°.

The loop

  1. A gain K drives the plant G(s) = (s + 3) / (s(s + 1)(s + 2)(s + 4)), and the output is fed back. The closed-loop poles solve 1 + K·G(s) = 0. Five rules sketch where they go as K grows.

Where branches go

The real axis

Asymptotes

Turn up the gain

Compute it

The working

# step 1/9 · loop
# about: Reference r, Compare point, Gain K, Plant G(s), Output y, open-loop poles × and zero ○, closed-loop poles

closed loop  T(s) = K·G(s) / (1 + K·G(s))

poles of T:  1 + K·G(s) = 0
  s(s + 1)(s + 2)(s + 4) + K(s + 3) = 0
  s⁴ + 7s³ + 14s² + (8 + K)s + 3K = 0

open-loop poles  0, -1, -2, -4    n = 4
open-loop zero   -3               m = 1

the root locus = every place these four
roots can be, for K from 0 upward

Every closed-loop pole in the figure is a root of s⁴ + 7s³ + 14s² + (8 + K)s + 3K, found numerically for the current K; the locus is those roots traced over K. Nothing on the s-plane is sketched by hand. The Python uses only built-ins. With python-control installed, ct.root_locus_plot(ct.tf([1, 3], [1, 7, 14, 8, 0])) draws the same locus by finding the roots of 1 + k·G(s).