---
title: Powers, roots and multivalued functions
heading: Every complex number has n nth roots
eyebrow: A12 · Lesson 7 · Powers, roots and multivalued functions
xp: 40
---

::: hook
Over the real numbers, 8 has one cube root. Over the complex numbers it has three: 2, and two more at 120° and 240° around a circle of radius 2. Every nonzero complex number has exactly n nth roots, equally spaced on a circle, and choosing which one a formula means is the same branch problem as for the logarithm. It isn't academic: the propagation constant of a lossy transmission line is a square root, $\gamma = \sqrt{(R + j\omega L)(G + j\omega C)}$, and only one of its two values describes a wave that dies away instead of growing.
:::

::: play
- The dot z sits at distance r and angle θ. The dots around the inner circle are its n nth roots: each has length $r^{1/n}$, and they're spaced $360°/n$ apart. $w_0$ is the principal root.
- Turn θ: every root turns by θ/n, so they all move together, slowly. Take θ once fully around (360°): the roots end up rotated one place along, each landing where the next began.
- Change n: the polygon of roots gains or loses corners.
:::
:::

```sim plot
view: complex
range: 3.5
slider: r = 0.2..3 step 0.1 = 2
slider: t = 0..360 step 5 = 60 °
slider: n = 2..6 step 1 = 3
curve: r*exp(j*u) | over: u = 0..2*pi | dashed
curve: r^(1/n)*exp(j*u) | over: u = 0..2*pi | dashed | color: ch2
dot: r*exp(j*t*pi/180) | label: z
dot: r^(1/n)*exp(j*t*pi/180/n) | label: w₀
dot: r^(1/n)*exp(j*(t*pi/180 + 2*pi*step(n - 1.5))/n)
dot: r^(1/n)*exp(j*(t*pi/180 + 4*pi*step(n - 2.5))/n)
dot: r^(1/n)*exp(j*(t*pi/180 + 6*pi*step(n - 3.5))/n)
dot: r^(1/n)*exp(j*(t*pi/180 + 8*pi*step(n - 4.5))/n)
dot: r^(1/n)*exp(j*(t*pi/180 + 10*pi*step(n - 5.5))/n)
readout: |each root| = r^(1/n)
readout: spacing, ° = 360/n
```

::: predict
## How many different values does $z^{1/4}$ have, for $z \ne 0$?

- [ ] 1
- [ ] 2
- [x] 4
- [ ] Infinitely many

::: reveal
4: $z^{1/4} = e^{\frac14\log z}$, and the logarithm's branches differ by $2\pi j$, so the fourth roots differ by factors of $e^{j\pi k/2}$, which repeat after k = 4. A rational power p/q (in lowest terms) has q values; an irrational power has infinitely many.
:::
:::

::: nameit
## nth roots

For $z = re^{j\theta}$:

$$z^{1/n} = r^{1/n}\,e^{j(\theta + 2\pi k)/n}, \qquad k = 0, 1, \ldots, n - 1$$

n roots on a circle of radius $r^{1/n}$, separated by $2\pi/n$. The **principal** root takes k = 0 with θ = Arg z, so $\sqrt z$ has a positive real part (or lies on the positive imaginary axis), and its branch cut is the negative real axis, like Log's.

## Roots of unity

The n solutions of $w^n = 1$ are $e^{2\pi jk/n}$. They sum to zero (for n ≥ 2), which is why three balanced phases add to zero (C3) and why the DFT's basis functions are orthogonal (C9).

## General powers

$$z^a = e^{a\log z}$$

with one value for an integer a, q values for a rational a = p/q, and infinitely many otherwise. The principal value uses Log z.

## Choosing the right root in engineering

A formula with a square root often has a physical answer only for one root. For a line, $\gamma = \alpha + j\beta = \sqrt{(R + j\omega L)(G + j\omega C)}$ with $\alpha > 0$, so that a wave traveling forward decays. The principal root satisfies it whenever the product isn't on the negative real axis.
:::

::: example
## Find the three cube roots of 8j.

::: solution
1. **Polar form.**
   $$8j = 8e^{j\pi/2}$$
2. **Length and angles.** The roots have length 2 and angles
   $$\theta = \frac{\pi/2 + 2\pi k}{3}$$
   that is, 30°, 150° and 270°.
