The Heptadecagon
In 1796, a teenage Gauss proved that a regular 17-gon can be constructed using a straight-edge and compass by showing that a primitive 17th root of unity can be found by solving a succession of quadratic equations over the rationals.
Let be a primitive 17th root of unity. Then
(by considering the equation ; the sum of the roots is zero, and the other root is ).
Pick a generator of . Let us choose . Then the 17th roots of unity can be written in the sequence
Define to be the sum of every second member of the sequence, and to be the sum of the other members, that is,
Then . By construction, and are Gaussian periods which means it is easy to compute (or use brute force(!)), thus are roots of a quadratic equation with integer coefficients, namely . The solution is the positive one since only two terms in its sum point to the left on the complex plane.
Next define from the elements used to construct in a similar way:
To save room, let us calculate the powers of :
Thus
Then . It turns out , thus are roots of a quadratic equation with coefficients involving the integers and .
Similarly we can define from
and solve a quadratic to obtain their values.
Now define from in this fashion:
We have and , so can be found from a quadratic whose coefficients we know. Lastly we either note that both the sum and product of and are known so they can be found from a quadratic, or use the fact that
and simply halve .
We can generalize this procedure to find expressions for any root of unity.
A Magic Solution
Using the above, we can give an elementary method for finding that seems to work magically. If we don't mention generators the solution appears mysterious.
Let . By considering the sums of the roots of unity we have .
Set
By basic trigonometric identities we have
(These correspond to the s above.) Thus . Also,
Similarly . We also find , along with similar equations for . Define
(Naturally, correspond to above.) Then
so we can solve a quadratic equation to find . Once we have them, we can solve a quadratic equation to find , and another to find . With these values we can solve for .
[I found this version in a solution that also describes a practical straight-edge-and-compass construction.]