This question is based on a comment I made on a question likely to be closed. Let $$y=\sqrt {x+ \sqrt {x+ \sqrt {x+ \sqrt {x+ \sqrt {x+ \dots}}}}}$$ be the classic nested square root which has appeared many times in questions in one form or another.
We have $y^2=x+y$ so that $$y=\frac {1\pm\sqrt {1+4x}}2$$
Now if $x\gt 0$ then $y\gt 0$ and we must take the positive square root, and we have $y\gt 1$ and tends to $1$ as $x$ approaches zero from above.
If $x=0$ it is obvious that we have $y=0$ and this is achieved by taking the negative square root in the quadratic formula. The positive square root gives the limit $1$ which looks ridiculous as a value of the expression.
I am looking for an explanation of how this rather curious discontinuity arises - what are the danger signs that there might be a problem with this value?
Note (8 July) - I'm still not satisfied that I have developed a sound intuition of what's going on here, except that nesting square roots need not commute with other limit operations at critical points - it is a nastier operation than meets the eye.
For $x > 0$, the function $g(y) = \sqrt{x + y}$, $-x \le y < \infty$, has one fixed point $p = (-1 + \sqrt{1 + 4 x})/2$ (the other solution $q = (-1 - \sqrt{1+4x})/2$ is outside the domain). Since $0 < g'(p) = \dfrac{1}{\sqrt{4 x+2+2 \sqrt{1+4 x}}} < 1 $, this fixed point is always stable; in fact it is globally stable. However, for $x=0$ the second solution $q$ is a fixed point which is an endpoint of the domain, and for $-1/4 < x < 0$ it is a fixed point inside the domain.
Now your nested square root should be interpreted as the limit, if it exists, of a sequence $y_n$ with $y_{n+1} = g(y_n)$. In principle this will depend on what is taken as the starting point $y_0$. If $x > 0$, it doesn't matter because the fixed point $p$ is globally stable: for any $y_0 \in [-x,\infty)$, $\lim_{n \to \infty} y_n = p$. For $x = 0$, this will still be the case if $y_0 > 0$, but if you start at $y_0 = 0$ you stay there.
For $-1/4 < x < 0$, again you have $y_n \to p$ if $y_0 > q$, but $y_n$ eventually becomes undefined if $y_0 < q$.