Use the definition of a limit to prove the following: $$\lim_{x\to4}\frac{x-2}{\sqrt{x}+2}=\frac{1}{2}$$ I'm trying to prove that: $$\forall\varepsilon>0,\exists\delta>0; \\~\\ 0<|x-4|<\delta\Longrightarrow\left|\frac{x-2}{\sqrt{x}+2}-\frac{1}{2}\right|<\varepsilon$$ I don't know what to do with $\frac{x-2}{\sqrt{x}+2}-\frac{1}{2}$ I've tried using the triangle inequality, but I get wrong results.
I know for now: $\frac{1}{\sqrt{x}+2}<\frac{1}{\sqrt{3}+2}$
Note that\begin{align}\frac{x-2}{\sqrt x+2}-\frac12&=\frac{2x-\sqrt x-6}{2\sqrt x+4}\\&=\frac{2(x-4)-\left(\sqrt x-2\right)}{2\sqrt x+4}\\&=\left(\sqrt x-2\right)\frac{2\sqrt x+3}{2\sqrt x+4}\\&=(x-4)\frac{2\sqrt x+3}{\left(\sqrt x+2\right)\left(2\sqrt x+4\right)}\\&\leqslant(x-4)\frac{2\sqrt x+3}8,\end{align}and therefore$$\left|\frac{x-2}{\sqrt x+2}-\frac12\right|\leqslant|x-4|\frac{2\sqrt x+3}8.$$So, if $|x-4|<1$, you have $x<5$, and therefore\begin{align}\frac{2\sqrt x+3}8&<\frac{2\sqrt5+3}8\\&<\frac{2\times3+3}8\\&=\frac98\\&<2.\end{align}Therefore, given $\varepsilon>0$, if you take $\delta=\min\left\{1,\frac\varepsilon2\right\}$, you have$$|x-4|<\delta\implies\left|\frac{x-2}{\sqrt x+2}-\frac12\right|<\varepsilon$$