# Euler's Formula for Complex Numbers

*(There is another "Euler's Formula" about Geometry,
this page is about the one used in Complex Numbers)*

First, you may have seen the famous "Euler's Identity":

*e*^{iπ} + 1 = 0

It seems absolutely magical that such a neat equation combines:

(Euler's Number)*e*(the unit imaginary number)*i*- π (the famous number pi that turns up in many interesting areas)
- 1 (the first counting number)
- 0 (zero)

And also has the basic operations of add, multiply, and an exponent too!

But if you want to take an interesting trip through mathematics, you will discover how it comes about.

Interested? Read on!

## Discovery

It was around 1740, and mathematicians were interested in imaginary numbers.

An imaginary number, when squared gives a negative result

This is normally impossible (try squaring any number, remembering that multiplying negatives gives a positive), but just imagine that you can do it, call it * i* for imaginary, and see where it carries you:

*i*^{2} = −1

Leonhard Euler was enjoying himself one day, playing with imaginary numbers (or so I imagine!), and he took this Taylor Series which was already known:

*e*^{x} = 1 + x + \frac{x^{2}}{2!} + \frac{x^{3}}{3!} + \frac{x^{4}}{4!} + \frac{x^{5}}{5!} + ...

And he put * i* into it:

*e*^{ix} = 1 + ix + \frac{(ix)^{2}}{2!} + \frac{(ix)^{3}}{3!} + \frac{(ix)^{4}}{4!} + \frac{(ix)^{5}}{5!} + ...

And because **i ^{2} = −1**, it simplifies to:

*e*^{ix} = 1 + ix − \frac{x^{2}}{2!} − \frac{ix^{3}}{3!} + \frac{x^{4}}{4!} + \frac{ix^{5}}{5!} − ...

Now group all the * i* terms at the end:

*e*^{ix} = ( 1 − \frac{x^{2}}{2!} + \frac{x^{4}}{4!} − ... ) + i( x − \frac{x^{3}}{3!} + \frac{x^{5}}{5!} − ... )

And here is the miracle ... the two groups are quite neatly the Taylor Series for **cos** and **sin**

cos x = 1 − \frac{x^{2}}{2!} + \frac{x^{4}}{4!} − ... |

sin x = x − \frac{x^{3}}{3!} + \frac{x^{5}}{5!} − ... |

And so it simplifies to:

*e*^{ix} = cos x + * i* sin x

He must have been so happy when he discovered this!

And it is now called **Euler's Formula**.

Let's give it a try:

### Example: when x = 1.1

*e*

^{ix}= cos x +

*sin x*

**i***e*

^{1.1i}= cos 1.1 +

*sin 1.1*

**i***e*

^{1.1i}= 0.45 + 0.89

*(to 2 decimals)*

**i**Note: we are using radians, not degrees.

The answer is a combination of a Real and an Imaginary Number, which together is called a Complex Number.

We can plot such a number on the complex plane (the real numbers go left-right, and the imaginary numbers go up-down):

Here we show the number **0.45 + 0.89 i**

Which is the same as

*e*^{1.1i}Let's plot some more!

## A Circle!

Yes, putting Euler's Formula on that graph produces a circle:

**e**** ^{ix}** produces a circle of radius 1

Include a radius of **r** and we can turn any point (such as **3 + 4i**) into **re**** ^{ix}** form (by finding the correct value of

**x**and

**r**)

### Example: the number **3 + 4i**

To turn **3 + 4i** into **re**** ^{ix}** form we do a Cartesian to Polar conversion:

- r = √(3
^{2}+ 4^{2}) = √(9+16) = √25 =**5** - x = tan
^{-1}( 4 / 3 ) =**0.927**(to 3 decimals)

So **3 + 4i** can also be **5 e^{0.927 i}**

## It is Another Form

It is basically another way of having a complex number.

This turns out to very useful, as there are many cases (such as multiplication) where it is easier to use the **re**** ^{ix}** form rather than the

**a+bi**form.

*Plotting e*^{iπ}

Lastly, when we calculate Euler's Formula for x = π we get:

*e*

^{iπ}= cos π +

*sin π*

**i***e*

^{iπ}= −1 +

*× 0*

**i***(because cos π = −1 and sin π = 0)*

*e*

^{iπ}= −1

And here is the point created by *e*^{iπ} (where our discussion began):

And **e**** ^{iπ} = −1** can be rearranged into:

*e*^{iπ} + 1 = 0