The sum of powers of the -th roots of unity generated by a primitive -th root of unity is either zero or . We call this property the orthogonality of roots of unity. We will directly leverage this property in the next chapter.
We first illustrate this property through examples, so the reader becomes familiar with it. Then we will prove it in general.
The sum of powers of roots of unity
Consider the -th roots of unity generated by a primitive -th root of unity :
If we take this list of elements and raise each element to a power , we obtain another list:
The goal of this chapter is to show what happens when we sum all the elements of this new list. In other words, we want to calculate the value of the sum below for any :
Consider the th roots of unity in (though any field with a primitive th root of unity would work). For a primitive root , these roots are
or, using that in this case, they are
Let us raise these elements to some exponent , say :
We can simplify some of these elements by noting that and .
Thus, the same list can be written as
The sum of these elements is zero, since
As another example, let us start with the 4th roots of unity in again, but now raise each element to the power of 8.
This yields the following elements:
Since is even, we have and .
Also, remember that for the th roots of unity, . Thus, .
Therefore, our list simplifies to
The sum of the elements is
In the examples above, when is not a multiple of , the sum is zero, but when is a multiple of (), the sum is . This is true in general.
We will show and prove the following:
- If the power is not a multiple of , the sum is zero.
- Otherwise, if is a multiple of , the sum is .
Before proving this fact in general, let us see one more example.
8th roots of unity in
Consider the th roots of unity in . They can be written as
where we used that for a primitive th root of unity .
If we raise each element of this list to a power that is not a multiple of and sum all the elements, the result is zero. Otherwise, if is a multiple of , the sum is .
The new list is given by
Let us check the possible cases.
Case 1: is not a multiple of
Let us consider the case . The list is
It can be written as
Using the fact that , the list becomes
Summing these elements, we obtain
Exercise: Show that the sum vanishes for and .
Case 2: is a multiple of 8
Let us consider the case where . Then we obtain the new list
or
We also have that:
Since we know that for any primitive 8th root of unity, the list is actually
and the sum of all terms is .
Sum of the powers of the -th roots of unity
Now let us prove in general what we have shown through examples.
Theorem. Consider all the -th roots of unity generated by a primitive -th root of unity . The sum of the powers of these -th roots of unity is:
- zero if the power is not a multiple of ;
- if the power is a multiple of .
Below, we will prove the two cases separately.
Case (1): Proof that the sum is zero when the exponent is not a multiple of
Consider the -th roots of unity, each raised to a power that is not a multiple of :
We want to calculate the sum
This sum can be written as
We can use the fact that to rewrite the sum as
The formula above is a geometric series, that is, a sum of successive powers of the same element:
A geometric series of this form satisfies
To prove that the above fraction equals zero, we must first show that the denominator is non-zero and then that the numerator equals zero.
The fact that is not a multiple of is crucial here. Recall the definition of a primitive -th root of unity: it is an element such that , but for any .
Thus, for primitive -th roots of unity , only powers of are equal to , such as , and so on.
Since is not a multiple of , is not of the form for any integer , and therefore . Thus, the denominator of the fraction above is nonzero.
Let us now consider the numerator . It can be written as .
Since is a primitive -th root of unity, we have , and the numerator becomes
Since the numerator is zero and the denominator is nonzero, the entire sum is zero.
In the next section, we will study the case where the exponent is a multiple of .
Case (2): Raising each element by an exponent that is a multiple of
In this section, we will show that the sum of the -th roots of unity raised to a power that is a multiple of is not zero, but rather .
Consider the -th roots of unity
Let us raise each element in this list to some power :
Since , we can rearrange each term above as follows:
Now consider the case in which is a multiple of , that is, for some . Thus, our list can be written as
Since , we obtain the list
Using , the list consists of the number 1 raised to some power:
or simply
Since there are elements in the list, the sum is
Combining the two properties
An elegant and convenient way to express both properties is the following:
Here the summation ranges from the first term, , to the last, .
The inner product of two lists of -th roots of unity
In this section, we will rewrite our relation obtained above in a form that is more suitable for use in the following chapters.
More precisely, we will write it as
First, let us show that these two forms are the same, and then motivate the second one.
The two forms are equivalent
If is congruent to mod (second form), then for some integer .
Thus, we are saying that , which in the first form is written as , is a multiple of . This is the same as stating that is a multiple of .
The reason for using and in the second form is that we will consider the inner product of two vectors, each consisting of powers of the roots of unity.
The inner product of two vectors of roots of unity
Let us consider two vectors of -th roots of unity. The first vector, , is raised to the power and has the form
The second vector, , is raised to the negative exponent and has the form
Note: Raising the primitive -th root of unity to a negative power is not a problem. We can write , where is the multiplicative inverse of
Since , multiplying both sides by gives . Raising both sides to the power , we obtain .
The inner product of vectors and is
Equivalently, this can be written as
In a compact notation, the inner product of and can be written as
Therefore, the formula
can be understood as follows: the inner product of two vectors whose entries are powers of -th roots of unity is either or zero, depending on whether the exponents and are congruent modulo . We will use this fact in the following chapters.
This article is part of a series on the Number Theoretic Transform in our ZK Book