# “Imaginary” Numbers

Yes, this is a math post, but don’t run off too quickly. I’ll keep it as simple as possible (but no simpler), and I’ll do all the actual math so you can just ride along and watch. What I’m about here is laying the groundwork to explain a fun fact about the Mandelbrot.

This post is kind of an origin story. It seeks to explain why something rather mind-bending — the so-called “imaginary numbers” — are actually vital members of the mathematical family despite being based on what seems an impossibility.

The truth is, math would be a bit stuck without them.

Suppose I told you that equations such as the one below always have a value for x that satisfies the equation (that makes it true)?

In the equation, a and b can have any value, except that a cannot be zero.

If a is zero, the first term is always zero, and it doesn’t matter what x is. That requires b to be zero to satisfy the equation, which invalidates the premise that a and b can have any value.

So when a is zero, the premise doesn’t apply because x has been “taken out of the equation.”

But when a is non-zero, the first term has a non-zero value. The premise asserts that, regardless of the value of b, there is some x that satisfies the equation.

§ §

When x is 0, the equation is satisfied, the premise holds. So far, so good.

In fact, when b is zero, x has to be zero no matter what value a has.

(In a way, this is the exception to the exception about a being non-zero — the equation is always satisfied when a and b are both zero, regardless of x.)

§

When b (but not a) has a negative value, we can still easily find a value for x that, squared and multiplied by a, gives us the matching opposite value of b.

For example, suppose: a=+1 and b=-4. Then we have:

Which means that x has to be 2 (since 2 squared is +4).

In fact, in this case there are two answers, +2 and -2, because squaring either gives us +4.

If a is something other than +1, we just need to adjust x so that squaring it, and then multiplying it by a, gives us the (positive) value that matches b.

The premise, so far, seems to hold.

§

We can also satisfy the equation when a (but not b) is negative.

For example, suppose: a=-1 and b=+4. Then we have:

And x has to be 2 (as above, both +2 and -2), because:

If a has some other negative value, then x will have some other value such that its square times a results in -4.

For example, if a=-16 (and still b=+4), then:

As demonstrated, x has to be 0.5, which squared is 0.25, and which multiplied times -16 gives us the needed -4.

§

But what about a version where both a and b are positive? (Or if both are negative?)

For example, suppose: a=+1 and b=+4. Then we have:

Which seems problematic. Any value for x is squared and ends up positive which, added to 4, can’t possibly equal 0.

There seems no way to satisfy the equation.

It appears, then, the premise must be false?

§ §

It would seem so, unless we can come up with a way to square a number and end up with a negative value.

Which is something that our arithmetic, as we understand it so far, says never happens. A squared number is always positive.

But we need this:

As a general principle, what we really need is:

Because if we can figure that out, we can get any other negative value just by multiplying with any value we want.

If we solve for x (by taking the square root of both sides) we end up with:

We call this value i (tragically labeled as the “imaginary unit”), and we can use it to solve that unsolvable equation above. (And many others.)

That’s the big deal about i — that’s what makes it useful. It provides a mechanism that allows important equations to work. (As it turns out, since many of those are basic physics equations, it appears i is somehow fundamental in describing how reality works.)

We can’t actually calculate the square root of a negative number, but if we accept that there is such a thing — take it on faith — then we can use it to make these equations work.

As you’ll see, sometimes i is a bit of magic we stick into an equation (to give it special properties), and sometimes i goes away because we square away the weird magic and end up with mundane -1.

For example, getting back to our problematic equation, if we set x=2i:

As you see, i is squared away, and the -1 gives us the negative value we needed.

The bottom line is that our imaginary friend allows us to keep our mathematical truth! (Make of that what you will.)

§ §

Our imaginary friend enables a new type of number: the complex numbers. (Sometimes called the “imaginary” numbers.)

The natural numbers (ℕ) are natural. They enable a new kind of number, integers (ℤ), which include natural numbers but add negative numbers. (And definitely includes zero. It’s optional in the natural numbers, but I prefer the definition that begins at zero rather than one.)

The integers enable the rational numbers (ℚ) (who have the form: p/q). These include the integers (which include the natural numbers). These three kinds of numbers are all countably infinite.

The real numbers (ℝ) are a new kind of number, distinguished for being uncountably infinite. They include the countable number kinds, but add the concept of a smooth (uncountable) continuum.

