---
title: Powers and roots
heading: Every number has n different n-th roots
eyebrow: A3 · Lesson 8 · Powers and roots
xp: 40
---

::: hook
The number 1 has one real cube root, 1. But it has three cube roots in all, sitting at 0°, 120° and 240° on the unit circle, and they're exactly the three phases of the power grid. Raising a complex number to a power spins its arrow round; taking roots spreads the answers evenly round a circle. With Euler's formula behind it, both are one line of arithmetic.

::: play
- The arrow $z$ has length $r$ and angle $\theta$. The other arrow is $z^n$.
- Set $r$ = 1 and $\theta$ = 120°, then raise $n$ from 1 to 3. Where does $z^3$ land?
- Make $r$ a little more than 1. What happens to $z^n$ as $n$ grows?
:::
:::

```sim plot
view: complex
range: 1.5
slider: r = 0.5..1.3 step 0.05 = 1
slider: theta = 0..180 step 5 = 120 °
slider: n = 1..8 step 1 = 3
curve: exp(j*u) | over: u = 0..6.2832
arrow: r∠theta | label: z
arrow: (r^n)∠(n*theta) | color: ch2 | label: zⁿ
readout: |zⁿ| = r^n | digits: 4
readout: angle of zⁿ = n*theta ° | digits: 4
```

::: predict
## $z = 1\angle 120°$. What is $z^3$?

- [ ] $3\angle 360°$
- [x] $1$
- [ ] $1\angle 120°$
- [ ] $-1$

::: reveal
$z^3 = 1\angle 360° = 1$. Each multiplication by $z$ turns the arrow another 120° and keeps its length 1, so three of them make a full turn. That makes $1\angle 120°$ a cube root of 1, and so is $1\angle 240°$.
:::
:::

::: nameit
## Powers: De Moivre's formula

Multiplying multiplies lengths and adds angles, so multiplying $z = r\angle\theta$ by itself $n$ times gives

$$z^n = r^n\angle n\theta \qquad\text{or}\qquad \big(re^{j\theta}\big)^n = r^ne^{jn\theta}$$

This is **De Moivre's formula**. With $r = 1$ it says $(\cos\theta + j\sin\theta)^n = \cos n\theta + j\sin n\theta$, which is a fast way to derive multiple-angle identities. A length above 1 makes the powers spiral outward; below 1, inward.

## Roots: $n$ of them, evenly spaced

An $n$-th root of $w = R\angle\varphi$ is any $z$ with $z^n = w$. Its length must be $R^{1/n}$. Its angle, times $n$, must land on $\varphi$, and since adding a whole turn lands on the same place, the angle can be

$$\frac{\varphi + 360°k}{n}, \qquad k = 0, 1, \ldots, n - 1$$

So there are exactly $n$ roots, on a circle of radius $R^{1/n}$, spaced $360°/n$ apart. The one with $k = 0$ is the **principal root**.

