12. Complex numbers

For a really smart and entertaining introduction to complex numbers, I recommend this video series.

We need to take a short but highly relevant detour to talk about complex numbers.

There’s often a lot of uneasiness about complex numbers. Terminology is part of the reason. Using “real” and “imaginary” to label numbers is the residue of a value judgment that ruled mathematics for centuries. But complex numbers are actually just as “real” as so-called real numbers. If anything, they are actually more fundamental to the universe.

As a practical matter, you can pretty much always replace a complex value with two real ones, and vice versa. But sometimes the manipulations are a lot easier in the complex form. In particular, you may be able to replace trigonometry with algebra.

12.1. The reality of imaginary numbers (optional)

Let’s rewind a bit. We can probably take for granted the positive integers 1, 2, 3, and so on, and we’ll throw in zero as well, though this too was controversial for centuries. It’s not long before we want to solve a problem like \(x+1=0\). Annoyingly, we can pose the problem using just nonnegative integers, but we can’t solve it. So we accept the existence of the negative integers.

I can imagine quite a bit of skepticism about this historically. (“Sure, Wei. Ever seen a negative goat?”) But if you’ve ever taken out a loan, you know that negative numbers can have very real consequences.

Eventually, the negative integers seem “obvious” and perfectly natural. But then we run into a problem like

\[2x - 1 = 0.\]

We can pose this problem with integers, but we can’t solve it. So we get used to accepting rational numbers, too.

Rational numbers are pretty weird. Between any pair of them, you have infinitely more rational numbers! Yet it turns out they have (huge) gaps as well. You can’t solve

\[x^2 - 2 = 0\]

using only rational numbers. So, you’re willing to take on irrational numbers too. Talk about weird–every one of them has an infinite, non-repeating decimal expansion.

So much for the “real” numbers. At least we have filled in the so-called number line. But then you get to

\[x^2 + 1 = 0,\]

which is purely “real” but insolvable. Solutions to this equation were widely resisted for a very long time (say, the 18th century), to the point they were called “imaginary” (looking at you here, Descartes).

Yet something amazing happens if you do accept imaginary numbers, and their expansion to the complex numbers. Namely, The Fundamental Theorem of Algebra, which states that if you write down a polynomial using complex numbers, it will have only complex numbers as solutions. So there’s no infinite ladder of hypercomplex numbers that we have to ascend–just one rung past the “real” one is all we need to tidy things up perfectly.

12.2. Basic arithmetic

We can write a complex number \(z\in \complex\) as \(z=x+iy\), where \(i^2=-1\) and \(x\) and \(y\) are real numbers known as the real part and imaginary part of \(z\),

\[z = x + i y \quad \Leftrightarrow \quad x = \Re(z), \quad y = \Im(z).\]

Writing a complex number this way is equivalent to using rectangular or Cartesian coordinates in the plane to specify a point \((x,y)\). Thus complex numbers are on a number plane rather than a number line.

There is a generalization of absolute value to complex numbers known as the modulus, a real nonnegative quantity easily computed via

\[|z|^2 = [\text{Re}(z)]^2 + [\text{Im}(z)]^2.\]

Like the absolute value, \(|z|\) is the distance from \(z\) to the origin, and \(|w-z|\) is the distance between two complex numbers. Here, though, the distances are in the plane rather than on a line.

An important operation on complex numbers that has no real counterpart is the conjugate,

\[\bar{z} =\text{Re}(z) - i \,\text{Im}(z).\]

Geometrically this is a reflection across the real axis of the plane. No matter how complicated an expression is, you just replace \(i\) by \(-i\) everywhere to get the conjugate.

You add, subtract, and multiply complex numbers by applying the usual algebraic rules, applying \(i^2=-1\) as needed. They should give little trouble. Division can be a little trickier, even though the rules are always the same. One trick is to give a complex ratio a purely real denominator:

\[\frac{w}{z} = \frac{w \bar{z}}{z \bar{z}} = \frac{w \bar{z}}{|z|^2}.\]

This is a lot like rationalizing a denominator with square roots.

Example

\[ \frac{2-i}{3+2i} = \frac{2-i}{3+2i}\cdot \frac{3-2i}{3-2i} = \frac{6-4i-3i+2i^2}{3^2+2^2} = \frac{4-7i}{13}. \]

Example

Suppose that \(|z|=1\). Then

\[ \frac{1}{z} = \frac{1}{z}\cdot \frac{\bar{z}}{\bar{z}} = \frac{\bar{z}}{|z|^2} = \bar{z}. \]

Tip

Memorize the special case \(\dfrac{1}{i} = -i\).

Here are some more simple rules to know:

Property 12.1 (Complex arithmetic)

For complex numbers \(w\) and \(z\),

  1. \(|\bar{z}| = |z|\)

  2. \(|wz| = |w|\cdot |z|\)

  3. \(|w+z|\le |w| + |z|\) (triangle inequality)

  4. \(\left| \dfrac{1}{z} \right| = \dfrac{1}{|z|}\)

  5. \(\overline{wz}=\bar{w}\cdot \bar{z}\)

  6. \(\overline{w+z}=\bar{w}+\bar{z}\)

  7. \(\overline{\left(\dfrac{1}{z} \right)} = \dfrac{1}{\bar{z}}\)

  8. \(|z|^2 = z\cdot \bar{z}\)

More to come later on complex numbers, but this will be enough for now.