Leonhard Euler (15 April 1707 – 18 September 1783) was a Swiss mathematician, who is considered to be one the greatest mathematicians of all time. He is also considered to be the most prolific mathematician ever, who wrote more than 500 books and papers during his lifetime, filling more than 90 volumes, comprising of over 25000 pages!

It would be impossible for us to pick out his most important work, but one of his most celebrated results is -

$$e^{i\theta} = \cos{\theta} + i \sin{\theta},$$

where $i = \sqrt{-1}$. This formula is known as the Euler's Formula. In his famous *Feynman Lectures on Physics*, Richard Feynman called it "the most remarkable formula in mathematics".

There are many ways in which this formula can be obtained. One of the simpler ways is to expand the right hand side as a power series in $\theta$, and then a simple rearrangement of terms will lead to a power series, which turns out to be equal to the power series expansion of the left hand side. In this article we are going to see another way to obtain this formula that doesn't use the power series method.

# Deriving Euler's Formula

Imagine that there is a point $P$ in a plane, represented by the coordinates in the Cartesian system as -

We can use basic trigonometry to write the coordinates of $P$ as,

$$\begin{aligned}x = r \cos{\theta}, \\ y = r \sin{\theta}.\end{aligned}$$

From these equations, we can easily obtain the following -

$$\frac{y}{x} = \frac{r\sin{\theta}}{r\cos{\theta}} = \tan{\theta} ~~~ \Longrightarrow ~~~ \theta = \tan^{-1}\left(\frac{y}{x} \right)$$

Now, we differentiate this equation as,

$$\begin{aligned}d\theta = d \left[\tan^{-1}\left( \frac{y}{x}\right)\right] &= \frac{1}{1+(y/x)^2} \cdot d\left(\frac{y}{x}\right) \\ &= \frac{1}{1+(y/x)^2} \cdot \frac{x \cdot dy - y \cdot dx}{x^2} \\ &= \frac{x \cdot dy - y \cdot dx}{x^2+y^2}\end{aligned}$$

Since we know that $i = \sqrt{-1}$ or $i^2=-1$, we can factorize the denominator as,

$$(x^2+y^2) = (x+iy)(x-iy),$$

and we get -

$$d\theta = \frac{x \cdot dy - y \cdot dx}{(x+iy)(x-iy)}.$$

We can separate the terms in the numerator, and write this as,

$$d\theta = \frac{x \cdot dy }{(x+iy)(x-iy)} - \frac{y \cdot dx}{(x+iy)(x-iy)}.$$

A further simplification can be achieved by using the method of partial fractions. Let us decompose the first term as,

$$\frac{x \cdot dy }{(x+iy)(x-iy)} = \frac{A\cdot dy}{x+iy} + \frac{B\cdot dy}{x-iy}$$

A simple algebraic manipulation will give us the following equation -

$$\begin{aligned}x\cdot dy &= A(x-iy)\cdot dy + B(x+iy)\cdot dy \\ &= (A + B) \cdot x\cdot dy + (iB - iA) \cdot y \cdot dy\end{aligned}$$

By comparing the coefficients of $x$ and $y$ on both sides, we get the following conditions-

$$\begin{aligned} B+A = 1 \\ B-A =0\end{aligned}$$

which gives us -

$$A=B=1/2$$

Similarly, we can write -

$$\frac{y \cdot dx }{(x+iy)(x-iy)} = \frac{C\cdot dx}{x+iy} + \frac{D\cdot dx}{x-iy}$$

from which we get -

$$\begin{aligned}y\cdot dx &= C(x-iy)\cdot dx + D(x+iy)\cdot dx \\ &= (C + D) \cdot x\cdot dx + (iD - iC) \cdot y \cdot dx\end{aligned}$$

Upon comparing the coefficients of $x$ and $y$, we would obtain -

$$C = i/2 \text{ and } D= -i/2$$

Therefore, using these values, the original equation becomes -

$$d\theta = \frac{1/2 \cdot dy}{x+iy} + \frac{1/2 \cdot dy}{x-iy} - \frac{i/2 \cdot dx}{x+iy} + \frac{i/2 \cdot dx}{x-iy}$$

This form has the advantage that all the terms in the denominator are linear.

We can now multiply both sides by $2i$, and collect terms with same denominators to get -

$$\begin{aligned}2i\cdot d\theta &= \frac{dx + idy}{x+iy} - \frac{dx - idy}{x-iy} \\ &= \frac{d(x + iy)}{x+iy} - \frac{d(x - iy)}{x-iy} \end{aligned}$$

We now integrate this equation, and obtain the following result -

$$\begin{aligned} &~~~~~~ \int 2i\cdot d\theta = \int \frac{d(x + iy)}{x+iy} - \int \frac{d(x - iy)}{x-iy} \\ &\Rightarrow 2i\cdot \theta = \ln{(x+iy)} - \ln{(x-iy)} + const\end{aligned}$$

By looking at the following diagram,

we can see that when $y \to 0$, we have $\theta \to 0$. This means that we can use this condition to obtain the integration constant as,

$$0 = \ln{(x)} - \ln{(x)} + const ~~~ \Rightarrow const = 0$$

So, the final result becomes -

$$\begin{aligned}2i\cdot \theta &= \ln{(x+iy)} - \ln{(x-iy)} \\ &= \ln{\frac{x+iy}{x-iy}}\end{aligned}$$

In terms of exponential function, this can be re-written as,

$$e^{2i\theta} = \frac{x+iy}{x-iy}$$

On the right hand side, we can multiply the numerator and the denominator by $(x+iy)$, to get -

$$e^{2i\theta} = \frac{(x+iy)^2}{x^2 + y^2}.$$

Again, from the diagram it is clear that -

$$r^2 = x^2 + y^2,$$

so that we have -

$$e^{2i\theta} = \frac{(x+iy)^2}{r^2}.$$

Next, we take the square root on both sides, to get -

$$e^{i\theta} = \frac{(x+iy)}{r} = \frac{x}{r} + i \cdot \frac{y}{r}$$

Finally, with the help of the diagram, we use trigonometry to arrive at the required result -

$$e^{i\theta} = \cos{\theta} + i \sin{\theta}$$

We do not claim that this method of deriving Euler's formula is among the simplest ones, but it certainly highlights the usefulness of the methods of calculus and partial fractions.

**Subscribe to the newsletter to receive more stories mailed directly to your inbox**