Euler’s Beautiful Equation

“There is an ancient and innate sense in people that numbers ought not to misbehave.” Douglas Hofstadter, Cognitive scientist

Connecting to the Straight 2 dance

Remember we have performed several dances in the xyxy-coordinate system. In the previous section, we identified a new “dancing floor,” the complex plane.

Let’s perform 4 dances that are similar to previous dances, but this time we will dance on the complex plane rather than the xyxy-coordinate system. That means the real numbers lie on the horizontal axis and the imaginary numbers climb up and down the vertical axis. In all our dances, we define the distance and direction we travel at each step as xnn!\frac{x^n}{n!}, where nn starts at 0 and goes to infinity.

The first dance we’ll review in the complex plane is Straight 2. Rather than starting at 0 on a number line, we start at the origin of the complex plane. Remember the real number line is the xx-axis, so any step from a real number moves us to the right if the number is positive and to the left if the number is negative.

Figure 1 is the quick tour of the first 6 steps to our Straight 2 dance. Notice for Straight 2, x=2x=2.

Figure 1. Revisit the Straight 2 dance

Step 1 (n=0)(n=0): Start at (0,0)(0,0) and move right 200!=1\frac{2^0}{0!}=1 step to (1,0)(1,0).

Step 2 (n=1)(n=1): From (1,0)(1,0), move right 211!=2\frac{2^1}{1!} =2 steps to (3,0)(3,0).

Step 3 (n=2)(n=2): From (3,0)(3,0), move right 222!=2\frac{2^2}{2!}=2 steps to (5,0)(5,0).

Step 4 (n=3)(n=3): From (5,0)(5,0), move right 233!=1.333\frac{2^3}{3!}=1.333 steps to (6.333,0)(6.333,0).

Step 5 (n=4)(n=4): From (6.333,0)(6.333,0), move right 244!=0.667\frac{2^4}{4!}=0.667 step to (7,0)(7,0).

Step 6 (n=5)(n=5): From (7,0)(7,0), move up 255!=0.2267\frac{2^5}{5!}=0.2267 step to (7.267,0)(7.267,0).

After an infinite number of steps in this pattern, finish at (e2,0)(e^2,0). This produces the equation we stated before:

200!+211!+222!+233!+244!+255!+266!+=e2\frac{2^0}{0!}+\frac{2^1}{1!}+\frac{2^2}{2!}+\frac{2^3}{3!}+\frac{2^4}{4!}+\frac{2^5}{5!}+\frac{2^6}{6!}+…=e^2

Notice because xx is positive 2, we simply moved left to right on the real number line. Thus, even though we expanded our dance floor from a number line to a complex plane, we only used the xx-axis and remained on the number line. We did not dance off the xx-axis because the imaginary component was always 0. This is the same dance we reviewed before but from the perspective of the complex plane, so it’s not surprising we remained on the real number line. In short, it is the same dance before but performed on a bigger stage.

Connecting to the Straight -2 dance

Our second dance on the complex plane is Straight -2. Again, the horizontal axis is the real number line. The Straight -2 dance is nearly the same as the dance we just finished except x=2x=-2 rather than x=2x=2. We are still only working with real numbers, which means we remain on the horizontal axis as we did in the previous dance.

However, because xx has a negative value, we will dance in more than 1 direction. Thus, I will rewrite x=2x=-2 as x=(1)×2x=(-1)×2. The reason for redefining xx is to identify two factors. The 2 is positive and always determines the distance we travel. The (1)(-1) determines the direction we travel. Thus, for each calculation, we must determine distance and direction. We identify the distance from the 2 and the direction from the 1-1.

Let’s walk through the first 6 steps of our Straight -2 dance.

Figure 2. Revisit the Straight -2 dance

Figure 2 shows the connection between each step with arbitrary curved lines. However, the dance remains on the real axis. The curved lines only highlight the starting and ending point for each step.

Step 1 (n=0)(n=0): From (0,0)(0,0), move (1×2)00!\frac{(-1\times 2)^0}{0!}. Direction = (1)0=+1(-1)^0=+1 and distance = 200!=1.\frac{2^0}{0!} = 1. Since the direction is a positive real number, move in the direction of the positive real numbers, which moves right 1 unit from (0,0)(0,0) to (1,0)(1,0).

Step 2 (n=1)(n=1): From (1,0)(1,0), move (1×2)11!\frac{(-1\times 2)^1}{1!}. Direction = (1)1=1(-1)^1=-1 and distance = 211!=2\frac{2^1}{1!} = 2. Since the direction is -1, move left on the real number line 2 units from (1,0)(1,0) to (1,0)(-1,0).

