---
title: Multiplying by j as a 90° rotation
heading: A number that turns things a quarter turn
eyebrow: A3 · Lesson 2 · Multiplying by j
xp: 40
---

::: hook
Multiply a number by −1 and it flips to the other side of zero: half a turn around the number line. Is there a number that does half of that, a quarter turn, so that doing it twice gives −1? On a line there's nowhere for a quarter turn to go. Give the numbers a second direction, and there is.

::: play
- The yellow arrow is a number $z$. The others are $jz$, $j^2z$ and $j^3z$: the same number multiplied by $j$ once, twice and three times.
- Move $a$ and $b$ to put $z$ anywhere. Each multiplication by $j$ turns the arrow a quarter turn counterclockwise. Does its length ever change?
- Where does $j^2 z$ always end up, compared with $z$?
:::
:::

```sim plot
view: complex
range: 5
slider: a = -4..4 step 0.1 = 3
slider: b = -4..4 step 0.1 = 1
arrow: a + j*b | label: z
arrow: j*(a + j*b) | color: ch2 | label: jz
arrow: j^2*(a + j*b) | color: ch3 | label: j²z
arrow: j^3*(a + j*b) | color: ch4 | label: j³z
readout: z = a + j*b
readout: jz = -b + j*a
```

::: predict
## Multiply any arrow by $j$ twice. Where does it end up?

- [ ] Where it started
- [ ] A quarter turn around
- [x] Pointing the opposite way, the same length
- [ ] On the vertical axis

::: reveal
Pointing the opposite way. Two quarter turns make a half turn, and a half turn is what multiplying by −1 does. So $j \times j = -1$: $j$ is the number whose square is −1. Four quarter turns bring the arrow all the way back, so $j^4 = 1$.
:::
:::

::: nameit
## $j$ is a quarter turn, and $j^2 = -1$

The ordinary numbers sit on a line, the **real axis**. Add a second axis at right angles, the **imaginary axis**, and every point of the plane becomes a number: the **complex number**

$$z = a + jb$$

where $a$ is how far along the real axis and $b$ how far up the imaginary one. $a$ is the **real part** and $b$ the **imaginary part**, written $\operatorname{Re}(z) = a$ and $\operatorname{Im}(z) = b$. (Mathematicians write $i$; electrical engineers use $j$, because $i$ is taken by current.)

Multiplying by $j$ turns any number a quarter turn counterclockwise, keeping its length. You can check it with ordinary algebra, using $j^2 = -1$:

$$j(a + jb) = ja + j^2 b = -b + ja$$

The point $(a, b)$ moves to $(-b, a)$, which is exactly a quarter turn.

The powers of $j$ go around in a cycle of four:

| $j^0$ | $j^1$ | $j^2$ | $j^3$ | $j^4$ |
|---|---|---|---|---|
| 1 | $j$ | −1 | $-j$ | 1 |

So $1/j = -j$: turning back a quarter turn is the same as turning three quarters forward.

The word "imaginary" is a historical accident. For an engineer these numbers are as real as voltages, and the reason to use them is the quarter turn: a capacitor or an inductor shifts a sinusoid by exactly a quarter cycle, and multiplying by $j$ is how that gets written down.
:::

::: example
## Multiply $3 + 2j$ by $j$, and check that it turned 90°.

::: solution
1. **Multiply.**
   $$\begin{aligned} j(3 + 2j) &= 3j + 2j^2 \\ &= -2 + 3j \end{aligned}$$
2. **Compare the points.** The point $(3, 2)$ went to $(-2, 3)$: the coordinates swapped and the new first one changed sign, which is exactly a quarter turn counterclockwise.
3. **Check the length.** Both points are $\sqrt{13}$ from the origin, so the length didn't change.

**Answer:** $j(3 + 2j) = -2 + 3j$, the same arrow turned a quarter turn counterclockwise.
:::
:::

::: example
## What does multiplying $3 + 2j$ by $j$ twice do?

::: solution
1. **Multiply by $j^2$.** $j^2 = -1$, so
   $$(3 + 2j)j^2 = -3 - 2j$$
   and the arrow points the opposite way.
2. **Read it as two turns.** Two quarter turns make a half turn, and turning an arrow halfway round is the same as multiplying by −1. That's the geometric reason $j^2 = -1$.

**Answer:** it turns the arrow halfway round, to $-3 - 2j$.
:::
:::

::: example
## A current phasor $I = 2 + j$ A flows through an inductor whose reactance is 10 Ω, so its voltage is $V = j10\,I$. Find $V$ and check that it leads the current by 90°.

::: solution
1. **Multiply.**
   $$\begin{aligned} V &= j10(2 + j) \\ &= j20 + j^2 10 \\ &= -10 + j20\ \text{V} \end{aligned}$$
2. **The current's angle.**
   $$\arctan(1/2) = 26.57°$$
3. **The voltage's angle.** The voltage, at $(-10, 20)$ in the second quadrant, is at $116.57°$.
4. **Compare.** The difference is exactly 90°: multiplying by $j$ turned the arrow a quarter turn, and the 10 stretched it.
   $$116.57° - 26.57° = 90°$$

**Answer:** $V = -10 + j20$ V, at 116.57°, which leads the current's 26.57° by exactly 90°.
:::
:::

::: check
given: a = 1 | 3 | 5; b = 2 | 4 | 6
answer: -b
tolerance: 0.5%

## $z = \given{a} + j\given{b}$. What is the real part of $jz$?

::: right
Right. $j(\given{a} + j\given{b}) = j\given{a} + j^2\given{b} = -\given{b} + j\given{a}$, so the real part is −{b}.
:::

