You are here

Euler’s formula

20 January, 2016 - 10:05

Having expanded our horizons to include the complex numbers, it’s natural to want to extend functions we knew and loved from the world of real numbers so that they can also operate on complex numbers. The only really natural way to do this in general is to use Taylor series. A particularly beautiful thing happens with the functions e^{x}, sin x, and cos x:
\begin{align*} e^{x}&=1+\frac{1}{2!}x^{2}+\frac{1}{3!}x^{3}+ ... \\cosx&=1-\frac{1}{2!}x^{2}+\frac{1}{4!}x^{4}- ... \\sinx&=x-\frac{1}{3!}x^{3}+\frac{1}{5!}x^{5}- ... \end{align*}

If x= is an imaginary number, we have

e^{i\o } = cos φ+ i sin φ   ,

a result known as Euler’s formula. The geometrical interpretation in the complex plane is shown in figure f.

media/image3.png
Figure 8.6
Figure 8.7 f / The complex number ei φ lies on the unit circle. 

Although the result may seem like something out of a freak show at first, applying the definition 1 of the exponential function makes it clear how natural it is:
e^{x}=_{n\rightarrow \infty }^{lim}(1+\frac{x}{n})^{n}

When x= is imaginary, the quantity (1 + i φ /n) represents a number lying just above 1 in the complex plane. For large n, (1 + i φ /n) becomes very close to the unit circle, and its argument is the small angle φ / n. Raising this number to the nth power multiplies its argument by n, giving a number with an argument of φ.

media/image4.png
Figure 8.8
 
Figure 8.9 g / Leonhard Euler (1707-1783) 

Euler's formula is used frequently in physics and engineering.

Example 90

Write the sine and cosine functions in terms of exponentials.

Euler’s formula for x= iφ gives cosφ-i sinφ, since cos(-\theta) = cos\theta , and sin(-\theta) = - sin\theta .

cosX=\frac{e^{ix}+e^{-ix}}{2}sinX=\frac{e^{ix}+e^{-ix}}{2i}

Example 91

Evaluate

\int e^{x}cosxdxProblem 5.15 suggested a special-purpose trick for doing this integral. An approach that doesn’t rely on tricks is to rewrite the cosine in terms of exponentials:
\int e^{x}(\frac{e^{ix}+e^{-ix}}{2})dx\frac{1}{2}\int (e^{(1+i)x}+e^{(1-i)x})dx\frac{1}{2}\ (\frac{e^{(1+i)x}}{1+i}+\frac{e^{(1-i)x}}{1-i})+c

  Since this result is the integral of a real-valued function, we’d like it to be real, and in fact it is, since the first and second terms are complex conjugates of one another. If we wanted to, we could use Euler’s theorem to convert it back to a manifestly real result. 2

Example 92

Euler found the equation

\pi =20tan^{-1}\frac{1}{7}+8tan^{-1}\frac{3}{79}

which allowed the computation of π to high precision in the era before elec- tronic calculators, since the Taylor series for the inverse tangent converges rapidly for small inputs. A cute way of proving the validity of the equation is to calculate

(7+i)^{20}(79+3i)^{8}

as follows in Yacas:

(7+I)^20*(79+3*I)^8;

-1490116119384765625

00000000000000

The fact that it is purely real, and has a negative real part, demonstrates that the quantity on the right side of the original equation equals π + 2πn, where nis an integer. Numerical estimation shows that n= 0. Although the proof was straightforward, it provides zero insight into how Euler figured it out in the first place!