Chapter 10. Complex numbers

§10.1 [TEXT] It’s a miracle that multiplication in ℂ has geometric meaning

Let ℂ denote the set of complex numbers (just as ℝ denotes the real numbers). It’s important to realize that, until we add in complex multiplication, ℂ is just an elaborate ℝ2 cosplay.

ConceptFor ℝ2For ℂ
Notation𝐯𝑧
Components(𝑥𝑦)𝑥+𝑦𝑖
LengthLength |𝐯|Abs val |𝑧|
Direction(slope, maybe?)argument 𝜃
Length 1unit vector𝑒𝑖𝜃=cos𝜃+𝑖sin𝜃
MultiplyNONE✨ 𝑧1𝑧2 ✨

At the start of the course, I warned you about type safety, and I repeatedly stressed to you that you cannot multiply two vectors in ℝ𝑛 to get another vector. (You had a “dot product”, but it spits out a number. Honestly, you shouldn’t think of dot product as a “product”; the name sucks.)

Of course, the classic newbie mistake (which you better not make on your midterm) is to define a product on vectors component-wise: why can’t (𝑎1⋮𝑎𝑛) and (𝑏1⋮𝑏𝑛) have “product” (𝑎1𝑏1⋮𝑎𝑛𝑏𝑛)? Well, in 18.02, every vector definition needed a corresponding geometric picture for us to consider it worthy of attention. This definition has no geometric meaning.

However, there is a big miracle for ℂ. For complex numbers, you can define multiplication by

(𝑎+𝑏𝑖)(𝑐+𝑑𝑖)=(𝑎𝑐−𝑏𝑑)+(𝑎𝑑+𝑏𝑐)𝑖

and there is an amazing geometric interpretation.

Unfortunately, AFAIK there is no English word for “complex number whose absolute value is one”, the same way there is for “unit vector”. For 18.02, we instead use

𝑒𝑖𝜃≔cos𝜃+𝑖sin𝜃

as the “word”; whenever you see 𝑒𝑖𝜃, draw it as unit vector cos𝜃+𝑖sin𝜃.

What does complex exponents mean anyway?
It’s worth pointing out the notation 𝑒𝑖𝜃 should strike you as a type-error based on what you’ve learned in school. What meaning does it have to raise a number to an imaginary power? Does 𝑖𝑖 have a meaning? Does cos(𝑖) have a meaning? If you want to know, check Chapter 55 in the Appendix.

But for 18.02, when starting out, I would actually think of the notation 𝑒𝑖𝜃 as a mnemonic, i.e. a way to remember the following result:

(cos𝜃1+𝑖sin𝜃1)⏟=𝑒𝑖𝜃1⋅(cos𝜃2+𝑖sin𝜃2)⏟=𝑒𝑖𝜃2=cos(𝜃1+𝜃2)+𝑖sin(𝜃1+𝜃2)⏟=𝑒𝑖(𝜃1+𝜃2).

(6)

This is in my opinion the biggest miracle in all of precalculus. Really, I want to stress: Equation 6 is supposed to be astonishing. My goal by the end of this chapter is to convince you that something really powerful is happening in Equation 6 allowing you to do things that you absolutely should not expect to be able to do.

More generally, the result you need to know is:

Memorize: Complex multiplication

Suppose 𝑧1 and 𝑧2 are complex numbers. To describe 𝑧1𝑧2:

  • The magnitude of 𝑧1𝑧2 is the product of the magnitudes of 𝑧1 and 𝑧2. That is,

    |𝑧1𝑧2|=|𝑧1||𝑧2|

    (7)

  • The argument of 𝑧1𝑧2 is the sum of the arguments of 𝑧1 and 𝑧2. This is Equation 6.

Here’s a simple example.

Example

Let’s consider the complex numbers:

𝑧1=20+21𝑖and𝑧2=5+12𝑖.

Following your high school, the product 𝑧1⋅𝑧2 is calculated as follows:

