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

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.
[ Derivation
Although historically proved earlier, de Moivre's formula can easily be derived from Euler's formula

and the exponential law

Then, by Euler's formula,

[ 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

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}](/cgi-bin/wiki-image.mpl?image=http%3A%2F%2Fupload.wikimedia.org%2Fmath%2F9%2Fb%2F7%2F9b74fec2abba905c3154f0c4b8667945.png&site=wikipedia&host=http://en.wikipedia.org/)
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) + isin(0x) = 1 + i0 = 1, and (by convention) z0 = 1.
When n < 0, we consider a positive integer m such that n = −m. So

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 cosx and sinx, are real numbers, then the identity of these parts can be written (interchanging sides) as

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:

The right hand side of the formula for cos(nx) is in fact the value Tn(cosx) of the Chebyshev polynomial Tn at cosx.
[ Generalization
The formula is actually true in a more general setting than stated above: if z and w are complex numbers, then

is a multivalued function while

is not. Therefore one can state that
is one value of 
[ Applications
This formula can be used to find the nth roots of a complex number. If z is a complex number, written in polar form as

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]](/cgi-bin/wiki-image.mpl?image=http%3A%2F%2Fupload.wikimedia.org%2Fmath%2F9%2Ff%2F3%2F9f3fc2d5894ed834582447eaa1734d8c.png&site=wikipedia&host=http://en.wikipedia.org/)
where k is an integer, to get thee n different roots of z one only needs to consider values of k from 0 to n − 1.
[ See also
[ References
[ External links