3. **Rectangular form.** They're $\sqrt3 + j$, $-\sqrt3 + j$ and $-2j$.

**Answer:** the three cube roots of 8j are $\sqrt3 + j$, $-\sqrt3 + j$ and $-2j$.
:::
:::

::: example
## A line has $R + j\omega L = 0.1 + 10j$ Ω/m and $G + j\omega C = 10^{-6} + 0.001j$ S/m. Find γ.

::: solution
1. **Multiply the two factors.** The real part is $10^{-7} - 0.01$ and the imaginary part $10^{-5} + 10^{-4}$:
   $$\begin{aligned} \gamma^2 &= (0.1 + 10j)(10^{-6} + 0.001j) \\ &\approx -0.01 + 1.1 \times 10^{-4}j \end{aligned}$$
2. **Take the principal square root.**
   $$\gamma \approx 0.00055 + 0.1j$$
   so α ≈ 0.00055 Np/m and β ≈ 0.1 rad/m.
3. **The other root.** $-0.00055 - 0.1j$ would grow as the wave traveled.

**Answer:** γ ≈ 0.00055 + 0.1j: α ≈ 0.00055 Np/m and β ≈ 0.1 rad/m.
:::
:::

::: example
## Solve $z^4 + 4 = 0$, and factor $z^4 + 4$ into two real quadratics.

::: solution
1. **Polar form.**
   $$\begin{aligned} z^4 &= -4 \\ &= 4e^{j\pi} \end{aligned}$$
2. **The four roots.** They have size $4^{1/4} = \sqrt2$ and angles $\frac{\pi + 2\pi k}{4}$: 45°, 135°, 225° and 315°. In rectangular form:
   $$1 + j, \quad -1 + j, \quad -1 - j, \quad 1 - j$$
3. **Pair the roots $1 \pm j$.** Each root goes with its conjugate:
   $$\begin{aligned} (z - 1 - j)&(z - 1 + j) \\ &= (z - 1)^2 + 1 \\ &= z^2 - 2z + 2 \end{aligned}$$
4. **Pair the roots $-1 \pm j$.**
   $$\begin{aligned} (z + 1 - j)&(z + 1 + j) \\ &= z^2 + 2z + 2 \end{aligned}$$
5. **Check the product.**
   $$(z^2 + 2)^2 - (2z)^2 = z^4 + 4$$
   Filter designers do exactly this: the poles come from roots of a polynomial, and conjugate pairs become second-order sections with real coefficients.

**Answer:** the roots are $1 + j$, $-1 + j$, $-1 - j$ and $1 - j$, and $z^4 + 4 = (z^2 - 2z + 2)(z^2 + 2z + 2)$.
:::
:::

::: check
given: r = 8 | 27 | 16 | 0.25; n = 2 | 3 | 4
answer: r^(1/n)
tolerance: 0.5%

## How far from the origin are the {n}th roots of a number at distance {r}?

::: right
Right. $r^{1/n}$ = {answer}.
:::

::: misses
- [r/n] Roots take the nth root of the distance; the angle is what's divided by n.
- [any] Not yet. $r^{1/n}$.
:::
:::

::: check
given: t = 0 | 90 | 180; n = 2 | 3 | 4; k = 1 | 2
answer: (t + 360*k)/n
unit: °
tolerance: 0.5%

## A number at angle {t}° has {n}th roots at angles $(\theta + 360°k)/n$. What's the angle of the root with $k = \given{k}$?

::: right
Right. {answer}°.
:::

::: misses
- [t/n] That's the principal root, k = 0.
- [any] Not yet. $(\theta + 360k)/n$.
:::
:::

::: check
given: a = -4 | 3 | -9; b = 2 | 4 | -2
answer: Re(sqrt(a + j*b))
tolerance: 0.5%

## What's the real part of the principal square root of $\given{a} + \given{b}j$?

::: right
Right. {answer}.
:::

::: misses
- [any] Not yet. $\sqrt{\lvert z\rvert}\cos(\text{Arg}\,z/2)$.
:::
:::

::: check
given: n = 3 | 5 | 8; k = 1 | 2
answer: cos(2*pi*k/n)
tolerance: 0.5%

## What's the real part of the {n}th root of unity $e^{2\pi jk/n}$ with $k = \given{k}$?

