So I was solving some trigonometry and trying to find value of $\cos 22.5^\circ$ and I used the formula $1+\cos2x=2\cos^2x$ and got the value as $$\frac{\sqrt{2+\sqrt2}}{2}$$ but the answer provided was somewhat like this $$\frac{{\sqrt{4+2\sqrt2} + \sqrt{4-2\sqrt2}}}{4}$$ My book says both are correct and are same representation of same number so how do we convert the first expression the smaller one into the bigger one. I tried to find out by rationalization but was unsuccessful. Please help me out with a way.
Here's a picture of the expressions written in the book Expressions