Bossy Lobster

A blog by Danny Hermes; musing on tech, mathematics, etc.

Edit on GitHub

Trigonometry and Nested Radicals

Early last month, I was chatting with one of my officemates about a curious problem I had studied in high school. I hadn't written any of the results down, so much of the discussion involved me rediscovering the results and proving them with much more powerful tools than I once possessed.

Before writing about the problem I had played around with, I want to give a brief motivation. For as long as humans have been doing mathematics, finding values of π\pi has been deemed worthwhile (or every generation has just found it worthwhile to waste time computing digits).

One such way the Greeks (particularly Archimedes) computed π\pi was by approximating a circle by a regular polygon and letting the number of sides grow large enough so that the error between the area of the unit circle (π12)(\pi \cdot 1^2) and the area of the polygon would be smaller than some fixed threshold. Usually these thresholds were picked to ensure that the first kk digits were fully accurate — for some appropriate value of kk.

In many introductory Calculus courses, this problem is introduced exactly when the limit is introduced and students are forced to think about the area problem in the regular polygon:

Compute pi from polygons

Given NN sides, the area is NTNN \cdot T_N where TNT_N is the area of each individual triangle given by one side of the polygon and the circumcenter.

Call one such triangle ΔABC\Delta ABC and let BCBC be the side that is also a side of the polygon while the other sides have AB=AC=1\left|AB\right| = \left|AC\right| = 1 since the polygon is inscribed in a unit circle. The angle BAC=2πN\angle BAC = \frac{2\pi}{N} since each of the triangles has the same internal angle and there are NN of them. If we can find the perpendicular height hh from ABAB to C,C, the area will be 12hAB=h2\frac{1}{2} h \left|AB\right| = \frac{h}{2}. But we also know that

sin(BAC)=hAC\sin\left(\angle BAC\right) = \frac{h}{\left|AC\right|}

hence

h=sin(2πN).h = \sin\left(\frac{2\pi}{N}\right).

Combining all of these, we can approximate π\pi with the area:

πN2sin(2πN)=πsin(2π/N)2π/N.\pi \approx \frac{N}{2} \sin\left(\frac{2\pi}{N}\right) = \pi \frac{\sin\left(2\pi / N\right)}{2 \pi / N}.

As I've shown my Math 1A students, we see that

limNπsin(2π/N)2π/N=πlimx0sin(x)x=π\displaystyle \lim_{N \to \infty} \pi \frac{\sin\left(2\pi / N\right)}{2 \pi / N} = \pi \lim_{x \to 0} \frac{\sin(x)}{x} = \pi

so these are indeed good approximations.

Theory is Nice, But I Thought We Were Computing Something

Unfortunately for us (and Archimedes), computing sin(2πN)\sin\left(\frac{2\pi}{N}\right) is not quite as simple as dividing by N,N, so often special values of NN were chosen. In fact, starting from NN and then using 2N,2N, the areas could be computed via a special way of averaging the previous areas. Lucky for us, such a method is equivalent to the trusty half angle identities (courtesy of Abraham De Moivre). To keep track of these polygons with a power of two as the number of sides, we call

An=2n2sin(2π2n).A_n = \frac{2^n}{2} \sin\left(\frac{2\pi}{2^n}\right).

Starting out with the simplest polygon, the square with N=22N = 2^2 sides, we have

A2=2sin(π2)=2.A_2 = 2 \sin\left(\frac{\pi}{2}\right) = 2.

Jumping to the octagon (no not that "The Octagon"), we have

A3=4sin(π4)=422=22.A_3 = 4 \sin\left(\frac{\pi}{4}\right) = 4 \frac{\sqrt{2}}{2} = 2 \sqrt{2}.

So far, the toughest thing we've had to deal with is a 4545^{\circ} angle and haven't yet had to lean on Abraham (him, not him) for help. The hexadecagon wants to change that:

A4=8sin(π8)=81cos(π4)2=8224=422.A_4 = 8 \sin\left(\frac{\pi}{8}\right) = 8 \sqrt{\frac{1 - \cos\left(\frac{\pi}{4}\right)}{2}} = 8 \sqrt{\frac{2 - \sqrt{2}}{4}} = 4 \sqrt{2 - \sqrt{2}}.

To really drill home the point (and motivate my next post) we'll compute this for the 3232-gon (past the point where polygons have worthwhile names):

A5=16sin(π16)=161cos(π8)2.A_5 = 16 \sin\left(\frac{\pi}{16}\right) = 16 \sqrt{\frac{1 - \cos\left(\frac{\pi}{8}\right)}{2}}.

Before, we could rely on the fact that we know that a 45-45-90 triangle looked like, but now, we come across cos(π8),\cos\left(\frac{\pi}{8}\right), a value which we haven't seen before. Luckily, Abraham has help here as well:

cos(π8)=1+cos(π4)2=2+24=122+2\cos\left(\frac{\pi}{8}\right) = \sqrt{\frac{1 + \cos\left(\frac{\pi}{4}\right)}{2}} = \sqrt{\frac{2 + \sqrt{2}}{4}} = \frac{1}{2} \sqrt{2 + \sqrt{2}}

which lets us compute

A5=161122+22=822+2.A_5 = 16 \sqrt{\frac{1 - \frac{1}{2} \sqrt{2 + \sqrt{2}}}{2}} = 8 \sqrt{2 - \sqrt{2 + \sqrt{2}}}.

So why have I put you through all this? If we wave our hands like a magician, we can see this pattern continues and for the general nn

An=2n222+2++2A_n = 2^{n - 2} \sqrt{2 - \sqrt{2 + \sqrt{2 + \sqrt{\cdots + \sqrt{2}}}}}

where there are n3n - 3 nested radicals with the \oplus sign and only one minus sign at the beginning.

This motivates us to study two questions, what is the limiting behavior of such a nested radical:

2+s12+s2\sqrt{2 + s_1 \sqrt{2 + s_2 \sqrt{ \cdots }}}

as the signs s1,s2,s_1, s_2, \ldots take values in {1,1}\left\{-1, 1\right\}. Recasting in terms of the discussion above, we want to know how close we are to π\pi as we increase the number of sides.

When I was in high school, I just loved to nerd out on any and all math problems, so I studied this just for fun. Having heard about the unfathomable brain of Ramanujan and the fun work he had done with infinitely nested radicals, I wanted to examine which sequences of signs

(s1,s2,)(s_1, s_2, \ldots)

produced an infinite radical that converged and what the convergence behavior was.

I'm fairly certain my original questions came from an Illinois Council of Teachers of Mathematics (ICTM) contest problem along the lines of

Find the value of the infinite nested radical 2+2+\text{Find the value of the infinite nested radical } \sqrt{2 + \sqrt{2 + \cdots}}

or maybe the slightly more difficult

22+22+.\sqrt{2 -\sqrt{2 + \sqrt{2 -\sqrt{2 +\cdots}}}}.

Armed with my TI-83, I set out to do some hardcore programming and figure it out. It took me around a month of off-and-on tinkering. This second time around as a mathematical grown-up, it took me the first half of a plane ride from SFO to Dallas.

In the next few weeks/months, I hope to write a few blog posts, including math, proofs and some real code on what answers I came up with and what other questions I have.

Comments