# Euler's Formula

In complex analysis, **Euler's formula** provides a fundamental bridge between the exponential function and the trigonometric functions. For complex numbers \( x \), Euler's formula says that

\[ e^{ix} = \cos{x} + i \sin{x}. \]

In addition to its role as a fundamental mathematical result, Euler's formula has numerous applications in physics and engineering.

#### Contents

## Proof of Euler's formula

A straightforward proof of Euler's formula can be had simply by equating the power series representations of the terms in the formula:

\[ \cos{x} = 1 - \frac{x^2}{2!} + \frac{x^4}{4!} - \cdots \]

and

\[ \sin{x} = x - \frac{x^3}{3!} + \frac{x^5}{5!} - \cdots, \]

so

\[ \begin{align*} \cos{x} + i \sin{x} &= 1 + ix - \frac{x^2}{2!} - i \frac{x^3}{3!} + \frac{x^4}{4!} - \cdots \\ &= 1 + ix + \frac{(ix)^2}{2!} + \frac{(ix)^3}{3!} + \frac{(ix)^4}{4!} + \cdots \\ &= e^{ix}. \end{align*} \]

Euler's formula.Suppose \( x \) is complex. Then\[ e^{ix} = \cos{x} + i \sin{x}. \]

Compute \( e^{i \pi} \).

\[ e^{i \pi} = \cos{\pi} + i \sin{\pi} = -1. \]

(Leading to the very famous

Euler's identity:\(e^{i \pi} + 1 = 0\))

Compute \( i^i \).

Recall that \(\forall k \in \mathbb{N}\) we have that : \[ \begin{align*} e^{i (\pi / 2+2\pi k)} &= i \\ \Rightarrow \left(e^{i (\pi / 2+2\pi k)}\right)^i &= i^i \end{align*} \]

Therefore

\[ i^i = e^{i^2 (\pi / 2+2\pi k)} = e^{- \pi / 2-2\pi k}. \]

\(\textbf{Note}\) : This means that \(i^i\) is not a well defined (unique) quantity. To remedy this, one needs to specify a branch cut. For example, we can define the argument of \(e^{i \theta}\) to be defined for : \(\theta \in [0, 2\pi)\), in which case, we have that : \(i^i = e^{-\pi / 2}\). That is, this forces \(k = 0\). Of course, different branch cut can be chosen yielding different values for \(k\).

## Geometric interpretation

Euler's formula allows for any complex number \( x \) to be represented as \( e^{ix} \), which sits on a unit circle with real and imaginary components \( \cos{x} \) and \( \sin{x} \), respectively. Various operations (such as finding the roots of unity) can then be viewed as rotations along the unit circle.

## Trigonometric applications

One immediate application of Euler's formula is to extend the definition of the trigonometric functions to allow for arguments that extend the range of the functions beyond what is allowed under the real numbers.

A couple useful results to have at hand are the facts that

\[ e^{-ix} = \cos{x} - i \sin{x}, \]

so

\[ e^{ix} + e^{-ix} = 2 \cos{x}. \]

It follows that

\[ \cos{x} = \frac{e^{ix} + e^{-ix}}{2} \]

and similarly

\[ \sin{x} = \frac{e^{ix} - e^{-ix}}{2i} \]

and

\[ \tan{x} = \frac{e^{ix} - e^{-ix}}{i(e^{ix} + e^{-ix})}. \]

Solve \( \cos{x} = 2 \) in the complex numbers.

Taking \( \cos{x} = \frac{e^{ix} + e^{-ix}}{2} \) yields \[ \begin{align*} e^{ix}+e^{-ix} &= 4 \\ \left(e^{ix}\right)^2-4e^{ix}+1 &= 0 \\ e^{ix} &= 2\pm \sqrt{3} \\ x &= -i \ln(2\pm \sqrt{3}). \end{align*} \]

Euler’s formula also allows for the derivation of several trigonometric identities quite easily. Starting with

\[ e^{i(x \pm y)} = \cos(x \pm y) + i \sin(x \pm y), \]

one finds

\[\begin{align*} e^{i(x \pm y)} &= e^{ix} e^{\pm iy} \\ &= (\cos{x} + i\sin{x})(\cos{y} \pm i \sin{y}) \\ &= \cos{x} \cos{y} \mp \sin{x} \sin{y} + i(\sin{x} \cos{y} \pm \cos{x} \sin{y}). \end{align*} \]

Equating the real and imaginary parts, respectively, yields the familiar sum and difference formulas

\[ \cos(x \pm y) = \cos{x} \cos{y} \mp \sin{x} \sin{y} \]

and

\[ \sin(x \pm y) = \sin{x} \cos{y} \pm \cos{x} \sin{y}. \]

## De Moivre's theorem

An important corollary of Euler's theorem is de Moivre's theorem.

de Moivre's theorem.\[ (\cos{x} + i \sin x)^\phi = \cos{\phi x} + i \sin{\phi x} \]

\[ (\cos{x} + i \sin x)^\phi = e^{ix\phi} = e^{i(\phi x)} = \cos{\phi x} + i \sin{\phi x} \]

De Moivre's theorem has many applications. As an example, one may wish to compute the *roots of unity*, or the complex solution set to the equation \( x^n = 1 \) for integer \( n \). Notice that \( e^{2\pi ki} \) is always equal to \( 1 \) for \( k \) an integer, so the \( n \)th roots of unity must be

\[ e^{2\pi ki / n} = \cos(2\pi k / n) + i \sin(2 \pi k / n). \]

This process is akin to dividing the unit circle up into \( n \) equally spaced wedges.

Find the cube roots of unity.

The cube roots of unity are

- \( \cos\left(\frac{2 \pi }{3}\right) + i \sin\left(\frac{2 \pi }{3}\right) = -\frac{1}{2} + i \frac{\sqrt{3}}{2} \)
- \( \cos\left(\frac{4 \pi }{3}\right) + i \sin\left(\frac{4 \pi }{3}\right) = -\frac{1}{2} - i \frac{\sqrt{3}}{2} \)
- \( \cos\left(\frac{6 \pi }{3}\right) + i \sin\left(\frac{6 \pi }{3}\right) = 1 \)