The Cabinet of Curios

Complex Numbers

You know numbers as points on a line. Complex numbers are points on a plane, and multiplying by one turns and stretches the whole plane around zero. Start on the number line, meet i, the square root of −1, and then watch arithmetic turn into rotation.

Points you can drag can also be clicked or reached with Tab, then nudged with the arrow keys. Hold Shift for bigger steps.

Station 1

The number line

Every ordinary number has a spot on one line. Multiplying by a positive number stretches or shrinks a number along the line. Multiplying by a negative number also flips it to the other side of 0, which is the same as swinging it a half turn around 0. Drag m and watch 1 hop to 1 × m and then hop again to m × m. Every square you make leaves a mark, and you can zoom out for bigger ones.

m
m²
Show up to

Now try to drag m so that m² lands on the ring at −1. You can't. A stretch twice is still a stretch, and a flip twice faces forward again, so no number on the line times itself makes −1. A hop that stopped halfway through its half turn would point straight up, off the line. Station 2 makes room for it.

Station 2

Meet i

Stand a second number line upright through 0 and the line becomes a plane. Now m can leave the line. How should multiplying work out here? Here's a guess: keep doing what it did on the line, where multiplying by m turns by m's angle and stretches by m's distance from 0. On the line those angles were only ever 0° for a positive number and 180° for a negative one, which is why all they could do was stretch and flip. Off the line, any angle is possible. Drag m and try again to make m² land on −1.

numberlengthangle
m
m²
−1−11180°
Show up to

Two quarter turns

1 × i = ia quarter turn, up
i × i = −1another quarter turn, over

To reach −1 the two hops have to add up to a half turn without stretching. Two equal turns that make a half turn are quarter turns, and a quarter turn from 1 points one step straight up. That spot is i. It isn't on the number line, which is why no ordinary number could do it, but it's a number all the same: i × i = −1.

Every point on the plane is some a + bi: go a along the number line, then b up, as the dashed lines under m show. The number line is still here, running across the middle. Its numbers are the ones with no step up.

But that turning rule was only a guess. All we actually know about i is that i × i = −1. Station 3 checks the guess using nothing else.

Station 3

Check the guess

Station 2 found i by guessing that multiplying turns things. All we really know about i is that i × i = −1. Is multiplying by i a quarter turn for every point, or only for 1 and i? Pick numbers below to multiply by i, or drag z anywhere you like. The working uses ordinary algebra plus that one fact, and each answer gets plotted next to the number it came from.

numberlengthangle
z
iz

Station 4

A quarter turn

Station 3's answers all landed a quarter turn ahead. Here's why that happens for every point. Multiplying it out, i(a + bi) = ai + bi² = −b + ai, so the two parts swap places and one flips sign. Drag z and compare the dashed triangle under z with the one under iz: it's the same triangle, stood on its side. Press × i to make the turn.

z
iz

So multiplying by i sends the point (x, y) to (−y, x). The two legs of the dashed triangle swap places and the one that lands across the axis flips sign. That's a quarter turn.

Station 5

Turn and stretch

Now multiply by any number w, not just i. Drag z and w. The product zw is z turned by w's angle and stretched by w's length, exactly the rule Station 2 guessed. Lengths multiply and angles add. The two shaded triangles always have the same shape, which is why it works for every w. The faint grid shows the whole plane going along.

numberlengthangle
z
w
zw

Station 6

Rotating coordinates

There are two ways to rotate. You can leave the axes alone and turn the point, or leave the point alone and turn the axes and then ask where the point is now. Both are one complex multiplication, and both are the rotation matrix in disguise. Drag P anywhere.

Station 7

Many small turns

Multiplying by 1 + iε pushes a point sideways by ε of its length, because iz is at right angles to z. For a small ε that's nearly a pure turn. Split the angle θ into n of those nudges, starting from 1. The more nudges, the closer you land to the circle, at cos θ + i sin θ. That point is eiθ, and Exploring e shows where the e comes from.

Things to notice

A little history

Sources