We have the identity
Take the square root of both sides and rearrange terms on the right to get
Decrementing n gives
and substituting the previous expression into this, we have
Continuing in this fashion, after k steps we would have
After a total of n - 2 steps, we arrive at
Then as n goes to infinity, the first nested radical converges to √x + 1/4. Similar reasoning can be used to show the other nested radical converges to √x - 1/4. Then the integral reduces to