In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important in number theory, the theory of group characters, and the discrete Fourier transform.
Roots of unity can be defined in any field. If the characteristic of the field is zero, the roots are complex numbers that are also algebraic integers. For fields with a positive characteristic, the roots belong to a finite field, and, conversely, every nonzero element of a finite field is a root of unity. Any algebraically closed field contains exactly th roots of unity, except when is a multiple of the (positive) characteristic of the field.
An th root of unity, where is a positive integer, is a number satisfying the equation[1] [2] Unless otherwise specified, the roots of unity may be taken to be complex numbers (including the number 1, and the number −1 if is even, which are complex with a zero imaginary part), and in this case, the th roots of unity are[3]
However, the defining equation of roots of unity is meaningful over any field (and even over any ring), and this allows considering roots of unity in . Whichever is the field, the roots of unity in are either complex numbers, if the characteristic of is 0, or, otherwise, belong to a finite field. Conversely, every nonzero element in a finite field is a root of unity in that field. See Root of unity modulo n and Finite field for further details.
An th root of unity is said to be if it is not an th root of unity for some smaller, that is if[4] [5]
zn=1 and zm\ne1form=1,2,3,\ldots,n-1.
In the above formula in terms of exponential and trigonometric functions, the primitive th roots of unity are those for which and are coprime integers.
Subsequent sections of this article will comply with complex roots of unity. For the case of roots of unity in fields of nonzero characteristic, see . For the case of roots of unity in rings of modular integers, see Root of unity modulo n.
Every th root of unity is a primitive th root of unity for some, which is the smallest positive integer such that .
Any integer power of an th root of unity is also an th root of unity,[7] as
(zk)n=zkn=(zn)k=1k=1.
1 | |
z |
=z-1=zn-1=\barz.
If is an th root of unity and then . Indeed, by the definition of congruence modulo n, for some integer, and hence
za=zb+kn=zbzkn=zb(zn)k=zb1k=zb.
Therefore, given a power of, one has, where is the remainder of the Euclidean division of by .
Let be a primitive th root of unity. Then the powers,, ..., , are th roots of unity and are all distinct. (If where, then, which would imply that would not be primitive.) This implies that,, ..., , are all of the th roots of unity, since an th-degree polynomial equation over a field (in this case the field of complex numbers) has at most solutions.
From the preceding, it follows that, if is a primitive th root of unity, then
za=zb
a\equivb\pmod{n}.
a\equivb\pmod{n}
za=zb,
z2=z4=1
2\not\equiv4\pmod{4}.
Let be a primitive th root of unity. A power of is a primitive th root of unity for
a=
n | |
\gcd(k,n) |
,
\gcd(k,n)
a=
\operatorname{lcm | = | ||
|
n | |
\gcd(k,n) |
.
Thus, if and are coprime, is also a primitive th root of unity, and therefore there are distinct primitive th roots of unity (where is Euler's totient function). This implies that if is a prime number, all the roots except are primitive.
In other words, if is the set of all th roots of unity and is the set of primitive ones, is a disjoint union of the :
\operatorname{R}(n)=cupd\operatorname{P}(d),
where the notation means that goes through all the positive divisors of, including and .
Since the cardinality of is, and that of is, this demonstrates the classical formula
\sumd\varphi(d)=n.
The product and the multiplicative inverse of two roots of unity are also roots of unity. In fact, if and, then, and, where is the least common multiple of and .
Therefore, the roots of unity form an abelian group under multiplication. This group is the torsion subgroup of the circle group.
For an integer n, the product and the multiplicative inverse of two th roots of unity are also th roots of unity. Therefore, the th roots of unity form an abelian group under multiplication.
Given a primitive th root of unity, the other th roots are powers of . This means that the group of the th roots of unity is a cyclic group. It is worth remarking that the term of cyclic group originated from the fact that this group is a subgroup of the circle group.
Let
\Q(\omega)
\Q
\Q(\omega)
\Q(\omega)
\Q.
If is an integer, is a primitive th root of unity if and only if and are coprime. In this case, the map
\omega\mapsto\omegak
induces an automorphism of
\Q(\omega)
\Q(\omega)
\Q(\omega)
The rules of exponentiation imply that the composition of two such automorphisms is obtained by multiplying the exponents. It follows that the map
k\mapsto\left(\omega\mapsto\omegak\right)
defines a group isomorphism between the units of the ring of integers modulo and the Galois group of
\Q(\omega).
This shows that this Galois group is abelian, and implies thus that the primitive roots of unity may be expressed in terms of radicals.
See main article: Minimal polynomial of 2cos(2pi/n). The real part of the primitive roots of unity are related to one another as roots of the minimal polynomial of
2\cos(2\pi/n).
De Moivre's formula, which is valid for all real and integers, is
\left(\cosx+i\sinx\right)n=\cosnx+i\sinnx.
Setting gives a primitive th root of unity – one gets
\left(\cos | 2\pi |
n |
+i\sin
2\pi | |
n |
\right)n=\cos2\pi+i\sin2\pi=1,
\left(\cos | 2\pi |
n |
+i\sin
2\pi | |
n |
\right)k=\cos
2k\pi | |
n |
+i\sin
2k\pi | |
n |
≠ 1
\cos | 2\pi |
n |
+i\sin
2\pi | |
n |
This formula shows that in the complex plane the th roots of unity are at the vertices of a regular -sided polygon inscribed in the unit circle, with one vertex at 1 (see the plots for and 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).
ei=\cosx+i\sinx,
which is valid for all real, can be used to put the formula for the th roots of unity into the form
| ||||||
e |
, 0\lek<n.
It follows from the discussion in the previous section that this is a primitive th-root if and only if the fraction is in lowest terms; that is, that and are coprime. An irrational number that can be expressed as the real part of the root of unity; that is, as
\cos(2\pik/n)
The th roots of unity are, by definition, the roots of the polynomial, and are thus algebraic numbers. As this polynomial is not irreducible (except for), the primitive th roots of unity are roots of an irreducible polynomial (over the integers) of lower degree, called the th cyclotomic polynomial, and often denoted . The degree of is given by Euler's totient function, which counts (among other things) the number of primitive th roots of unity.[9] The roots of are exactly the primitive th roots of unity.
Galois theory can be used to show that the cyclotomic polynomials may be conveniently solved in terms of radicals. (The trivial form
\sqrt[n]{1}
Gauss proved that a primitive th root of unity can be expressed using only square roots, addition, subtraction, multiplication and division if and only if it is possible to construct with compass and straightedge the regular -gon. This is the case if and only if is either a power of two or the product of a power of two and Fermat primes that are all different.
If is a primitive th root of unity, the same is true for, and
r=z+ | 1z |
Rn
Rn
z2-rz+1=0.
r2, | |
\pmi\sqrt{1-\left(
r2\right) | |
2}. |
The polynomial
Rn
\varepsilon
r3+r2-2r-1,
If is a primitive th root of unity, then the sequence of powers
is -periodic (because for all values of), and the sequences of powers
for are all -periodic (because). Furthermore, the set of these sequences is a basis of the linear space of all -periodic sequences. This means that any -periodic sequence of complex numbers
can be expressed as a linear combination of powers of a primitive th root of unity:
xj=\sumkXk ⋅ zk=X1z1 ⋅ + … +Xn ⋅ zn
This is a form of Fourier analysis. If is a (discrete) time variable, then is a frequency and is a complex amplitude.
Choosing for the primitive th root of unity
z=
| ||||
e |
=\cos
2\pi | |
n |
+i\sin
2\pi | |
n |
xj=\sumkAk\cos
2\pijk | |
n |
+\sumkBk\sin
2\pijk | |
n |
.
Let be the sum of all the th roots of unity, primitive or not. Then
\operatorname{SR}(n)= \begin{cases} 1,&n=1\\ 0,&n>1. \end{cases}
This is an immediate consequence of Vieta's formulas. In fact, the th roots of unity being the roots of the polynomial, their sum is the coefficient of degree, which is either 1 or 0 according whether or .
Alternatively, for there is nothing to prove, and for there exists a root – since the set of all the th roots of unity is a group,, so the sum satisfies, whence .
Let be the sum of all the primitive th roots of unity. Then
\operatorname{SP}(n)=\mu(n),
where is the Möbius function.
In the section Elementary properties, it was shown that if is the set of all th roots of unity and is the set of primitive ones, is a disjoint union of the :
\operatorname{R}(n)=cupd\operatorname{P}(d),
This implies
\operatorname{SR}(n)=\sumd\operatorname{SP}(d).
Applying the Möbius inversion formula gives
\operatorname{SP}(n)=\sumd\mu(d)\operatorname{SR}\left(
n | |
d |
\right).
In this formula, if, then, and for : . Therefore, .
This is the special case of Ramanujan's sum,[10] defined as the sum of the th powers of the primitive th roots of unity:
cn(s)=
n | |
\sum | |
a=1\atop\gcd(a,n)=1 |
| ||||||
e |
.
From the summation formula follows an orthogonality relationship: for and
n | |
\sum | |
k=1 |
\overline{zj ⋅
where is the Kronecker delta and is any primitive th root of unity.
The matrix whose th entry is
Uj,k=
| ||||
n |
⋅ zj ⋅
defines a discrete Fourier transform. Computing the inverse transformation using Gaussian elimination requires operations. However, it follows from the orthogonality that is unitary. That is,
n | |
\sum | |
k=1 |
\overline{Uj,k
and thus the inverse of is simply the complex conjugate. (This fact was first noted by Gauss when solving the problem of trigonometric interpolation.) The straightforward application of or its inverse to a given vector requires operations. The fast Fourier transform algorithms reduces the number of operations further to .
See main article: Cyclotomic polynomial.
The zeros of the polynomial
p(z)=zn-1
\Phin(z)=
\varphi(n) | |
\prod | |
k=1 |
(z-zk)
(z+1)n-1 | |
(z+1)-1 |
,
and expanding via the binomial theorem.
Every th root of unity is a primitive th root of unity for exactly one positive divisor of . This implies that
zn-1=\prodd\Phid(z).
This formula represents the factorization of the polynomial into irreducible factors:
\begin{align} z1-1&=z-1\\ z2-1&=(z-1)(z+1)\\ z3-1&=(z-1)(z2+z+1)\\ z4-1&=(z-1)(z+1)(z2+1)\\ z5-1&=(z-1)(z4+z3+z2+z+1)\\ z6-1&=(z-1)(z+1)(z2+z+1)(z2-z+1)\\ z7-1&=(z-1)(z6+z5+z4+z3+z2+z+1)\\ z8-1&=(z-1)(z+1)(z2+1)(z4+1)\\ \end{align}
Applying Möbius inversion to the formula gives
\Phin(z)=\prodd
| ||||
\left(z |
-1\right)\mu(d)=\prodd\left(zd-
| |||||
1\right) |
,
where is the Möbius function. So the first few cyclotomic polynomials are
If is a prime number, then all the th roots of unity except 1 are primitive th roots. Therefore,Substituting any positive integer ≥ 2 for, this sum becomes a base 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 . It is not a surprise it takes this long to get an example, because the behavior of the coefficients depends not so much on as on how many odd prime factors appear in . More precisely, it can be shown that if has 1 or 2 odd prime factors (for example,) then the th cyclotomic polynomial only has coefficients 0, 1 or −1. Thus the first conceivable for which there could be a coefficient besides 0, 1, or −1 is a product of the three smallest odd primes, and that is . 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=p1p2 … pt,
p1<p2< … <pt
p1+p2>pt,
Many restrictions are known about the values that cyclotomic polynomials can assume at integer values. For example, if is prime, then if and only if .
Cyclotomic polynomials are solvable in radicals, as roots of unity are themselves radicals. Moreover, there exist more informative radical expressions for th roots of unity with the additional property[12] that every value of the expression obtained by choosing values of the radicals (for example, signs of square roots) is a primitive th root of unity. This was already shown by Gauss in 1797.[13] Efficient algorithms exist for calculating such expressions.[14]
The th roots of unity form under multiplication a cyclic group of order, 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 th root of unity.
The th roots of unity form an irreducible representation of any cyclic group of order . 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; that is, matrices that are invariant under cyclic shifts, a fact that also follows from group representation theory as a variant of Bloch's theorem.[15] In particular, if a circulant Hermitian matrix is considered (for example, a discretized one-dimensional Laplacian with periodic boundaries[16]), the orthogonality property immediately follows from the usual orthogonality of eigenvectors of Hermitian matrices.
See main article: Cyclotomic field. By adjoining a primitive th root of unity to
\Q,
\Q(\exp(2\pii/n)).
\Q.
\Q(\exp(2\pii/n))/\Q
\Z/n\Z.
As the Galois group of
\Q(\exp(2\pii/n))/\Q
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.
For, both roots of unity and are integers.
For three values of, the roots of unity are quadratic integers:
For four other values of, the primitive roots of unity are not quadratic integers, but the sum of any root of unity with its complex conjugate (also an th root of unity) is a quadratic integer.
For, none of the non-real roots of unity (which satisfy a quartic equation) is a quadratic integer, but the sum of each root with its complex conjugate (also a 5th root of unity) is an element of the ring . For two pairs of non-real 5th roots of unity these sums are inverse golden ratio and minus golden ratio.
For, for any root of unity equals to either 0, ±2, or ± .
For, for any root of unity, equals to either 0, ±1, ±2 or ± .