TITLE: How to integrate $\int_{0}^{2} \sqrt{x+\sqrt{x+\sqrt{x+\cdots}}}\,dx$?
QUESTION [14 upvotes]: I want to integrate this $$\int_{0}^{2} \sqrt{x+\sqrt{x+\sqrt{x+\cdots}}}\,dx$$ 
I tried making the substitution $u^2=x+u$ and  my integral turns into 
$$\int_{0}^{2}u(2u-1)\,du = \frac{10}{3}$$ 
However the answer is supposed to be $\dfrac{19}{6}$, I would like to know where I am making a mistake or another way

REPLY [7 votes]: Let $L(x)=\sqrt{x+\sqrt{x+\cdots}}$.
$L(x)^2=x+L(x)$, hence, $L(x)^2-L(x)-x=0$ and $L(x)=\frac{1\pm\sqrt{1+4x}}{2}$.
Because $L(x)\ge0$, $L(x)=\frac{1+\sqrt{1+4x}}{2}$ and then the intergal is straightforward.

REPLY [5 votes]: Your approach is fine. Just note that $x(u)=u^2-u$ maps $[1,2]$ onto $[0,2]$, and therefore, after the substitution, the lower limit of integration is $1$. Hence
$$\int_{0}^{2} \sqrt{x+\sqrt{x+\sqrt{x+\cdots}}}dx=\int_{1}^{2}u(2u-1)du=\frac{19}{6}.$$