---
title: The root locus
heading: How the closed-loop poles move as the gain rises, the angle and magnitude conditions, the sketching rules (real-axis segments, asymptotes, breakaway points, crossings and departure angles), and choosing a gain from the locus
eyebrow: S9 · Lesson 13 · The root locus
xp: 50
---

::: hook
The closed-loop poles are the roots of $1 + KG(s) = 0$, and they move as the gain K changes. Walter Evans noticed in 1948 that the paths they trace can be sketched from a handful of rules without solving any polynomial, and that the sketch shows at a glance what gain gives the damping you want, where the loop goes unstable, and how adding a pole or zero would bend the paths. The root locus is still the designer's map of what a single gain can and can't achieve.
:::

::: play
- The root locus of $L = K(s + z)/(s(s + 1)(s + 5))$: the crosses are open-loop poles, the circle is the zero, and the dots are the closed-loop poles at the slider's K.
- With the zero far out (z large), the two branches that leave the real axis head off along asymptotes toward the right half-plane, as for three poles alone.
- Bring the zero in to the left of −1 and the asymptotes become vertical lines at $(z - 6)/2$: for z < 6 the branches bend back and the loop is stable at every gain. A zero pulls the locus toward it, the idea behind lead compensation.
:::

```sim plot
view: splane
x: sigma = -9..2 rad/s
y: omega = -6..6 rad/s
slider: z = 1.5..20 = 12
slider: K = 0..80 = 8 step 0.5
num: s + z
den: s*(s + 1)*(s + 5)
locus: K = 0..500
readout: asymptote centroid, rad/s = (z - 6)/2 | digits: 3
```

::: predict
## For $L = K/(s(s + 1)(s + 5))$, where do the closed-loop poles leave the real axis between 0 and −1?

- [ ] At −0.5, midway
- [x] At −0.47, a little nearer the origin
- [ ] At −1
- [ ] They never leave the axis

::: reveal
Breakaway points are where K, as a function of s along the real axis, peaks: $dK/ds = 0$ with $K = -s(s + 1)(s + 5)$, so $3s^2 + 12s + 5 = 0$, s = −0.472. The pole at −5 pushes the meeting point slightly right of the midpoint. At that point K = 1.13; above it the poles are complex.
:::
:::

::: nameit
## The conditions

A point s is on the locus when $L(s) = KG(s) = -1$ for some K > 0, which splits into

- the **angle condition**: $\angle G(s) = 180° \pmod{360°}$, the sum of angles from the zeros minus the sum from the poles;
- the **magnitude condition**: $K = 1/|G(s)|$, which gives the gain at any point already known to be on the locus.

## Sketching rules (n poles, m zeros)

1. The n branches start at the open-loop poles (K = 0); m end at the zeros, and n − m go to infinity.
2. **Real axis:** a point is on the locus if the number of real poles and zeros to its right is odd.
3. **Asymptotes:** angles $\frac{(2k + 1)180°}{n - m}$, meeting at the **centroid** $\sigma_a = \frac{\sum p_i - \sum z_i}{n - m}$.
4. **Breakaway and break-in points:** real-axis points where $dK/ds = 0$.
5. **Imaginary-axis crossings:** from the Routh array (lesson 9).
6. **Departure angle** from a complex pole: 180° plus the angles from all zeros minus the angles from all the other poles, measured at that pole. **Arrival angles** at complex zeros work the same way with signs reversed.

## Choosing a gain

Draw the line of the damping ratio you want (angle $\cos^{-1}\zeta$ from the negative real axis), find where the locus crosses it, and read K there from the magnitude condition. Check that the remaining poles are far enough left to be ignored.
:::

::: example
## What gain gives the loop $L = K/(s(s + 1)(s + 5))$ dominant poles with ζ = 0.5?

::: solution
1. **The ζ = 0.5 line.**
   $$s = r(-0.5 + j0.866)$$
2. **Angle condition.** Find where
   $$\begin{aligned} &\angle s + \angle(s + 1) \\ &\quad + \angle(s + 5) = 180° \end{aligned}$$
3. **Where it holds.** At r = 0.833, which puts the poles at
   $$s = -0.417 \pm j0.722$$
4. **Magnitude condition.**
   $$\begin{aligned} K &= |s||s + 1||s + 5| \\ &= 3.59 \end{aligned}$$
   The third pole is at −5.17, far enough left.
