---
title: Root locus
heading: The paths the closed-loop poles trace as the gain rises from zero, where they start and end, which parts of the real axis they cover, the asymptotes they approach, where they leave the real axis and cross into instability, and how adding a zero bends them back toward stability
eyebrow: D3 · Lesson 6 · Root locus
xp: 40
---

::: hook
In 1948 Walter Evans, an engineer working on aircraft guidance, found a way to sketch where a loop's closed-loop poles go as the gain is turned up, without solving a polynomial for every gain. His **root locus** shows at a glance the gain at which a loop starts to ring, the gain at which it goes unstable, and what adding a zero or a pole to the controller would do. Designers still use it to see a loop's whole range of behavior in one picture.
:::

::: play
- The closed-loop poles of $K(s + z)/(s(s + 2)(s + 4))$ with unity feedback, as K runs from 0 upward. The dots mark the poles at the slider's K.
- With the zero far away (z large), two branches curve off the real axis and cross into the right half plane: high gain makes this loop unstable.
- Bring the zero in close and it pulls the branches back to the left: the loop stays stable at any gain. That's what the derivative part of a controller, or a lead compensator, does.
:::

```sim plot
view: splane
x: sigma = -9..2 rad/s
y: omega = -6..6 rad/s
slider: z = 1..30 = 30
slider: K = 0..60 = 3 step 0.25
num: (s + z)/z
den: s*(s + 2)*(s + 4)
locus: K = 0..400
```

::: predict
## For $K/(s(s + 2)(s + 4))$ with unity feedback, at what gain do the branches cross the imaginary axis?

- [ ] K = 8
- [ ] K = 6
- [x] K = 48
- [ ] They never cross

::: reveal
The characteristic polynomial is $s^3 + 6s^2 + 8s + K$, which by the Routh condition of lesson 5 is stable only while K < 6 × 8 = 48. At K = 48 it factors as $(s + 6)(s^2 + 8)$: the branches cross at $\pm j\sqrt{8} = \pm j2.83$ rad/s.
:::
:::

::: nameit
## The rules

For an open loop $KN(s)/D(s)$ with n poles and m zeros, the closed-loop poles satisfy $D(s) + KN(s) = 0$. As K rises from 0:

1. The loci **start** at the open-loop poles and **end** at the open-loop zeros; the remaining n − m branches go off to infinity.
2. A point on the real axis is on the locus if it has an **odd number** of real poles and zeros to its right.
3. The branches heading to infinity approach **asymptotes** at angles $(2k + 1)180°/(n - m)$, which radiate from the **centroid**

$$\sigma_a = \frac{\sum p_i - \sum z_i}{n - m}$$

4. Two branches meeting on the real axis **break away** where K, viewed as a function of real s, is at a local maximum.
5. The gain and frequency where branches **cross the imaginary axis** come from the Routh test.

## Design with the locus

Gain alone moves the poles only along the locus. To get poles where you want them, change the locus: a zero in the left half plane attracts branches (more damping and stability), while an extra pole repels them.
:::

::: example
## Sketch the locus of $K/(s(s + 2)(s + 4))$: real-axis segments, asymptotes and breakaway.

::: solution
1. **Real-axis segments.** The real axis is on the locus between 0 and −2 (one pole to the right) and left of −4 (three).
2. **Asymptotes.** With three poles and no zeros, there are three asymptotes at 60°, 180° and 300° from the centroid
   $$(0 - 2 - 4)/3 = -2$$
3. **Breakaway condition.** The branches from 0 and −2 break away where $dK/ds = 0$ for $K = -(s^3 + 6s^2 + 8s)$:
   $$3s^2 + 12s + 8 = 0$$
4. **Breakaway point.** The root between 0 and −2 is
   $$s = -0.845$$
   at K = 3.08.
5. **Higher gain.** Above that the two branches are a complex pair heading for the ±60° asymptotes, crossing the imaginary axis at K = 48.

**Answer:** the locus covers 0 to −2 and everything left of −4, its asymptotes leave −2 at 60°, 180° and 300°, and the branches break away at s = −0.845 (K = 3.08) and cross the imaginary axis at K = 48.
:::
:::

::: example
## For two poles, $K/(s(s + a))$, where do the branches break away, and what happens at higher gain?

::: solution
1. **Breakaway.** $K = -s(s + a)$ peaks at s = −a/2, where
   $$K = a^2/4$$
2. **Higher gain.** Above that the poles are $-a/2 \pm j\omega$, moving straight up and down the line σ = −a/2.
3. **What that means.** Faster oscillation at the same decay rate, but never unstable.

**Answer:** the branches break away at s = −a/2 (K = a²/4), and above that they oscillate faster at the same decay rate without ever going unstable.
:::
:::

::: example
## For $K/((s + 1)(s + 3))$, what gain puts the closed-loop poles on the ζ = 0.707 line?

::: solution
1. **Characteristic equation.**
   $$s^2 + 4s + 3 + K = 0$$
   with poles $-2 \pm j\sqrt{K - 1}$ once K > 1.
