In
mathematics, a root of unity, occasionally called a
de Moivre
Abraham de Moivre FRS (; 26 May 166727 November 1754) was a French mathematician known for de Moivre's formula, a formula that links complex numbers and trigonometry, and for his work on the normal distribution and probability theory.
He ...
number, is any
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
that yields 1 when
raised to some positive
integer
An integer is the number zero (), a positive natural number (, , , etc.) or a negative integer with a minus sign ( −1, −2, −3, etc.). The negative numbers are the additive inverses of the corresponding positive numbers. In the language ...
power . Roots of unity are used in many branches of mathematics, and are especially important in
number theory
Number theory (or arithmetic or higher arithmetic in older usage) is a branch of pure mathematics devoted primarily to the study of the integers and integer-valued functions. German mathematician Carl Friedrich Gauss (1777–1855) said, "Math ...
, the theory of
group characters, and the
discrete Fourier transform
In mathematics, the discrete Fourier transform (DFT) converts a finite sequence of equally-spaced Sampling (signal processing), samples of a function (mathematics), function into a same-length sequence of equally-spaced samples of the discre ...
.
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
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subt ...
, and,
conversely
In logic and mathematics, the converse of a categorical or implicational statement is the result of reversing its two constituent statements. For the implication ''P'' → ''Q'', the converse is ''Q'' → ''P''. For the categorical proposit ...
, 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.
General definition

