In mathematics, a root of unity, or de Moivre number, is any complex number that equals 1 when raised to some integer power n. Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory of group characters, field theory, and the discrete Fourier transform.
The notion of root of unity also applies to any algebraic ring with a multiplicative identity element, namely a root of unity is any element of finite multiplicative order.
Contents |
An nth root of unity, where n = 1,2,3,··· is a positive integer, is a complex number z satisfying the equation
An nth root of unity is primitive if it is not a kth root of unity for some smaller k:
Every nth root of unity z is a primitive ath root of unity for some a where 1 ≤ a ≤ n: if z1 = 1 then z is a primitive first root of unity, otherwise if z2 = 1 then z is a primitive second (square) root of unity, otherwise, ..., and by assumption there must be a "1" at or before the nth term in the sequence.
If z is an nth root of unity and a ≡ b (mod n) then za = zb. By the definition of congruence, a = b + kn for some integer k. But then,
Therefore, given a power za of z, it can be assumed that 1 ≤ a ≤ n. This is often convenient.
Any integer power of an nth root of unity is also an nth root of unity:
Here k may be negative. In particular, the reciprocal of an nth root of unity is its complex conjugate, and is also an nth root of unity:
Let z be a primitive nth root of unity. Then the powers z, z2, ... zn−1, zn = z0 = 1 are all distinct. Assume the contrary, that za = zb where 1 ≤ a < b ≤ n. Then zb−a = 1. But 0 < b−a < n, which contradicts z being primitive.
Since an nth degree polynomial equation can only have n distinct roots, this implies that the powers of a primitive root z, z2, ... zn−1, zn = z0 = 1 are in fact all of the nth roots of unity.
From the preceding facts it follows that if z is a primitive nth root of unity:
If z is not primitive there is only one implication:
An example showing that the converse implication is false is given by:
Let z be a primitive nth root of unity and let k be a positive integer. From the above discussion, zk is a primitive root of unity for some a. Now if zka = 1, ka must be a multiple of n. The smallest number that is divisible by both n and k is their least common multiple, denoted by lcm(n, k). It is related to their greatest common divisor, gcd(n, k), by the formula:
i.e.
Therefore, zk is a primitive ath root of unity where
Thus, if k and n are coprime zk is also a primitive nth root of unity, and therefore there are φ(n) (where φ is Euler's totient function) distinct primitive nth roots of unity. (This implies that if n is a prime number, all the roots except +1 are primitive).
In other words, if R(n) is the set of all nth roots of unity and P(n) is the set of primitive ones, R(n) is a disjoint union of the P(n):
where the notation means that d goes through all the divisors of n, including 1 and n.
Since the cardinality of R(n) is n, and that of P(n) is φ(n), this demonstrates the classical formula
de Moivre's formula, which is valid for all real x and integers n, is
Setting x = 2π/n gives a primitive nth root of unity:
but for k = 1, 2, ... n−1,
This formula shows that on the complex plane the nth roots of unity are at the vertices of a regular n-sided polygon inscribed in the unit circle, with one vertex at 1. (See the plots for n = 3 and n = 5 on the right). This geometric fact accounts for the term "cyclotomic" in such phrases as cyclotomic field and cyclotomic polynomial; it is from the Greek roots "cyclo" (circle) plus "tomos" (cut, divide).
which is valid for all real x, can be used to put the formula for the nth roots of unity into its most familiar form
It follows from the discussion in the previous section that this is a primitive root if and only if the fraction k/n is in lowest terms, i.e. that k and n are coprime.
The roots of unity are, by definition, the roots of a polynomial equation and are thus algebraic numbers. In fact, Galois theory can be used to show that they may be expressed as expressions involving integers and the operations of addition, subtraction, multiplication, division, and the extraction of roots. (There are more details later in this article at Cyclotomic fields.)
The equation z1 = 1 obviously has only one solution, +1, which is therefore the only primitive first root of unity. It is a nonprimitive 2nd, 3rd, 4th, ... root of unity.
The equation z2 = 1 has two solutions, +1 and −1. +1 is the primitive first root of unity, leaving −1 as the only primitive second (square) root of unity. It is a nonprimitive 4th, 6th, 8th, ...root of unity.
The only real roots of unity are ±1; all the others are non-real complex numbers, as can be seen from de Moivre's formula or the figures.
The third (cube) roots satisfy the equation z3 − 1 = 0; the non-principal root +1 may be factored out, giving (z − 1)(z2 + z + 1) = 0. Therefore, the primitive cube roots of unity are the roots of a quadratic equation. (See Cyclotomic polynomial, below.)
The two primitive fourth roots of unity are the two square roots of the primitive square root of unity, −1
The four primitive fifth roots of unity are
The two primitive sixth roots of unity are the negatives (and also the square roots) of the two primitive cube roots:
Gauss observed that if a primitive nth root of unity can be expressed using only square roots, then it is possible to construct the regular n-gon using only ruler and compass, and that if the root of unity requires third or fourth or higher radicals the regular polygon cannot be constructed. The 7th roots of unity are the first that require cube roots. Note that the real part and imaginary part are both real numbers, but complex numbers are buried in the expressions. They cannot be removed. See casus irreducibilis for details.
One of the primitive seventh roots of unity is
where ω and ω2 are the primitive cube roots of unity exp(2πi/3) and exp(4πi/3).
The four primitive eighth roots of unity are ± the square roots of the primitive fourth roots, ±i. One of them is:
See heptadecagon for the real part of a 17th root of unity.
If z is a primitive nth root of unity, then the sequence of powers
is n-periodic (because z j+n = z j·zn = z j·1 = z j for all values of j), and the n sequences of powers
for k = 1, …, n are all n-periodic (because zk·(j+n) = zk·j). Furthermore, the set {s1, …, sn} of these sequences is a basis of the linear space of all n-periodic sequences. This means that any n-periodic sequence of complex numbers
can be expressed as a linear combination of powers of a primitive nth root of unity:
for some complex numbers X1, …, Xn and every integer j.
This is a form of Fourier analysis. If j is a (discrete) time variable, then k is a frequency and Xk is a complex amplitude.
Choosing for the primitive nth root of unity
allows xj to be expressed as a linear combination of cos and sin:
This is a discrete Fourier transform.
Let SR(n) be the sum of all the nth roots of unity, primitive or not. Then
For n = 1 there is nothing to prove. For n > 1, it is "intuitively obvious" from the symmetry of the roots in the complex plane. For a rigorous proof, let z be a primitive nth root of unity. Then the set of all roots is given by zk, k = 0, 1, ..., n−1, and their sum is given by the formula for a geometric series:
Let SP(n) be the sum of all the primitive nth roots of unity. Then
where μ(n) is the Mobius function.
In the section Elementary facts, it was shown that if R(n) is the set of all nth roots of unity and P(n) is the set of primitive ones, R(n) is a disjoint union of the P(n):
This implies
Applying the Mobius inversion formula gives
In this formula, if d < n SR(n/d) = 0, and for d = n, SR(n/d) = 1. Therefore, SP(n) = μ(n).
This is the special case cn(1) of Ramanujan's sum cn(s), defined as the sum of the sth powers of the primitive nth roots of unity:
From the summation formula follows an orthogonality relationship: for j = 1, ···, n and j ' = 1, ···, n
where is the Kronecker delta and z is any primitive nth root of unity.
The matrix whose th entry is
defines a discrete Fourier transform. Computing the inverse transformation using gaussian elimination requires O(n3) operations. However, it follows from the orthogonality that U is unitary. That is,
and thus the inverse of U is simply the complex conjugate. (This fact was first noted by Gauss when solving the problem of trigonometric interpolation). The straightforward application of U or its inverse to a given vector requires O(n2) operations. The fast Fourier transform algorithms reduces the number of operations further to O(n log n).
The zeroes of the polynomial
are precisely the nth roots of unity, each with multiplicity 1. The nth cyclotomic polynomial is defined by the fact that its zeros are precisely the primitive nth roots of unity, each with multiplicity 1.
where z1,z2,z3,...,zφ(n) are the primitive nth roots of unity, and φ(n) is Euler's totient function. The polynomial Φn(z) has integer coefficients and is an irreducible polynomial over the rational numbers (i.e., it cannot be written as the product of two positive-degree polynomials with rational coefficients). The case of prime n, which is easier than the general assertion, follows by applying Eisenstein's criterion to the polynomial ((z + 1)n−1) / ((z + 1) − 1), and expanding via the binomial theorem.
Every nth root of unity is a primitive dth root of unity for exactly one positive divisor d of n. This implies that
This formula represents the factorization of the polynomial zn − 1 into irreducible factors.
Applying Möbius inversion to the formula gives
where μ is the Möbius function.
So the first few cyclotomic polynomials are
If p is a prime number, then all the pth roots of unity except 1 are primitive pth roots, and we have
Substituting any positive integer ≥ 2 for z, this sum becomes a base z repunit. Thus a necessary (but not sufficient) condition for a repunit to be prime is that its length be prime.
Note that, contrary to first appearances, not all coefficients of all cyclotomic polynomials are 0, 1, or −1. The first exception is Φ105. It is not a surprise it takes this long to get an example, because the behavior of the coefficients depends not so much on n as on how many odd prime factors appear in n. More precisely, it can be shown that if n has 1 or 2 odd prime factors (e.g., n = 150) then the nth cyclotomic polynomial only has coefficients 0, 1 or −1. Thus the first conceivable n for which there could be a coefficient besides 0, 1, or −1 is a product of the three smallest odd primes, and that is 3·5·7 = 105. This by itself doesn't prove the 105th polynomial has another coefficient, but does show it is the first one which even has a chance of working (and then a computation of the coefficients shows it does). A theorem of Schur says that there are cyclotomic polynomials with coefficients arbitrarily large in absolute value. In particular, if n = p1·p2· ... ·pt, where p1 < p2 < ... < pt are odd primes, p1 + p2 > pt, and t is odd, then 1 − t occurs as a coefficient in the nth cyclotomic polynomial.[1]
Many restrictions are known about the values that cyclotomic polynomials can assume at integer values. For example, if p is prime and d | Φp(d), then either d ≡ 1 mod (p), or d ≡ 0 mod (p).
Cyclotomic polynomials are solvable in radicals, as roots of unity are themselves radicals. Moreover, there exist more informative radical expressions for nth roots of unity with the additional property[2] that every value of the expression obtained by choosing values of the radicals (for example, signs of square roots) is a primitive nth root of unity. This was already shown by Gauss in 1797.[3] Efficient algorithms exist for calculating such expressions.[4]
The nth roots of unity form under multiplication a cyclic group of order n, and in fact these groups comprise all of the finite subgroups of the multiplicative group of the complex number field. A generator for this cyclic group is a primitive nth root of unity.
The nth roots of unity form an irreducible representation of any cyclic group of order n. The orthogonality relationship also follows from group-theoretic principles as described in character group.
The roots of unity appear as entries of the eigenvectors of any circulant matrix, i.e. matrices that are invariant under cyclic shifts, a fact that also follows from group representation theory as a variant of Bloch's theorem.[5] In particular, if a circulant Hermitian matrix is considered (for example, a discretized one-dimensional Laplacian with periodic boundaries[6]), the orthogonality property immediately follows from the usual orthogonality of eigenvectors of Hermitian matrices.
By adjoining a primitive nth root of unity to Q, one obtains the nth cyclotomic field Fn. This field contains all nth roots of unity and is the splitting field of the nth cyclotomic polynomial over Q. The field extension Fn/Q has degree φ(n) and its Galois group is naturally isomorphic to the multiplicative group of units of the ring Z/nZ.
As the Galois group of Fn/Q is abelian, this is an abelian extension. Every subfield of a cyclotomic field is an abelian extension of the rationals. In these cases Galois theory can be written out explicitly in terms of Gaussian periods: this theory from the Disquisitiones Arithmeticae of Gauss was published many years before Galois.[7]
Conversely, every abelian extension of the rationals is such a subfield of a cyclotomic field — this is the content of a theorem of Kronecker, usually called the Kronecker–Weber theorem on the grounds that Weber completed the proof.