In algebra, a nested radical is a radical expression (one containing a square root sign, cube root sign, etc.) that contains (nests) another radical expression. Examples include

${\displaystyle {\sqrt {5-2{\sqrt {5}}\ }},}$

which arises in discussing the regular pentagon, and more complicated ones such as

${\displaystyle {\sqrt[{3}]{2+{\sqrt {3}}+{\sqrt[{3}]{4}}\ }}.}$

## Denesting

Some nested radicals can be rewritten in a form that is not nested. For example,

${\displaystyle {\sqrt {3+2{\sqrt {2}}}}=1+{\sqrt {2}}\,,}$

${\displaystyle {\sqrt {2}}+{\sqrt {5-2{\sqrt {6}}}}={\sqrt {3}},\quad }$[1]

${\displaystyle {\sqrt[{3}]{{\sqrt[{3}]{2}}-1}}={\frac {1-{\sqrt[{3}]{2}}+{\sqrt[{3}]{4}}}{\sqrt[{3}]{9}}}\,.}$

Another simple example,

${\displaystyle {\sqrt[{3}]{\sqrt {2}}}={\sqrt[{6}]{2}}}$

Rewriting a nested radical in this way is called denesting. This is not always possible, and, even when possible, it is often difficult.

## Two nested square roots

In the case of two nested square roots, the following theorem completely solves the problem of denesting.[2]

If a and c are rational numbers and c is not the square of a rational number, there are two rational numbers x and y such that

${\displaystyle {\sqrt {a+{\sqrt {c}}}}={\sqrt {x}}\pm {\sqrt {y}}}$
if and only if ${\displaystyle a^{2}-c~}$ is the square of a rational number d.

If the nested radical is real, x and y are the two numbers

${\displaystyle {\frac {a+d}{2}}~}$
and ${\displaystyle ~{\frac {a-d}{2}}~,~}$ where ${\displaystyle ~d={\sqrt {a^{2}-c}}~}$ is a rational number.

In particular, if a and c are integers, then 2x and 2y are integers.

This result includes denestings of the form

${\displaystyle {\sqrt {a+{\sqrt {c}}}}=z\pm {\sqrt {y}}~,}$
as z may always be written ${\displaystyle z=\pm {\sqrt {z^{2}}},}$ and at least one of the terms must be positive (because the left-hand side of the equation is positive).

A more general denesting formula could have the form

${\displaystyle {\sqrt {a+{\sqrt {c}}}}=\alpha +\beta {\sqrt {x}}+\gamma {\sqrt {y}}+\delta {\sqrt {x}}{\sqrt {y}}~.}$
However, Galois theory implies that either the left-hand side belongs to ${\displaystyle \mathbb {Q} ({\sqrt {c}}),}$ or it must be obtained by changing the sign of either ${\displaystyle {\sqrt {x}},}$ ${\displaystyle {\sqrt {y}},}$ or both. In the first case, this means that one can take x = c and ${\displaystyle \gamma =\delta =0.}$ In the second case, ${\displaystyle \alpha }$ and another coefficient must be zero. If ${\displaystyle \beta =0,}$ one may rename xy as x for getting ${\displaystyle \delta =0.}$ Proceeding similarly if ${\displaystyle \alpha =0,}$ it results that one can suppose ${\displaystyle \alpha =\delta =0.}$ This shows that the apparently more general denesting can always be reduced to the above one.

Proof: By squaring, the equation

${\displaystyle {\sqrt {a+{\sqrt {c}}}}={\sqrt {x}}\pm {\sqrt {y}}}$
is equivalent with
${\displaystyle a+{\sqrt {c}}=x+y\pm 2{\sqrt {xy}},}$
and, in the case of a minus in the right-hand side,

|x||y|,

(square roots are nonnegative by definition of the notation). As the inequality may always be satisfied by possibly exchanging x and y, solving the first equation in x and y is equivalent with solving

${\displaystyle a+{\sqrt {c}}=x+y\pm 2{\sqrt {xy}}.}$

