Euler’s Formula and Complex Exponentials


Euler’s Formula and Complex Exponentials

Maria
Welcome back to Lockdown Math. Today we’re exploring Euler’s formula: exp of i times theta equals cosine theta plus i sine theta. It can look like a mysterious claim about raising a number to an imaginary power, so let’s make the statement more concrete before we decide what it means.

Simon
Start with the complex plane. A complex number on the unit circle sits one unit from the origin at some angle theta. Multiplying by that number rotates another complex number by theta. That simple geometric idea is hugely useful in mathematics, physics, and electrical engineering, where complex numbers describe rotations and waves.

Maria
The point on the unit circle at angle theta has real coordinate cosine theta and imaginary coordinate sine theta. So its complex number is cosine theta plus i sine theta. Euler’s formula says that this same point can be written exp of i theta, often written e to the i theta.

Simon
A famous special case comes from setting theta equal to pi. Halfway around the unit circle, cosine pi is negative one and sine pi is zero. So exp of i pi equals negative one, or, in the familiar notation, e to the i pi equals negative one. It’s a striking equation—but if you’re wondering what an imaginary exponent even means, that’s exactly the right question.

Maria
The key is to be careful about what exp of x means. People often imagine that e to the x means multiplying e by itself x times, and then try to extend that idea to fractions, negative numbers, and imaginary numbers. But that picture isn’t the definition we’ll use here. Instead, exp is defined by an infinite series.

Simon
The series is one plus x plus x squared over two, plus x cubed over six, plus x to the fourth over twenty-four, and so on. In general, exp of x is the sum of x to the n divided by n factorial, for n starting at zero. This is an infinite series, not a finite polynomial, and it gives us a way to make sense of inputs such as complex numbers.

Maria
For many inputs, the terms eventually get small because the factorial in the denominator grows rapidly. That means we can approximate the sum by keeping a manageable number of terms. A computer can do just that, but it’s useful to understand the recipe it’s calculating rather than treating the result as a black box.

Simon
Try x equals one. Every power of one is one, so exp of one is one plus one plus one over two plus one over six plus one over twenty-four, continuing forever. The series converges to about 2.71828. We call that value e.

Maria
So e isn’t being handed to us as a mysterious constant first and then used to define the whole function. We can define exp by its series, and then name its value at one: e equals exp of one. That gives us a connection between the series and the familiar constant.

Simon
For another example, exp of two begins one plus two plus two squared over two plus two cubed over six, continuing in the same pattern. You could work through the terms by hand, or write a short program that adds x to the n divided by n factorial for n from zero up to a sufficiently large number.

Maria
When you calculate examples, an important pattern appears: exp of a plus b equals exp of a multiplied by exp of b. Adding the inputs corresponds to multiplying the outputs. That rule isn’t obvious just from glancing at the series, but it’s central to why the notation involving powers makes sense for real inputs.

Simon
Let’s see what the rule alone tells us. Suppose a function f satisfies f of a plus b equals f of a times f of b for every a and b. For a nonzero function, we can deduce that f of zero is one: set b to zero, so f of a equals f of a times f of zero, and choose an a for which f of a is not zero.

Maria
Then f of five must equal f of one to the fifth, because five is one plus one plus one plus one plus one. Repeatedly applying the rule turns that sum in the input into five factors of f of one in the output.

Simon
And f of one-half must square to f of one. Apply the rule to one-half plus one-half: f of one-half times f of one-half equals f of one. In the usual real-valued setting where the square-root interpretation applies, that says f of one-half is a square root of f of one.

Maria
For negative one, combine negative one and one. The rule gives f of negative one times f of one equals f of zero, which is one for a function that isn’t identically zero. So f of negative one is one divided by f of one.

Simon
There’s an important exception: the function that is constantly zero also satisfies the original rule, but it does not have f of zero equal to one, and the reciprocal statement doesn’t apply. So the deductions we just made require that f isn’t the zero function. This is a nice reminder that a functional rule can have an exceptional case.

Maria
For exp, we can verify directly from the series that exp of zero is one: every term containing a positive power of zero vanishes, leaving just the constant term. And exp is certainly not constantly zero. So the special rule explains why, for real inputs, it is reasonable to write exp of x as e to the x: the value at one determines the values at whole-number inputs, and the rule extends naturally to other real inputs.

Simon
That extension involves some mathematical care. Moving from rational inputs to all real inputs uses continuity assumptions. The key idea for today is that the notation e to the x is shorthand for this exponential function, not a command to interpret every possible input as literal repeated multiplication.