5. **Check by simulation.** A simulation gives 16.1% overshoot (16.3% predicted) and settling near 10 s, slow because σ is only 0.42.
6. **Ramp constant.**
   $$\begin{aligned} K_v &= 3.59/5 \\ &= 0.72 \end{aligned}$$

**Answer:** K = 3.59, which puts the dominant poles at −0.417 ± j0.722.
:::
:::

::: example
## A loop $L = K(s + 2)/(s^2 + 2s + 2)$ has poles at −1 ± j. At what angle does the locus leave the upper pole?

::: solution
1. **Angles at the upper pole.** At −1 + j, the zero at −2 is seen at 45° and the other pole, at −1 − j, at 90°.
2. **Departure angle.**
   $$\begin{aligned} \theta_d &= 180° + 45° - 90° \\ &= 135° \end{aligned}$$
3. **Where the branch goes.** It heads up and to the left, then curves around to arrive on the real axis to the left of the zero, where one branch ends at −2 and the other runs off to −∞.

**Answer:** the locus leaves the upper pole at 135°.
:::
:::

::: example
## Sketch the root locus of $L = K/(s(s + 2)(s + 4))$: asymptotes, breakaway and the imaginary-axis crossing.

::: solution
1. **Asymptotes.** Three poles and no zeros give asymptotes at ±60° and 180°, from the centroid
   $$\begin{aligned} \sigma_a &= \frac{0 - 2 - 4}{3} \\ &= -2 \end{aligned}$$