𝑧1⋅𝑧2=(20+21𝑖)(5+12𝑖)=20⋅5+20⋅12𝑖+21𝑖⋅5+21𝑖⋅12𝑖=100+240𝑖+105𝑖+252𝑖2=100+345𝑖+252(−1)(since 𝑖2=−1)=100+345𝑖−252=(100−252)+345𝑖=−152+345𝑖.

The above theorem is promising that if we use polar form, the angles will add and the magnitudes will multiply. Let’s verify this holds up.

For the magnitudes, you can do this by hand: we have |𝑧1|=202+212=29 and |𝑧2|=52+122=13, and indeed we have the miraculous |𝑧1𝑧2|=1522+3452=377.

The angles here probably need a calculator to verify. For the angles, from arctan(2120)≈46.04° and arctan(125)≈67.38°, we have

𝑧1≈29(cos46.04°+𝑖sin46.04°)𝑧2≈13(cos67.38°+𝑖sin67.38°)

so we’re expecting that

𝑧1𝑧2≈377(cos113°+𝑖sin113°)

and indeed arctan(−345152)≈113°, as needed!

Here’s a more substantial example, which shows how Equation 6 can be used to compute things that wouldn’t be feasible by hand with the rectangular form.

Sample Question
Compute (1+𝑖)10.

Solution. The idea is that we will write 1+𝑖 in polar form as:

1+𝑖=2(cos𝜋4+𝑖sin𝜋4).

Then raising powers is easy, because of Equation 6. To spell it out:

(1+𝑖)2=(2)2(cos(2⋅𝜋4)+𝑖sin(2⋅𝜋4))(1+𝑖)3=(2)3(cos(3⋅𝜋4)+𝑖sin(3⋅𝜋4))(1+𝑖)4=(2)4(cos(4⋅𝜋4)+𝑖sin(4⋅𝜋4))(1+𝑖)5=(2)5(cos(5⋅𝜋4)+𝑖sin(5⋅𝜋4))⋮(1+𝑖)10=(2)10(cos(10⋅𝜋4)+𝑖sin(10⋅𝜋4)).

We can simplify this now: we know

(1+𝑖)10=25(cos(5⋅𝜋2)+𝑖sin(5⋅𝜋2))=32(0+𝑖)=32𝑖.

□

Compare to how annoying this would be if we tried to do it by multiplying 10 times: the fastest way with repeated squaring would be something like

(1+𝑖)2=(1)2+2⋅1⋅𝑖+𝑖2=1+2𝑖+(−1)=2𝑖(1+𝑖)4=((1+𝑖)2)2=(2𝑖)2=4𝑖2=4⋅(−1)=−4(1+𝑖)8=((1+𝑖)4)2=(−4)2=16(1+𝑖)10=(1+𝑖)8⋅(1+𝑖)2=16⋅2𝑖=32𝑖.

But you could easily imagine replacing 10 with 100 (which we’ll do shortly) or even 1000000. Such a method would quickly become infeasible; whereas the polar coordinates let us avoid all this work.

§10.2 [SIDENOTE] Extracting trig identities and the Brahmagupta-Fibonacci identity

In this optional section I want to convince you that Equation 7 and Equation 6 are doing a lot of magic. To do so I’ll show you two consequences of these equations that you would not expect to be true.

§10.2.1 Application 1: Equation 7 gives the Brahmagupta-Fibonacci identity

Let’s start with magnitudes. If you don’t trust your teacher (a good instinct to have sometimes 😉) you might not believe me that the magnitudes multiply. Because let’s say 𝑧1=𝑎+𝑏𝑖 and 𝑧2=𝑐+𝑑𝑖. Then

𝑧1𝑧2=(𝑎+𝑏𝑖)(𝑐+𝑑𝑖)=(𝑎𝑐−𝑏𝑑)+(𝑎𝑑+𝑏𝑐)𝑖

doesn’t look related. If Equation 7 is really true, it’s promising that