Maria
That distinction matters even more with complex numbers, matrices, and other objects. You can plug a complex number into the series because its whole-number powers, division by factorials, and addition are defined. But you cannot get the imaginary unit just by adding one to itself or taking real-number fractions of one.

Simon
This series-based viewpoint is also useful for matrices and, in more advanced settings, operators used in quantum mechanics. Those inputs may seem nonsensical if you think only about a constant raised to a power. The series gives a way to define the exponential in terms of operations that can still make sense for those objects.

Maria
Before using a complex input, let’s review powers of i. By definition, i squared is negative one. Geometrically, multiplying by i rotates a complex number ninety degrees, because i has magnitude one and points straight up on the unit circle.

Simon
So the powers cycle: i to the zero is one, i to the first is i, i squared is negative one, and i cubed is negative i. Then i to the fourth is one again, and the cycle repeats. For integer powers, figuring out the result is a matter of locating the exponent in this cycle of four.

Maria
That works for negative exponents too. For instance, i to the negative one means one divided by i. It equals i cubed, because multiplying i by i cubed gives i to the fourth, which is one. So the cycle is not restricted to positive exponents.

Simon
Now plug i times theta into the series. We get one, then i theta, then i squared theta squared over two, then i cubed theta cubed over six, and so on. Each successive power of i rotates the direction of the next vector by ninety degrees, while the theta powers and factorials determine the lengths.

Maria
Take theta equal to one. The first vector points right and has length one; the next points up and has length one; the third points left with length one-half; the fourth points down with length one-sixth; and later vectors keep shrinking. Adding those vectors gives a spiral-like path toward a final point.

Simon
A computer can evaluate the same series with complex arithmetic. For example, plugging in i gives a real part of about 0.54 and an imaginary part of about 0.84. Those coordinates fit the claim that exp of i is the point on the unit circle at angle one radian.

Maria
That’s what Euler’s formula claims in general: exp of i theta lands on the unit circle at angle theta, with coordinates cosine theta and sine theta. The series itself makes the computation well-defined, but it doesn’t make the circular pattern obvious. The claim that all those rotating vectors sum to exactly that point is a substantive mathematical fact.

Simon
For theta equal to pi, the terms begin with a vector of one to the right, then a vector of length pi upward, then a vector of length pi squared over two to the left, and then a vector of length pi cubed over six downward. Later terms eventually shrink as the factorial denominators grow. Euler’s formula says that the whole infinite sum lands at negative one.

Maria
And for theta equal to three, the formula predicts a point three radians around the unit circle. Since pi radians takes you halfway around, three radians puts you close to the negative real direction, with a positive imaginary part. Numerically, exp of three i is about negative 0.99 plus 0.14i.

Simon
The surprising part is that the series’ terms change as theta increases, and more terms can matter before the factorials make them small. Yet the sum stays on the unit circle and moves around it. The lesson is pointing out that pattern; the proof of why it happens is still to come.

Maria
So what role does the number e play in the famous equation? The computation of exp of i pi comes directly from the series, using powers of i pi and factorials. The number 2.71828 itself does not appear as a separate ingredient in that calculation.

Simon
The careful way to connect the ideas is this: exp is the function defined by the series; e is its value at one; and for real inputs, the addition-to-multiplication property makes writing exp of x as e to the x reasonable. Euler’s formula describes what that same function does along imaginary inputs. The connection is real, but the two constants e and pi enter through different aspects of the function.

Maria
In particular, the imaginary-input behavior is periodic: increasing the input by 2 pi i brings you back to the same point. As theta changes, exp of i theta traces a circle, and after a full turn of 2 pi radians it returns to where it started. That periodic circular motion is part of the meaning behind Euler’s formula.

Simon
If you want to keep learning after this episode, try the series exercises. Expand exp of x times exp of y and describe the terms using powers of x and y divided by factorials. Then expand exp of x plus y using the binomial formula, and compare the terms to establish exp of x plus y equals exp of x times exp of y.

Maria
For a bonus, ask whether that identity continues to hold when x and y are complex numbers, or when they are matrices. The series lets you ask those questions, but you have to check what rules hold for the kinds of inputs you’re using.

Simon
And next time, we’ll look more closely at why the series follows a circle. That explanation brings in a little calculus. For now, remember the main perspective: Euler’s formula is not a meaningless convention about imaginary powers. It is a claim about a well-defined series and a beautiful pattern of circular motion.

Ask anything
We've read this whole study set, so questions about it get the best answers.