::: misses
- [b] Close: $j \times j\given{b} = j^2\given{b} = -\given{b}$. The sign comes from $j^2 = -1$.
- [a] That's the imaginary part of $jz$. The real part is what's left without a $j$.
- [-a] Multiply out $j(\given{a} + j\given{b})$ term by term, then collect the parts without a $j$.
- [any] Not yet. Multiply out $j(\given{a} + j\given{b})$ and use $j^2 = -1$.
:::
:::

::: check
given: n = 5..30 int
answer: Re(j^n)
tolerance: 0.001

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

::: right
Right. Powers of $j$ repeat every four, so $j^{\given{n}}$ is the same as $j$ to the remainder of {n} ÷ 4.
:::

::: misses
- [any] The powers of $j$ cycle 1, $j$, −1, $-j$. Divide {n} by 4 and look at the remainder.
:::
:::

::: check
kind: choice

## What is $1/j$?

- [ ] $j$
- [x] $-j$
- [ ] 1
- [ ] −1

::: right
Right. $j \times (-j) = -j^2 = 1$, so $-j$ is the number that multiplies $j$ to give 1. Turning back a quarter turn is the same as $-j$.
:::

::: misses
- [1] $j \times j = -1$, not 1.
- [3] $j \times 1 = j$, not 1.
- [4] $j \times (-1) = -j$, not 1.
:::
:::

::: check
kind: place
given: a = 1..4 int; b = 1..3 int
points: W = 1
answer: W = -b + j*a
draw: arrows
tolerance: 5%

## The dashed arrow is $z = \given{a} + j\given{b}$. Drag $W$ to where $jz$ is.

```plot
view: complex
range: 5
arrow: a + j*b | dashed | label: z
```

::: right
Right. A quarter turn counterclockwise moves $(a, b)$ to $(-b, a)$.
:::

::: misses
- [W = b - j*a] That's a quarter turn clockwise, which is multiplying by $-j$.
- [W = -a - j*b] That's a half turn, which is multiplying by $j^2 = -1$.
:::
:::

::: check
kind: parts
given: X = 5 | 10 | 50; a = 1 | 2; b = 0.5 | -1.5 | 3

## A current phasor $I = \given{a} + j(\given{b})$ A flows through an inductor of reactance {X} Ω, so $V = j\given{X}\,I$.

::: part
answer: -X*b
unit: V
tolerance: 0.5%

### What is the real part of $V$?

::: misses
- [X*b] $j \times jb = -b$: check the sign.
- [X*a] That's the imaginary part.
- [any] Multiply out $jX(a + jb)$ and use $j^2 = -1$.
:::
:::

::: part
answer: X*a
unit: V
tolerance: 0.5%

### What is its imaginary part?

::: misses
- [any] The $j \times a$ term.
:::
:::

::: part
answer: X*sqrt(a^2 + b^2)
unit: V
tolerance: 0.5%

### What is the size of $V$?

::: misses
- [sqrt(a^2 + b^2)] That's the current's size. The reactance stretches it by {X}.
- [any] Multiplying by $j$ doesn't change the length; the {X} does.
:::
:::
:::

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

## Show what multiplying $z = a + jb$ by $j$ does.

::: step
answer: -b + j*a

### Multiply out $j(a + jb)$.
:::

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

### What is $|jz|$?
:::

::: step
answer: -a - j*b

### What is $j(jz)$?
:::

::: right
Right. Multiplying by $j$ sends $(a, b)$ to $(-b, a)$ without changing the length: a quarter turn. Two quarter turns make $-z$.
:::
:::

::: explain
## Why does multiplying by $j$ twice give −1?

::: model
Multiplying by $j$ turns a number a quarter turn counterclockwise without changing its length. Doing it twice turns it a half turn, so a number pointing one way ends up pointing the opposite way, the same length. That's what multiplying by −1 does. So $j \times j$ acts like −1 on every number, which means $j^2 = -1$.
:::
:::

::: practice

::: check
given: a = -5 | -3 | -1 | 1 | 3 | 5; b = -6 | -4 | -2 | 2 | 4 | 6
answer: a
tolerance: 0.001

## $z = \given{a} + j(\given{b})$. What is the imaginary part of $jz$?

::: misses
- [-b] That's the real part of $jz$.
- [b] That's the imaginary part of $z$ itself. Multiplying by $j$ moves the real part into the imaginary part.
- [any] Multiply out: $j(a + jb) = -b + ja$.
:::
:::

::: check
given: a = -5 | -3 | -1 | 1 | 3 | 5; b = -6 | -4 | -2 | 2 | 4 | 6
answer: -a
tolerance: 0.001

## $z = \given{a} + j(\given{b})$. What is the real part of $j^2 z$?

::: misses
- [a] $j^2 = -1$, so every part changes sign.
- [any] $j^2 z = -z$.
:::
:::

::: check
given: n = 2..40 int
answer: Im(j^n)
tolerance: 0.001

## What is the imaginary part of $j^{\given{n}}$?

::: misses
- [any] Use the cycle 1, $j$, −1, $-j$: find the remainder of {n} ÷ 4.
:::
:::

::: check
given: a = 1 | 3 | 5; b = 2 | 4 | 6
answer: b
tolerance: 0.001

## $z = \given{a} + j\given{b}$. What is the real part of $z/j$?

::: misses
- [-b] Dividing by $j$ turns the other way: $1/j = -j$, so $z/j = -jz$.
- [a] Dividing by $j$ turns the arrow a quarter turn clockwise.
- [any] Use $1/j = -j$ and multiply out.
:::
:::
:::
