In mathematics, de Moivre's formula (also known as de Moivre's theorem and de Moivre's identity) states that for any real number and integer it holds that
(\cosx+i\sinx)n=\cosnx+i\sinnx,
where is the imaginary unit . The formula is named after Abraham de Moivre, although he never stated it in his works.[1] The expression is sometimes abbreviated to .
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 is real, it is possible to derive useful expressions for and in terms of and .
As written, the formula is not valid for non-integer powers . However, there are generalizations of this formula valid for other exponents. These can be used to give explicit expressions for the th roots of unity, that is, complex numbers such that .
Using the standard extensions of the sine and cosine functions to complex numbers, the formula is valid even when is an arbitrary complex number.
For
x=30\circ
n=2
De Moivre's formula is a precursor to Euler's formulawith expressed in radians rather than degrees, which establishes the fundamental relationship between the trigonometric functions and the complex exponential function.
One can derive de Moivre's formula using Euler's formula and the exponential law for integer powers
\left(eix\right)n=einx,
since Euler's formula implies that the left side is equal to
\left(\cosx+i\sinx\right)n
\cosnx+i\sinnx.
The truth of de Moivre's theorem can be established by using mathematical induction for natural numbers, and extended to all integers from there. For an integer, call the following statement :
(\cosx+i\sinx)n=\cosnx+i\sinnx.
For, we proceed by mathematical induction. is clearly true. For our hypothesis, we assume is true for some natural . That is, we assume
\left(\cosx+i\sinx\right)k=\coskx+i\sinkx.
Now, considering :
\begin{alignat}{2} \left(\cosx+i\sinx\right)k+1&=\left(\cosx+i\sinx\right)k\left(\cosx+i\sinx\right)\\ &=\left(\coskx+i\sinkx\right)\left(\cosx+i\sinx\right)&& bytheinductionhypothesis\\ &=\coskx\cosx-\sinkx\sinx+i\left(\coskx\sinx+\sinkx\cosx\right)\\ &=\cos((k+1)x)+i\sin((k+1)x)&& bythetrigonometricidentities \end{alignat}
See angle sum and difference identities.
We deduce that implies . By the principle of mathematical induction it follows that the result is true for all natural numbers. Now, is clearly true since . Finally, for the negative integer cases, we consider an exponent of for natural .
\begin{align} \left(\cosx+i\sinx\right)-n&=(\left(\cosx+i\sinx\right)n)-1\\ &=\left(\cosnx+i\sinnx\right)-1\\ &=\cosnx-i\sinnx (*)\\ &=\cos(-nx)+i\sin(-nx).\\ \end{align}
z-1=
\barz | |
|z|2 |
,
See also: List of trigonometric identities. For 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, and therefore also and, are real numbers, then the identity of these parts can be written using binomial coefficients. This formula was given by 16th century French mathematician François Viète:
\begin{align} \sinnx&=
n | |
\sum | |
k=0 |
\binom{n}{k}(\cosx)k(\sinx)n-k\sin
(n-k)\pi | |
2 |
\\ \cosnx&=
n | |
\sum | |
k=0 |
\binom{n}{k}(\cosx)k(\sinx)n-k\cos
(n-k)\pi | |
2 |
. \end{align}
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 valid even for complex values of, because both sides are entire (that is, holomorphic on the whole complex plane) functions of, and two such functions that coincide on the real axis necessarily coincide everywhere. Here are the concrete instances of these equations for and :
\begin{alignat}{2} \cos2x&=\left(\cosx\right)2+\left(\left(\cosx\right)2-1\right)&{}={}&2\left(\cosx\right)2-1\\ \sin2x&=2\left(\sinx\right)\left(\cosx\right)&&\\ \cos3x&=\left(\cosx\right)3+3\cosx\left(\left(\cosx\right)2-1\right)&{}={}&4\left(\cosx\right)3-3\cosx\\ \sin3x&=3\left(\cosx\right)2\left(\sinx\right)-\left(\sinx\right)3&{}={}&3\sinx-4\left(\sinx\right)3. \end{alignat}
The right-hand side of the formula for is in fact the value of the Chebyshev polynomial at .
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 . If a complex number is raised to a non-integer power, the result is multiple-valued (see failure of power and logarithm identities).
A modest extension of the version of de Moivre's formula given in this article can be used to find the -th roots of a complex number for a non-zero integer . (This is equivalent to raising to a power of).
If is a complex number, written in polar form as
z=r\left(\cosx+i\sinx\right),
then the -th roots of are given by
| ||||
r |
\cos
x+2\pik | |
n |
+i\sin
x+2\pik | |
n |
\right)
where varies over the integer values from 0 to .
This formula is also sometimes known as de Moivre's formula.
Generally, if
z=r\left(\cosx+i\sinx\right)
Since, an analog to de Moivre's formula also applies to the hyperbolic trigonometry. For all integers,
(\coshx+\sinhx)n=\coshnx+\sinhnx.
If is a rational number (but not necessarily an integer), then will be one of the values of .[2]
For any integer, the formula holds for any complex number
z=x+iy
(\cosz+i\sinz)n=\cos{nz}+i\sin{nz}.
\begin{align}\cosz=\cos(x+iy)&=\cosx\coshy-i\sinx\sinhy,\\ \sinz=\sin(x+iy)&=\sinx\coshy+i\cosx\sinhy.\end{align}
To find the roots of a quaternion there is an analogous form of de Moivre's formula. A quaternion in the form
d+a\hati+b\hatj+c\hatk
q=k(\cos\theta+\varepsilon\sin\theta) for0\leq\theta<2\pi.
k=\sqrt{d2+a2+b2+c2},
\cos\theta=
d | |
k |
and \sin\theta=\pm
\sqrt{a2+b2+c2 | |
\varepsilon=\pm
a\hati+b\hatj+c\hatk | |
\sqrt{a2+b2+c2 |
qn=kn(\cosn\theta+\varepsilon\sinn\theta).
To find the cube roots of
Q=1+\hati+\hatj+\hatk,
Q=2\left(\cos
\pi | |
3 |
+\varepsilon\sin
\pi | |
3 |
\right) where\varepsilon=
\hati+\hatj+\hatk | |
\sqrt3 |
.
\sqrt[3]{Q}=\sqrt[3]{2}(\cos\theta+\varepsilon\sin\theta) for\theta=
\pi | |
9 |
,
7\pi | |
9 |
,
13\pi | |
9 |
.
With matrices,
\begin{pmatrix}\cos\phi&-\sin\phi\ \sin\phi&\cos\phi\end{pmatrix}n=\begin{pmatrix}\cosn\phi&-\sinn\phi\ \sinn\phi&\cosn\phi\end{pmatrix}
\begin{pmatrix}a&-b\ b&a\end{pmatrix}