§

The complex numbers (ℂ), then, which are enabled by i, include the real numbers (which include,… etc). They are a new kind of number with some different properties from other numbers.

One of those properties is that each complex number contains two parts — they have an inherent two-dimensional nature that turns out to be quite useful (and crucial to where I’m headed with all this).

Admittedly, if one is seeking a place to declare that “math is made up” the divide between the countable and uncountable is one intriguing line in the sand. The idea of i is even more challenging. I know people who find i very hard to accept as meaningful.

But, as with many abstract mathematical concepts, it demands recognition for having such valuable application to the world we live in. Math would be incomplete without complex numbers.

[As an aside, the hierarchy of number types doesn’t end with complex numbers. There are quaternions (ℍ), which have three (different!) ‘imaginary” components, and octonions (too obscure for a Unicode character), which have seven.]

§

The two-dimensional nature of complex numbers comes simply from having two parts, a real part and an imaginary part.

We usually write a complex number like this:

a + bi

The first part is the real part, the second is the imaginary part. The presence of i in the imaginary part means the addition can’t really be done, so the two-part combination is the number.

Various math operations on such numbers typically resolve to the same form. Math with complex numbers results in new complex numbers.

The two real numbers, a (the real coefficient) and b (the imaginary coefficient), can have any value — including zero.

When b is zero, the imaginary part is zero, and the number is essentially the real number a (which may, itself, be zero, of course).

This two-part nature leads to seeing complex numbers as 2D coordinates, in which case, we often write them like this:

[x, yi]

(Using x & y rather than a & b highlights the 2D context. In all cases these are just placeholders for real numbers. The square brackets indicate the numbers are coordinates in some space.)

If x and y are coordinates on a two-dimensional Cartesian-style graph, then all complex numbers are points somewhere on that graph.

(When plotting we ignore i — it’s just there to visually remind us the vertical axis (y) is the imaginary axis. It also reminds us to use complex number math.)

When we do this, we refer to the xy graph as the complex plane.

§ §

That’s enough for this time.

Next I’ll explore what makes the complex plane — as opposed to just the xy plane — so useful. (For one thing, it’s really handy for drawing images. It’s especially handy when it comes to rotating an image.)

Before that I’ll take a detour to show you visually why i is necessary. It’s the same territory we just covered, but with pictures.

Finally we’ll get to our ultimate goal: the heart of the Mandelbrot.

Stay complex, my friends!

The canonical fool on the hill watching the sunset and the rotation of the planet and thinking what he imagines are large thoughts. View all posts by Wyrd Smythe

#### 17 responses to ““Imaginary” Numbers”

• SelfAwarePatterns

“I know people who find i very hard to accept as meaningful.”

I think people would find it easier to accept if its utter bizarreness were admitted, and that it took mathematicians themselves centuries to come to terms with it.

• Wyrd Smythe

Which is why I’m spending two posts talking about it (next post tomorrow)! The gut reaction from our intuitions is definitely WTF?! As I mentioned in the post, the real numbers, once you really understand them, are bad enough, but the square root of -1? Definitely a bridge too far for many.

They’re a real fly in the ointment in the Platonic debate, too. How can something so bizarre be so necessary for the most fundamental physics math? If that math describes reality, what is going on there?

But as this post tries to show, they are a natural progression that demands our attention once we invented this math stuff. (It drives one positively Tegmarkian.)

• SelfAwarePatterns

As I understand it, it was the scientists during the 17th century who forced the mathematicians to deal with it. They were like, “Look, we’re modeling real stuff here. You guys need to get this straight!”

BTW, have you seen the latest Westworld episode? The square root of -1 plays a role.

• Wyrd Smythe

No, I don’t have HBO right now and haven’t decided if I’m in on Westworld or not, yet. The second season was so disappointing compared to the first.

• Wyrd Smythe

Do you have a reference about scientists forcing complex numbers on mathematics? My impression was that math itself demands them, and Wiki seems to confirm that.

As this post tries to illustrate, they really do pop out of the fundamental theorem of algebra.

• SelfAwarePatterns

Sorry Wyrd. My bad. I was conflating the story of irrational numbers with imaginary numbers, which I got from Morris Kline’s book:

But the needs of society often oblige even mathematicians to face unpleasantnesses. In the seventeenth century, science began to develop at an amazing rate, and science needs quantitative results. It may be nice to know that is a certain length and that · is an area, but this knowledge does not suffice when one needs numerical results. And so finally mathematicians had to accept the fact that if they were to treat numerically all the quantities that arise in scientific work, they must handle irrational numbers as numbers. The mathematicians’ refusal over centuries to grant irrationals the status of numbers illustrates one of the surprising features of the history of mathematics. New ideas are often as unacceptable in this field as they are in politics, religion, and economics.

Kline, Morris. Mathematics for the Nonmathematician (Dover Books on Mathematics) (p. 69). Dover Publications. Kindle Edition.

• Wyrd Smythe

Yeah, the irrationals really blew people’s minds. I think some people got killed over it.

Well, that eliminates my next question. I was curious if a specific physics equation was involved in the fight. I was thinking maybe it showed up in Maxwell’s equations. It seems like the first time I ran into i had something to do with electronic systems but that was so long ago I don’t recall. (Something to do with bandpass filters, maybe?)

• SelfAwarePatterns

“I think some people got killed over it.”

Supposedly the guy who discovered them, did so during a sea voyage, and was thrown overboard for it. The Pythagoreans made mathematics their religion, and reacted accordingly to a conclusion that rocked their faith.

• Wyrd Smythe

In the Kevin Smith film, Dogma, Chris Rock (the 13th Disciple who was left out of the Bible because he’s black) has a neat speech about the danger of ideas turning into beliefs. That speech always stuck with me. (And I think Dogma was Smith’s best film. Casting Alanis Morissette as God was sheer brilliance.)

• SelfAwarePatterns

I think I saw Dogma, but it was a long time ago. I might have to dig up that speech.

• Wyrd Smythe

Here it is. Bethany (Linda Fiorentino) is the last scion, a blood relative of Jesus. She’s the only one who can stop the two renegade fallen angels Bartleby (Ben Affleck) and Loki (Matt Damon) from destroying all of creation.

She’s talking with Rufus (Chris Rock) the 13th Apostle about Jesus…

Bethany: What’s He like?

Rufus: He likes to listen to people talk. I remember the old days when we were sittin’ around the fire. You know, whenever we were goin’ on about unimportant shit, He’d always have a smile on his face. His only real beef with mankind is the shit that gets carried out His name. Wars. Bigotry. Televangelism. The big one though, is the factioning of the religions. He said, “Mankind got it all wrong by takin’ a good idea and building a belief structure out of it.”

Bethany: So you’re saying that having beliefs is a bad thing?

Rufus: I just think it’s better to have an idea. You can change an idea; changing a belief is trickier. People die for it, people kill for it. The whole of existence is in jeopardy right now because of the Catholic belief system in this Plenary Indulgence bullshit. Bartleby and Loki, whether they know it or not, are exploiting that belief, and if they’re successful, you, me, all of this ends in a heartbeat. All over a belief.

• SelfAwarePatterns

Thanks!

It seems to me that beliefs are inevitable. It’s hard to get out of bed without utilizing them. We construct world models. It’s what we do. The trick is not getting too attached to those models, to being open to revising or dumping them if they’re not working.

• Wyrd Smythe

Absolutely. And to have a good understanding of the difference.

• Deal

Complex numbers were needed (and still are) to describe the propagation of light. They are all over optical science. But my understanding is that they are usually thought of as an accounting technique, rather than as a reflection of reality. Perhaps that’s just to avoid controversy.

• Wyrd Smythe

Ah, yes, optics. That’s where I first encountered the little guy. I have — literally — a life-long interest in light. The word “light” was my second word as an infant (“star” was the first). I discovered my artistic side when I became the “lighting guy” in high school. I was fascinated by lasers way back in the 1970s and always interested in astronomy. So, yeah, light and optics is where I must have first run into i.

I get the sense mathematicians think complex spaces are more than accounting, but that’s just my sense. I would like to find a higher mathematician I could chat with. I have some questions about the Mandelbrot…

• Wyrd Smythe

Here’s a really good video that shows how the “imaginary” numbers extend the real numbers, and exactly why they form a 2D plane:

It’s part of a series about the complex numbers that’s really good. I highly recommend this series if you’re interested in the complex numbers.

• Sideband #73: Complex 4D | Logos con carne

[…] more, see: “Imaginary” Numbers and The Complex […]