2. **Set ζ = 0.707.** That means the imaginary part equals the real part, 2:
   $$K - 1 = 4$$
   so K = 5.
3. **The poles.** They're then $-2 \pm j2$, with
   $$\omega_n = 2.83\ \text{rad/s}$$

**Answer:** K = 5 puts the poles on the ζ = 0.707 line, at $-2 \pm j2$.
:::
:::

::: check
given: a = 1 | 2 | 3; b = 4 | 5 | 8; z = 6.5 | 12
answer: (0 - a - b + z)/2
tolerance: 0.5%

## An open loop has poles at 0, −{a} and −{b} and a zero at −{z}. Where do its asymptotes meet the real axis?

::: right
Right. $(\sum p - \sum z)/(n - m)$ = {answer}.
:::

::: misses
- [(0 - a - b - z)/2] Subtract the zeros: $\sum p - \sum z$, and −(−z) = +z.
- [(0 - a - b)/3] With one zero, n − m is 2, and the zero counts in the sum.
- [any] Not yet. The centroid formula.
:::
:::

::: check
given: n = 2 | 3 | 4
answer: 180/n
unit: °
tolerance: 0.5%

## An open loop has {n} more poles than zeros. At what angle, measured from the positive real axis, is its first asymptote?

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

::: misses
- [360/n] The first asymptote is at 180°/(n − m).
- [any] Not yet. $(2k + 1)180°/(n - m)$ with k = 0.
:::
:::

::: check
given: a = 1 | 2 | 3; b = 4 | 5 | 10
answer: a*b*(a + b)
tolerance: 0.5%

## At what gain does the closed loop of $K/(s(s + \given{a})(s + \given{b}))$ go unstable?

::: right
Right. $s^3 + (a + b)s^2 + abs + K$ is stable while K < ab(a + b) = {answer}.
:::

::: misses
- [a*b] That's the coefficient of s; multiply by the coefficient of s².
- [any] Not yet. Routh on the cubic.
:::
:::

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

## At what gain do the two closed-loop poles of $K/(s(s + \given{a}))$ leave the real axis?

::: right
Right. The breakaway at −a/2 needs K = a²/4 = {answer}.
:::

::: misses
- [a/2] That's where they break away; the gain there is a²/4.
- [any] Not yet. Maximize K = −s(s + a) on the real axis.
:::
:::

::: check
kind: parts
given: p1 = 1 | 2; p2 = 4 | 6 | 10

## The loop $K/((s + \given{p1})(s + \given{p2}))$ is under unity feedback.

::: part
answer: (p2 - p1)^2/4
tolerance: 0.5%

### At what K do the poles meet (breakaway)?

::: misses
- [any] Where $s = -(p_1 + p_2)/2$ is a double root.
:::
:::

::: part
answer: 2*((p1 + p2)/2)^2 - p1*p2
tolerance: 0.5%

### What K puts the poles on the ζ = 0.707 line?

::: misses
- [any] The imaginary part must equal the real part, $(p_1 + p_2)/2$.
:::
:::
:::

::: check
kind: parts
given: p1 = 1 | 2; p2 = 3 | 5; p3 = 6 | 9

## The loop $K/((s + \given{p1})(s + \given{p2})(s + \given{p3}))$ has three poles and no zeros.

::: part
answer: -(p1 + p2 + p3)/3
tolerance: 0.5%

### Where is the asymptotes' centroid?

::: misses
- [any] Mean of the poles.
:::
:::

::: part
answer: 60
unit: °
tolerance: 0.5%

### At what angle (from the positive real axis) does the upper asymptote leave?

::: misses
- [any] Three asymptotes, 180°/3 apart from 60°.
:::
:::
:::

::: explain
## Why does adding a zero in the left half plane make a loop more stable at high gain?

::: model
As the gain rises, closed-loop poles leave the open-loop poles and travel toward the open-loop zeros, with any surplus branches heading off along asymptotes whose number and angles depend on how many more poles there are than zeros. With three poles and no zeros, two branches follow asymptotes at plus and minus 60 degrees and inevitably cross into the right half plane. Adding a zero in the left half plane gives one of those branches somewhere to end and reduces the excess to two, so the asymptotes become vertical lines in the left half plane and the branches bend back toward the zero instead of crossing over. Physically, the zero adds phase lead, anticipating the error like a derivative term.
:::
:::

::: practice

::: check
given: a = 0.5 | 4.5; b = 5 | 20; z = 30 | 60
answer: (0 - a - b + z)/2
tolerance: 0.5%

## Centroid: poles 0, −{a}, −{b}; zero −{z}?

::: misses
- [any] $(\sum p - \sum z)/(n - m)$.
:::
:::

::: check
given: a = 0.5 | 20; b = 21 | 100
answer: a*b*(a + b)
tolerance: 0.5%

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

::: misses
- [any] ab(a + b).
:::
:::

::: check
given: a = 0.2 | 1 | 2 | 4 | 10 | 50
answer: a^2/4
tolerance: 0.5%

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

::: misses
- [any] a²/4.
:::
:::
:::
