What am I doing wrong in calculating the following limit? $$\lim_{x\to-2} \frac{x+2}{\sqrt{6+x}-2}=\lim_{x\to-2} \frac{1+2/x}{\sqrt{(6/x^2)+(1/x)}-2/x^2}$$ Dividing numerator and denominator by $x \neq0$
$$\frac{1+2/-2}{\sqrt{(6/4)+(1/-2)}-2/4}=\frac{0}{1/2}=0$$ but the limit is $4$ according to Wolfram Alpha?

One may set $u=x+2$, then, as $x \to -2$, we have $u \to 0$, giving
$$
\frac{x+2}{\sqrt{6+x}-2}=\frac{u}{\sqrt{u+4}-2}\times\frac{\sqrt{u+4}+2}{\sqrt{u+4}+2}=\sqrt{u+4}+2 \to 4.
$$