𝑎2+𝑏2⋅𝑐2+𝑑2=(𝑎𝑐−𝑏𝑑)2+(𝑎𝑑+𝑏𝑐)2.

In other words, the equation

(𝑎2+𝑏2)(𝑐2+𝑑2)=(𝑎𝑐−𝑏𝑑)2+(𝑎𝑑+𝑏𝑐)2

(8)

is supposed to be true for all real numbers 𝑎, 𝑏, 𝑐, 𝑑.

But how could that be? Equation 8 doesn’t even look true, and if I told this to you with no context, you wouldn’t believe it. It’s not until you multiply out Equation 8 with brute force that you might believe me:

(𝑎2+𝑏2)(𝑐2+𝑑2)=𝑎2𝑐2+𝑏2𝑐2+𝑎2𝑑2+𝑏2𝑑2(𝑎𝑐−𝑏𝑑)2+(𝑎𝑑+𝑏𝑐)2=(𝑎2𝑐2−2𝑎𝑏𝑐𝑑+𝑏2𝑑2)+(𝑎2𝑑2+2𝑎𝑏𝑐𝑑+𝑏2𝑐2)=𝑎2𝑐2+𝑏2𝑑2+𝑎2𝑑2+𝑏2𝑐2.

They really are equal! The 2𝑎𝑏𝑐𝑑 has apparently cancelled out magically. (This unexpected identity is called the Brahmagupta-Fibonacci identity, if you want a name, but we won’t use this name again later.)

§10.2.2 Application 2: Equation 6 gives trig addition and double-angle formulas

Let’s say you still don’t trust your teacher (again, good!) and even though you have grudgingly admitted Equation 7 is true, you don’t believe the other equation Equation 6. Because if Equation 6 is true, then again brute-force expansion gives

cos(𝜃1+𝜃2)+𝑖sin(𝜃1+𝜃2)=(cos𝜃1+𝑖sin𝜃1)(cos𝜃2+𝑖sin𝜃2)=(cos𝜃1cos𝜃2−sin𝜃1sin𝜃2)+𝑖(sin𝜃1cos𝜃2+sin𝜃2cos𝜃1).

So for Equation 6 to be true, you would need for any angles 𝜃1 and 𝜃2 that

cos(𝜃1+𝜃2)=cos𝜃1cos𝜃2−sin𝜃1sin𝜃2sin(𝜃1+𝜃2)=sin𝜃1cos𝜃2+cos𝜃1sin𝜃2.

But this is true: it’s the trig addition formula!

Put another way: if you have trouble remembering the trig addition formulas (like me), then Equation 6 shows you how you can derive it. Equation 6 is easy to remember, and if you do the expansion, the mysterious trig addition formula falls out.

The double angle formula is also a special case: from

cos(2𝜃)+𝑖sin(2𝜃)=(cos𝜃+𝑖sin𝜃)2=(cos2𝜃−sin2𝜃)+𝑖⋅2sin𝜃cos𝜃

we can read off cos(2𝜃)=cos2𝜃−sin2𝜃 and sin(2𝜃)=2sin𝜃cos𝜃.

§10.3 [RECIPE] 𝑛th powers of complex numbers

Earlier I showed you how to calculate (1+𝑖)10 rapidly using polar form. You can do this in general too: the point is that

(𝑟(cos𝜃+𝑖sin𝜃))𝑛=𝑟𝑛(cos𝑛𝜃+𝑖sin𝑛𝜃).

(9)

Equation 9 is sometimes called De Moivre’s theorem, but it’s such an easy consequence of Equation 6 and Equation 7 that I don’t think it really needs its own name. Nonetheless, if you see the name in other places, it’s referring to Equation 9.

Recipe for raising a complex number to the 𝑛th power

Given a complex number 𝑧, to compute 𝑧𝑛:

  1. Convert 𝑧=𝑟(cos𝜃+𝑖sin𝜃) in polar form if it isn’t already.
  2. Use 𝑧𝑛=𝑟𝑛(cos𝑛𝜃+𝑖sin𝑛𝜃).
  3. Simplify the cos𝑛𝜃+𝑖sin𝑛𝜃 and output the answer.

