TExcelTAD
Home › Control Systems & Automation › The Root Locus: Construction Rules

The Root Locus: Construction Rules

You have a motor position loop with a proportional controller and one knob: the gain KK. Turn it up and the loop gets faster, then oscillatory, then unstable. Where exactly do the closed-loop poles go as KK grows, at which KK does the loop start to ring, and at which does it oscillate for ever? Solving the characteristic polynomial for every KK answers that numerically; the root locus answers it with a sketch you can draw in two minutes, and the sketch tells you why, which is what you need when you later add a compensator to bend it. Closed-loop poles and their meaning (damping, settling) are in Second-Order Systems; stability tests are in Routh–Hurwitz.

The idea

With unity feedback and a loop L(s)=K G(s)L(s) = K\,G(s), G(s)=N(s)D(s)G(s) = \frac{N(s)}{D(s)}, the closed-loop poles are the roots of the characteristic equation

1+K G(s)=0⟺D(s)+K N(s)=01 + K\,G(s) = 0 \quad \Longleftrightarrow \quad D(s) + K\,N(s) = 0

The root locus is the set of all these roots as KK goes from 00 to ∞\infty. A point ss is on it if and only if G(s)G(s) is a negative real number, which splits into two conditions:

∠G(s)=±180∘ (2q+1),K=1∣G(s)∣\angle G(s) = \pm 180^\circ\,(2q + 1), \qquad K = \frac{1}{\lvert G(s) \rvert}

The angle condition decides where the locus is; the magnitude condition then gives the gain at any point on it. Every construction rule follows from these two.

The rules

For G(s)G(s) with nn poles pip_i and mm zeros zjz_j (n≥mn \ge m):

Rule Statement
1. Branches nn branches, symmetric about the real axis
2. Start and end branches start at the open-loop poles (K=0K = 0) and end at the zeros (K→∞K \to \infty); n−mn - m of them go to infinity
3. Real axis a real-axis point is on the locus if the number of real poles and zeros to its right is odd
4. Asymptotes the n−mn - m infinite branches approach lines at angles 180∘(2q+1)n−m\frac{180^\circ (2q + 1)}{n - m} from the centroid σa=∑pi−∑zjn−m\sigma_a = \frac{\sum p_i - \sum z_j}{n - m}
5. Breakaway / break-in where branches leave or join the real axis: real roots of dKds=0\frac{dK}{ds} = 0 with K=−D(s)N(s)K = -\frac{D(s)}{N(s)}, kept only if they lie on a real-axis segment of rule 3
6. Imaginary-axis crossing the gain and frequency where the closed loop is marginally stable: from a Routh row of zeros, or by putting s=jωs = j\omega in D+KN=0D + KN = 0
7. Departure / arrival angles at a complex pole: θd=180∘−∑∠(from other poles)+∑∠(from zeros)\theta_d = 180^\circ - \sum \angle(\text{from other poles}) + \sum \angle(\text{from zeros}); at a complex zero the mirror rule

Rules 3 and 4 already give the shape. Rule 5 and rule 6 give the numbers a designer needs: the gain where the response starts to oscillate and the gain where the loop goes unstable.

Worked example: a position loop

Given: L(s)=Ks(s+2)(s+5)L(s) = \frac{K}{s(s + 2)(s + 5)} (a motor with an integrator from speed to angle, a mechanical pole and an electrical or driver pole, all in s−1\text{s}^{-1}).

Find: the root locus, the breakaway point, the gain and frequency at which the loop becomes unstable, and the gain that gives the complex pair a damping ratio ζ=0.5\zeta = 0.5.

Solve:

  • Rule 1–2: n=3n = 3, m=0m = 0, three branches from 00, −2-2, −5-5, all to infinity.
  • Rule 3: on the real axis between 00 and −2-2 (one pole to the right) and left of −5-5 (three poles to the right).
  • Rule 4: σa=0−2−53=−2.33\sigma_a = \frac{0 - 2 - 5}{3} = -2.33, angles 60∘60^\circ, 180∘180^\circ, −60∘-60^\circ.
  • Rule 5: K=−(s3+7s2+10s)K = -(s^3 + 7 s^2 + 10 s), dKds=−(3s2+14s+10)=0\frac{dK}{ds} = -(3 s^2 + 14 s + 10) = 0 gives s=−0.880s = -0.880 or s=−3.786s = -3.786. Only −0.880-0.880 lies on a locus segment; there K=0.880×1.120×4.120=4.06K = 0.880 \times 1.120 \times 4.120 = 4.06.
  • Rule 6: the characteristic polynomial s3+7s2+10s+Ks^3 + 7 s^2 + 10 s + K has the Routh entry 70−K7\frac{70 - K}{7}, zero at K=70K = 70; the auxiliary equation 7s2+70=07 s^2 + 70 = 0 gives s=±j3.162 rad/ss = \pm j3.162\ \text{rad/s}.
  • ζ=0.5\zeta = 0.5 is the ray at 60∘60^\circ from the negative real axis. Searching along the locus gives K=11.37K = 11.37 with poles −0.714±j1.237-0.714 \pm j1.237 and the third pole at −5.571-5.571, eight times farther left: the pair dominates.

