De Moivre's formula

From Wikipedia, the free encyclopedia
Jump to: navigation, search

In mathematics, de Moivre's formula (also known as de Moivre's theorem and de Moivre's identity), named after Abraham de Moivre, states that for any complex number (and, in particular, for any real number) x and integer n it holds that

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

where i is the imaginary unit (i2 = −1). While the formula was named after de Moivre, he never stated it in his works.[1] The expression cos x + i sin x is sometimes abbreviated to cis x.

The formula is important because it connects complex numbers and trigonometry. 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.

As written, the formula is not valid for non-integer powers n. However, there are generalizations of this formula valid for other exponents. These can be used to give explicit expressions for the nth roots of unity, that is, complex numbers z such that zn = 1.

Derivation from Euler's formula[edit]

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

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

and the exponential law for integer powers

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

Then, by Euler's formula,

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

A more elementary motivation of the theorem comes from calculating

\begin{align}(\cos x + i \sin x)^2 &= \cos^2 x + 2i\sin x \cos x - \sin^2 x = (\cos^2 x - \sin^2 x) + i(2 \sin x \cos x)\\
&= \cos(2x) + i \sin (2x)\end{align}

where the final equality follows from the trigonometric identities

\cos^2 x - \sin^2 x = \cos(2x)
2\sin x \cos x = \sin(2x) .

This proves the theorem for the case n = 2. Larger values of n correspond to trigonometric identities for the triple angle, quadruple angle, etc.

Proof by induction (for integer n)[edit]

The truth of de Moivre's theorem can be established by mathematical induction for natural numbers, and extended to all integers from there. For an integer n, call the following statement S(n):

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

For n > 0, we proceed by mathematical induction. S(1) is clearly true. For our hypothesis, we assume S(k) is true for some natural k. That is, we assume

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

Now, considering S(k+1):

    \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 \text{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 \text{by the trigonometric identities}

See angle sum and difference identities.

We deduce that S(k) implies S(k+1). By the principle of mathematical induction it follows that the result is true for all natural numbers. Now, S(0) is clearly true since cos (0x) + i sin(0x) = 1 +i 0 = 1. Finally, for the negative integer cases, we consider an exponent of -n for natural n.

     \left(\cos x + i\sin x\right)^{-n} & = \left[ \left(\cos x + i\sin x\right)^n \right]^{-1} \\
                                       & = \left[\cos (nx) + i\sin (nx)\right]^{-1} \\
                                       & = \cos(-nx) + i\sin (-nx). \qquad (*) \\

The equation (*) is a result of the identity z^{-1} = \frac{\bar{z}}{|z|^2}, for z = cos nx + i sin nx. Hence, S(n) holds for all integers n.

Formulae for cosine and sine individually[edit]

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 using binomial coefficients. This formula was given by 16th century French mathematician Franciscus Vieta:

\sin(nx) = \sum_{k=0}^n \binom{n}{k} \cos^kx\,\sin^{n-k}x\,\sin\left(\frac{1}{2}(n-k)\pi\right)
\cos(nx) = \sum_{k=0}^n \binom{n}{k} \cos^kx\,\sin^{n-k}x\,\cos\left(\frac{1}{2}(n-k)\pi\right).

In each of these two equations, the final trigonometric function equals one or minus one or zero, thus removing half the entries in each of the sums. These equations are in fact even valid for complex values of x, because both sides are entire (that is, holomorphic on the whole complex plane) functions of x, and two such functions that coincide on the real axis necessarily coincide everywhere. Here are the concrete instances of these equations for n = 2 and n = 3:

  \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.\\

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

Failure for non-integer powers, and generalization[edit]

De Moivre's formula does not hold for non-integer powers. The derivation of de Moivre's formula above involves a complex number raised to the integer power n. If a complex number is raised to a non-integer power, the result is multiple-valued (see failure of power and logarithm identities). For example, when n = ½, de Moivre's formula gives the following results:

for x = 0 the formula gives 1½ = 1, and
for x = 2π the formula gives 1½ = −1.

This assigns two different values for the same expression 1½, so the formula is not consistent in this case.

On the other hand, the values 1 and −1 are both square roots of 1. More generally, if z and w are complex numbers, then

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

is multi-valued while

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

is not. However, it is always the case that

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

is one value of

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

Roots of complex numbers[edit]

A modest extension of the version of de Moivre's formula given in this article can be used to find the nth roots of a complex number (equivalently, the (1/n)th power).

If z is a complex number, written in polar form as

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

then the n nth roots of z are given by

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

where k varies over the integer values from 0 to n − 1.

This formula is also sometimes known as de Moivre's formula.[2]

Analogues in other settings[edit]

Hyperbolic trigonometry[edit]

Since \cosh x + \sinh x = e^x, an analog to de Moivre's formula also applies to the hyperbolic trigonometry. For all n \in \mathbb{Z}, (\cosh x + \sinh x)^n = \cosh nx + \sinh nx. Also, if n \in \mathbb{Q}, then one value of (\cosh x + \sinh x)^n will be \cosh nx + \sinh nx.[3]


To find the roots of a quaternion there is an analogous form of de Moivre's formula. A quaternion in the form d + a\mathbf{\hat{i}} + b\mathbf{\hat{j}} + c\mathbf{\hat{k}} can be represented in the form q = k(\cos \theta + \epsilon \sin \theta) for 0 \leq \theta < 2 \pi. In this representation, k = \sqrt{d^2 + a^2 + b^2 + c^2}, and the trigonometric functions are defined as \cos \theta = \frac{d}{k} and \sin \theta = \pm \frac{\sqrt{a^2 + b^2 + c^2}}{k}. In the case that a^2 + b^2 + c^2 \neq 0, \epsilon = \pm \frac{a\mathbf{\hat{i}} + b\mathbf{\hat{j}} + c\mathbf{\hat{k}}}{\sqrt{a^2 + b^2 + c^2}} (the unit vector). This leads to the variation of De Moivre's formula:

q^n = k^n(\cos n \theta + \epsilon \sin n \theta)[4]


To find the cubic roots of Q = 1 + \mathbf{\hat{i}} +  \mathbf{\hat{j}}+ \mathbf{\hat{k}}, write the quaternion in the form

Q = 2(\cos 60^\circ + \epsilon \sin 60^\circ) \qquad \mathrm{where} \; \epsilon = \frac{\mathbf{\hat{i}} +  \mathbf{\hat{j}}+ \mathbf{\hat{k}}}{\sqrt{3}}

Then the cubic roots are given by q:

q = \sqrt[3]{2}(\cos \theta + \epsilon \sin \theta) \qquad  \theta = 20^\circ, 140^\circ, 260^\circ


  1. ^ Lial, Margaret L.; Hornsby, John; Schneider, David I.; Callie J., Daniels (2008). College Algebra and Trigonometry (4th ed.). Boston: Pearson/Addison Wesley. p. 792. ISBN 9780321497444. 
  2. ^ Hazewinkel, Michiel, ed. (2001), "De Moivre formula", Encyclopedia of Mathematics, Springer, ISBN 978-1-55608-010-4 
  3. ^ Mukhopadhyay, Utpal (August 2006). "Some interesting features of hyperbolic functions". Resonance 11 (8): 81–85. doi:10.1007/BF02855783. 
  4. ^ Brand, Louis (October 1942). "The roots of a quaternion". The American Mathematical Monthly 49 (8): 519–520. doi:10.2307/2302858. Retrieved 19 August 2012. 

External links[edit]