Trigonometry Angles

DOWNLOAD Mathematica Notebook

The angles mpi/n (with m,n integers) for which the trigonometric functions may be expressed in terms of finite root extraction of real numbers are limited to values of m which are precisely those which produce constructible polygons. Analytic expressions for trigonometric functions with arguments of this form can be obtained using the Wolfram Language function ToRadicals, e.g., ToRadicals[Sin[Pi/17]], for values of n>=7 (for n<=6, the trigonometric functions auto-evaluate in the Wolfram Language).

Compass and straightedge constructions dating back to Euclid were capable of inscribing regular polygons of 3, 4, 5, 6, 8, 10, 12, 16, 20, 24, 32, 40, 48, 64, ..., sides. However, Gauss showed in 1796 (when he was 19 years old) that a sufficient condition for a regular polygon on n sides to be constructible was that n be of the form

 n=2^kp_1p_2...p_s,
(1)

where k is a nonnegative integer and the p_i are distinct Fermat primes. Here, a Fermat prime is a prime Fermat number, i.e., a prime number of the form

 F_n=2^(2^n)+1,
(2)

where n>=0 is an integer, and the only known primes of this form are 3, 5, 17, 257, and 65537. The first proof of the fact that this condition was also necessary is credited to Wantzel (1836).

A necessary and sufficient condition that a regular n-gon be constructible is that phi(n) be a power of 2, where phi(n) is the totient function (Krížek et al. 2001, p. 34).

Constructible values of n for n<300 were given by Gauss (Smith 1994), and the first few are 1, 2, 3, 4, 5, 6, 8, 10, 12, 15, 16, 17, 20, 24, 30, 32, 34, 40, 48, 51, 60, 64, 68, 80, 85, 96, 102, 120, 128, 136, 160, 170, 192, ... (OEIS A003401).

The algebraic degrees of cos(2pi/n) for constructible polygons are 1, 1, 1, 1, 2, 1, 2, 2, 2, 4, 4, 8, 4, 4, 4, 8, ...(OEIS A113401), and of cos(pi/n) are ... (OEIS A113402).

PolygonConstructionTri

Gardner (1977) and independently Watkins (Conway and Guy 1996, Krížek et al. 2001) noticed that the number of sides for constructible polygons with odd numbers of sides are given by the first 32 rows of the Sierpiński sieve interpreted as binary numbers, giving 1, 3, 5, 15, 17, 51, 85, 255, ... (OEIS A004729, Conway and Guy 1996, p. 140). In other words, every row is a product of distinct Fermat primes, with terms given by binary counting.

A partial table of the analytic values of sine, cosine, and tangent for arguments pi/n with small integer n is given below. Derivations of these formulas appear in the following entries.

x ( degrees)x (rad)sinxcosxtanx
0.00010
15.01/(12)pi1/4(sqrt(6)-sqrt(2))1/4(sqrt(6)+sqrt(2))2-sqrt(3)
18.01/(10)pi1/4(sqrt(5)-1)1/4sqrt(10+2sqrt(5))1/5sqrt(25-10sqrt(5))
22.51/8pi1/2sqrt(2-sqrt(2))1/2sqrt(2+sqrt(2))sqrt(2)-1
30.01/6pi1/21/2sqrt(3)1/3sqrt(3)
36.01/5pi1/4sqrt(10-2sqrt(5))1/4(1+sqrt(5))sqrt(5-2sqrt(5))
45.01/4pi1/2sqrt(2)1/2sqrt(2)1
60.01/3pi1/2sqrt(3)1/2sqrt(3)
90.01/2pi10infty
180.0pi0-10

There is a nice mnemonic for remembering sines of common angles,

sin(0 degrees)=1/2sqrt(0)
(3)
sin(30 degrees)=1/2sqrt(1)
(4)
sin(45 degrees)=1/2sqrt(2)
(5)
sin(60 degrees)=1/2sqrt(3)
(6)
sin(90 degrees)=1/2sqrt(4).
(7)

In general, any trigonometric function can be expressed in radicals for arguments of the form rpi, where r=m/n is a rational number, by writing the trigonometric functions in exponential form and the exponentials as roots of -1. For example,

 cos(pi/(23))=-1/2(-1)^(22/23)[1+(-1)^(2/23)].
(8)

This confirms that for r rational, trigonometric functions of rpi are always algebraic numbers. For example, the cases n=7 and n=9 involve the cubic equation (in sin^2(pi/7) and sin^2(pi/9), respectively). The polynomial of which a given expression is a root can be obtained in the Wolfram Language using the syntax RootReduce[ToRadicals[expr]], which produces a Root object.

Letting (P(x))_n denoted the nth root of the polynomial P(x) in the ordering of the Wolfram Language's Root object, the first few analytic values of sin(pi/n) are summarized in the following table.

nsin(pi/n)
10
21
31/2sqrt(3)
41/2sqrt(2)
5(16x^4-20x^2+5)_3
61/2
7(64x^6-112x^4+56x^2-7)_4
8(8x^4-8x^2+1)_3
9(64x^6-96x^4+36x^2-3)_4
101/4(sqrt(5)-1)

