I am reading textbook A Walk Through Combinatorics. The section 8.1.2.1 is about Catalan numbers.
Let $c_n$ is Catalan numbers and $C(x)=\sum_{n\geq 0}c_nx^n$ is its generating function.
At the end of proof, the writer gives us the equation
$$C(x)-1=xC(x)\cdot C(x)$$
then we have 2 solutions
$$\frac{1+\sqrt{1-4x}}{2x},\frac{1-\sqrt{1-4x}}{2x}$$
I know that $C(x)$ has constant term $1$ because of $c_0=1$. (please correct me if I am wrong)
Then writer says "substituing $x=0$, we see thaht the second soluton has this property", but the denominator is $0$ if $x=0$. Why can we substitute $x=0$ into $\frac{1-\sqrt{1-4x}}{2x}$?
My understanding is to substitute $x\to 0$, then $$\lim_{x\to 0}\frac{1+\sqrt{1-4x}}{2x} \text{ does not exist.}$$ $$\lim_{x\to 0}\frac{1-\sqrt{1-4x}}{2x}=\frac{-\frac{-4}{2\sqrt{1-4x}}}{2}=1$$ Is it right?




The inference$$xf^2-f+1\implies f=\frac{1\pm\sqrt{1-4x}}{2x}$$assumes $x\ne0$ (otherwise we're not solving a quadratic), whereas the case $x=0$ clearly achieves $-f(0)+1=0$, which is correct. So the continuity of $f$ at $0$ implies in general$$f(x)=\lim_{y\to x}\frac{1-\sqrt{1-4y}}{2y}$$(once we've used the $x\to0$ limit to determine the $\pm$ sign should be $-$). As @AnginaSeng notes, we can evaluate this limit as $\frac{2}{1+\sqrt{1-4x}}$.