Here’s the example with (1+𝑖)10 again, but with 10 replaced by 100 for emphasis.

Sample Question
Compute (1+𝑖)100.

Solution. The polar form of 1+𝑖 is:

1+𝑖=2(cos𝜋4+𝑖sin𝜋4).

Raising to the 100th power gives

(1+𝑖)100=(2)100(cos(100⋅𝜋4)+𝑖sin(100⋅𝜋4))=250(cos(25𝜋)+𝑖sin(25𝜋))=250(cos(𝜋)+𝑖sin(𝜋))=−250.

□

Sample Question
Compute (1−3𝑖)20.

Solution. First convert 1−3𝑖 to polar form:

1−3𝑖=2(cos5𝜋3+𝑖sin5𝜋3).

Then, when we raise to the 20th power, we get

(1−3𝑖)20=220(cos(100𝜋3)+𝑖sin(100𝜋3)).

The cosine and sine cycle every 2𝜋, so we write

100𝜋3=4𝜋3+2𝜋⋅16.

We only care about the “remainder” 4𝜋3; we have

cos(100𝜋3)=cos(240°)=−12sin(100𝜋3)=sin(240°)=−32.

Substituting back:

(1−3𝑖)20=220(−12−𝑖32)=220×(−1+3𝑖2)=−219(1+3𝑖).

(If you care, 219=524288, so one could also write −524288−5242883𝑖.)□

§10.4 [TEXT] An example of 𝑛th roots of complex numbers: solving 𝑧5=243𝑖

This section is dedicated to 𝑧𝑛 and is on-syllabus for exam. Specifically, you ought to be able to solve equations like 𝑧5=243𝑖. This section shows you how.

In this whole section, you always prefer to work in polar form. So if you get input in rectangular form, you should first convert to polar form. Conversely, if the answer is asked for in rectangular form, you should work with polar form anyway, and only convert to rectangular output at the end.

If you can raise to the 𝑛th power, you should be able to extract 𝑛th roots too, by running the recipe “backwards”. First, I will tell you what the answer looks like:

Memorize: The shape of an 𝑛th root answer
Consider solving the equation 𝑧𝑛=𝑤, where 𝑤 is a given nonzero complex number, for 𝑧. Then you should always output exactly 𝑛 answers. Those 𝑛 answers all have magnitude |𝑤|1𝑛 and arguments spaced apart by 360°𝑛.

I think it’s most illustrative if I show you the five answers to

𝑧5=243𝑖

to start. Again, first we want to convert everything to polar coordinates:

𝑧5=243𝑖=243(cos90°+𝑖sin90°).

At this point, we know that if |𝑧5|=243, then |𝑧|=3; all the answers should have an absolute value of 3. So the idea is to find the angles. Here are the five answers:

𝑧1=3(cos18°+𝑖sin18°)⟹(𝑧1)5=243(cos90°+𝑖sin90°)𝑧2=3(cos90°+𝑖sin90°)⟹(𝑧2)5=243(cos450°+𝑖sin450°)𝑧3=3(cos162°+𝑖sin162°)⟹(𝑧3)5=243(cos810°+𝑖sin810°)𝑧4=3(cos234°+𝑖sin234°)⟹(𝑧4)5=243(cos1170°+𝑖sin1170°)𝑧5=3(cos306°+𝑖sin306°)⟹(𝑧5)5=243(cos1530°+𝑖sin1530°).

Here’s a picture of the five numbers:

Figure 17: The five answers to 𝑧5=243𝑖, each of length 3.

On the right column, all the numbers are equal. Notice something interesting happening on the right-hand side. The numbers cos90°+𝑖sin90° and cos450°+𝑖sin450°, etc. are all the same number; if you draw them in the plane, they’ll point to the same thing. However, they give five different answers on the left. But if you continue the pattern one more, you start getting a cycle