This equality implies that ${\displaystyle {\sqrt {xy}}}$ belongs to the quadratic field ${\displaystyle \mathbb {Q} ({\sqrt {c}}).}$ In this field every element may be uniquely written ${\displaystyle \alpha +\beta {\sqrt {c}},}$ with ${\displaystyle \alpha }$ and ${\displaystyle \beta }$ being rational numbers. This implies that ${\displaystyle \pm 2{\sqrt {xy}}}$ is not rational (otherwise the right-hand side of the equation would be rational; but the left-hand side is irrational). As x and y must be rational, the square of ${\displaystyle \pm 2{\sqrt {xy}}}$ must be rational. This implies that ${\displaystyle \alpha =0}$ in the expression of ${\displaystyle \pm 2{\sqrt {xy}}}$ as ${\displaystyle \alpha +\beta {\sqrt {c}}.}$ Thus

${\displaystyle a+{\sqrt {c}}=x+y+\beta {\sqrt {c}}}$
for some rational number ${\displaystyle \beta .}$ The uniqueness of the decomposition over 1 and ${\displaystyle {\sqrt {c}}}$ implies thus that the considered equation is equivalent with
${\displaystyle a=x+y\quad {\text{and}}\quad \pm 2{\sqrt {xy}}={\sqrt {c}}.}$
It follows by Vieta's formulas that x and y must be roots of the quadratic equation
${\displaystyle z^{2}-az+{\frac {c}{4}}=0~;}$
its ${\displaystyle ~\Delta =a^{2}-c=d^{2}>0~}$ (≠ 0, otherwise c would be the square of a), hence x and y must be
${\displaystyle {\frac {a+{\sqrt {a^{2}-c}}}{2}}~}$
and ${\displaystyle ~{\frac {a-{\sqrt {a^{2}-c}}}{2}}~.}$ Thus x and y are rational if and only if ${\displaystyle d={\sqrt {a^{2}-c}}~}$ is a rational number.

For explicitly choosing the various signs, one must consider only positive real square roots, and thus assuming c > 0. The equation ${\displaystyle a^{2}=c+d^{2}}$ shows that |a| > c. Thus, if the nested radical is real, and if denesting is possible, then a > 0. Then the solution is

{\displaystyle {\begin{aligned}{\sqrt {a+{\sqrt {c}}}}&={\sqrt {\frac {a+d}{2}}}+{\sqrt {\frac {a-d}{2}}},\\[6pt]{\sqrt {a-{\sqrt {c}}}}&={\sqrt {\frac {a+d}{2}}}-{\sqrt {\frac {a-d}{2}}}.\end{aligned}}}

## Some identities of Ramanujan

Srinivasa Ramanujan demonstrated a number of curious identities involving nested radicals. Among them are the following:[3]

${\displaystyle {\sqrt[{4}]{\frac {3+2{\sqrt[{4}]{5}}}{3-2{\sqrt[{4}]{5}}}}}={\frac {{\sqrt[{4}]{5}}+1}{{\sqrt[{4}]{5}}-1}}={\tfrac {1}{2}}\left(3+{\sqrt[{4}]{5}}+{\sqrt {5}}+{\sqrt[{4}]{125}}\right),}$

${\displaystyle {\sqrt {{\sqrt[{3}]{28}}-{\sqrt[{3}]{27}}}}={\tfrac {1}{3}}\left({\sqrt[{3}]{98}}-{\sqrt[{3}]{28}}-1\right),}$

${\displaystyle {\sqrt[{3}]{{\sqrt[{5}]{\frac {32}{5}}}-{\sqrt[{5}]{\frac {27}{5}}}}}={\sqrt[{5}]{\frac {1}{25}}}+{\sqrt[{5}]{\frac {3}{25}}}-{\sqrt[{5}]{\frac {9}{25}}},}$

and

${\displaystyle {\sqrt[{3}]{\ {\sqrt[{3}]{2}}\ -1}}={\sqrt[{3}]{\frac {1}{9}}}-{\sqrt[{3}]{\frac {2}{9}}}+{\sqrt[{3}]{\frac {4}{9}}}.\quad }$[4]

## Landau's algorithm

In 1989 Susan Landau introduced the first algorithm for deciding which nested radicals can be denested.[5] Earlier algorithms worked in some cases but not others. Landau's algorithm involves complex roots of unity and runs in exponential time with respect to the depth of the nested radical.[6]

## In trigonometry

In trigonometry, the sines and cosines of many angles can be expressed in terms of nested radicals. For example,

${\displaystyle \sin {\frac {\pi }{60}}=\sin 3^{\circ }={\frac {1}{16}}\left[2(1-{\sqrt {3}}){\sqrt {5+{\sqrt {5}}}}+{\sqrt {2}}({\sqrt {5}}-1)({\sqrt {3}}+1)\right]}$