**Roots of unity.** The $n$-th roots of 1 are $1\angle\frac{360°k}{n}$. They add to zero (they're symmetric about the center), which is why three balanced phases at 0°, 120° and 240° cancel in a neutral wire. The same points, $e^{-j2\pi k/N}$, are the building blocks of the discrete Fourier transform in A10.

**Square roots** come in a pair pointing opposite ways: $\sqrt{R\angle\varphi} = \pm\sqrt{R}\angle\frac{\varphi}{2}$. For instance $\sqrt{j} = \pm 1\angle 45° = \pm\frac{1 + j}{\sqrt2}$; check: $\left(\frac{1 + j}{\sqrt 2}\right)^2 = \frac{1 + 2j - 1}{2} = j$.
:::

::: example
## Compute $(1 + j)^8$.

::: solution
1. **Polar form.**
   $$1 + j = \sqrt2\angle 45°$$
2. **Raise it to the eighth power.**
   $$\begin{aligned} (1 + j)^8 &= (\sqrt2)^8\angle(8 \times 45°) \\ &= 16\angle 360° \\ &= 16 \end{aligned}$$
3. **Compare.** Multiplying out eight brackets in rectangular form would take a while; polar form makes it two lines.

**Answer:** $(1 + j)^8 = 16$.
:::
:::

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

::: solution
1. **Polar form.**
   $$8j = 8\angle 90°$$
2. **Length of each root.**
   $$8^{1/3} = 2$$
3. **Angles.**
   $$\frac{90° + 360°k}{3} = 30°,\ 150°,\ 270°$$
4. **The roots.**
   $$\begin{aligned} 2\angle 30° &= \sqrt3 + j \\ 2\angle 150° &= -\sqrt3 + j \\ 2\angle 270° &= -2j \end{aligned}$$
5. **Check the last.**
   $$\begin{aligned} (-2j)^3 &= -8j^3 \\ &= -8(-j) \\ &= 8j \end{aligned}$$

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

::: example
## Compute $(\sqrt{3} + j)^6$.

::: solution
1. **Length.**
   $$\begin{aligned} r &= \sqrt{3 + 1} \\ &= 2 \end{aligned}$$
2. **Angle.**
   $$\begin{aligned} \theta &= \arctan(1/\sqrt{3}) \\ &= 30° \end{aligned}$$
3. **Raise it to the sixth power.** Raising to the sixth power raises the length to the sixth and multiplies the angle by six:
   $$\begin{aligned} (\sqrt3 + j)^6 &= 2^6\angle 180° \\ &= 64\angle 180° \\ &= -64 \end{aligned}$$
4. **Compare.** Multiplying it out term by term would take five multiplications of complex numbers; polar form takes two lines.

**Answer:** $(\sqrt{3} + j)^6 = -64$.
:::
:::

::: check
given: r = 1.2 | 2 | 0.8; n = 3 | 4 | 5
answer: r^n
tolerance: 0.5%

## What is the magnitude of $(\given{r}\angle 25°)^{\given{n}}$?

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

::: misses
- [n*r] Powers multiply the length by itself, not by {n}.
- [r] The length changes too: it's raised to the power {n}.
- [any] Not yet. De Moivre: $r^n\angle n\theta$.
:::
:::

::: check
given: t = 130 | 170 | 250; n = 3 | 4 | 5
answer: n*t - 360*floor(n*t/360)
unit: °
tolerance: 0.2%

## What is the angle of $(2\angle\given{t}°)^{\given{n}}$, between 0° and 360°?

::: right
Right. $\given{n} \times \given{t}°$, less any whole turns: {answer}.
:::

::: misses
- [t] The angle is multiplied by {n}.
- [n*t] Right idea; now take off whole turns of 360° to land between 0° and 360°.
- [t^n] Angles multiply by $n$; it's the length that's raised to the power.
- [any] Not yet. Multiply the angle by {n}, then reduce by 360° as needed.
:::
:::

::: check
given: R = 8 | 27 | 64; p = 90 | 120 | 180
answer: R^(1/3)
tolerance: 0.5%

## What is the magnitude of each cube root of $\given{R}\angle\given{p}°$?

::: right
Right. $R^{1/3}$ = {answer}, the same for all three.
:::

::: misses
- [R/3] Take the cube root of the length, not a third of it.
- [any] Not yet. Each root has length $R^{1/n}$.
:::
:::

::: check
given: p = 60 | 90 | 150 | 210; n = 2 | 3 | 4
answer: p/n
unit: °
tolerance: 0.2%

## What is the angle of the principal {n}th root of $5\angle\given{p}°$?

::: right
Right. $\varphi/n$ = {answer}. The others follow every $360°/\given{n}$.
:::

::: misses
- [n*p] Roots divide the angle.
- [360/n] That's the spacing between roots.
- [any] Not yet. Divide the angle by {n}.
:::
:::

::: check
given: n = 3 | 5 | 6 | 8
answer: 360/n
unit: °
tolerance: 0.2%

## How far apart, in degrees, are neighboring {n}th roots of a number?

::: right
Right. $n$ roots share a full turn evenly: {answer}.
:::

::: misses
- [180/n] The roots spread round the whole circle, 360°.
- [any] Not yet. Divide a full turn by {n}.
:::
:::

::: check
kind: choice

## What is the sum of the five fifth roots of 1?

- [x] 0
- [ ] 1
- [ ] 5
- [ ] $j$

::: right
Right. Five equal arrows evenly spaced round the circle are symmetric about the center, so they cancel.
:::

::: misses
- [any] Draw the five arrows tip to tail. Where do you end up?
:::
:::

::: check
kind: parts
given: r = 2 | 3; t = 20 | 50 | 75; n = 3 | 4 | 6

## Let $z = \given{r}\angle\given{t}°$.

::: part
answer: r^n*cos((n*t)°)
tolerance: 0.5%

### What is the real part of $z^{\given{n}}$?

::: misses
- [r^n*cos(t°)] The angle is multiplied by {n} too.
- [n*r*cos((n*t)°)] The length is raised to the power {n}.
- [any] $z^n = r^n\angle n\theta$.
:::
:::

::: part
answer: r^n*sin((n*t)°)
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [any] $r^n\sin n\theta$.
:::
:::

::: part
answer: r^(1/n)*cos((t/n)°)
tolerance: 0.5%

### What is the real part of the principal {n}th root of $z$ (the one with the smallest angle)?

::: misses
- [r^(1/n)*cos(t°)] The angle is divided by {n}.
- [any] Take the {n}th root of the length and divide the angle by {n}.
:::
:::
:::

::: check
kind: derivation
vars: r = 0.5..2, t = -1..1, n = 1..6

## Derive De Moivre's formula for $z = re^{jt}$.

::: step
answer: r^n

### What is $|z^n|$?
:::

::: step
answer: n*t

### What is the angle of $z^n$, in radians?
:::

::: step
answer: r^n*cos(n*t)

### What is the real part of $z^n$?
:::

::: right
Right. $(re^{jt})^n = r^ne^{jnt}$, so $(\cos t + j\sin t)^n = \cos nt + j\sin nt$.
:::
:::

::: explain
## Why does a complex number have exactly $n$ different $n$-th roots, and not one or infinitely many?

::: model
Raising $z$ to the $n$th power multiplies its angle by $n$, so $z^n = w$ needs $n$ times the root's angle to land on $w$'s angle, plus any whole number of turns. Dividing those possible angles by $n$ gives angles $360°/n$ apart. After $n$ of them the next one is a whole turn further on, the same point as the first, so the list repeats. That leaves exactly $n$ different roots.
:::
:::

::: practice

::: check
given: r = 1.5 | 3; n = 2 | 4 | 6
answer: r^n
tolerance: 0.5%

## What is the magnitude of $(\given{r}\angle 10°)^{\given{n}}$?

::: misses
- [n*r] Raise the length to the power.
- [any] $r^n$.
:::
:::

::: check
given: t = 100 | 140 | 200; n = 4 | 6
answer: n*t - 360*floor(n*t/360)
unit: °
tolerance: 0.2%

## Between 0° and 360°, what is the angle of $(1\angle\given{t}°)^{\given{n}}$?

::: misses
- [n*t] Subtract whole turns.
- [any] Multiply the angle, then reduce.
:::
:::

::: check
given: R = 16 | 81 | 625
answer: R^(1/4)
tolerance: 0.5%

## How long is each fourth root of $\given{R}\angle 60°$?

::: misses
- [R/4] The fourth root, not a quarter.
- [any] $R^{1/4}$.
:::
:::

::: check
given: p = 40 | 100 | 200; n = 2 | 4 | 5
answer: p/n + 360/n
unit: °
tolerance: 0.2%

## The roots of $w = 3\angle\given{p}°$ of order {n} are numbered from $k = 0$. What is the angle of the $k = 1$ root?

::: misses
- [p/n] That's $k = 0$.
- [any] $(\varphi + 360°k)/n$ with $k = 1$.
:::
:::

::: check
given: k = 2 | 3 | 4 | 5
answer: 2^(k/2)*cos(k*pi/4)
tolerance: 0.5%

## What is the real part of $(1 + j)^{\given{k}}$?

::: misses
- [any] $1 + j = \sqrt2\angle 45°$; use De Moivre.
:::
:::
:::
