De Moivre's formula

De Moivre's formula, named after Abraham de Moivre, states that for any complex number (and, in particular, for any real number) x and any integer n it holds that

\left(\cos x+i\sin x\right)^n=\cos\left(nx\right)+i\sin\left(nx\right).\,

The formula is important because it connects complex numbers (i stands for the imaginary unit) and trigonometry. The expression "cos x + i sin x" is sometimes abbreviated to "cis x".

By expanding the left hand side and then comparing the real and imaginary parts under the assumption that x is real, it is possible to derive useful expressions for cos(nx) and sin(nx) in terms of cos(x) and sin(x). Furthermore, one can use this formula to find explicit expressions for the n-th roots of unity, that is, complex numbers z such that zn = 1.

Contents

Derivation

Although historically proved earlier, de Moivre's formula can easily be derived from Euler's formula

e^{ix} = \cos x + i\sin x\,

and the exponential law

\left( e^{ix} \right)^n = e^{inx} .\,

Then, by Euler's formula,

e^{i(nx)} = \cos(nx) + i\sin(nx).\,

Proof by induction

We consider three cases.

For n > 0, we proceed by mathematical induction. When n = 1, the result is clearly true. For our hypothesis, we assume the result is true for some positive integer k. That is, we assume

\left(\cos x + i \sin x\right)^k = \cos\left(kx\right) + i \sin\left(kx\right). \,

Now, considering the case n = k + 1:


\begin{alignat}{2}
    \left(\cos x+i\sin x\right)^{k+1} & = \left(\cos x+i\sin x\right)^{k} \left(\cos x+i\sin x\right)\\
                                      & = \left[\cos\left(kx\right) + i\sin\left(kx\right)\right] \left(\cos x+i\sin x\right) &&\qquad \mbox{by the induction hypothesis}\\
                                      & = \cos \left(kx\right) \cos x - \sin \left(kx\right) \sin x + i \left[\cos \left(kx\right) \sin x + \sin \left(kx\right) \cos x\right]\\
                                      & = \cos \left[ \left(k+1\right) x \right] + i\sin \left[ \left(k+1\right) x \right] &&\qquad \mbox{by the trigonometric identities}
\end{alignat}

We deduce that the result is true for n = k + 1 when it is true for n = k. By the principle of mathematical induction it follows that the result is true for all positive integers n≥1.

When n = 0 the formula is true since \cos (0x) + i\sin (0x) = 1 + i0 = 1, and (by convention) z^0 = 1.

When n < 0, we consider a positive integer m such that n = −m. So


\begin{align}
     \left(\cos x + i\sin x\right)^{n} & = \left(\cos x + i\sin x\right)^{-m}\\
                                       & = \frac{1}{\left(\cos x + i\sin x\right)^{m}}\\
                                       & = \frac{1}{\left(\cos mx + i\sin mx\right)}\\
                                       & = \cos\left(mx\right) - i\sin\left(mx\right)\\
                                       & = \cos\left(-mx\right) + i\sin\left(-mx\right)\\
                                       & = \cos\left(nx\right) + i\sin\left(nx\right).
\end{align}

Hence, the theorem is true for all integer values of n.

Formulas for cosine and sine individually

Being an equality of complex numbers, one necessarily has equality both of the real parts and of the imaginary parts of both members of the equation. If x, and therefore also \cos x and \sin x, are real numbers, then the identity of these parts can be written (interchanging sides) as

\begin{alignat}2
  \cos(nx)&=\sum_{k=0}^{\lfloor n/2\rfloor}{\tbinom{n}{2k}}(-1)^k(\cos{x})^{n-2k}(\sin{x})^{2k}& &=\sum_{k=0}^{\lfloor n/2\rfloor}{\tbinom{n}{2k}}(\cos{x})^{n-2k}((\cos{x})^2-1)^k\\
  \sin(nx)&=\sum_{k=0}^{\lfloor (n-1)/2\rfloor}{\tbinom{n}{2k+1}}(-1)^k(\cos{x})^{n-2k-1}(\sin{x})^{2k+1}& &=(\sin{x})\sum_{k=0}^{\lfloor(n-1)/2\rfloor}{\tbinom{n}{2k+1}}(\cos{x})^{n-2k-1}((\cos{x})^2-1)^k.\\
\end{alignat}

These equations are in fact even valid for complex values of x, because both sides are holomorphic functions of x, and two such functions that coincide on the real axis necessarily coincide on the whole complex plane. Here are the concretre instances of these equations for n=2 and n=3:

\begin{alignat}2
  \cos(2x) &= (\cos{x})^2 +((\cos{x})^2-1) &&= 2(\cos{x})^2-1\\
  \sin(2x) &= 2(\sin{x})(\cos{x})\\
  \cos(3x) &= (\cos{x})^3 +3\cos{x}((\cos{x})^2-1) &&= 4(\cos{x})^3-3\cos{x}\\
  \sin(3x) &= 3(\cos{x})^2(\sin{x})-(\sin{x})^3 &&= 3\sin{x}-4(\sin{x})^3.\\
\end{alignat}

The right hand side of the formula for \cos(nx) is in fact the value T_n(\cos x) of the Chebyshev polynomial T_n at \cos x.

Generalization

The formula is actually true in a more general setting than stated above: if z and w are complex numbers, then

\left(\cos z + i\sin z\right)^w

is a multivalued function while

\cos (wz) + i \sin (wz)\,

is not. Therefore one can state that

\cos (wz) + i \sin (wz) \,     is one value of     \left(\cos z + i\sin z\right)^w.\,
A plot on the complex plane of the cube roots of 1.

Applications

This formula can be used to find the n^{th} roots of a complex number. If z is a complex number, written in polar form as

z=r\left(\cos x+i\sin x\right),\,

then


z^{{}^{\frac{1}{n}}}= \left[ r\left( \cos x+i\sin x \right) \right]^ {{}^{\frac{1}{n}}}= r^{{}^{\frac{1}{n}}} \left[ \cos \left( \frac{x+2k\pi}{n} \right) + i\sin \left( \frac{x+2k\pi}{n} \right) \right]

where k is an integer, to get the n different roots of z one only needs to consider values of k from 0 to n-1.

See also

References

External links