An ''th root of unity'', where is a positive integer, is a number satisfying the
equation
:
Unless otherwise specified, the roots of unity may be taken to be
complex number
In mathematics, a complex number is an element of a number system that extends the real numbers with a specific element denoted , called the imaginary unit and satisfying the equation i^= -1; every complex number can be expressed in the for ...
s (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
:
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
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subt ...
. 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
In mathematics, a finite field or Galois field (so-named in honor of Évariste Galois) is a field that contains a finite number of elements. As with any field, a finite field is a set on which the operations of multiplication, addition, subt ...
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
:
If ''n'' is a
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime because the only way ...
, then all th roots of unity, except 1, are primitive.
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''.
Elementary properties
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, as
:
This is also true for negative exponents. In particular, the
reciprocal of an th root of unity is its
complex conjugate
In mathematics, the complex conjugate of a complex number is the number with an equal real part and an imaginary part equal in magnitude but opposite in sign. That is, (if a and b are real, then) the complex conjugate of a + bi is equal to a - ...
, and is also an th root of unity:
:
If is an th root of unity and then . Indeed, by the definition of
congruence modulo ''n'', for some integer , and hence
:
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
Degree may refer to:
As a unit of measurement
* Degree (angle), a unit of angle measurement
** Degree of geographical latitude
** Degree of geographical longitude
* Degree symbol (°), a notation used in science, engineering, and mathemati ...
polynomial equation
In mathematics, an algebraic equation or polynomial equation is an equation of the form
:P = 0
where ''P'' is a polynomial with coefficients in some field, often the field of the rational numbers. For many authors, the term ''algebraic equati ...
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
if and only if
In logic and related fields such as mathematics and philosophy, "if and only if" (shortened as "iff") is a biconditional logical connective between statements, where either both statements are true or both are false.
The connective is bi ...
If is not primitive then
implies
but the converse may be false, as shown by the following example. If , a non-primitive th root of unity is , and one has
, although
Let be a primitive th root of unity. A power of is a primitive th root of unity for
:
where
is the
greatest common divisor
In mathematics, the greatest common divisor (GCD) of two or more integers, which are not all zero, is the largest positive integer that divides each of the integers. For two integers ''x'', ''y'', the greatest common divisor of ''x'' and ''y'' i ...
of and . This results from the fact that is the smallest multiple of that is also a multiple of . In other words, is the
least common multiple of and . Thus
:
Thus, if and are
coprime
In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equival ...
, is also a primitive th root of unity, and therefore there are distinct primitive th roots of unity (where is
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ...
). 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
In mathematics, a disjoint union (or discriminated union) of a family of sets (A_i : i\in I) is a set A, often denoted by \bigsqcup_ A_i, with an injection of each A_i into A, such that the images of these injections form a partition of A ...
of the :
:
where the notation means that goes through all the positive
divisor
In mathematics, a divisor of an integer n, also called a factor of n, is an integer m that may be multiplied by some integer to produce n. In this case, one also says that n is a multiple of m. An integer n is divisible or evenly divisible by ...
s of , including and .
Since the
cardinality
In mathematics, the cardinality of a set is a measure of the number of elements of the set. For example, the set A = \ contains 3 elements, and therefore A has a cardinality of 3. Beginning in the late 19th century, this concept was generalized ...
of is , and that of is , this demonstrates the classical formula
:
Group properties
Group of all roots of unity
The product and the
multiplicative inverse
In mathematics, a multiplicative inverse or reciprocal for a number ''x'', denoted by 1/''x'' or ''x''−1, is a number which when multiplied by ''x'' yields the multiplicative identity, 1. The multiplicative inverse of a fraction ''a''/''b ...
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
In mathematics, an abelian group, also called a commutative group, is a group in which the result of applying the group operation to two group elements does not depend on the order in which they are written. That is, the group operation is com ...
under multiplication. This
group is the
torsion subgroup of the
circle group
In mathematics, the circle group, denoted by \mathbb T or \mathbb S^1, is the multiplicative group of all complex numbers with absolute value 1, that is, the unit circle in the complex plane or simply the unit complex numbers.
\mathbb T = \ ...
.
Group of th roots of unity
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
In group theory, a branch of abstract algebra in pure mathematics, a cyclic group or monogenous group is a group, denoted C''n'', that is generated by a single element. That is, it is a set of invertible elements with a single associative bi ...
. It is worth remarking that the term of ''cyclic group'' originated from the fact that this group is a
subgroup
In group theory, a branch of mathematics, given a group ''G'' under a binary operation ∗, a subset ''H'' of ''G'' is called a subgroup of ''G'' if ''H'' also forms a group under the operation ∗. More precisely, ''H'' is a subgrou ...
of the
circle group
In mathematics, the circle group, denoted by \mathbb T or \mathbb S^1, is the multiplicative group of all complex numbers with absolute value 1, that is, the unit circle in the complex plane or simply the unit complex numbers.
\mathbb T = \ ...
.
Galois group of the primitive th roots of unity
Let
be the
field extension
In mathematics, particularly in algebra, a field extension is a pair of fields E\subseteq F, such that the operations of ''E'' are those of ''F'' restricted to ''E''. In this case, ''F'' is an extension field of ''E'' and ''E'' is a subfield of ...
of the
rational number
In mathematics, a rational number is a number that can be expressed as the quotient or fraction of two integers, a numerator and a non-zero denominator . For example, is a rational number, as is every integer (e.g. ). The set of all ra ...
s generated over
by a primitive th root of unity . As every th root of unity is a power of , the
field contains all th roots of unity, and
is a
Galois extension of
If is an integer, is a primitive th root of unity if and only if and are
coprime
In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equival ...
. In this case, the map
:
induces an
automorphism of
, which maps every th root of unity to its th power. Every automorphism of
is obtained in this way, and these automorphisms form the
Galois group
In mathematics, in the area of abstract algebra known as Galois theory, the Galois group of a certain type of field extension is a specific group associated with the field extension. The study of field extensions and their relationship to the po ...
of
over the field of the rationals.
The rules of exponentiation imply that the
composition of two such automorphisms is obtained by multiplying the exponents. It follows that the map
:
defines a
group isomorphism
In abstract algebra, a group isomorphism is a function between two groups that sets up a one-to-one correspondence between the elements of the groups in a way that respects the given group operations. If there exists an isomorphism between two g ...
between the
units of the ring of
integers modulo and the Galois group of
This shows that this Galois group is
abelian
Abelian may refer to:
Mathematics Group theory
* Abelian group, a group in which the binary operation is commutative
** Category of abelian groups (Ab), has abelian groups as objects and group homomorphisms as morphisms
* Metabelian group, a grou ...
, and implies thus that the primitive roots of unity may be expressed in terms of
radicals
Radical may refer to:
Politics and ideology Politics
*Radical politics, the political intent of fundamental societal change
*Radicalism (historical), the Radical Movement that began in late 18th century Britain and spread to continental Europe and ...
.
Trigonometric expression
De Moivre's formula, which is valid for all
real and integers , is
:
Setting gives a primitive th root of unity – one gets
:
but
:
for . In other words,
:
is a primitive th root of unity.
This formula shows that in the
complex plane
In mathematics, the complex plane is the plane formed by the complex numbers, with a Cartesian coordinate system such that the -axis, called the real axis, is formed by the real numbers, and the -axis, called the imaginary axis, is formed by th ...
the th roots of unity are at the vertices of a
regular -sided polygon inscribed in the
unit circle
In mathematics, a unit circle is a circle of unit radius—that is, a radius of 1. Frequently, especially in trigonometry, the unit circle is the circle of radius 1 centered at the origin (0, 0) in the Cartesian coordinate system in the Eucli ...
, 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
In mathematics, the ''n''th cyclotomic polynomial, for any positive integer ''n'', is the unique irreducible polynomial with integer coefficients that is a divisor of x^n-1 and is not a divisor of x^k-1 for any Its roots are all ''n''th primit ...
; it is from the Greek roots "
cyclo" (circle) plus "
tomos" (cut, divide).
Euler's formula
Euler's formula, named after Leonhard Euler, is a mathematical formula in complex analysis that establishes the fundamental relationship between the trigonometric functions and the complex exponential function. Euler's formula states that for ...
:
which is valid for all real , can be used to put the formula for the th roots of unity into the form
:
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
In mathematics, the irrational numbers (from in- prefix assimilated to ir- (negative prefix, privative) + rational) are all the real numbers that are not rational numbers. That is, irrational numbers cannot be expressed as the ratio of two inte ...
that can be expressed as the
real part of the root of unity; that is, as
, is called a
trigonometric number.
Algebraic expression
The th roots of unity are, by definition, the
roots of the
polynomial
In mathematics, a polynomial is an expression consisting of indeterminates (also called variables) and coefficients, that involves only the operations of addition, subtraction, multiplication, and positive-integer powers of variables. An ex ...
, and are thus
algebraic number
An algebraic number is a number that is a root of a non-zero polynomial in one variable with integer (or, equivalently, rational) coefficients. For example, the golden ratio, (1 + \sqrt)/2, is an algebraic number, because it is a root of the p ...
s. As this polynomial is not
irreducible (except for ), the primitive th roots of unity are roots of an irreducible polynomial of lower degree, called the th
cyclotomic polynomial
In mathematics, the ''n''th cyclotomic polynomial, for any positive integer ''n'', is the unique irreducible polynomial with integer coefficients that is a divisor of x^n-1 and is not a divisor of x^k-1 for any Its roots are all ''n''th primit ...
, and often denoted . The degree of is given by
Euler's totient function
In number theory, Euler's totient function counts the positive integers up to a given integer that are relatively prime to . It is written using the Greek letter phi as \varphi(n) or \phi(n), and may also be called Euler's phi function. In ...
, which counts (among other things) the number of primitive th roots of unity. The roots of are exactly the primitive th roots of unity.
Galois theory
In mathematics, Galois theory, originally introduced by Évariste Galois, provides a connection between field theory and group theory. This connection, the fundamental theorem of Galois theory, allows reducing certain problems in field theory t ...
can be used to show that cyclotomic polynomials may be conveniently solved in terms of radicals. (The trivial form