Add two complex numbers

The blue dot is z and the orange dot is w. Drag either one. The green arrow is z + w. Try making w a real number, then an imaginary one, then the exact opposite of z.

What's going on

To add two complex numbers, add the real parts and add the imaginary parts: (a + bi) + (c + di) = (a + c) + (b + d)i. In pictures, each number is an arrow from 0. Put the tail of w on the tip of z and follow both arrows. Where you end up is z + w. It is the same as two moves on a map: 2 right and 1 up, then 1 left and 2 up, gets you 1 right and 3 up. So (2 + i) + (−1 + 2i) = 1 + 3i.

Go the other way round, w first and then z, and you land in the same place. That is why z + w = w + z. The two routes are the sides of a parallelogram, and z + w is its diagonal.

The green arrow is never longer than the blue and orange arrows put end to end. It is exactly that long only when z and w point the same way, or one of them is 0.

Subtracting works the same way. z − w is the arrow from the tip of w to the tip of z, because w + (z − w) = z.

Adding slides arrows. Multiplying turns and stretches them: see Drag a complex number. Sheet: Imaginary numbers are real.