Step 3 (n=2)(n=2): From (1,0)(-1,0), move (1×2)22!\frac{(-1\times 2)^2}{2!}. Direction = (1)2=+1(-1)^2=+1 and distance = 222!=2\frac{2^2}{2!} = 2. Since the direction is +1, move right on the real number line 2 units from (1,0)(-1,0) back to (1,0)(1,0).

Step 4 (n=3)(n=3): From (1,0)(1,0), move (1×2)33!\frac{(-1\times 2)^3}{3!}. Direction = (1)3=1(-1)^3=-1 and distance = 233!=1.333\frac{2^3}{3!} = 1.333. Since the direction is 1-1, move left on the real number line 1.333 units from (1,0)(1,0) to (0.333,0)(-0.333,0).

Step 5 (n=4)(n=4): From (0.333,0)(-0.333,0), move (1×2)44!\frac{(-1\times 2)^4}{4!}. Direction = (1)4=+1(-1)^4=+1 and distance = 244!=0.667\frac{2^4}{4!} = 0.667. Since the direction is +1+1, move right on the real number line 0.667 unit from (0.333,0)(-0.333,0) to (0.333,0)(0.333,0).

Step 6 (n=5)(n=5): From (0.333,0)(0.333,0), move (1×2)55!\frac{(-1\times 2)^5}{5!}. Direction = (1)5=1(-1)^5=-1 and distance = 255!=0.267\frac{2^5}{5!} = 0.267. Since the direction is 1-1, move left on the real number line 0.2670.267 unit from (0.333,0)(0.333,0) to (0.066,0)(0.066,0).

After an infinite number of steps in this pattern, finish at (e2,0)(e^{-2},0). This produces the equation:

(2)00!+(2)11!+(2)22!+(2)33!+(2)44!+(2)55!+(2)66!+=e2\frac{(-2)^0}{0!}+\frac{(-2)^1}{1!}+\frac{(-2)^2}{2!}+\frac{(-2)^3}{3!}+\frac{(-2)^4}{4!}+\frac{(-2)^5}{5!}+\frac{(-2)^6}{6!}+…=e^{-2}

Because every rotation was either a 12\frac{1}{2} turn or no turn, we always remained on the real number line. This makes sense because the problem is only about real numbers, so we would not anticipate leaving the real number line. However, that will change for our third dance: Rotate 2. This dance should tie together several threads in Lazarus Math as we consider a dance that rotates on the rich complex plane.

Connecting to the Rotate 2 dance

What is xx for the Rotate 2 dance? Remember from the previous dance, we have two components to our move: direction and distance. Again, we identify the distance from the 2. How do we determine the direction? For the Rotate xx dance, we defined the direction by stating with words rather than symbols. In words, we defined the direction as making a 14\frac{1}{4} turn counterclockwise after every step.

Are words the only way we can make this definition? Can we use math notation to say the same thing?

Do you remember the action we assigned to multiplying a number by ii? The action we get from multiplying a number by ii is a 14\frac{1}{4} turn in the complex plane. In other words, when we performed our “rotate by 14\frac{1}{4} of a turn” dance, it was the same thing as multiplying by ii in the complex plane. I know that is a lot to digest, but it can help to work through the numbers.

That means we want x=2x=2 to produce a distance based on 2 with no rotation. But we want x=2ix=2i to produce a distance based on 2 and a 14\frac{1}{4} of a turn. This may be fuzzy, but let’s set x=2ix=2i to find where it leads. We’ll use the same strategy as the previous dance by rewriting (2i)n(2i)^n as 2n×in2^n\times i^n to separate the distance and direction. Notice this means we still use 2 to identify the distance, but it is the job of ii to determine the direction. Remember in the previous dance, we let -1 determine the direction. We will follow the same process as that dance except we will use ii to determine the direction rather than -1.

Because we have introduced the imaginary ii to our process, we will dance off the horizontal axis of the real number line and utilize the entire complex plane. I believe our dancing is ready for the task!

A quick refresh of our algebra rule for ii: consider ii like a variable xx. Our basic definitions for multiplying ii by itself: i0=1i^0=1, i1=ii^1=i, i2=1i^2=-1, i3=ii^3=-i, i4=1i^4=1, i5=ii^5=i, i6=ii^6=-i.

Figure 3 shows the first 6 steps of our Rotate 2 dance, which we can also label as the 2i2idance.

Figure 3. Rotate 2 or 2ii dance

