The Root Locus: Construction Rules
You have a motor position loop with a proportional controller and one knob: the gain . Turn it up and the loop gets faster, then oscillatory, then unstable. Where exactly do the closed-loop poles go as grows, at which does the loop start to ring, and at which does it oscillate for ever? Solving the characteristic polynomial for every 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 , , the closed-loop poles are the roots of the characteristic equation
The root locus is the set of all these roots as goes from to . A point is on it if and only if is a negative real number, which splits into two conditions:
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 with poles and zeros ():
| Rule | Statement |
|---|---|
| 1. Branches | branches, symmetric about the real axis |
| 2. Start and end | branches start at the open-loop poles () and end at the zeros (); 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 infinite branches approach lines at angles from the centroid |
| 5. Breakaway / break-in | where branches leave or join the real axis: real roots of with , 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 in |
| 7. Departure / arrival angles | at a complex pole: ; 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: (a motor with an integrator from speed to angle, a mechanical pole and an electrical or driver pole, all in ).
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 .
Solve:
- Rule 1–2: , , three branches from , , , all to infinity.
- Rule 3: on the real axis between and (one pole to the right) and left of (three poles to the right).
- Rule 4: , angles , , .
- Rule 5: , gives or . Only lies on a locus segment; there .
- Rule 6: the characteristic polynomial has the Routh entry , zero at ; the auxiliary equation gives .
- is the ray at from the negative real axis. Searching along the locus gives with poles and the third pole at , eight times farther left: the pair dominates.
Check: the figure is the computed locus, and the program below confirms the numbers.
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 needs a negative gain (): it belongs to the positive-feedback locus, not this one. At two poles nearly coincide at the breakaway point (the printout shows and because the rounded gain sits a hair below the exact value). At the complex pair has crossed into the right half-plane: the loop is unstable, as rule 6 predicted for any .
Intuition with the PID lab
The lab's second-order plant with a P controller has the loop : two poles at and , no zeros. The rules say: real axis between and , breakaway at the midpoint , two asymptotes at from . So the closed-loop poles are once : raising the gain adds oscillation (more imaginary part) but never adds decay rate, so the settling envelope stays and the loop never goes unstable. Set , :
At the poles are (); the lab shows an overshoot of and a final value of . At they are : overshoot , settling time almost unchanged ( against at ), 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 after scaling, predict: no overshoot below , about overshoot near ( in a simulation with all three poles; for a pure pair with ), sustained oscillation at (, period ) at .
Simulation. Change the gains in the program and plot ct.step_response(ct.feedback(K * G, 1)) for , and .
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 supply, a microcontroller closing the loop at . Step the angle setpoint by and log the angle. Expect the overshoot to grow with 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 for this scaled model.
Hazards and safe setup. Current limit on the supply (about ), 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 ( above).
- Reading from the wrong angle: the ray of constant makes the angle 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 it would not be.
- Positive feedback (or a negative gain) uses the locus: rule 3 flips to an even count.
Practice
- Sketch the locus of . Where is the breakaway point, and which gives ?
- For , give the real-axis segments, the number of asymptotes and the centroid.
- Find and at the imaginary-axis crossing of .
Answer
- Breakaway at (); the poles are , so needs imaginary part 2: .
- Segments and ; asymptotes at ; .
- ; Routh: , so , .
Test yourself
A point lies on the (negative-feedback) root locus of when
: where are the asymptotes centred?
For the same loop, at which gain does the closed loop become unstable?
- never
With P control of a plant with poles at and , raising moves the closed-loop poles
- along the real axis to the left
- vertically along
- into the right half-plane
- towards the origin