𝑧6=3(cos378°+𝑖sin378°)⟹(𝑧6)5=243(cos1890°+𝑖sin1890°).

This doesn’t give you a new answer, because 𝑧6=𝑧1.

§10.5 [RECIPE] Taking the 𝑛th root of a complex number

In general, if 𝑤 has argument 𝜃, then the arguments of 𝑧 satisfying 𝑧𝑛=𝑤 start at 𝜃𝑛 and then go up in increments of 360°𝑛. (For example, they started at 90°5=18° for answers to 𝑧5=243𝑖.) So you can describe the general recipe as:

Recipe for 𝑛th roots of complex numbers
  1. Convert 𝑤 to polar form; say it has angle 𝜃.
  2. One of the 𝑛 answers will be |𝑤|1𝑛(cos𝜃𝑛+𝑖sin𝜃𝑛).
  3. The other 𝑛−1 answers are obtained by increasing the angle in increments of 360°𝑛.
Sample Question
Solve 𝑧5=243𝑖 for 𝑧∈ℂ.

Solution. We first convert to polar form as

243𝑖=243(cos90°+𝑖sin90°)

and see that 24315=3, and 𝜃=90°. The first angle is 𝜃5=18°. So the five answers are

𝑧1=3(cos18°+𝑖sin18°)𝑧2=3(cos90°+𝑖sin90°)𝑧3=3(cos162°+𝑖sin162°)𝑧4=3(cos234°+𝑖sin234°)𝑧5=3(cos306°+𝑖sin306°).

(As it happens, 𝑧2=3𝑖, which is easy to check by hand works.)□

Sample Question
Solve 𝑧4=8+83𝑖 for 𝑧∈ℂ.

Solution. We first convert to polar form as

8+83𝑖=16(cos60°+𝑖sin60°)

and see that 1614=2, and 𝜃=60°. The first angle is 𝜃4=15°. So the four answers are

𝑧1=2(cos15°+𝑖sin15°)𝑧2=2(cos105°+𝑖sin105°)𝑧3=2(cos195°+𝑖sin195°)𝑧4=2(cos285°+𝑖sin285°).

□

Sample Question
Solve 𝑧3=−1000 for 𝑧∈ℂ.

Solution. We first convert to polar form as

−1000=1000(cos180°+𝑖sin180°)

and see that 100013=10, and 𝜃=180°. The first angle is 𝜃3=60°. So the three answers are

𝑧1=10(cos60°+𝑖sin60°)𝑧2=10(cos180°+𝑖sin180°)𝑧3=10(cos300°+𝑖sin300°).

(As it happens, 𝑧2=−10, as expected, since (−10)3=−1000.)□

§10.6 [RECAP] Rectangular vs polar

Every complex number can be written in either rectangular form (𝑎+𝑏𝑖 for 𝑎,𝑏∈ℝ) or polar form (𝑟𝑒𝑖𝜃). We saw that polar form (because of Equation 6 and Equation 7) is really good if you’re doing lots of multiplication. So to summarize, Table 4 tells you rules of thumb for complex numbers.

OperationIn rectangularIn polar
𝑧1±𝑧2✅ Component-wise like in ℝ2❌ Unless 𝑧1 is a real multiple of 𝑧2
𝑧1𝑧2✅ Expanding✅ By Equation 6 + Equation 7
𝑧1/𝑧2✅ Write 1𝑐+𝑑𝑖=𝑐−𝑑𝑖𝑐2+𝑑2 then multiply✅ By Equation 6 + Equation 7
𝑧𝑛❌ Possible but takes forever✅ Shown in Section 10.3
𝑛th root of 𝑧❌ Not recommended for 𝑛>1✅ Shown in Section 10.5

§10.7 [EXER] Exercises

Exercise 10.1 (*). Without a calculator, give an example of an ordered pair (𝑎,𝑏) of integers satisfying

𝑎2+𝑏2=101⋅401⋅901.

Exercise 10.2. Calculate

arctan11+arctan12+arctan13.