---
title: The complex plane in rectangular and polar form
heading: Two ways to say where a point is
eyebrow: A3 · Lesson 3 · Rectangular and polar form
xp: 40
---

::: hook
You can give directions to a spot on a map in two ways: "three blocks east and four north", or "five blocks away, heading a little east of north-east". Both land in the same place. Complex numbers come with the same two descriptions, and engineers switch between them constantly, because each one makes a different kind of arithmetic easy.

::: play
- Move $a$ and $b$ to place the point $z = a + jb$. The strip gives its length $r$ and angle $\theta$.
- Make $r$ exactly 5 with whole-number $a$ and $b$. How many ways can you find?
- Put the point on each axis in turn. What is $\theta$ on the positive imaginary axis? On the negative real axis?
:::
:::

```sim plot
view: complex
range: 6
slider: a = -5..5 step 0.1 = 3
slider: b = -5..5 step 0.1 = 4
curve: 0.8*exp(j*u) | over: u = 0..arg(a + j*b) | color: ch2 | label: θ
arrow: a + j*b | label: z
readout: a = a
readout: b = b
readout: r = abs(a + j*b)
readout: θ = arg(a + j*b)*180/pi °
```

::: predict
## The point $z = -4 + j3$ is how far from the origin?

- [ ] 1
- [ ] 7
- [x] 5
- [ ] 25

::: reveal
5. The two parts are the sides of a right triangle, 4 across and 3 up, so the length is $\sqrt{4^2 + 3^2} = \sqrt{25} = 5$. The minus sign on the 4 says which way to go, left, and doesn't change the distance.
:::
:::

::: nameit
## Rectangular form and polar form

**Rectangular form** gives the two parts, $z = a + jb$. **Polar form** gives the length and the direction:

$$z = r\angle\theta$$

read "r at angle θ". The length $r$ is the **magnitude**, written $|z|$, and $\theta$ is the **angle** (or argument), measured counterclockwise from the positive real axis.

**Rectangular to polar.** Pythagoras gives the length, and atan2 (from A2) gives the angle in the right quadrant:

$$r = |z| = \sqrt{a^2 + b^2} \qquad \theta = \operatorname{atan2}(b, a)$$

**Polar to rectangular.** The parts are the shadows of the arrow on the two axes:

$$a = r\cos\theta \qquad b = r\sin\theta \qquad\text{so}\qquad z = r(\cos\theta + j\sin\theta)$$

| Rectangular | Polar |
|---|---|
| $1$ | $1\angle 0°$ |
| $j$ | $1\angle 90°$ |
| $-1$ | $1\angle 180°$ |
| $3 + j4$ | $5\angle 53.1°$ |
| $1 - j$ | $\sqrt2\angle{-45°}$ |

**Which to use.** Adding is easy in rectangular form: add the parts. Multiplying and dividing are easy in polar form, as the next lesson shows. Engineering calculations keep converting back and forth between the two, so it's worth getting quick at it.

One more form appears in lesson 7: $r e^{j\theta}$. It means exactly $r\angle\theta$, and it's the one the mathematics prefers.
:::

::: example
## Write $-4 + 3j$ in polar form.

::: solution
1. **Length.**
   $$\begin{aligned} r &= \sqrt{16 + 9} \\ &= 5 \end{aligned}$$
2. **Angle.** $\tan^{-1}(3/-4) = -36.87°$ points the wrong way (down and right), and the point is up and left, so add 180°:
   $$\begin{aligned} \theta &= -36.87° + 180° \\ &= 143.13° \end{aligned}$$

**Answer:** $-4 + 3j = 5\angle 143.13°$.
:::
:::

::: example
## Write $10\angle{-30°}$ in rectangular form.

::: solution
1. **Real part.**
   $$10\cos(-30°) = 8.660$$
2. **Imaginary part.**
   $$10\sin(-30°) = -5$$
3. **Sanity check.** −30° is just below the positive real axis, so a large positive real part and a smaller negative imaginary part is right.

**Answer:** $10\angle{-30°} = 8.660 - 5j$.
:::
:::

::: example
## A load's impedance is $30 - j40$ Ω. Write it in polar form and say what kind of load it is.

::: solution
1. **Length.**
   $$\begin{aligned} r &= \sqrt{30^2 + 40^2} \\ &= 50\ \Omega \end{aligned}$$
2. **Angle.** The point $(30, -40)$ is in the fourth quadrant, at
   $$\arctan(-40/30) = -53.13°$$
   So $Z = 50\angle{-53.13°}$ Ω.
3. **Kind of load.** The negative angle means the reactance is negative, which is capacitive: the current through it will lead the voltage by 53.13°.
4. **Check by going back.**
   $$\begin{aligned} 50\cos(-53.13°) &= 30 \\ 50\sin(-53.13°) &= -40 \end{aligned}$$
   as it should.

**Answer:** $Z = 50\angle{-53.13°}$ Ω, a capacitive load whose current leads its voltage by 53.13°.
:::
:::

::: check
given: a = -9 | -6 | -3 | 3 | 6 | 9; b = -8 | -4 | 4 | 8
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

## What is the magnitude of $z = \given{a} + j(\given{b})$?

::: right
Right. $\sqrt{(\given{a})^2 + (\given{b})^2}$ = {answer}.
:::

::: misses
- [abs(a) + abs(b)] The length comes from Pythagoras: square the parts, add them, and take the square root.
- [a^2 + b^2] That's the magnitude squared. Take the square root.
- [any] Not yet. Use $|z| = \sqrt{a^2 + b^2}$.
:::
:::

