Roots of Unity Filter Part 2 - Roots of Unity
Note
This is a three part series I wrote back in 2019 on a technique applicable to certain competitive math problems: roots of unity filters. The first two parts are just a recap of complex numbers and roots of unity respectively. If you're already comfortable with both of these topics, feel free to skip to Part 3.
Basics
Definition
The th roots of unity for a positive integer are all of the complex numbers that satisfy the following equation:
One thing to note from this equation is that there are th roots of unity since the roots of unity could be interpreted as the roots to the polynomial
In this document, we will denote the "smallest" th root of unity as the th root of unity with the smallest positive angle when graphed on the complex coordinate plane. Note that this means although is always an th root of unity, it is not considered in this document as the "smallest" th root of unity.
Theorem
If is the smallest th root of unity, then all of the powers of are also roots of unity.
This can be proven as follows:
In fact, all of the th roots of unity can be written as the first powers of the smallest th root of unity.
Note that with this method, we do not obtain more than roots of unity because if we raise to the th power, we can factor out a term of to obtain the root of unity again. This shows that the th roots of unity are cyclicnature, which is a really powerful application of them especially towards things like roots of unity filter, which we will cover next.
Polynomial Interpretation
As we stated before, we can consider the th roots of unity as the roots of the polynomial
However, we can also write a polynomial in terms of its factors, which means that we can write the polynomial as the following:
This interpretation can be pretty useful in a few problems, as we will see in an example later.
A more important aspect of this interpretation is the following result. Note that we can actually factor the equation as:
Try multiplying out the factorization to see why. If we divide both sides by we obtain the following theorem:
Theorem
For any th root of unity , the following equation is true:
Note that for this theorem, does not have to be the smallest th root of unity.
Calculating Roots of Unity
We can calculate roots of unity using de Moivre's Theorem. Consider the equation
We can rewrite in its polar form as , where is any integer. Then, by applying de Moivre's Theorem with the exponent , we obtain the following:
Note that a negative exponent with de Moivre's Theorem corresponds to dividing the angle by , not multiplying it by .
By ranging in the interval , all roots of unity can be obtained. By setting , we can show that the smallest th root of unity is:
Example
The 5th roots of unity are as follows:
Example
The 4th roots of unity are as follows:
Graphing Roots of Unity
A quite interesting property emerges once we graph the nth roots of unity. To demonstrate this, we shall graph the 5th roots of unity below.
5th Roots of Unity
As seen above, the 5th roots of unity produce a set of points evenly spaced around the complex plane. In fact, they form a regular pentagon. This is true for any th roots of unity.
Theorem
The th roots of unity will produce a regular -gon when graphed in the complex plane.
This can be seen when we look at the form of the roots of unity, as all of our points are evenly spaced around the unit circle.
This visualization can help give some visual intuition towards understanding the following sum:
The nth roots of unity are all evenly spaced around the point , making their average the point . As a result, the sum of their real components must be and the sum of their imaginary components must be . As a result, their total sum must be .
This visualization also helps with showing why the roots of unity are cyclic intuitively, as once you multiply the angle of a root of unity times to obtain more roots of unity, you will come back around the unit circle and start again.
Example Problems
Example
Problem from Brilliant.org by Andy Hayes
Consider the equation
Let be the th distinct root of the equation, and let be the real part of the root. Find
There are three primary ways to approach this problem:
-
The given equation may remind you of the result we derived earlier, which states that the given equation is valid for all of the th roots of unity besides 1. As a result, we can immediately apply our knowledge about roots of unity and solve the problem.
-
However, if you do not see the above connection immediately, there are a few other ways to see the above. First, you could realize that the sum given is a geometric series, which means that it can be rewritten in the form
From this, it is clear that the numerator will be equal to for each of the th roots of unity, while the denominator eliminates as a solution.
-
Another way to see the above is to multiply the entire given equation by .
We can then subtract the original equation from this equation to obtain:
We can see that all of the th roots of unity are solutions, although is an extraneous solution we obtained after multiplying everything by . We can be sure there is an extraneous solution since there are 8 8th roots of unity, but the original polynomial only has degree 7.
Once we find this, we can easily calculate the 8th roots of unity because each of them will correspond to angles in increments of .
8th Roots of Unity
By computing the cosine (which produces the real component of the roots of unity) of all of these angles and including , we obtain the answer:
Example
Problem from Thomas Mildorf's Mock AIME 1: #10
is a regular heptagon inscribed in a unit circle centered at . is the line tangent to the circumcircle of at , and is a point on such that is isosceles. Let denote the value of . Determine the value of .
At first glance, this problem may not seem related to roots of unity. However, it can be solved really nicely with roots of unity.
The first hint that roots of unity can be applied is the fact that there is a regular heptagon inscribed in a unit circle. Heptagons are nasty in geometry, as they have fractional angle measures. Secondly, the 7th roots of unity are perfect for expressing 7 points equally spaced around the unit circle, which is what this heptagon is.
As a result, we can graph the 7 roots of unity as as shown below.
ABCDEF
Note that we aligned with the x-axis (making it equal to 1) to make the next step simpler. We then have to draw the line such that is tangent to the heptagon. Since we alined with the x-axis, the line is simply a vertical line.
ABCDEF with line l
We can then draw the point such that is isosceles. Note that since the roots of unity are centered around the origin, the center of our heptagon will be the origin. Since is going to have to lie on and is vertical, the angle is going to be a right angle. Therefore, the triangle must have that . If the triangle had any other two sides equal, then the angles would be impossible. You can try drawing it and seeing for yourself.
Note that since is on the unit circle, so . We will arbitrarily choose to be unit above the x-axis. The answer will be the same regardless of whether is above or below the x-axis due to symmetry.
ABCDEF with line l and point P
Now that the diagram is set up, we can proceed with calculating the given product, with is the square of the product of all of the distances from to all of the points on in .
To calculate the distance between two complex numbers, we need to do a bit of thinking. To find the distance between two complex numbers in the complex plane, we can first find the complex number that represents the difference between the two. Then, we can just find the magnitude of this complex number. For instance, the distance between complex numbers and would be:
Now that we have this out of the way, we can go back to the problem. We can label all of the points of our hexagon as the roots of unity .
ABCDEF with point P and Distances
We can also label our point as the complex number . To find the product of the distances from to each of the points, we can do the following:
By using the properties of multiplied complex numbers, we can show that this is equal to the following:
You may realize that this looks similar to what we discussed earlier with an alternative form of the polynomial , but with plugged in for .
Therefore, we can rewrite as the following:
We know what is, so now we can just plug in the numbers! However, rather than calculating by hand, we can take a shortcut with de Moivre's theorem.
We can calculate and . Therefore, we can write in polar form as . We can then calculate easily using de Moivre's as:
We can then finish the problem: