How to factorize this $\sqrt{8 - 2\sqrt{7}}$? When I was at high school, our teacher showed us a technique to simplify square roots like this  $\sqrt{8 - 2\sqrt{7}}$ that I forgot.
It was something like 8 = 7+1; 7 = 7*1; and using them we could represent $\sqrt{8 - 2\sqrt{7}}$ in simpler form. I would be happy if you can show how it works, and how this technique is called.

Consider this:$$\sqrt{X\pm Y}=\sqrt{\dfrac {X+\sqrt{X^2-Y^2}}2}\pm\sqrt{\dfrac {X-\sqrt{X^2-Y^2}}2}\tag1$$
For $X,Y\in\mathbb{R}$ and $X>Y$. Therefore, we have $x=8,\ Y=\sqrt{28}$ so$$\sqrt{8-2\sqrt7}=\sqrt{\dfrac {8+\sqrt{64-28}}2}-\sqrt{\dfrac {8-\sqrt{64-28}}2}=\sqrt7-1\tag2$$