Step 1 (n=0)(n=0): Start at (0,0)(0,0) and move (2i)00!\frac{(2i)^0}{0!}. Direction = i0=+1i^0=+1 and distance = 200!=1\frac{2^0}{0!}=1. Since the direction is a positive real number, move in the direction of the positive real numbers, which moves right 1 unit from (0,0)(0,0) to (1,0)(1,0).

Step 2 (n=1)(n=1): From (1,0)(1,0), move (2i)11!\frac{(2i)^1}{1!}. Direction = i1=+ii^1=+i and distance 211!=2\frac{2^1}{1!}=2. Since the direction is a positive imaginary number, move in the direction of the positive imaginary numbers, which moves up 2 units from (1,0)(1,0) to (1,2i)(1,2i). Another way we can view this is the step (2i)11!\frac{(2i)^1}{1!} corresponds to the point (0,2i)(0,2i). So we can also identify our ending point by taking the ending point from Step 1 and point (0,2i)(0,2i). Thus, the sum of the points (1,0)(1,0) and (0,2i)(0,2i) is (1,2i)(1,2i).

Step 3 (n=2)(n=2): From (1,2i)(1,2i), move (2i)22!\frac{(2i)^2}{2!}. Direction =i2=1=i^2=-1 and distance =222!=2= \frac{2^2}{2!}=2. Since the direction is a negative real number, move in the direction of the negative real numbers, which moves left 2 units from (1,2i)(1,2i) to (1,2i)(-1,2i). Also, view step (2i)22!\frac{(2i)^2}{2!} as corresponding to the point (2,0)(-2,0). Identify our ending point by taking the ending point from Step 2 and adding (2,0)(-2,0). Thus, the sum of the points (1,2i)(1,2i) and (2,0)(-2,0) is (1,2i)(-1,2i).

Step 4 (n=3)(n=3): From (1,2i)(-1,2i), move (2i)33!\frac{(2i)^3}{3!}. Direction =i3=i=i^3=-i and distance =233!=1.333= \frac{2^3}{3!}=1.333. Since the direction is a negative imaginary number, move in the direction of the negative imaginary numbers, which moves down 1.333 units from (1,2i)(-1,2i) to (1,0.667i)(-1,0.667i). This is the same as summing the points (1,2i)(-1,2i) and (0,1.333i)(0,-1.333i) to get (1,0.667i)(-1,0.667i).

Step 5 (n=4)(n=4): From (1,0.667i)(-1,0.667i), move (2i)44!\frac{(2i)^4}{4!}. Direction =i4=+1=i^4=+1 and distance =244!=0.667= \frac{2^4}{4!}=0.667. Since the direction is a positive real number, move in the direction of the positive real numbers, which moves right 0.667 units from (1,0.667i)(-1,0.667i) to (0.333,0.667i)(-0.333,0.667i), or (1,0.667i)(-1,0.667i) + (0.667,0)=(0.333,0.667i)(0.667,0) = (-0.333,0.667i).

Step 6 (n=5)(n=5): From (0.333,0.667i)(-0.333,0.667i), move (2i)55!\frac{(2i)^5}{5!}. Direction =i5=i=i^5=i and distance =255!=0.267= \frac{2^5}{5!}=0.267. Since the direction is a positive imaginary number, move in the direction of the positive imaginary numbers, which moves up 0.267 units from (0.333,0.667i)(-0.333,0.667i) to (0.333,0.934i)(-0.333,0.934i), or (0.333,0.667i)+(0,0.267i)=(0.333,0.934i)(-0.333,0.667i) + (0,0.267i) = (-0.333,0.934i).

After an infinite number of steps in this pattern, finish at (0.416,0.909i)(-0.416,0.909i). This point is a point on the unit circle that is 2 radians from the positive real axis. We can write this as follows:

(2i)00!+(2i)11!+(2i)22!+(2i)33!+(2i)44!+(2i)55!+(2i)66!+=0.416+0.909i\frac{(2i)^0}{0!}+\frac{(2i)^1}{1!}+\frac{(2i)^2}{2!}+\frac{(2i)^3}{3!}+\frac{(2i)^4}{4!}+\frac{(2i)^5}{5!}+\frac{(2i)^6}{6!}+…=-0.416+0.909i

This rotate dance process should be familiar because it is the same math we did before. The only change we made is using the notation of an imaginary number and the complex plane. However, we followed the same logic we performed in the Rotate dance in the xyxy-coordinate system. It may not have felt like it before, but we were performing sophisticated math using the imaginary number in the complex plane. We thought we were just having a good time moving!

Certainly, the imaginary number is as “real” as any other notation we use in math since rotating 14\frac{1}{4} of a turn is a very real movement. Whether we label it as ii or “imaginary” is not important. What is important is that we have a solution for x2=1x^2=-1. As a by-product of this solution, we have the complex plane and an easy way to define distance and direction.

