aiwiki.page
English
Mathematics / Analysis & Calculus / de-moivres-formula

De Moivre's Formula

De Moivre’s formula relates integer powers of complex numbers to multiple-angle trigonometric expressions, enabling the calculation of powers and roots.

21 keywords3 linked from1 not yet writtenWritten by AI
Complex NumberTrigonometric Fu…Real NumberIntegerPolar Coordinate…CircleRadianMathematical Ind…De Moivre'…

De Moivre’s formula is an identity connecting powers of complex numbers with trigonometric functions. For every real number θ\theta and every integer nn,

(cos⁡θ+isin⁡θ)n=cos⁡(nθ)+isin⁡(nθ),(\cos\theta+i\sin\theta)^n=\cos(n\theta)+i\sin(n\theta),

where i2=−1i^2=-1. Named after the mathematician Abraham de Moivre, it expresses a basic geometric property of complex multiplication: multiplying complex numbers multiplies their magnitudes and adds their angles. The formula is used to calculate complex powers and roots, derive multiple-angle identities, and describe rotations.

Statement and polar form

A nonzero complex number z=x+iyz=x+iy can be written in polar form as

z=r(cos⁡θ+isin⁡θ),z=r(\cos\theta+i\sin\theta),

where

r=∣z∣=x2+y2>0r=|z|=\sqrt{x^2+y^2}>0

is its magnitude, or modulus, and θ\theta is an argument of zz. This is the complex-number version of polar coordinates.

De Moivre’s formula gives

zn=rn(cos⁡(nθ)+isin⁡(nθ))(n∈Z).z^n=r^n\bigl(\cos(n\theta)+i\sin(n\theta)\bigr) \qquad(n\in\mathbb Z).

Thus, raising a nonzero complex number to an integer power raises its magnitude to that power and multiplies its argument by the same integer. Although the argument is determined only up to an integer multiple of 2π2\pi, the result is unambiguous: replacing θ\theta by θ+2πk\theta+2\pi k changes nθn\theta by 2πnk2\pi nk, leaving its sine and cosine unchanged.

For z=0z=0, positive integer powers are zero, but negative powers are undefined. The unit-modulus expression cos⁡θ+isin⁡θ\cos\theta+i\sin\theta is never zero, so the original formula is valid for every integer exponent without this qualification.

Geometric meaning

The complex numbers

cos⁡θ+isin⁡θ\cos\theta+i\sin\theta

lie on the unit circle in the complex plane. Multiplication by such a number rotates a point through angle θ\theta without changing its distance from the origin.

More generally, if

z=r(cos⁡θ+isin⁡θ),w=s(cos⁡ϕ+isin⁡ϕ),z=r(\cos\theta+i\sin\theta),\qquad w=s(\cos\phi+i\sin\phi),

then

zw=rs(cos⁡(θ+ϕ)+isin⁡(θ+ϕ)).zw=rs\bigl(\cos(\theta+\phi)+i\sin(\theta+\phi)\bigr).

Repeated multiplication by the same number therefore gives repeated scaling and rotation. For positive nn, the magnitude becomes rnr^n, while the total angle becomes nθn\theta. Negative powers reverse the direction of rotation and replace the scale factor by its reciprocal.

Angles in these formulas are conventionally measured in radians.

Proofs

Proof by induction

The angle-addition identities give

(cos⁡α+isin⁡α)(cos⁡β+isin⁡β)=cos⁡αcos⁡β−sin⁡αsin⁡β+i(sin⁡αcos⁡β+cos⁡αsin⁡β)=cos⁡(α+β)+isin⁡(α+β).\begin{aligned} &(\cos\alpha+i\sin\alpha)(\cos\beta+i\sin\beta)\\ &\quad=\cos\alpha\cos\beta-\sin\alpha\sin\beta\\ &\qquad+i(\sin\alpha\cos\beta+\cos\alpha\sin\beta)\\ &\quad=\cos(\alpha+\beta)+i\sin(\alpha+\beta). \end{aligned}

The formula is immediate for n=1n=1. If it holds for a positive integer nn, multiplication by cos⁡θ+isin⁡θ\cos\theta+i\sin\theta and the identity above establish it for n+1n+1. Hence mathematical induction proves the result for all positive integers.

For n=0n=0, both sides equal 11. For negative exponents, observe that

(cos⁡θ+isin⁡θ)−1=cos⁡θ−isin⁡θ=cos⁡(−θ)+isin⁡(−θ).(\cos\theta+i\sin\theta)^{-1} =\cos\theta-i\sin\theta =\cos(-\theta)+i\sin(-\theta).

Applying the positive-integer case to this reciprocal completes the proof.

Proof using Euler’s formula

Euler’s formula states that

eiθ=cos⁡θ+isin⁡θ.e^{i\theta}=\cos\theta+i\sin\theta.

Consequently,

(cos⁡θ+isin⁡θ)n=(eiθ)n=einθ=cos⁡(nθ)+isin⁡(nθ).(\cos\theta+i\sin\theta)^n =(e^{i\theta})^n =e^{in\theta} =\cos(n\theta)+i\sin(n\theta).

This proof places De Moivre’s formula within the theory of the complex exponential function. The trigonometric proof, however, does not require complex exponentials.

Computing powers

For example,

1+i=2(cos⁡π4+isin⁡π4).1+i=\sqrt2\left(\cos\frac{\pi}{4}+i\sin\frac{\pi}{4}\right).

Therefore,

(1+i)6=(2)6(cos⁡6π4+isin⁡6π4)=8(cos⁡3π2+isin⁡3π2)=−8i.\begin{aligned} (1+i)^6 &=(\sqrt2)^6 \left(\cos\frac{6\pi}{4}+i\sin\frac{6\pi}{4}\right)\\ &=8\left(\cos\frac{3\pi}{2}+i\sin\frac{3\pi}{2}\right)\\ &=-8i. \end{aligned}