and

${\displaystyle \sin {\frac {\pi }{24}}=\sin 7.5^{\circ }={\frac {1}{2}}{\sqrt {2-{\sqrt {2+{\sqrt {3}}}}}}={\frac {1}{2}}{\sqrt {2-{\frac {1+{\sqrt {3}}}{\sqrt {2}}}}}.}$
The last equality results directly from the results of § Two nested square roots.

## In the solution of the cubic equation

Nested radicals appear in the algebraic solution of the cubic equation. Any cubic equation can be written in simplified form without a quadratic term, as

${\displaystyle x^{3}+px+q=0,}$

whose general solution for one of the roots is

${\displaystyle x={\sqrt[{3}]{-{q \over 2}+{\sqrt {{q^{2} \over 4}+{p^{3} \over 27}}}}}+{\sqrt[{3}]{-{q \over 2}-{\sqrt {{q^{2} \over 4}+{p^{3} \over 27}}}}}.}$

In the case in which the cubic has only one real root, the real root is given by this expression with the radicands of the cube roots being real and with the cube roots being the real cube roots. In the case of three real roots, the square root expression is an imaginary number; here any real root is expressed by defining the first cube root to be any specific complex cube root of the complex radicand, and by defining the second cube root to be the complex conjugate of the first one. The nested radicals in this solution cannot in general be simplified unless the cubic equation has at least one rational solution. Indeed, if the cubic has three irrational but real solutions, we have the casus irreducibilis, in which all three real solutions are written in terms of cube roots of complex numbers. On the other hand, consider the equation

${\displaystyle x^{3}-7x+6=0,}$

which has the rational solutions 1, 2, and −3. The general solution formula given above gives the solutions

${\displaystyle x={\sqrt[{3}]{-3+{\frac {10{\sqrt {3}}i}{9}}}}+{\sqrt[{3}]{-3-{\frac {10{\sqrt {3}}i}{9}}}}.}$

For any given choice of cube root and its conjugate, this contains nested radicals involving complex numbers, yet it is reducible (even though not obviously so) to one of the solutions 1, 2, or –3.

### Square roots

Under certain conditions infinitely nested square roots such as

${\displaystyle x={\sqrt {2+{\sqrt {2+{\sqrt {2+{\sqrt {2+\cdots }}}}}}}}}$

represent rational numbers. This rational number can be found by realizing that x also appears under the radical sign, which gives the equation

${\displaystyle x={\sqrt {2+x}}.}$