Does the imaginary number ii seem … real?

Connecting to the Rotate π dance

We have been dancing a lot, and we may be tired. However, all this work is preparing us for one of the major events in our math journey together. We have one final dance. Let’s review the Rotate π\pi dance, which we restate as the “πi\pi{i} ” dance in the complex plane. That means we assign x=πix=\pi{i} and we follow where the dance leads.

Notice the only change from the 2i2i dance is the distance measure changes from 2 to π\pi but the direction remains the same ii. That means Steps 1 and 5 move right, Steps 2 and 6 move up, Step 3 moves left, and Step 4 moves down.

Figure 4 illustrates the first 9 steps of the πi\pi{i} dance. Let’s calculate the first 6.

Figure 4. Rotate π\pi dance

Step 1 (n=0)(n=0): Start at (0,0)(0,0) and move (πi)00!\frac{(\pi{i})^0}{0!}. Direction =i0=+1=i^0=+1 and distance =π00!=1=\frac{\pi^0}{0!}=1. Move right 1 unit from (0,0)(0,0) to (1,0)(1,0).

Step 2 (n=1)(n=1): From (1,0)(1,0), move (πi)11!\frac{(\pi{i})^1}{1!}. Direction =i1=+i=i^1=+i and distance =π11!=π=\frac{\pi^1}{1!}=\pi. Move up π\pi units from (1,0)(1,0) to (1,πi)(1,πi).

Step 3 (n=2)(n=2): From (1,πi)(1,πi), move (πi)22!\frac{(\pi{i})^2}{2!}. Direction =i2=1=i^2=-1 and distance =π22!=4.935=\frac{\pi^2}{2!}=4.935. Move left 4.935 units from (1,πi)(1,πi) to (3.935,πi)(-3.935,πi).

Step 4 (n=3)(n=3): From (3.935,πi)(-3.935,πi), move (πi)33!\frac{(\pi{i})^3}{3!}. Direction =i3=1=i^3=-1 and distance =π33!=5.168=\frac{\pi^3}{3!}=5.168. Move down 5.168 units from (3.935,πi)(-3.935,πi) to (3.935,2.026i)(-3.935,-2.026i).

Step 5 (n=4)(n=4): From (3.935,2.026i)(-3.935,-2.026i), move (πi)44!\frac{(\pi{i})^4}{4!}. Direction =i4=+1=i^4=+1 and distance =π44!=4.059=\frac{\pi^4}{4!}=4.059. Move right 4.059 units from (3.935,2.026i)(-3.935,-2.026i) to (0.124,2.026i)(0.124,-2.026i).

Step 6 (n=5)(n=5): From (0.124,2.026i)(-0.124,-2.026i), move (πi)55!\frac{(\pi{i})^5}{5!}. Direction =i5=+i=i^5=+i and distance =π55!=2.550=\frac{\pi^5}{5!}=2.550. Move up 2.550 units from (0.124,2.026i)(-0.124,-2.026i) to (0.124,0.524i)(0.124,0.524i).

After 9 steps, we land on the point (0.976,0.075i)(-0.976,-0.075i).

Connecting to Euler's equation

After this entertaining dance goes to infinity, we finish at the point (1,0)(-1,0) or (1,0×i)(-1,0×i). We can write this point as the complex number 1+0i-1+0i, or just -1.

Let’s document our steps for the πi\pi{i} dance by using math notation. Because we finish at the point (1,0)(-1,0) after an infinite number of steps, we can equate all the infinite number of steps to the value where we finished, which is -1. Here is our movement, which includes distance (the real numbers) and direction (i)(i).

(πi)00!+(πi)11!+(πi)22!+(πi)33!+(πi)44!+(πi)55!+(πi)66!+..=1\frac{(\pi{i})^0}{0!}+\frac{(\pi{i})^1}{1!}+\frac{(\pi{i})^2}{2!}+\frac{(\pi{i})^3}{3!}+\frac{(\pi{i})^4}{4!}+\frac{(\pi{i})^5}{5!}+\frac{(\pi{i})^6}{6!}+..=-1