::: right
Right. $\cos(2\pi k/n)$ = {answer}.
:::

::: misses
- [any] Not yet. $\cos(2\pi k/n)$.
:::
:::

::: check
given: p = 1 | 2 | 4; q = 3 | 5 | 7
answer: q
tolerance: 0

## How many different values does $z^{\given{p}/\given{q}}$ have, for $z \ne 0$? (p/q is in lowest terms.)

::: right
Right. {answer}.
:::

::: misses
- [p] It's the denominator that counts the branches.
- [any] Not yet. Count how many of $e^{2\pi jkp/q}$ are different.
:::
:::

::: check
kind: choice

## The two square roots of a lossy line's $(R + j\omega L)(G + j\omega C)$ are $\pm\gamma$. Which is the physical one?

- [ ] Either: they describe the same wave
- [x] The one with positive real part, so a forward wave decays
- [ ] The one with positive imaginary part only
- [ ] The one with negative real part

::: misses
- [1] One describes a wave that grows as it travels, without a source.
- [3] The real part, the attenuation, decides.
- [4] That wave grows exponentially along a passive line.
:::
:::

::: check
kind: parts
given: n = 3 | 4 | 5; w = 1 | 2

## An order-{n} Butterworth filter with $\omega_c$ = {w} rad/s has its poles at the left-half-plane roots of $(s/\omega_c)^{2n} = -1$.

::: part
answer: -w*sin(pi/(2*n))
unit: rad/s
tolerance: 0.5%

### What is the real part of the pole nearest the imaginary axis, in rad/s?

::: misses
- [-w*cos(pi/(2*n))] That's the size of its imaginary part; this pole sits close to the axis.
- [any] It's at angle $90° + \frac{180°}{2n}$, so its real part is $-\omega_c\sin\frac{\pi}{2n}$.
:::
:::

::: part
answer: sin(pi/(2*n))
tolerance: 0.5%

### What is the damping ratio ζ of that pole pair?

::: misses
- [cos(pi/(2*n))] ζ is the cosine of the angle from the negative real axis, which is $\sin\frac{\pi}{2n}$ here.
- [any] $\zeta = -\text{Re}\,p/\lvert p\rvert$.
:::
:::
:::

::: check
kind: derivation
vars: a = 0.5..3, b = 0.5..3

## Find the principal square root $x + jy$ of $a + jb$ by solving $(x + jy)^2 = a + jb$.

::: step
answer: sqrt(a^2 + b^2)

### Taking sizes, what is $x^2 + y^2$?
:::

::: step
answer: sqrt((sqrt(a^2 + b^2) + a)/2)

### The real part gives $x^2 - y^2 = a$. What is x (positive for the principal root)?
:::

::: right
Right. Adding the two equations gives $2x^2 = \sqrt{a^2 + b^2} + a$; then $y = b/(2x)$.
:::
:::

::: explain
## Why does a nonzero complex number have exactly n nth roots, equally spaced?

::: model
Writing $w = \rho e^{j\phi}$, the equation $w^n = re^{j\theta}$ requires $\rho^n = r$, which fixes the length $\rho = r^{1/n}$, and $n\phi = \theta + 2\pi k$, since angles that differ by whole turns give the same point. So $\phi = (\theta + 2\pi k)/n$. Consecutive values of k give angles $2\pi/n$ apart, and after n of them the angle has advanced by exactly $2\pi$, repeating the first root. That gives exactly n distinct roots, at the corners of a regular n-gon.
:::
:::

::: practice

::: check
given: r = 32 | 81; n = 4 | 5
answer: r^(1/n)
tolerance: 0.5%

## Size of the {n}th roots of {r}?

::: misses
- [any] $r^{1/n}$.
:::
:::

::: check
given: t = 60 | 120; n = 3 | 4; k = 1 | 3
answer: (t + 360*k)/n
unit: °
tolerance: 0.5%

## Angle of root k = {k} of a number at {t}°, n = {n}?

::: misses
- [any] $(\theta + 360k)/n$.
:::
:::

::: check
given: n = 6 | 12; k = 1 | 5
answer: cos(2*pi*k/n)
tolerance: 0.5%

## Re of $e^{2\pi j\cdot\given{k}/\given{n}}$?

::: misses
- [any] $\cos(2\pi k/n)$.
:::
:::
:::
