---
title: Adding and multiplying complex numbers on the plane
heading: Adding slides, multiplying turns and stretches
eyebrow: A3 · Lesson 4 · Adding and multiplying
xp: 40
---

::: hook
Adding two complex numbers is what you'd guess: add the real parts and add the imaginary parts. Multiplying them looks messier on paper, a four-term expansion with a $j^2$ in it. But on the plane, multiplication turns out to be the simpler of the two pictures. What does it do to the arrows?

::: play
- $z_1$ and $z_2$ are set by their lengths and angles. The dashed arrow is $z_2$ moved to start at the tip of $z_1$; their sum ends where it ends.
- Now watch the product $z_1 z_2$. Change only the angles: how is the product's angle related to theirs?
- Change only the lengths: how is the product's length related to theirs?
:::
:::

```sim plot
view: complex
range: 4
slider: r1 = 0..3 step 0.1 = 2
slider: t1 = -180..180 step 5 = 30 °
slider: r2 = 0..3 step 0.1 = 1.5
slider: t2 = -180..180 step 5 = 60 °
arrow: r1∠t1 | label: z₁
arrow: r2∠t2 | color: ch2 | label: z₂
arrow: r2∠t2 | from: r1∠t1 | dashed | color: ch2
arrow: r1∠t1 + r2∠t2 | color: ch4 | label: z₁ + z₂
arrow: (r1∠t1)*(r2∠t2) | color: ch3 | label: z₁z₂
readout: |z₁z₂| = abs((r1∠t1)*(r2∠t2))
readout: angle of z₁z₂ = arg((r1∠t1)*(r2∠t2))*180/pi °
```

::: predict
## $z_1$ is at 30° and $z_2$ is at 60°. At what angle is their product?

- [ ] 45°, halfway between
- [x] 90°
- [ ] 1800°
- [ ] 30°

::: reveal
90°: the angles add. And the lengths multiply: $2 \times 1.5 = 3$. Multiplying by a complex number turns by its angle and stretches by its length. Multiplying by $j$ from lesson 2 was the special case of length 1 and angle 90°.
:::
:::

::: nameit
## Add in rectangular form, multiply in polar form

**Adding** combines the parts, which on the plane means placing the arrows tip to tail:

$$(a + jb) + (c + jd) = (a + c) + j(b + d)$$

Subtracting does the same with the second arrow reversed.

**Multiplying** in rectangular form is ordinary algebra with $j^2 = -1$:

$$(a + jb)(c + jd) = ac + jad + jbc + j^2 bd = (ac - bd) + j(ad + bc)$$

In polar form the same product is short:

$$r_1\angle\theta_1 \times r_2\angle\theta_2 = r_1 r_2\angle(\theta_1 + \theta_2)$$

**The lengths multiply and the angles add.** That's the angle-sum identity from A2 in disguise: multiply out $(\cos\theta_1 + j\sin\theta_1)(\cos\theta_2 + j\sin\theta_2)$ and the real part is $\cos\theta_1\cos\theta_2 - \sin\theta_1\sin\theta_2 = \cos(\theta_1 + \theta_2)$.

**Dividing** undoes multiplying, so the lengths divide and the angles subtract:

$$\frac{r_1\angle\theta_1}{r_2\angle\theta_2} = \frac{r_1}{r_2}\angle(\theta_1 - \theta_2)$$

So the working rule is: add and subtract in rectangular form, multiply and divide in polar form, and convert whenever you need to. A circuit calculation like a voltage divider, $V \cdot Z_2/(Z_1 + Z_2)$, uses both: rectangular to add the impedances, then polar to divide.
:::

::: example
## Add and multiply $2 + 3j$ and $4 - j$.

::: solution
1. **Sum.**
   $$(2 + 4) + (3 - 1)j = 6 + 2j$$
2. **Product.**
   $$\begin{aligned} &(2 + 3j)(4 - j) \\ &= 8 - 2j + 12j - 3j^2 \\ &= 8 + 10j + 3 \\ &= 11 + 10j \end{aligned}$$
3. **Check the product in polar form.** $|2 + 3j| = 3.606$ and $|4 - j| = 4.123$ multiply to
   $$3.606 \times 4.123 = 14.87$$
   and $|11 + 10j| = 14.87$.

**Answer:** the sum is $6 + 2j$ and the product is $11 + 10j$.
:::
:::

::: example
## Multiply $2\angle 30°$ by $3\angle 45°$.

::: solution
1. **Multiply the lengths and add the angles.**
   $$\begin{aligned} &(2\angle 30°)(3\angle 45°) \\ &= (2 \times 3)\angle(30° + 45°) \\ &= 6\angle 75° \end{aligned}$$