If we solve this equation, we find that x = 2 (the second solution x = −1 doesn't apply, under the convention that the positive square root is meant). This approach can also be used to show that generally, if n > 0, then

${\displaystyle {\sqrt {n+{\sqrt {n+{\sqrt {n+{\sqrt {n+\cdots }}}}}}}}={\tfrac {1}{2}}\left(1+{\sqrt {1+4n}}\right)}$

and is the positive root of the equation x2xn = 0. For n = 1, this root is the golden ratio φ, approximately equal to 1.618. The same procedure also works to obtain, if n > 0,[citation needed]

${\displaystyle {\sqrt {n-{\sqrt {n-{\sqrt {n-{\sqrt {n-\cdots }}}}}}}}={\tfrac {1}{2}}\left(-1+{\sqrt {1+4n}}\right),}$
which is the positive root of the equation x2 + xn = 0.

#### Nested square roots of 2

The nested square roots of 2 are a special case of the wide class of infinitely nested radicals. There are many known results that bind them to sines and cosines. For example, it has been shown that nested square roots of 2 as[7]

${\displaystyle R(b_{k},\ldots ,b_{1})={\frac {b_{k}}{2}}{\sqrt {2+b_{k-1}{\sqrt {2+b_{k-2}{\sqrt {2+\cdots +b_{2}{\sqrt {2+x}}}}}}}}}$

where ${\displaystyle x=2\sin(\pi b_{1}/4)}$ with ${\displaystyle b_{1}}$ in [−2,2] and ${\displaystyle b_{i}\in \{-1,0,1\}}$ for ${\displaystyle i\neq 1}$, are such that ${\displaystyle R(b_{k},\ldots ,b_{1})=\cos \theta }$ for

${\displaystyle \theta =\left({\frac {1}{2}}-{\frac {b_{k}}{4}}-{\frac {b_{k}b_{k-1}}{8}}-{\frac {b_{k}b_{k-1}b_{k-2}}{16}}-\cdots -{\frac {b_{k}b_{k-1}\cdots b_{1}}{2^{k+1}}}\right)\pi .}$

This result allows to deduce for any ${\displaystyle x\in [-2,2]}$ the value of the following infinitely nested radicals consisting of k nested roots as

${\displaystyle R_{k}(x)={\sqrt {2+{\sqrt {2+\cdots +{\sqrt {2+x}}}}}}.}$

If ${\displaystyle x\geq 2}$, then[8]

{\displaystyle {\begin{aligned}R_{k}(x)&={\sqrt {2+{\sqrt {2+\cdots +{\sqrt {2+x}}}}}}\\&=\left({\frac {x+{\sqrt {x^{2}-4}}}{2}}\right)^{1/2^{k}}+\left({\frac {x+{\sqrt {x^{2}-4}}}{2}}\right)^{-1/2^{k}}\end{aligned}}}

These results can be used to obtain some nested square roots representations of ${\displaystyle \pi }$ . Let us consider the term ${\displaystyle R\left(b_{k},\ldots ,b_{1}\right)}$ defined above. Then[7]

${\displaystyle \pi =\lim _{k\rightarrow \infty }\left[{\frac {2^{k+1}}{2-b_{1}}}R(\underbrace {1,-1,1,1,\ldots ,1,1,b_{1}} _{k{\text{ terms }}})\right]}$

where ${\displaystyle b_{1}\neq 2}$.

Ramanujan posed the following problem to the Journal of Indian Mathematical Society:

${\displaystyle ?={\sqrt {1+2{\sqrt {1+3{\sqrt {1+\cdots }}}}}}.}$

This can be solved by noting a more general formulation:

${\displaystyle ?={\sqrt {ax+(n+a)^{2}+x{\sqrt {a(x+n)+(n+a)^{2}+(x+n){\sqrt {\mathrm {\cdots } }}}}}}.}$

Setting this to F(x) and squaring both sides gives us

${\displaystyle F(x)^{2}=ax+(n+a)^{2}+x{\sqrt {a(x+n)+(n+a)^{2}+(x+n){\sqrt {\mathrm {\cdots } }}}},}$

which can be simplified to

${\displaystyle F(x)^{2}=ax+(n+a)^{2}+xF(x+n).}$

It can then be shown that, assuming ${\displaystyle F}$ is analytic,

${\displaystyle F(x)={x+n+a}.}$

So, setting a = 0, n = 1, and x = 2, we have

${\displaystyle 3={\sqrt {1+2{\sqrt {1+3{\sqrt {1+\cdots }}}}}}.}$
Ramanujan stated the following infinite radical denesting in his lost notebook:
${\displaystyle {\sqrt {5+{\sqrt {5+{\sqrt {5-{\sqrt {5+{\sqrt {5+{\sqrt {5+{\sqrt {5-\cdots }}}}}}}}}}}}}}={\frac {2+{\sqrt {5}}+{\sqrt {15-6{\sqrt {5}}}}}{2}}.}$
The repeating pattern of the signs is ${\displaystyle (+,+,-,+).}$

#### Viète's expression for π

Viète's formula for π, the ratio of a circle's circumference to its diameter, is

${\displaystyle {\frac {2}{\pi }}={\frac {\sqrt {2}}{2}}\cdot {\frac {\sqrt {2+{\sqrt {2}}}}{2}}\cdot {\frac {\sqrt {2+{\sqrt {2+{\sqrt {2}}}}}}{2}}\cdots .}$

### Cube roots

In certain cases, infinitely nested cube roots such as

${\displaystyle x={\sqrt[{3}]{6+{\sqrt[{3}]{6+{\sqrt[{3}]{6+{\sqrt[{3}]{6+\cdots }}}}}}}}}$
can represent rational numbers as well. Again, by realizing that the whole expression appears inside itself, we are left with the equation
${\displaystyle x={\sqrt[{3}]{6+x}}.}$

If we solve this equation, we find that x = 2. More generally, we find that

${\displaystyle {\sqrt[{3}]{n+{\sqrt[{3}]{n+{\sqrt[{3}]{n+{\sqrt[{3}]{n+\cdots }}}}}}}}}$
is the positive real root of the equation x3xn = 0 for all n > 0. For n = 1, this root is the plastic ratio ρ, approximately equal to 1.3247.

The same procedure also works to get

${\displaystyle {\sqrt[{3}]{n-{\sqrt[{3}]{n-{\sqrt[{3}]{n-{\sqrt[{3}]{n-\cdots }}}}}}}}}$

as the real root of the equation x3 + xn = 0 for all n > 1.

### Herschfeld's convergence theorem

An infinitely nested radical ${\displaystyle {\sqrt {a_{1}+{\sqrt {a_{2}+\dotsb }}}}}$ (where all ${\displaystyle a_{i}}$ are nonnegative) converges if and only if there is some ${\displaystyle M\in \mathbb {R} }$ such that ${\displaystyle M\geq a_{n}^{2^{-n}}}$ for all ${\displaystyle n}$,[9] or in other words ${\textstyle \sup a_{n}^{2^{-n}}<+\infty .}$

#### Proof of "if"

We observe that

${\displaystyle {\sqrt {a_{1}+{\sqrt {a_{2}+\dotsb }}}}\leq {\sqrt {M^{2^{1}}+{\sqrt {M^{2^{2}}+\cdots }}}}=M{\sqrt {1+{\sqrt {1+\dotsb }}}}<2M.}$
Moreover, the sequence ${\displaystyle \left({\sqrt {a_{1}+{\sqrt {a_{2}+\dotsc {\sqrt {a_{n}}}}}}}\right)}$ is monotonically increasing. Therefore it converges, by the monotone convergence theorem.

#### Proof of "only if"

If the sequence ${\displaystyle \left({\sqrt {a_{1}+{\sqrt {a_{2}+\cdots {\sqrt {a_{n}}}}}}}\right)}$ converges, then it is bounded.

However, ${\displaystyle a_{n}^{2^{-n}}\leq {\sqrt {a_{1}+{\sqrt {a_{2}+\cdots {\sqrt {a_{n}}}}}}}}$, hence ${\displaystyle \left(a_{n}^{2^{-n}}\right)}$ is also bounded.

## References

1. ^ Scheinerman, Edward R. (2000), "When close enough is close enough", American Mathematical Monthly, 107 (6): 489–499, doi:10.2307/2589344, JSTOR 2589344, MR 1766736
2. ^ Euler, Leonhard (2012). Elements of algebra. Springer Science & Business Media. Chapter VIII.
3. ^ Landau, Susan (July 16, 1993). "A note on 'Zippel Denesting'". CiteSeerX 10.1.1.35.5512. Retrieved August 23, 2023.
4. ^ Berndt, Bruce; Chan, Heng; Zhang, Liang-Cheng (1998). "Radicals and units in Ramanujan's work" (PDF). Acta Arithmetica. 87 (2): 145–158. doi:10.4064/aa-87-2-145-158.
5. ^ Landau, Susan (1992). "Simplification of Nested Radicals". 30th Annual Symposium on Foundations of Computer Science. Vol. 21. SIAM. pp. 85–110. CiteSeerX 10.1.1.34.2003. doi:10.1109/SFCS.1989.63496. ISBN 978-0-8186-1982-3. S2CID 29982884.
6. ^ Gkioulekas, Eleftherios (2017-08-18). "On the denesting of nested square roots". International Journal of Mathematical Education in Science and Technology. 48 (6): 942–953. Bibcode:2017IJMES..48..942G. doi:10.1080/0020739X.2017.1290831. ISSN 0020-739X. S2CID 9737528.
7. ^ a b Servi, L. D. (April 2003). "Nested Square Roots of 2". The American Mathematical Monthly. 110 (4): 326–330. doi:10.1080/00029890.2003.11919968. ISSN 0002-9890. S2CID 38100940.
8. ^ Nyblom, M. A. (November 2005). "More Nested Square Roots of 2". The American Mathematical Monthly. 112 (9): 822–825. doi:10.1080/00029890.2005.11920256. ISSN 0002-9890. S2CID 11206345.
9. ^ Herschfeld, Aaron (1935). "On Infinite Radicals". The American Mathematical Monthly. 42 (7): 419–429. doi:10.2307/2301294. ISSN 0002-9890. JSTOR 2301294.