Recently I came across this question. Compute $$\sqrt{10+\sqrt{100+\sqrt{10,000 +\dots}}}.$$
I know how to do it. By equating the above expression to $x$ (i.e., $x = \sqrt{10+\sqrt{100+\sqrt{10,000 +\dots}}}$) and $x = \sqrt{10+x}$ and so on. But how is this justified? I mean if we take the expression $\sqrt{10+x}$, literally it is equal to $\sqrt{10+\sqrt{10+\sqrt{100 +\dots}}}$ which alters the original expression. Can someone clarify my doubt?
In this case, it isn't so simple as putting $x=\sqrt{10+x}$--as you've noted, this changes the expression. Now, if you were looking at $\sqrt{10+\sqrt{10+\sqrt{10+\cdots}}}$, that's precisely what you'd do. The reason we can do that, there, is that we're dealing with a sequence defined recursively by $x_1=\sqrt{10}$, $x_{n+1}=\sqrt{10+x_n}$, and then determining the limit of this sequence. That sequence does converge (as it is increasing and bounded above, for example by $10$), so letting $x$ be the limit, we take $n\to\infty$ in the recursion equation $x_{n+1}=\sqrt{10+x_n}$, yielding $x=\sqrt{10+x}$, which we can then use to determine the limit.
Let's consider the sequence given by $y_1=\sqrt{10}$, $y_{n+1}=\sqrt{10+y_n\sqrt{10}}$. Then $$y_2=\sqrt{10+10}=\sqrt{10+\sqrt{100}},$$ $$y_3=\sqrt{10+\sqrt{10}\sqrt{10+\sqrt{100}}}=\sqrt{10+\sqrt{100+10\sqrt{100}}}=\sqrt{10+\sqrt{100+\sqrt{10,000}}},$$ and so on. Now, if this sequence converges (say to $y$), then we take $n\to\infty$ in the equation $y_{n+1}=\sqrt{10+y_n\sqrt{10}}$, yielding $y=\sqrt{10+y\sqrt{10}}$, which we may solve to determine $y$. The trickier part (in this case) is determining an upper bound, so you can prove convergence. From the sounds of it, though, you're supposed to take for granted that it converges, so all you've got to do is the procedure above.