De Moivre's formula

The formula is named after Abraham de Moivre,[1] although he never stated it in his works.

[2] 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.

These can be used to give explicit expressions for the nth roots of unity, that is, complex numbers z such that zn = 1.

Using the standard extensions of the sine and cosine functions to complex numbers, the formula is valid even when x is an arbitrary complex number.

In this example, it is easy to check the validity of the equation by multiplying out the left side.

with x expressed in radians rather than degrees, which establishes the fundamental relationship between the trigonometric functions and the complex exponential function.

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 n, call the following statement S(n): For n > 0, we proceed by mathematical induction.

By the principle of mathematical induction it follows that the result is true for all natural numbers.

Finally, for the negative integer cases, we consider an exponent of −n for natural n. The equation (*) is a result of the identity for z = cos nx + i sin nx.

Hence, S(n) holds for all integers n. 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 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 François Viète: 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 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.

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

A modest extension of the version of de Moivre's formula given in this article can be used to find the n-th roots of a complex number for a non-zero integer n. (This is equivalent to raising to a power of 1 / n).

If z is a complex number, written in polar form as then the n-th roots of z are given by where k varies over the integer values from 0 to |n| − 1.

(in polar form) and w are arbitrary complex numbers, then the set of possible values is

(Note that if w is a rational number that equals p / q in lowest terms then this set will have exactly q distinct values rather than infinitely many.

In particular, if w is an integer then the set will have exactly one value, as previously discussed.)

In contrast, de Moivre's formula gives

Since cosh x + sinh x = ex, an analog to de Moivre's formula also applies to the hyperbolic trigonometry.

For all integers n, If n is a rational number (but not necessarily an integer), then cosh nx + sinh nx will be one of the values of (cosh x + sinh x)n.[4] For any integer n, the formula holds for any complex number

where To find the roots of a quaternion there is an analogous form of de Moivre's formula.

A quaternion in the form can be represented in the form In this representation, and the trigonometric functions are defined as In the case that a2 + b2 + c2 ≠ 0, that is, the unit vector.

This leads to the variation of De Moivre's formula: To find the cube roots of write the quaternion in the form Then the cube roots are given by: With matrices,

This is a direct consequence of the isomorphism between the matrices of type