2. **Breakaway point.** Set $dK/ds = 0$:
   $$3s^2 + 12s + 8 = 0$$
   which gives s = −0.845 (the other root, −3.15, isn't on the locus).
3. **Gain at breakaway.**
   $$\begin{aligned} K &= |s(s + 2)(s + 4)| \\ &= 3.08 \end{aligned}$$
4. **Imaginary-axis crossing.** Routh gives it at these values, with a = 2 and b = 4:
   $$\begin{aligned} K &= ab(a + b) \\ &= 48 \\ \omega &= \sqrt{ab} \\ &= 2.83\ \text{rad/s} \end{aligned}$$

**Answer:** asymptotes at ±60° and 180° from −2, breakaway at −0.845 (K = 3.08), and the imaginary-axis crossing at 2.83 rad/s with K = 48.
:::
:::

::: check
given: a = 1 | 2 | 4; b = 5 | 10
answer: -(a + b)/3
unit: rad/s
tolerance: 0.5%

## $L = K/(s(s + \given{a})(s + \given{b}))$: where do its asymptotes meet?

::: right
Right. $(0 - a - b)/3$ = {answer}.
:::

::: misses
- [(a + b)/3] The poles are at −a and −b, so the centroid is negative.
- [-(a + b)/2] Divide by n − m = 3.
- [any] Not yet. Centroid = (sum of poles − sum of zeros)/(n − m).
:::
:::

::: check
given: n = 3 | 4 | 5; m = 1 | 2
answer: 180/(n - m)
unit: °
tolerance: 0.5%

## A loop gain has {n} poles and {m} zeros. At what angle from the positive real axis is its first asymptote?

::: right
Right. $180°/(n - m)$ = {answer}°.
:::

::: misses
- [180/n] Only n − m branches go to infinity.
- [360/(n - m)] The angles are odd multiples of $180°/(n - m)$.
- [any] Not yet. $(2k + 1)180°/(n - m)$ with k = 0.
:::
:::

::: check
given: a = 1 | 2; b = 5 | 10
answer: (-(a + b) + sqrt((a + b)^2 - 3*a*b))/3
unit: rad/s
tolerance: 0.5%

## Where does the locus of $L = K/(s(s + \given{a})(s + \given{b}))$ break away from the real axis?

::: right
Right. $3s^2 + 2(a + b)s + ab = 0$, root between 0 and −{a}: {answer}.
:::

::: misses
- [-a/2] The far pole at −{b} pushes the breakaway toward the origin.
- [any] Not yet. Set $dK/ds = 0$ with $K = -s(s + a)(s + b)$.
:::
:::

::: check
given: a = 1 | 2; b = 5 | 10
answer: abs((-(a + b) + sqrt((a + b)^2 - 3*a*b))/3*((-(a + b) + sqrt((a + b)^2 - 3*a*b))/3 + a)*((-(a + b) + sqrt((a + b)^2 - 3*a*b))/3 + b))
tolerance: 0.5%

## What's the gain at the breakaway point of $L = K/(s(s + \given{a})(s + \given{b}))$?

::: right
Right. $K = |s||s + a||s + b|$ there: {answer}.
:::

::: misses
- [any] Not yet. Find the breakaway point, then apply the magnitude condition.
:::
:::

::: check
given: c = 1 | 2; w = 1 | 3; z = 3 | 5
answer: 90 + atan(w/(z - c))*180/pi
unit: °
tolerance: 0.5%

## A loop $L = K(s + \given{z})/((s + \given{c})^2 + \given{w}^2)$. At what angle does the locus leave the upper pole?

::: right
Right. 180°, plus the zero's angle, minus 90° for the other pole: {answer}°.
:::

::: misses
- [270 - atan(w/(z - c))*180/pi] Angles from zeros are added and angles from poles subtracted.
- [any] Not yet. 180° plus angles from zeros minus angles from the other poles.
:::
:::

::: check
given: a = 2 | 4 | 10; w = 1 | 3
answer: a^2/4 + w^2
tolerance: 0.5%

## For $L = K/(s(s + \given{a}))$, what gain puts the closed-loop poles at $-\given{a}/2 \pm j\given{w}$?

::: right
Right. The magnitude condition: $K = |s||s + a| = (a/2)^2 + \omega^2$ = {answer}.
:::

::: misses
- [w^2] Both distances include the real part $a/2$.
- [any] Not yet. $K = |s||s + a|$ at that point.
:::
:::

::: check
kind: parts
given: p = 1 | 2 | 4; z = 5 | 8

## A loop $L = K(s + \given{z})/(s(s + \given{p}))$ has two poles and a zero further left, so its complex branches form a circle.

::: part
answer: -z + sqrt(z*(z - p))
tolerance: 0.5%

### Where do the branches break away from the real axis?

::: misses
- [any] Solve $dK/ds = 0$: $s = -z \pm\sqrt{z(z - p)}$.
:::
:::

::: part
answer: -z - sqrt(z*(z - p))
tolerance: 0.5%

### Where do they break back in?

::: misses
- [any] The other root.
:::
:::

::: part
answer: sqrt(z*(z - p))
tolerance: 0.5%

### What is the circle's radius, centered on the zero?

::: misses
- [any] $\sqrt{z(z - p)}$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..10, b = 11..30

## The loop $L = K/(s(s + a)(s + b))$.

::: step
answer: -(a + b)/3

### Where do the asymptotes meet?
:::

::: step
answer: sqrt(a*b)

### At what frequency does the locus cross the imaginary axis?
:::

::: step
answer: a*b*(a + b)

### At what gain?
:::

::: right
Right. The crossing comes straight from the Routh array: K = ab(a + b) at $\omega = \sqrt{ab}$.
:::
:::

::: explain
## Why do the branches of a root locus head off to infinity along straight-line asymptotes?

::: model
Far from the origin, every pole and zero looks as if it's at the same place, so $G(s)$ behaves like $1/(s - \sigma_a)^{n - m}$, with $\sigma_a$ the centroid of the poles and zeros. The angle condition for that simple function says the angle of $(s - \sigma_a)$ times $n - m$ must be an odd multiple of 180°, which picks out straight rays from the centroid at those angles. As K grows, the closed-loop poles that have no zero to go to travel far out along them. That's why a loop with three more poles than zeros always has two branches heading into the right half-plane at ±60°, and must go unstable at some gain.
:::
:::

::: practice

::: check
given: a = 2 | 6; b = 8 | 20
answer: -(a + b)/3
unit: rad/s
tolerance: 0.5%

## Centroid for $K/(s(s + \given{a})(s + \given{b}))$?

::: misses
- [any] Sum of poles over n − m.
:::
:::

::: check
given: a = 0.5 | 3; b = 4 | 12
answer: (-(a + b) + sqrt((a + b)^2 - 3*a*b))/3
unit: rad/s
tolerance: 0.5%

## Breakaway point of $K/(s(s + \given{a})(s + \given{b}))$?

::: misses
- [any] $3s^2 + 2(a + b)s + ab = 0$.
:::
:::

::: check
given: a = 3 | 8; w = 2 | 5
answer: a^2/4 + w^2
tolerance: 0.5%

## Gain for poles at $-\given{a}/2 \pm j\given{w}$ with $L = K/(s(s + \given{a}))$?

::: misses
- [any] $(a/2)^2 + \omega^2$.
:::
:::
:::