Check: the figure is the computed locus, and the program below confirms the numbers.

-8 -6 -4 -2 2 -5 -4 -3 -2 -1 1 2 3 4 5 Re s Im s breakaway -0.88 K=70: j3.16 -j3.16 centroid -2.33
python · try it yourself
import numpy as np
import control as ct

G = ct.tf([1], [1, 7, 10, 0])                        # 1 / (s (s+2)(s+5))
den = np.array([1.0, 7, 10, 0])
sb = np.roots(np.polyder(-den))                      # dK/ds = 0
for s in sb:
    print(f"candidate breakaway s = {s.real:7.3f}, K = {-np.polyval(den, s.real):6.3f}")
for K in (4.06, 11.37, 70.0, 100.0):
    p = ct.poles(ct.feedback(K * G, 1))
    p = p[np.argsort(-p.imag)]
    txt = ", ".join(f"{z.real:6.3f}{z.imag:+7.3f}j" for z in p)
    print(f"K = {K:6.2f}: poles {txt}")
candidate breakaway s =  -3.786, K = -8.209
candidate breakaway s =  -0.880, K =  4.061
K =   4.06: poles -5.239 +0.000j, -0.893 +0.000j, -0.868 +0.000j
K =  11.37: poles -0.714 +1.237j, -5.571 +0.000j, -0.714 -1.237j
K =  70.00: poles  0.000 +3.162j, -7.000 +0.000j,  0.000 -3.162j
K = 100.00: poles  0.229 +3.655j, -7.457 +0.000j,  0.229 -3.655j

The candidate at −3.786-3.786 needs a negative gain (K=−8.21K = -8.21): it belongs to the positive-feedback locus, not this one. At K=4.06K = 4.06 two poles nearly coincide at the breakaway point (the printout shows −0.893-0.893 and −0.868-0.868 because the rounded gain sits a hair below the exact value). At K=100K = 100 the complex pair has crossed into the right half-plane: the loop is unstable, as rule 6 predicted for any K>70K > 70.

Intuition with the PID lab

The lab's second-order plant with a P controller has the loop L=Kp(s+1)(0.5s+1)L = \frac{K_p}{(s + 1)(0.5 s + 1)}: two poles at −1-1 and −2-2, no zeros. The rules say: real axis between −1-1 and −2-2, breakaway at the midpoint −1.5-1.5, two asymptotes at ±90∘\pm 90^\circ from −1.5-1.5. So the closed-loop poles are −1.5±j2Kp−0.25-1.5 \pm j\sqrt{2K_p - 0.25} once Kp>0.125K_p > 0.125: raising the gain adds oscillation (more imaginary part) but never adds decay rate, so the settling envelope stays e−1.5te^{-1.5 t} and the loop never goes unstable. Set Ki=0K_i = 0, Kd=0K_d = 0:

r = 1+C(s): Kp 3, Ki 0, Kd 0P(s) = 1/((1s+1)(0.5s+1))y-T(s) = (3.000) / (0.500 s^2 + 1.500 s + 4.000)closed-loop poles: -1.50+j2.40, -1.50-j2.400.00.51.001 s2 s3 sty(t)t_s 2.04 s+14.0 %y(t)setpoint10-90 % rise

At Kp=3K_p = 3 the poles are −1.5±j2.40-1.5 \pm j2.40 (ζ=0.530\zeta = 0.530); the lab shows an overshoot of 14.01 %14.01\,\% and a final value of 0.75000.7500. At Kp=10K_p = 10 they are −1.5±j4.44-1.5 \pm j4.44: overshoot 34.63 %34.63\,\%, settling time almost unchanged (2.381 s2.381\ \text{s} against 2.043 s2.043\ \text{s} at Kp=3K_p = 3), exactly as the vertical locus predicts.

Guided lab: see the locus on a real motor loop

