I need to prove the following statement using the epsilon-delta definition of a limit: $$\lim_{x\to 2}\sqrt{4x-x^2}=2$$
I tried to calculate $|f(x)-2|$ and tried to simplify it to $|x-2|g(x)$ so I could limit delta (probably ≤ 1) and then calculate a bound for $g(x)$, and then let $\varepsilon=\min\{1,\frac{\varepsilon}{bound}\}$
Thanks in advance!
Let $f(x) = \sqrt{4x-x^2}$.
We want to prove,using the $\epsilon$-$\delta$ method, that $\lim_{x\to 2}f(x)=2$.
Fix $\epsilon > 0$, and let $\delta=\min(2,\sqrt{2\epsilon})$.
Suppose $|x-2| < \delta$. Our goal is show $|f(x)-2| < \epsilon$.
Note that
$\qquad|x-2|<\delta \implies |x-2| < 2 \implies 0 < x < 4 \implies f(x) > 0$.
Also note that
$\qquad|(f(x)-2)(f(x)+2)| = |f(x)^2-4| = |4x-x^2-4|=|-(x-2)^2|=(x-2)^2$. \begin{align*} \text{Then}\;\;&|x-2| < \delta\\[4pt] \implies\;&|x-2| < \sqrt{2\epsilon}\\[4pt] \implies\;&|x-2|^2 < 2\epsilon\\[4pt] \implies\;&(x-2)^2 < 2\epsilon\\[4pt] \implies\;&|(f(x)-2)(f(x)+2)| < 2\epsilon\\[4pt] \implies\;&|f(x)-2||f(x)+2| < 2\epsilon\\[4pt] \implies\;&|f(x)-2|2 < 2\epsilon\\[0pt] &\qquad\text{[since $f(x) > 0 \implies |f(x) + 2| = f(x) + 2 >2$]}\\[4pt] \implies\;&|f(x)-2| < \epsilon\\[4pt] \end{align*} as was to be shown.