# Strategies to denest nested radicals.

I have recently read some passage about nested radicals, I'm deeply impressed by them. Simple nested radicals $\sqrt{2+\sqrt{2}}$,$\sqrt{3-2\sqrt{2}}$ which the later can be denested into $1-\sqrt{2}$. This may be able to see through easily, but how can we denest such a complicated one $\sqrt{61-24\sqrt{5}}(=4-3\sqrt{5})$? And Is there any ways to judge if a radical in $\sqrt{a+b\sqrt{c}}$ form can be denested?

Mr. Srinivasa Ramanujan even suggested some CRAZY nested radicals such as: $$\sqrt[3]{\sqrt{2}-1},\sqrt{\sqrt[3]{28}-\sqrt[3]{27}},\sqrt{\sqrt[3]{5}-\sqrt[3]{4}}, \sqrt[3]{\cos{\frac{2\pi}{7}}}+\sqrt[3]{\cos{\frac{4\pi}{7}}}+\sqrt[3]{\cos{\frac{8\pi}{7}}},\sqrt[6]{7\sqrt[3]{20}-19},...$$ Amazing, these all can be denested. I believe there must be some strategies to denest them, but I don't know how.

I'm a just a beginner, can anyone give me some ideas? Thank you.

• Denesting radicals is hard, but there's an algorithm for it. For the case you're interested in, Wikipedia describes a simple procedure. – Zhen Lin Sep 15 '12 at 14:14
• You may want to look at: cybertester.com/data/denest.pdf searching this site reveals related questions such as: math.stackexchange.com/questions/194030/… – NoChance Sep 15 '12 at 14:15
• Can you post your sources of these CRAZY nested radicals from Ramanujan's works? I'd like to read some more about his ideas. – SasQ Dec 14 '14 at 13:25
• isibang.ac.in/~sury/ramanujanday.pdf – A. Chu Dec 15 '14 at 9:29
• "The basic method I learned is to set this equal to $\sqrt{x-y\sqrt{c}}$" and do what with it? "but I found out that this doesn't work with $\sqrt{5+2\sqrt{6}}$" why not? What was supposed to happen? – fleablood Feb 20 at 1:27

There do exist general denesting algorithms employing Galois theory, but for the simple case of quadratic algebraic numbers one can employ a simple rule that I discovered as a teenager.

Simple Denesting Rule $$\rm\ \ \ \color{blue}{subtract\ out}\ \sqrt{norm}\:,\ \ then\ \ \color{brown}{divide\ out}\ \sqrt{trace}$$

Recall $$\rm\: w = a + b\sqrt{n}\:$$ has norm $$\rm =\: w\:\cdot\: w' = (a + b\sqrt{n})\ \cdot\: (a - b\sqrt{n})\ =\: a^2 - n\, b^2$$

and,  furthermore, $$\rm\ w\:$$ has  trace $$\rm\: =\: w+w' = (a + b\sqrt{n}) + (a - b\sqrt{n})\: =\: 2a$$

Here $$\:61-24\sqrt{5}\:$$ has norm $$= 29^2.\:$$ $$\rm\, \color{blue}{subtracting\ out}\ \sqrt{norm}\ = 29\$$ yields $$\ 32-24\sqrt{5}\:$$

and this has $$\rm\ \sqrt{trace}\: =\: 8,\ \ thus,\ \ \ \color{brown}{dividing \ it \ out}\,$$ of this yields the sqrt: $$\,\pm( 4\,-\,3\sqrt{5}).$$

For many further examples see my prior posts on denesting.

• What about when $a^2 < nb^2$ ? – DanielV Dec 19 '14 at 7:36
• @DanielV It will always yield the denesting (if it one exists). – Bill Dubuque Dec 19 '14 at 14:11
• For a simple proof of the rule see here. – Bill Dubuque Feb 6 '17 at 16:03

There are the following identities. $$\sqrt{a+\sqrt{b}}=\sqrt{\frac{a+\sqrt{a^2-b}}{2}}+\sqrt{\frac{a-\sqrt{a^2-b}}{2}}$$ and $$\sqrt{a-\sqrt{b}}=\sqrt{\frac{a+\sqrt{a^2-b}}{2}}-\sqrt{\frac{a-\sqrt{a^2-b}}{2}},$$ where all numbers under radicals are non-negatives.

For example: $$\sqrt{5+2\sqrt6}=\sqrt{5+\sqrt{24}}=\sqrt{\frac{5+\sqrt{5^2-24}}{2}}+\sqrt{\frac{5-\sqrt{5^2-24}}{2}}=\sqrt3+\sqrt2.$$ This is interesting, when $$a$$ and $$b$$ are rationals and $$a^2-b$$ is a square of a rational number.

The first identity is true because $$\left(\sqrt{\frac{a+\sqrt{a^2-b}}{2}}+\sqrt{\frac{a-\sqrt{a^2-b}}{2}}\right)^2=$$ $$=\frac{a+\sqrt{a^2-b}}{2}+\frac{a-\sqrt{a^2-b}}{2}+2\sqrt{\frac{a+\sqrt{a^2-b}}{2}}\cdot\sqrt{\frac{a-\sqrt{a^2-b}}{2}}=a+\sqrt{b}.$$