Hand calculation. For a small DC motor angle loop modelled as Ks(s+2)(s+5)\frac{K}{s(s + 2)(s + 5)} after scaling, predict: no overshoot below K=4.06K = 4.06, about 16 %16\,\% overshoot near K=11.4K = 11.4 (15.7 %15.7\,\% in a simulation with all three poles; 16.3 %16.3\,\% for a pure pair with ζ=0.5\zeta = 0.5), sustained oscillation at 3.16 rad/s3.16\ \text{rad/s} (0.50 Hz0.50\ \text{Hz}, period 1.99 s1.99\ \text{s}) at K=70K = 70.

Simulation. Change the gains in the program and plot ct.step_response(ct.feedback(K * G, 1)) for K=4K = 4, 11.411.4 and 6060.

What you would measure. A geared hobby motor with a potentiometer on the output shaft, driven by a small H-bridge from a current-limited 12 V12\ \text{V} supply, a microcontroller closing the loop at 1 kHz1\ \text{kHz}. Step the angle setpoint by 30∘30^\circ and log the angle. Expect the overshoot to grow with KK and the loop to start oscillating somewhat below the predicted gain (by 10–30 %), because the real loop has extra lag: sampling delay, driver deadband and friction. The oscillation period should be within about 20 % of the predicted 2 s2\ \text{s} for this scaled model.

Hazards and safe setup. Current limit on the supply (about 1 A1\ \text{A}), motor clamped, nothing attached to the shaft that can fling off, a mechanical end stop or software angle limit, and a stop switch that cuts the driver enable. Start at low gain.

Pitfalls

  • Forgetting rule 3 counts zeros as well as poles, and only real ones (a complex pair adds two, which never changes the parity).
  • Keeping a breakaway candidate that is not on a real-axis segment (−3.786-3.786 above).
  • Reading ζ\zeta from the wrong angle: the ray of constant ζ\zeta makes the angle arccos⁡ζ\arccos\zeta with the negative real axis.
  • Assuming a pole pair dominates without checking the third pole: here it sits 8 times farther left, so it is safe; at higher KK it would not be.
  • Positive feedback (or a negative gain) uses the 0∘0^\circ locus: rule 3 flips to an even count.

Practice

  1. Sketch the locus of Ks(s+4)\frac{K}{s(s + 4)}. Where is the breakaway point, and which KK gives ζ=0.707\zeta = 0.707?
  2. For K(s+3)s(s+1)(s+6)\frac{K(s + 3)}{s(s + 1)(s + 6)}, give the real-axis segments, the number of asymptotes and the centroid.
  3. Find KK and ω\omega at the imaginary-axis crossing of K(s+1)3\frac{K}{(s + 1)^3}.
Answer
  1. Breakaway at −2-2 (K=4K = 4); the poles are −2±jK−4-2 \pm j\sqrt{K - 4}, so ζ=0.707\zeta = 0.707 needs imaginary part 2: K=8K = 8.
  2. Segments [−1,0][-1, 0] and [−6,−3][-6, -3]; n−m=2n - m = 2 asymptotes at ±90∘\pm 90^\circ; σa=(0−1−6)−(−3)2=−2\sigma_a = \frac{(0 - 1 - 6) - (-3)}{2} = -2.
  3. (s+1)3+K=s3+3s2+3s+1+K(s + 1)^3 + K = s^3 + 3 s^2 + 3 s + 1 + K; Routh: 3⋅3=1+K3 \cdot 3 = 1 + K, so K=8K = 8, ω=3=1.732 rad/s\omega = \sqrt{3} = 1.732\ \text{rad/s}.

Test yourself

A point s0s_0 lies on the (negative-feedback) root locus of K G(s)K\,G(s) when

  1. ∣G(s0)∣=1\lvert G(s_0) \rvert = 1
  2. ∠G(s0)=±180∘(2q+1)\angle G(s_0) = \pm 180^\circ(2q+1)
  3. G(s0)=0G(s_0) = 0
  4. Re⁡(s0)<0\operatorname{Re}(s_0) < 0

G(s)=1s(s+2)(s+5)G(s) = \frac{1}{s(s+2)(s+5)}: where are the asymptotes centred?

  1. −7-7
  2. −3.5-3.5
  3. −2.33-2.33
  4. 00

For the same loop, at which gain does the closed loop become unstable?

  1. K=4.06K = 4.06
  2. K=11.37K = 11.37
  3. K=70K = 70
  4. never

With P control of a plant with poles at −1-1 and −2-2, raising KpK_p moves the closed-loop poles

  1. along the real axis to the left
  2. vertically along Re⁡(s)=−1.5\operatorname{Re}(s) = -1.5
  3. into the right half-plane
  4. towards the origin