The algebraic order of sin(pi/n) is given analytically by

 ord(sin(pi/n))={1   if n=2; phi(n)   if n=0,1,3 (mod 4); 1/2phi(n)   otherwise,
(9)

where phi(n) is the totient function. For n=1, 2, ..., this gives the sequence 1, 1, 2, 2, 4, 1, 6, 4, 6, 2, 10, 4, ... (OEIS A055035).

The minimal polynomial for sin(2pi/p) with p an odd prime is given by

 S_p(x)=sum_(k=0)^((p-1)/2)(-1)^k(p; 2k+1)(1-x^2)^((p-1)/2-k)x^(2k)
(10)

(Beslin and de Angelis 2004).

If n!=4 and n=2^rm, the algebraic order of sin(2pi/n) is given by

 ord(sin((2pi)/n))={phi(n)   if r=0, 1; 1/4phi(n)   if r=2; 1/2phi(n)   if r>=3
(11)

(Ribenboim 1972, p. 289; Beslin and de Angelis 2004). This gives the sequence 1, 1, 2, 1, 4, 2, 6, 2, 6, 4, 10, 1, ... (OEIS A093819).

The first few analytic values of cos(pi/n) are summarized in the following table.

ncos(pi/n)
1-1
20
31/2
41/2sqrt(2)
51/4(1+sqrt(5))
61/2sqrt(3)
7(8x^3-4x^2-4x+1)_3
8(8x^4-8x^2+1)_4
9(8x^3-6x-1)_3
10(16x^4-20x^2+5)_4

The algebraic order of cos(pi/n) is given analytically by

 ord(cos(pi/n))={1   if n=1; phi(n)   if n=0 (mod 2); 1/2phi(n)   if n=1 (mod 2),
(12)

where phi is the totient function. For n=1, 2, ..., this gives the sequence 1, 1, 1, 2, 2, 2, 3, 4, 3, 4, 5, 4, 6, ... (OEIS A055034; Lehmer 1933, Watkins and Zeitlin 1993, Surowski and McCombs 2003).

The algebraic order of cos(2pi/n) is given analytically by

 ord(cos((2pi)/n))={1   if n=1 or 2; 1/2phi(n)   if n>2
(13)

(Ribenboim 1972, p. 289; Beslin and de Angelis 2004) giving the sequence 1, 1, 1, 1, 2, 1, 3, 2, 3, 2, 5, ... (OEIS A023022).

For cos(2pi/p) with p an odd prime, an explicit formula can be given for the minimal polynomial, namely

 Psi(x)=sum_(i=0)^s(-1)^isigma_i(2x)^(s-i),
(14)

where

s=1/2(p-1)
(15)
sigma_(2k)=(-1)^k(s-k; k)
(16)
sigma_(2k-1)=(-1)^k(s-k; k-1)
(17)

(Surowski and McCombs 2003; correcting the sign in the definition of sigma_(2k-1)). Watkins and Zeitlin (1993) showed that

 T_(s+1)(x)-T_s(x)=2^sproduct_(d|n)Psi(x)
(18)

for n=2s+1 odd, where T_n(x) is a Chebyshev polynomial of the first kind, and

 T_(s+1)(x)-T_(s-1)(x)=2^sproduct_(d|n)Psi_d(x)
(19)

for n=2s even.

Beslin and de Angelis (2004) give the simpler form

 C_p(x)=S_p(sqrt((1-x)/2)),
(20)

where S_p(x) is as defined above.

As already noted, a special type of expansion in terms of radicals with real arguments can be obtained if n is a power of two times a product of distinct Fermat primes. For other values of n, the situation becomes more complicated. It is now no longer possible to express trigonometric functions in a form that they are expressed as real radicals, but a certain minimal representation still exists. The simplest nontrivial example is for n=7. The exact meaning of "minimal" is rather technical and is related to the Galois subgroups of certain cyclotomic polynomials (Weber 1996). As it turns out, for n prime, the expansions are especially interesting and difficult, and higher order Galois group calculations are both difficult and time-consuming. For example, n=23 is a very difficult case and takes a long time to calculate. Some larger primes are easier again but the complexity grows with the size of the prime on average.

While individual trigonometric functions may require complicated representations at certain angles, there are general formulas for the products of these functions. For example,

product_(k=1)^(n)cos((kpi)/n)={0 if n=0 (mod 2); ((-1)^((n+1)/2))/(2^(n-1)) if n=1 (mod 2)
(21)
product_(k=1)^(n)sin((kpi)/n)=0
(22)
product_(k=1)^(|_n/2_|)cos((kpi)/n)={0 if n=0 (mod 2); 1/(2^((n-1)/2)) if n=1 (mod 2)
(23)
product_(k=1)^(|_n/2_|)sin((kpi)/n)=sqrt(n/(2^(n-1))).
(24)

The first few values of the latter for n=1, 2, ... are therefore 1, 1, 3/4, 1/2, 5/16, 3/16, ... (OEIS A000265 and A084623). Another example is the general case of Morrie's law,

 2^kproduct_(j=0)^(k-1)cos(2^ja)=(sin(2^ka))/(sina).
(25)

Wolfram Web Resources

Mathematica »

The #1 tool for creating Demonstrations and anything technical.

Wolfram|Alpha »

Explore anything with the first computational knowledge engine.

Wolfram Demonstrations Project »

Explore thousands of free applications across science, mathematics, engineering, technology, business, art, finance, social sciences, and more.

Computerbasedmath.org »

Join the initiative for modernizing math education.

Online Integral Calculator »

Solve integrals with Wolfram|Alpha.

Step-by-step Solutions »

Walk through homework problems step-by-step from beginning to end. Hints help you try the next step on your own.

Wolfram Problem Generator »

Unlimited random practice problems and answers with built-in Step-by-step solutions. Practice online or make a printable study sheet.

Wolfram Education Portal »

Collection of teaching and learning tools built by Wolfram education experts: dynamic textbook, lesson plans, widgets, interactive Demonstrations, and more.

Wolfram Language »

Knowledge-based programming for everyone.