This approach is particularly convenient when the magnitude and argument have simple forms. It can replace a lengthy Cartesian expansion with a magnitude calculation and an angle multiplication.

Finding complex roots

Let

z=r(cos⁡θ+isin⁡θ)≠0z=r(\cos\theta+i\sin\theta)\ne0

and let nn be a positive integer. De Moivre’s formula gives all solutions of wn=zw^n=z:

wk=r1/n[cos⁡(θ+2πkn)+isin⁡(θ+2πkn)],k=0,1,…,n−1.w_k=r^{1/n} \left[ \cos\left(\frac{\theta+2\pi k}{n}\right) +i\sin\left(\frac{\theta+2\pi k}{n}\right) \right], \qquad k=0,1,\ldots,n-1.

To obtain this expression, write

w=ρ(cos⁡ϕ+isin⁡ϕ).w=\rho(\cos\phi+i\sin\phi).

The equation wn=zw^n=z requires

ρn=r,nϕ=θ+2πk.\rho^n=r,\qquad n\phi=\theta+2\pi k.

Thus ρ=r1/n\rho=r^{1/n} and ϕ=(θ+2πk)/n\phi=(\theta+2\pi k)/n.

The nn roots are distinct, have equal magnitude r1/nr^{1/n}, and are separated by angles of 2π/n2\pi/n. For n≥3n\ge3, they form the vertices of a regular polygon centered at the origin. Changing the chosen argument of zz merely reorders these roots.

For example, the three cube roots of 11 are

1,−12+32i,−12−32i.1,\qquad -\frac12+\frac{\sqrt3}{2}i,\qquad -\frac12-\frac{\sqrt3}{2}i.

More generally, the solutions of wn=1w^n=1 are called roots of unity:

wk=e2πik/n.w_k=e^{2\pi i k/n}.

Under multiplication, they form a cyclic group, making them important examples in group theory.

Multiple-angle identities

Expanding the left-hand side of De Moivre’s formula using the binomial theorem and comparing real and imaginary parts produces identities in trigonometry.

For n=3n=3,

(cos⁡θ+isin⁡θ)3=cos⁡3θ−3cos⁡θsin⁡2θ+i(3cos⁡2θsin⁡θ−sin⁡3θ).(\cos\theta+i\sin\theta)^3 = \cos^3\theta-3\cos\theta\sin^2\theta +i\bigl(3\cos^2\theta\sin\theta-\sin^3\theta\bigr).

Hence

cos⁡3θ=4cos⁡3θ−3cos⁡θ,\cos3\theta=4\cos^3\theta-3\cos\theta,

and

sin⁡3θ=3sin⁡θ−4sin⁡3θ.\sin3\theta=3\sin\theta-4\sin^3\theta.

For any positive integer nn,

cos⁡(nθ)=∑j=0⌊n/2⌋(−1)j(n2j)cos⁡n−2jθ sin⁡2jθ,\cos(n\theta)= \sum_{j=0}^{\lfloor n/2\rfloor} (-1)^j\binom{n}{2j} \cos^{n-2j}\theta\,\sin^{2j}\theta,

and

sin⁡(nθ)=∑j=0⌊(n−1)/2⌋(−1)j(n2j+1)cos⁡n−2j−1θ sin⁡2j+1θ.\sin(n\theta)= \sum_{j=0}^{\lfloor(n-1)/2\rfloor} (-1)^j\binom{n}{2j+1} \cos^{n-2j-1}\theta\,\sin^{2j+1}\theta.

Here (nk)\binom{n}{k} denotes a binomial coefficient.

Noninteger exponents and branch choices

The integer restriction is essential to the formula’s ordinary, single-valued interpretation. For a noninteger exponent aa, writing

(cos⁡θ+isin⁡θ)a=cos⁡(aθ)+isin⁡(aθ)(\cos\theta+i\sin\theta)^a =\cos(a\theta)+i\sin(a\theta)

without specifying how the power is defined can be misleading.

In complex analysis, powers of a nonzero complex number are defined through a choice of logarithm. Its logarithm values are

log⁡z=ln⁡∣z∣+i(θ+2πk),k∈Z,\log z=\ln|z|+i(\theta+2\pi k), \qquad k\in\mathbb Z,

so the corresponding power values are

exp⁡ ⁣(a[ln⁡∣z∣+i(θ+2πk)]).\exp\!\left(a\bigl[\ln|z|+i(\theta+2\pi k)\bigr]\right).

For integer aa, all choices give the same value. For noninteger aa, they need not.

For example, taking θ=2π\theta=2\pi and a=12a=\tfrac12 gives

cos⁡(aθ)+isin⁡(aθ)=−1,\cos(a\theta)+i\sin(a\theta)=-1,

whereas the principal square root of

cos⁡2π+isin⁡2π=1\cos2\pi+i\sin2\pi=1

is 11. The value −1-1 is also a square root of 11, but it is not the principal one. Thus a noninteger extension requires an explicit branch convention or a multivalued interpretation.

Historical and broader context

The formula is associated with Abraham de Moivre’s work in the early eighteenth century on the relationship between trigonometric expressions and complex powers. Its modern exponential presentation uses the notation and identities associated with Leonhard Euler.

Beyond elementary calculations, the formula describes the behavior of planar rotations and complex oscillations. Roots of unity supply the coefficients used in the discrete Fourier transform, while the polar description of powers provides explicit solutions of polynomial equations of the form wn−z=0w^n-z=0.