::: check
given: a = -9 | -6 | -3; b = -8 | -4 | 4 | 8
answer: arg(a + j*b)*180/pi
unit: °
tolerance: 0.5%

## What is the angle of $z = \given{a} + j(\given{b})$, between −180° and 180°?

::: right
Right. atan2 puts it in the quadrant where the point actually is: {answer}.
:::

::: misses
- [atan(b/a)*180/pi] Check the quadrant. $\tan^{-1}(b/a)$ alone is 180° off when the real part is negative.
- [atan(a/b)*180/pi] The angle is $\tan^{-1}$ of the imaginary part over the real part.
- [any] Not yet. Use $\theta = \operatorname{atan2}(b, a)$.
:::
:::

::: check
kind: parts
given: r = 2..10 int; t = 30 | 60 | 120 | 150 | -30 | -60 | -120 | -150

## Convert $z = \given{r}\angle\given{t}°$ to rectangular form.

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

### What is its real part?

::: misses
- [r*sin(t°)] That's the imaginary part. The real part is the shadow on the real axis, $r\cos\theta$.
- [any] Use $a = r\cos\theta$.
:::
:::

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

### And its imaginary part?

::: misses
- [r*cos(t°)] That's the real part. The imaginary part is $r\sin\theta$.
- [any] Use $b = r\sin\theta$.
:::
:::

::: right
Right. The signs of the two parts put the point in the quadrant the angle says.
:::
:::

::: check
kind: place
given: r = 2..4 int; t = 45 | 120 | 210 | 300
points: Z = 1
answer: Z = r∠t
tolerance: 5%

## Drag $Z$ to $\given{r}\angle\given{t}°$.

```plot
view: complex
range: 5
```

::: misses
- [Z = r∠(-t)] That's the right length, but the angle is measured counterclockwise from the positive real axis.
:::

::: right
Right. It sits {r} from the origin, {t}° counterclockwise from the positive real axis.
:::
:::

::: check
kind: parts
given: r = 2 | 5 | 10; t = 120 | 210 | 300

## A phasor is $\given{r}\angle\given{t}°$.

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

### What is its real part?

::: misses
- [r*sin(t°)] That's the imaginary part.
- [any] $r\cos\theta$.
:::
:::

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

### What is its imaginary part?

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

::: part
answer: arg(r*exp(-j*t*pi/180))*180/pi
unit: °
tolerance: 0.5%

### What is the angle of its conjugate, between −180° and 180°?

::: misses
- [any] The conjugate is the mirror image across the real axis.
:::
:::
:::

::: check
kind: derivation
vars: r = 0.5..5, t = -3..3

## Check that polar and rectangular form describe the same point.

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

### For the point at length $r$ and angle $\theta$ (radians), what is $x$?
:::

::: step
answer: r*sin(t)

### What is $y$?
:::

::: step
answer: r^2
form: simplified

### Simplify $x^2 + y^2$.
:::

::: right
Right. $r^2\cos^2\theta + r^2\sin^2\theta = r^2$, so $r = \sqrt{x^2 + y^2}$ undoes the conversion.
:::
:::

::: explain
## A complex number has a negative real part and a positive imaginary part. What can you say about its angle, and why?

::: model
Its angle is between 90° and 180°. The positive imaginary part puts the point above the real axis and the negative real part puts it to the left of the imaginary axis, so it's in the upper-left quarter of the plane. Angles there, measured counterclockwise from the positive real axis, run from 90° to 180°.
:::
:::

::: practice

::: check
given: a = -9..9 int; b = 2..9 int
answer: sqrt(a^2 + b^2)
tolerance: 0.5%

## Find $|\given{a} + j\given{b}|$.

::: misses
- [a^2 + b^2] That's the magnitude squared. Take the square root.
- [any] Use $\sqrt{a^2 + b^2}$.
:::
:::

::: check
given: a = -9 | -7 | -5 | -3 | -1 | 1 | 3 | 5 | 7 | 9; b = -8 | -6 | -4 | -2 | 2 | 4 | 6 | 8
answer: arg(a + j*b)*180/pi
unit: °
tolerance: 0.5%

## Find the angle of $\given{a} + j(\given{b})$, between −180° and 180°.

::: misses
- [any] Find $\tan^{-1}(b/a)$, then correct by 180° if the real part is negative.
:::
:::

::: check
given: r = 1..20 int; t = -170..170 step 10
answer: r*cos(t°)
tolerance: 0.01

## What is the real part of $\given{r}\angle\given{t}°$?

::: misses
- [r*sin(t°)] That's the imaginary part.
- [any] Use $r\cos\theta$.
:::
:::

::: check
given: r = 1..20 int; t = -170..170 step 10
answer: r*sin(t°)
tolerance: 0.01

## What is the imaginary part of $\given{r}\angle\given{t}°$?

::: misses
- [r*cos(t°)] That's the real part.
- [any] Use $r\sin\theta$.
:::
:::

::: check
kind: choice

## What is $-j5$ in polar form?

- [ ] $5\angle 90°$
- [x] $5\angle{-90°}$
- [ ] $-5\angle 90°$ is the only way to write it
- [ ] $5\angle 180°$

::: right
Right. It's 5 long, pointing straight down the imaginary axis: −90°, or equally 270°.
:::

::: misses
- [1] That's $j5$, pointing up.
- [3] Polar form keeps the length positive and puts the direction in the angle.
- [4] That's −5, on the negative real axis.
:::
:::
:::