2. **Rectangular form.**
   $$\begin{aligned} &6\cos 75° + j6\sin 75° \\ &= 1.553 + 5.796j \end{aligned}$$
3. **Compare.** Multiplying the rectangular forms of the two numbers would give the same thing with more work.

**Answer:** $6\angle 75°$, which is $1.553 + 5.796j$.
:::
:::

::: example
## Impedances of $10 + j20$ Ω and $5 - j30$ Ω are in series across a $10\angle 0°$ V source. Find the total impedance and the current.

::: solution
1. **Total impedance.** Series impedances add:
   $$\begin{aligned} Z &= (10 + 5) + j(20 - 30) \\ &= 15 - j10\ \Omega \end{aligned}$$
2. **Current.** Multiply the top and bottom by $15 + j10$:
   $$\begin{aligned} I &= \frac{10}{15 - j10} \\ &= \frac{150 + j100}{225 + 100} \\ &= 0.462 + j0.308\ \text{A} \end{aligned}$$
3. **Polar form.**
   $$I = 0.555\angle 33.7°\ \text{A}$$
   leading the voltage, because the total reactance is capacitive.

**Answer:** $Z = 15 - j10$ Ω, and $I = 0.462 + j0.308$ A, or $0.555\angle 33.7°$ A, leading the voltage.
:::
:::

::: check
kind: parts
given: a = -5..5 int; b = -5..5 int; c = -5..5 int; d = -5..5 int

## $z_1 = \given{a} + j(\given{b})$ and $z_2 = \given{c} + j(\given{d})$.

::: part
answer: a + c
tolerance: 0.001

### What is the real part of $z_1 + z_2$?

::: misses
- [any] Add the two real parts.
:::
:::

::: part
answer: b + d
tolerance: 0.001

### And its imaginary part?

::: misses
- [any] Add the two imaginary parts.
:::
:::

::: right
Right. On the plane, that's $z_2$ placed tip to tail after $z_1$.
:::
:::

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

## What is the real part of $(\given{a} + j\given{b})(\given{c} + j\given{d})$?

::: right
Right. Multiplying out gives $\given{a}\cdot\given{c} + j^2\,\given{b}\cdot\given{d}$ in the real part, and $j^2 = -1$.
:::

::: misses
- [a*c + b*d] The $jb \times jd$ term is $j^2 bd = -bd$, so it subtracts.
- [a*c] Don't forget the $jb \times jd$ term: it's real, because $j^2 = -1$.
- [a*d + b*c] That's the imaginary part.
- [any] Not yet. Multiply out all four terms and collect the ones without a $j$.
:::
:::

::: check
kind: parts
given: r1 = 3..6 int; t1 = 10..80 step 10; r2 = 2..5 int; t2 = 20..90 step 10

## $z_1 = \given{r1}\angle\given{t1}°$ and $z_2 = \given{r2}\angle\given{t2}°$.

::: part
answer: r1*r2
tolerance: 0.5%

### What is the magnitude of $z_1 z_2$?

::: misses
- [r1 + r2] When you multiply, the lengths multiply.
- [any] Multiply the two lengths.
:::
:::

::: part
answer: t1 + t2
unit: °
tolerance: 0.5%

### And its angle?

::: misses
- [t1*t2] When you multiply, the angles add.
- [t2 - t1] That's for dividing. Multiplying adds the angles.
- [any] Add the two angles.
:::
:::

::: right
Right. A turn by {t1}° followed by a turn by {t2}° is a turn by their sum.
:::
:::

::: check
kind: parts
given: r1 = 6 | 8 | 12 | 20; t1 = 10 | 30 | 50 | 70; r2 = 2 | 4; t2 = 20 | 40 | 60 | 80

## Divide $\given{r1}\angle\given{t1}°$ by $\given{r2}\angle\given{t2}°$.

::: part
answer: r1/r2
tolerance: 0.5%

### What is the magnitude of the result?

::: misses
- [r1*r2] Dividing undoes multiplying: divide the lengths.
- [any] Divide the lengths.
:::
:::

::: part
answer: t1 - t2
unit: °
tolerance: 0.5%

### And its angle?

::: misses
- [t1 + t2] Dividing subtracts the angles.
- [t2 - t1] It's the top angle minus the bottom angle.
- [any] Subtract the bottom angle from the top one.
:::
:::

::: right
Right. Lengths divide and angles subtract.
:::
:::

::: check
kind: place
given: a = 1..3 int; b = -2..2 int; c = -3..-1 int; d = 1..3 int
points: S = 4 + 4j
answer: S = (a + c) + j*(b + d)
tolerance: 5%

## The arrows are $z_1$ and $z_2$. Drag $S$ to their sum.

```plot
view: complex
range: 5
arrow: a + j*b | label: z₁
arrow: c + j*d | color: ch2 | label: z₂
```

