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.{{cite book
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} is not convenient, because it contains non-primitive roots, such as 1, which are not roots of the cyclotomic polynomial, and because it does not give the real and imaginary parts separately.) This means that, for each positive integer , there exists an expression built from integers by root extractions, additions, subtractions, multiplications, and divisions (and nothing else), such that the primitive th roots of unity are exactly the set of values that can be obtained by choosing values for the root extractions ( possible values for a th root). (For more details see , below.) 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+\frac 1z is twice the real part of . In other words, is a
reciprocal polynomial, the polynomial R_n that has as a root may be deduced from by the standard manipulation on reciprocal polynomials, and the primitive th roots of unity may be deduced from the roots of R_n by solving the
quadratic equation z^2-rz+1=0. That is, the real part of the primitive root is \frac r2, and its imaginary part is \pm i\sqrt{1-\left(\frac r2\right)^2}. The polynomial R_n is an irreducible polynomial whose roots are all real. Its degree is a power of two, if and only if is a product of a power of two by a product (possibly
empty) of distinct Fermat primes, and the regular -gon is constructible with compass and straightedge. Otherwise, it is solvable in radicals, but one are in the
casus irreducibilis, that is, every expression of the roots in terms of radicals involves
nonreal radicals.
Explicit expressions in low degrees • For , the cyclotomic polynomial is Therefore, the only primitive first root of unity is 1, which is a non-primitive th root of unity for every
n > 1. • As , the only primitive second (square) root of unity is −1, which is also a non-primitive th root of unity for every even . With the preceding case, this completes the list of
real roots of unity. • As , the primitive third (
cube) roots of unity, which are the roots of this
quadratic polynomial, are \frac{-1 + i \sqrt{3}}{2},\ \frac{-1 - i \sqrt{3}}{2} . • As , the two primitive fourth roots of unity are and . • As , the four primitive fifth roots of unity are the roots of this
quartic polynomial, which may be explicitly solved in terms of radicals, giving the roots \frac{\varepsilon\sqrt 5 - 1}4 \pm i \frac{\sqrt{10 + 2\varepsilon\sqrt 5}}{4}, where \varepsilon may take the two values 1 and −1 (the same value in the two occurrences). • As , there are two primitive sixth roots of unity, which are the negatives (and also the square roots) of the two primitive cube roots: \frac{1 + i \sqrt{3}}{2},\ \frac{1 - i \sqrt{3}}{2}. • As 7 is not a Fermat prime, the seventh roots of unity are the first that require
cube roots. There are 6 primitive seventh roots of unity, which are pairwise
complex conjugate. The sum of a root and its conjugate is twice its real part. These three sums are the three real roots of the cubic polynomial r^3+r^2-2r-1, and the primitive seventh roots of unity are \frac{r}{2}\pm i\sqrt{1-\frac{r^2}{4}}, where runs over the roots of the above polynomial. As for every cubic polynomial, these roots may be expressed in terms of square and cube roots. However, as these three roots are all real, this is
casus irreducibilis, and any such expression involves non-real cube roots. • As , the four primitive eighth roots of unity are the square roots of the primitive fourth roots, . They are thus \pm\frac{\sqrt{2}}{2} \pm i\frac{\sqrt{2}}{2}. • See
Heptadecagon for the real part of a 17th root of unity. ==Periodicity==