What is the left side of the equation? Notice the first term is (πi)00!\frac{(\pi{i})^0}{0!} and the second term is (πi)11!\frac{(\pi{i})^1}{1!}. That makes the nth term (πi)n1(n1)!\frac{(\pi{i})^{n-1}}{(n-1)!}. Remember if we have an infinite sum where the nth term is xn1(n1)!\frac{x^{n-1}}{(n-1)!}, then the sum of the infinite series is exe^x. In our πi\pi{i} dance, we have the same series where we set x=πix=\pi{i}. That means the sum of our infinite series equals eπi.e^{\pi{i}}. We know what the sum of this series equals. The sum equals -1. That leads us to the astonishing conclusion that eπi=1e^{πi}=-1. Or, we can rewrite it as eπi+1=0e^{πi}+1 = 0.

This equation is famous because it is beautiful, simple, surprising, and it connects maybe the two most interesting irrational numbers, ee and π\pi, with the imaginary number iiand the numbers 1 and 0. The numbers 1 and 0 are important as well. If we multiply any number by 1, we get that number, which is why we label 1 the multiplicative identity. Remember from our discussion of the primes, we identified how important 1 is as a multiplicative identity. Along the same lines, 0 is just as important a number as 1 because 0 is the identify for addition. In other words, if you add 0 to any number, the result remains the number you started with.

To be fair, those who know how the exponential process works know that it isn’t necessarily “special” that ee occurs in this equation because we could rewrite this equation using any other positive real number. From that perspective, ee is not special. However, for all the real numbers we could choose, ee produces the “cleanest” equation with the least clutter. Thus, from a beauty perspective, ee is special. Also, there are an infinite number of solutions to this equation based on the symmetry of a circle. Thus, we could also write e3πi+1=0e^{3πi}+1 = 0

With that said, the equation eπi+1=0e^{πi}+1 = 0 connects 5 of the most important and interesting numbers in math.

Reflecting on the journey

There is so much to enjoy in what we just uncovered. These are things I think about when I brush my teeth or take a walk. I can’t get over the image where I dance to the rule that the nth step is (πi)n1(n1)!\frac{(\pi{i})^{n-1}}{(n-1)!} and, despite how far I travel, I eventually return to circling around and landing on the unit circle. This magic happens every time we launch ii as an exponent. To me, that is the most interesting part of this equation.

Another neat story here is that ii was brought into the math world to solve an algebra problem. But later, it was modeled on a plane. In the process of solving an algebra problem through a simple definition, we created a wonderful way to create 14\frac{1}{4} turns on a plane. Now, engineers and other specialists highly rely on this feature for ii in the complex plane rather than using it as a solution to a polynomial. The neat thing about math is when things are created for one purpose but, in the long run, have tremendous value in other unforeseen purposes.

Notice the connection between the 14\frac{1}{4} rotation that results from multiplying by ii and the 12\frac{1}{2} turn we get from multiplying by 1-1. If we think of multiplying by 1-1 as a 12\frac{1}{2} rotation, then we can think of multiplying by ii as accomplishing the same thing but requiring 2 steps, or 2 iterations. Therefore, multiplying by ii is “halfway” to multiplying by -1, just like multiplying by -1 is “halfway” to multiplying by 1.

Once you get used to working with complex numbers, returning to only using real numbers feels restrictive and one-dimensional. Complex numbers bring room to rotate to a second dimension!

Why do people watch mysteries? It’s the surprise ending. We like the surprise, and we like it more if we can solve the mystery. But how many times are the surprises beautiful? Are you “solving” some of the mysteries we’ve unleashed so far?

Discover more in
:
Lazarus Math Part 3

  1. 30 min
    Prime Time Math
    Dave Kester Aug 15, 2022
  2. 50 min
    How Many Primes
    Dave Kester Aug 22, 2022
  3. 40 min
    Royal Families
    Dave Kester Aug 29, 2022
  4. 40 min
    Proof of Euler Product Formula
    Dave Kester Sep 5, 2022
  5. 50 min
    Imagination
    Dave Kester Sep 12, 2022
  6. 50 min
    Euler’s Beautiful Equation
    Dave Kester Sep 19, 2022
  7. 50 min
    Big Becomes Beautiful
    Dave Kester Sep 26, 2022
  8. 40 min
    Riemann and His Math
    Dave Kester Oct 3, 2022
  9. 60 min
    Rethinking New Treasures
    Dave Kester Oct 10, 2022
  10. 45 min
    Searching for the Why, Part 1
    Dave Kester Oct 17, 2022
  11. 50 min
    Searching for the Why, Part 2
    Dave Kester Oct 24, 2022
  12. 35 min
    Finding the Why
    Dave Kester Oct 31, 2022
  13. 40 min
    Bigger Stories
    Dave Kester Nov 7, 2022
  14. 40 min
    Revisiting the Means
    Dave Kester Nov 14, 2022
  15. 5 min
    Overflowing
    Dave Kester Nov 21, 2022