The root locus idea: poles that move with gain
About this lesson
Put a gain K in front of the plant G(s) = 1/(s(s + 2)) and close the loop. The closed-loop poles are the roots of s² + 2s + K = 0, so every turn of the knob moves them. Watch them start at G's poles, slide together, meet at −1 and then climb up and down. The path they trace is the root locus, and it lets you read off the gain that gives the response you want.
A loop with one knob
A step goes in. The loop compares it with the output, multiplies the error by a gain K, and drives G(s) = 1/(s(s + 2)). With K = 2 the output rises, overshoots by 4.3%, and settles at 1.
G(s) = 1 / (s(s + 2)) gain K in front, output fed back
closed loop T(s) = K·G / (1 + K·G)
= K / (s² + 2s + K)
K = 2: T(s) = 2 / (s² + 2s + 2)
peak 1.043 at t = 3.14 s (overshoot 4.3 %)
final value 2/2 = 1Read the lesson step by step
A loop with one knob
A step goes in. The loop compares it with the output, multiplies the error by a gain K, and drives G(s) = 1/(s(s + 2)). With K = 2 the output rises, overshoots by 4.3%, and settles at 1.
G(s) = 1 / (s(s + 2)) gain K in front, output fed back closed loop T(s) = K·G / (1 + K·G) = K / (s² + 2s + K) K = 2: T(s) = 2 / (s² + 2s + 2) peak 1.043 at t = 3.14 s (overshoot 4.3 %) final value 2/2 = 1The loop has its own poles
The closed loop's poles are the roots of s² + 2s + K = 0, which is 1 + K·G(s) = 0. They are not G's poles. K sits inside the equation, so turning K moves the poles.
1 + K·G(s) = 0 1 + K / (s(s + 2)) = 0 s(s + 2) + K = 0 s² + 2s + K = 0 s = (−2 ± √(4 − 4K)) / 2 = −1 ± √(1 − K) K = 2: s = −1 ± √(−1) = −1 ± j G's own (open-loop) poles: 0 and −2 (×)K = 0: start at G's poles
Turn the knob to zero. Now s² + 2s = 0, so the poles are 0 and −2: exactly the open-loop poles of G, marked ×. With no gain, nothing pushes the plant and the output stays at 0.
K = 0: s² + 2s = s(s + 2) = 0 s = 0 and s = −2 the closed-loop poles START at the open-loop poles (×) T(s) = 0 / (s² + 2s) = 0: y(t) = 0Small K: they slide together
Raise K to 0.75. The poles slide along the real axis toward each other: −0.5 and −1.5. Both are real, so there is no swing. The slow pole at −0.5 makes the output creep: about 8.6 s to settle.
K = 0.75: s = −1 ± √0.25 = −0.5, −1.5 y(t) = 1 − 1.5·e^(−0.5t) + 0.5·e^(−1.5t) overshoot none (real poles) Ts (2 % band, from the curve) 8.6 s the pole nearest 0 sets the paceK = 1: they meet
At K = 1 the two poles meet at −1. This is the fastest response with no overshoot at all (critical damping): settled in 5.83 s. Any more gain and they cannot stay on the axis.
K = 1: s² + 2s + 1 = (s + 1)² = 0 s = −1 twice y(t) = 1 − e^(−t)·(1 + t) overshoot none ζ = 1 Ts (curve) 5.83 s (was 8.6 s at K = 0.75)More K: up and down, more swing
Past K = 1 the poles leave the axis: −1 ± j√(K − 1). At K = 5 they are −1 ± 2j. The real part stays −1, so settling stays near 4 s, but the swing grows: 20.8% overshoot.
K > 1: s = −1 ± j√(K − 1) K = 2 K = 5 poles −1 ± j −1 ± 2j ζ 0.707 0.447 %OS 4.3 % 20.8 % Tp 3.14 s 1.57 s Ts 4.22 s 3.74 s real part fixed at −1: settling ≈ 4/1 sThe whole path is the root locus
Sweep K from 0 upward and trace every place the poles visit. That drawing is the root locus: it starts at G's poles, the branches meet at −1, then run up and down for ever. They never cross into the right half.
root locus = every root of 1 + K·G(s) = 0 for K from 0 to ∞ branch 1: 0 → −1 → −1 + j∞ branch 2: −2 → −1 → −1 − j∞ one branch per open-loop pole (two here) never in the right half: stable for every K > 0 (a third pole would bend the branches over; the next lessons show the sketching rules)Pick the gain you want
Want 16.3% overshoot? That needs ζ = 0.5: a ray 60° from the negative real axis. It cuts the locus at −1 ± j√3. The gain there is K = |s|·|s + 2| = 2 · 2 = 4.
want %OS = 16.3 % → ζ = 0.5 → ray at cos⁻¹(0.5) = 60° ray meets the locus (σ = −1) at s = −1 + j·tan 60° = −1 + j1.732 magnitude condition K = 1 / |G(s)| = |s|·|s + 2| |s| = 2, |s + 2| = |1 + j1.732| = 2 K = 4 check: s² + 2s + 4 = 0 → s = −1 ± j√3 peak 1.163 at 1.81 s, Ts 4.04 sCompute the locus in Python
A root locus is just roots, solved again for each K. A few lines of Python with complex square roots list the poles at each gain, and read the gain back off a chosen point.
import cmath def poles(K): # roots of s² + 2s + K = 0 r = cmath.sqrt(1 - K) return -1 + r, -1 - r for K in (0, 0.75, 1, 2, 5): print(K, *poles(K)) s = complex(-1, 3 ** 0.5) # where the ζ = 0.5 ray meets the locus print(round(abs(s) * abs(s + 2), 6)) # K = |s|·|s + 2| # 0 0j (-2-0j) # 0.75 (-0.5+0j) (-1.5-0j) # 1 (-1+0j) (-1-0j) # 2 (-1+1j) (-1-1j) # 5 (-1+2j) (-1-2j) # 4.0
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01A unity-feedback loop has gain K in front of G(s) = 1/(s(s + 2)). Which equation gives the closed-loop poles?
The closed-loop poles are the roots of 1 + K·G(s) = 0. Multiply through by s(s + 2) to get s² + 2s + K = 0. The poles of G alone (0 and −2) are only where the locus starts.
02Where are the closed-loop poles when K = 0?
With K = 0 the equation is s(s + 2) = 0. Every root locus branch starts at an open-loop pole.
03For this loop, what happens to the poles as K grows past 1?
The roots are −1 ± √(1 − K). Past K = 1 the square root is imaginary, so the real part stays −1 while the imaginary part grows. Overshoot grows (4.3% at K = 2, 20.8% at K = 5), but the loop never goes unstable.
04Which gain gives a step response with no overshoot that settles fastest?
At K = 1 the poles meet at −1 (critical damping, ζ = 1). It settles in 5.83 s, faster than K = 0.75 (8.6 s), and any larger K gives overshoot.
05The ζ = 0.5 ray meets the locus at s = −1 + j√3. What gain puts a pole there?
The magnitude condition gives K = 1/|G(s)| = |s|·|s + 2|. Here |s| = 2 and |s + 2| = |1 + j√3| = 2, so K = 4. Check: s² + 2s + 4 = 0 has roots −1 ± j√3.
Glossary
- Gain K
- A number that multiplies the error before it drives the plant. In this lesson it is the one knob we turn.
- Open-loop poles
- The poles of G(s) on its own, before the loop is closed. Here 0 and −2, marked × on the s-plane.
- Closed-loop poles
- The roots of 1 + K·G(s) = 0. They set how the closed loop responds, and they move when K changes.
- Root locus
- Every place the closed-loop poles visit as K runs from 0 to infinity, drawn on the s-plane. Introduced by Walter R. Evans.
- Branch
- One path of the root locus. There is one branch per open-loop pole, and each starts at that pole when K = 0.
- Damping ratio ζ
- A number that sets the overshoot of a pair of complex poles. Poles with the same ζ lie on a ray from the origin at angle cos⁻¹ ζ from the negative real axis.
- Magnitude condition
- For any point s on the root locus, K = 1/|G(s)|. It reads the gain off a chosen point.
- Critical damping
- Two equal real poles (ζ = 1): the fastest response with no overshoot.
Notes and sources
- Every curve is the exact step response of T(s) = K / (s² + 2s + K), computed from its poles every frame. Overshoot and peak time are exact for this two-pole, no-zero loop; settling times are measured on the curve to a 2% band.
- The root locus is the set of closed-loop poles of K·G / (1 + K·G) as K runs from 0 to infinity. Each point s on it satisfies the magnitude condition K = 1 / |G(s)|, which reads the gain off the drawing.
- This loop is stable for every positive K because its two branches stay on σ = −1. Add a third pole and the branches bend into the right half at some gain: the Routh test from the stability module finds that limit, and the root locus shows where it happens.
- The Python uses only the standard library. With python-control installed, ct.root_locus_map(ct.tf([1], [1, 2, 0]), gains=[0, 0.75, 1, 2, 5]) gives the same closed-loop poles in the .loci array of the result. Python prints a signed zero such as -0j for a real root; it is still just 0.
- N. S. Nise, Control Systems Engineering, 8th ed., Wiley (ch. 8, Root Locus Techniques)
- K. Ogata, Modern Control Engineering, 5th ed., Pearson (ch. 6, Control Systems Analysis and Design by the Root-Locus Method)
- G. F. Franklin, J. D. Powell, A. Emami-Naeini, Feedback Control of Dynamic Systems, 8th ed., Pearson (ch. 5, The Root-Locus Design Method)
- MIT OpenCourseWare 16.06 Principles of Automatic Control (S. Hall)
- MIT OpenCourseWare 6.302 Feedback Systems (Roberge, Dawson, Lundberg)
- Root locus analysis: angle and magnitude conditions
- python-control: control.root_locus_map
- Python documentation: cmath, mathematical functions for complex numbers
Quiz Unlocks after the last step.