• This is interesting. I had never seen the identities you begin with. – Lubin Feb 20 at 2:19
• @Lubin same with me too. – Max0815 Feb 20 at 2:20
• We can prove it. It's not hard. – Michael Rozenberg Feb 20 at 2:34
• How would you prove the first one @MichaelRozenberg? I can get the second on I think because it is conjugate of first, which should be easy. – Max0815 Feb 20 at 3:08
• To get some more intuition how these identities were derived in the first place. To that end, you've got to view the polynomial $x^4-2ax^2+(a^2-b)$ for which $\sqrt{a+\sqrt{b}}$ is a zero, as the product of $x^2\pm c x + \sqrt{a^2-b}$. It turns out $c$ needs to satisfy the equation $-2a = -c^2 + 2\sqrt{a^2-b}$ and you just need to find the roots of this simple polynomial, $x^2- c x + \sqrt{a^2-b}$ :) – Stan Tendijck Feb 20 at 10:03

You can derive a formula for $$\sqrt{a+b\sqrt{c}}$$. You will have to assume that $$\sqrt{a+b\sqrt{c}}$$ can be rewritten as the sum of two surds (radicands). So $$\sqrt{a+b\sqrt{c}}=\sqrt{d}+\sqrt{e}$$

Squaring both sides yields $$a+b\sqrt{c}=d+e+2\sqrt{de}$$

From that, we can see that $$a=d+e$$ so $$e=a-d$$ and $$b\sqrt{c}=2\sqrt{de}\rightarrow b^{2}c=4de$$.

Substituting $$e$$ with $$a-d$$ gives $$b^{2}c=4d(a-d)$$. So $$b^{2}c=4ad-4d^{2}$$. Rearranging the terms gives us $$4d^{2}-4ad+b^{2}c=0$$

Using the Quadratic Equation, we have $$d=\frac {a\pm\sqrt{a^{2}-b^{2}c}}{2}$$

And since $$a=d+e$$, $$e$$ is the conjugate of $$d$$. So $$e=\frac {a-\sqrt{a^{2}-b^{2}c}}{2}$$ and $$d=\frac {a+\sqrt{a^{2}-b^{2}c}}{2}.\,$$ Thus

$$\sqrt{a+b\sqrt{c}}\,=\, \sqrt{\frac {a+\sqrt{a^{2}-b^{2}c}}{2}} +\sqrt{\frac {a-\sqrt{a^{2}-b^{2}c}}{2}}$$

(I will assume $b$ is not a square, since otherwise it would not be a nested radical.)

A nested radical can be denested if and only if there exist $u,v\in\mathbb{N}$ such that the nested radical is of the form $\sqrt{u^2+v\pm2u\sqrt{v}}$ in which case it is also equal to $|u\pm\sqrt{v}|$.

It's not hard to show that those expressions are equal, which means that all nested radicals of that form can indeed be denested.

For the other way, let's consider the following equality where $a,b,c,d,e\in\mathbb{N}$: $$\sqrt{a\pm\sqrt{b}}=c\pm d\sqrt{e}$$ (Note that we can also write e.g. $\sqrt{3-2\sqrt{2}}$ in that form as $\sqrt{3-\sqrt{8}}$) If we square both sides, we get: $$a\pm\sqrt{b}=c^2+ed^2\pm2cd\sqrt{e}$$ This suggests we pick $u=c$ and $v=ed^2$. Then $a\pm\sqrt{b}=u^2+v\pm2u\sqrt{v}$ as claimed.

This isn't quite the end of the story since preferably we'd also like to know that $a$ actually corresponds to $u^2+v$ and $b$ to $4u^2v$, i.e. that you can't have two equal nested radicals of different forms. Depending on how deep you want to go, you can either take that for granted for now or observe that $a\pm\sqrt{b}$ satisfies the polynomial relations $(x-a)^2-b=0$ and $(x-u^2-v)^2-4u^2v=0$ and it follows from that that the two polynomials must be equal (using e.g. the concept of minimal polynomials or explicitly dividing the one by the other with remainder taking into account that $a\pm\sqrt{b}$ will satisfy no linear relation) which gives us our correspondence.

One way of approaching this problem is by viewing it as a zero of an equation. Let me explain. Let's say you want to compute $$\sqrt{x_0}$$ where $$x_0$$ is a zero of some quadratic polynomial of the form $$x^2-bx+1$$. Now, one way to go is to note that if you have a zero of $$x^2+ax+1$$, then it will still be a zero if you multiply it with $$x^2-ax+1$$ which equals $$x^4 + (2-a^2) x^2 + 1$$ Now the idea is to work backwards. So, in particular, if you can find you can find an $$a$$ such that $$b=a^2-2$$, then you can conclude that the square root of you polynomial is equal to one of the zeros of the polynomials $$x^2-ax+1$$ or $$x^2+ax+1$$. It is usually not too hard to find out which. If you found out which, you can rewrite your square root accordingly to the desired form :)

To conclude, one of the tricks is to find the right form of your polynomials such that you end up with something useful. This method will however require some puzzling.

Edit applying this method to the example $$\sqrt{5+2\sqrt{6}}$$, you will find that the polynomial you need (thus the one for which you want to calculate the square root of a zero) is $$x^2-10x+1$$. Then according to the above method (which you derive on the go), your $$a=\sqrt{12}$$ and then you just need to solve $$x^2-ax+1=0$$ which is the only possibility since for the other one, filling in a positive number will yield a positive number. Solving this equation by completing the square is not too difficult. It turns out that the zeros lie at around 0.5 and 3. Hence, it is not difficult to note you need the larger zero which turns out to be exactly given by $$\sqrt{2}+\sqrt{3}$$. Does that make sense?

• Yes. thanx!!!!! – Max0815 Feb 20 at 1:43
• If your polynomial ends with $+b$ instead of $1$, I think you need to work with $+\sqrt{b}$ in the polynomials with the $a$s. (Did not check this but I am sure this will work). – Stan Tendijck Feb 20 at 1:48
• yes I believe so too. – Max0815 Feb 20 at 2:19