::: misses
- [S = (a - c) + j*(b - d)] That's $z_1 - z_2$. For the sum, place $z_2$ at the tip of $z_1$.
:::

::: right
Right. Slide $z_2$ so it starts at the tip of $z_1$: the sum ends where it ends.
:::
:::

::: check
kind: parts
given: r1 = 2 | 3; t1 = 30 | 60; r2 = 1.5 | 4; t2 = -45 | 100

## $z_1 = \given{r1}\angle\given{t1}°$ and $z_2 = \given{r2}\angle\given{t2}°$.

::: part
answer: r1*r2*cos((t1 + t2)°)
tolerance: 0.5%

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

::: misses
- [r1*r2] That's its size.
- [any] Multiply in polar form, then take the real part.
:::
:::

::: part
answer: r1*r2*sin((t1 + t2)°)
tolerance: 0.5%

### What is the imaginary part of $z_1z_2$?

::: misses
- [any] Lengths multiply and angles add.
:::
:::

::: part
answer: abs(r1*exp(j*t1*pi/180) + r2*exp(j*t2*pi/180))
tolerance: 0.5%

### What is $|z_1 + z_2|$?

::: misses
- [r1 + r2] Add by components; the lengths only add when the angles match.
- [any] Convert both to rectangular form, add, and take the length.
:::
:::
:::

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

## Multiply $(a + jb)(c + jd)$ and check what happens to the lengths.

::: step
answer: a*c - b*d

### What is the real part of the product?

::: misses
- [a*c + b*d] $jb \times jd = j^2bd = -bd$.
:::
:::

::: step
answer: a*d + b*c

### What is its imaginary part?
:::

::: step
answer: (a^2 + b^2)*(c^2 + d^2)
form: simplified

### Square and add those two parts, and factor the result.
:::

::: right
Right. $|z_1z_2|^2 = |z_1|^2|z_2|^2$: lengths multiply, which is the "stretch" half of rotate-and-stretch.
:::
:::

::: explain
## Explain what multiplying a complex number by $2\angle 30°$ does to its arrow, and why.

::: model
It makes the arrow twice as long and turns it 30° counterclockwise. In polar form, multiplying multiplies the lengths and adds the angles, so whatever the arrow's length and angle were, the result has twice the length and an angle 30° larger. That's why complex multiplication is so useful for sinusoids: one multiplication can scale and shift a signal at once.
:::
:::

::: practice

::: check
given: a = -9..9 int; b = -9..9 int; c = -9..9 int; d = -9..9 int
answer: b - d
tolerance: 0.001

## What is the imaginary part of $(\given{a} + j(\given{b})) - (\given{c} + j(\given{d}))$?

::: misses
- [any] Subtract the imaginary parts: {b} − ({d}).
:::
:::

::: check
given: a = 2 | 4 | 6 | 8; b = 1 | 3 | 5 | 7 | 9; c = 2 | 4 | 6 | 8; d = 1 | 3 | 5 | 7 | 9
answer: a*d + b*c
tolerance: 0.001

## What is the imaginary part of $(\given{a} + j\given{b})(\given{c} + j\given{d})$?

::: misses
- [a*c - b*d] That's the real part.
- [b*d] The imaginary part comes from the two cross terms, $a \cdot jd$ and $jb \cdot c$.
- [any] Multiply out and collect the terms with one $j$.
:::
:::

::: check
given: r1 = 1 | 3 | 5 | 7 | 9; t1 = -90..90 step 10; r2 = 1..9 int; t2 = -90..90 step 10
answer: r1*r2
tolerance: 0.5%

## What is the magnitude of $\given{r1}\angle\given{t1}° \times \given{r2}\angle\given{t2}°$?

::: misses
- [r1 + r2] Lengths multiply.
- [any] Multiply the lengths.
:::
:::

::: check
given: t1 = -90..90 step 10; t2 = -80 | -50 | -20 | 20 | 50 | 80; r = 2..5 int
answer: t1 - t2
unit: °
tolerance: 0.001

## What is the angle of $\dfrac{\given{r}\angle\given{t1}°}{3\angle\given{t2}°}$?

::: misses
- [t1 + t2] Dividing subtracts the angles.
- [any] Top angle minus bottom angle.
:::
:::

::: check
given: a = 1..5 int; b = 1..5 int
answer: a^2 + b^2
tolerance: 0.001

## What is $(\given{a} + j\given{b})(\given{a} - j\given{b})$?

::: misses
- [a^2 - b^2] The cross terms cancel, and $j\given{b} \times (-j\given{b}) = -j^2\given{b}^2 = +\given{b}^2$.
- [any] Multiply out: the imaginary terms cancel.
:::
:::
:::
