Sines, Cosines and Roots of Unity
1. Introduction
Today’s post will be more elementary in nature, as it is something that I first thought of many years ago but haven’t gotten around to sharing until now. Nevertheless, I think it is good to know and may come off as surprising to those that are not familiar with it. It has to do with the properties of a special set of complex numbers: the roots of unity. We can extract lots of information from these numbers; today’s post will focus on the values of trigonometric functions at certain special inputs.
2. On the Complex Plane
Take the equation . What are the solutions to this equation over the complex numbers?
Ok, that was easy. How about ?
Still easy? is an obvious solution, but so is , and these are the only two numbers that work. Moving on.
How about ? is still a solution, and you may be tempted to say it is the only one. But remember, we are working over the complex numbers, and there are two more hidden solution: and . Verify that their cubes are indeed . But where did these numbers come from? Let us plot these points on the complex plane:
They appear to form an equilateral triangle! Indeed, convince yourself as an exercise that the specified coordinates indeed do form an equilateral triangle. Is this just a coincidence? Lets try the next equation: . Which complex values of work? You may have been noticing a pattern: the first equation had one solution, the second had two, the third had three. Will this one have four?
Indeed, it does, and you may be able to find them more easily that the cube case by repeatedly taking square roots. Here they are on the complex plane:
It seems like the numbers and form another interesting shape: a square. Will this pattern continue? The answer is a resounding yes, and it has to do with an important property of complex numbers and their multiplication. Any complex number can be represented in polar form, with a magnitude (distance to the origin) and an argument (angle to the positive real axis). When two complex numbers are multiplied, the result has a magnitude equal to the product of the initial magnitudes and an argument equal to the sum of the initial arguments.
We apply this to the general case of , where is a fixed natural number. Suppose has a magnitude and an argument . Then, will have a magnitude of multiplied by itself times, or . Since is also equal to , which has a magnitude of , we conclude that (note that there is only one solution for here since it is constrained to be a nonnegative real number). Similarly, the argument of will be added to itself times, or . This is equal to the argument of , which is since it is aligned with the positive real axis. Hence, . So is there only one solution?
We have forgotten something important: the argument of could be , but it could also be any multiple of works! Hence, the possible arguments of are actually for any integer . There seems to be infinitely many such solutions, but the arguments themselves cycle back: adding to any particular adds to the total argument, effectively doing nothing. So there are indeed distinct roots; we have also shown that they are all a distance of from the origin and their angles to the axis increase by for each new root. But this means they are equally spaced about the origin, which is exactly what we need to show that they form a regular -gon around the origin.
3. tan(360)?
Now we turn to a convenient usage of our understanding of the complex roots of : if we can explicitly list these roots for some particular value of , then we can obtain lots of information about the values of trigonometric functions on the angle . As a simple example, we take . We know is a root, but we also know that it makes a particular angle with the positive x-axis: . Hence, we know the tangent of is the ratio of the vertical and horizontal coordinates of this point, specifically . Of course, this angle is just , and it probably isn’t that hard to find its tangent. But what about a harder angle?
To find the trigonometric functions of this angle, we first recognize that it is simply in radians. Hence, we can draw a regular pentagon on the complex plane centered on the origin, as shown in the above diagram. From the previous section, we know that these points are also the complex solutions of . Our goal is to learn something about the real and imaginary parts of these points, so we plug into the equation, expand with the binomial theorem and try to solve for and .
.
Looking at the second equation, we see that it is actually homogeneous in : that is, all terms of the equation have the same combined degree of in and . Hence, if we divide both sides by , we will be able to obtain an equation in a single common variable, . However, before dividing, we must investigate the case of . This just corresponds to the case of real solutions, which we are not interested in as we know the only real solution is . Hence, we proceed with the division by :
.
Now, we realize we can do even better: substitute to make the equation a simple quadratic:
.
Which root do we choose? One root corresponds to the numbers , while the other corresponds to . It is clear from visual inspection that the point at has the lower value of , so we will use the minus sign. Further, observe that the variable has a trigonometric meaning: it is . Therefore,
.
Thus, we have the answer. Although this is a valid expression, it may not seem as straightforward as quantities like , since it contains a nested square root inside another square root. However, there is a related trigonometric quantity that happens to have a simpler expression:
.
.
Thus, we see that also happens to be half of the golden ratio! This fact can also be demonstrated in simpler ways rooted in synthetic geometry, such as applying Ptolemy’s theorem to part of a regular pentagon.
4. Constructibility
Let us now discuss a very interesting application regarding the exact values of sines/cosines/tangents of angles of the form for integer : they directly tell us whether or not the regular -gon can be constructed with ruler and compass! As you may all remember from math class, shapes like the equilateral triangle, square and regular hexagon can be easily constructed with ruler and compass, but what about the regular pentagon? Given a prescribed length of one unit on a piece of paper, can we create a regular pentagon with a side length of one unit?
Observe that constructing a regular pentagon effectively boils down to constructing a length of : once this has been accomplished, it is easy to construct an angle of using right triangles, and then one can easily generate the pentagon. Here is the important fact about ruler-and-compass constructions: given a length of one unit, it is possible to create lengths of any multiple of that unit, where is a real number that can be generated by a finite number of operations of addition/subtraction, multiplication/division and square roots of integers. Now, we see that since , it fits the bill: it can be generated by applying a square root to the integer , then adding , and finally dividing by . Hence, the regular pentagon is indeed constructible! (Try it out yourself by first generating a length of , then proceeding from there. There are more geometrically elegant methods, but this one seems to be the most failsafe method in the general case).
Unlike square roots, however, cube roots of integers don’t fare so well with ruler and compass constructions. Consider the case of a regular heptagon: can we construct a length relating to a trigonometric function of ? It turns out that we can use a very similar method as in the pentagon case to find the following expression for (readers are strongly encouraged to try this out by expanding on their own before looking ahead!)
The fact that this is a cubic equation should already make us suspicious of the constructibility of the heptagon. A very important fact about this cubic is that it has integer coefficients, meaning that if there are any solutions involving square root radicals, then their radical conjugates must also be solutions. We can now make the following informal argument: it can be quickly checked with the Rational Root Theorem that there are no purely rational solutions, so if the solutions can be expressed using square root radicals, then they must pair up with their conjugates to form an even number of total solutions. But the given equation is a cubic which has three solutions, a contradiction. Hence, the solutions cannot be expressed with square roots, and the case for the heptagon is closed.
Due to the work of Gauss, we actually have a full characterization of all -gons that can be constructed with ruler and compass. On a final departing note, it may come as a great surprise to many that a number like , which seems at first glance to present nothing but odd deviations and inconveniences, would have the property of constructibility! Indeed, Gauss showed that this comes from the fact that is a Fermat prime.
Thanks for sticking through this long post, and see you next time!
One thought on “Sines, Cosines and Roots of Unity”
good work!keep it up.