Just like in our previous example(s) we start with the definition of convergence and adapt it to the problem at hand. We need to show that
\begin{equation*}
\forall\epsilon \gt 0, \exists \delta \gt 0 \st (0\lt |x-2|\lt\delta)\implies \left(\left|\frac 1x-\frac 12\right|\lt \epsilon\right).
\end{equation*}
Again, we can clean up and simplify the final inequality, since
\begin{equation*}
\left|\frac{1}{x}-\frac{1}{2}\right| = \left|\frac{2-x}{2x} \right| = \frac{|x-2|}{2|x|}.
\end{equation*}
Thus we need to show that
\begin{equation*}
\forall\epsilon \gt 0, \exists \delta \gt 0 \st (0\lt |x-2|\lt\delta)\implies \left( \frac{|2-x|}{2|x|} \lt \epsilon\right).
\end{equation*}
Now that we know what we need to show, let \(\epsilon>0\) be arbitrary. Then, we want a \(\delta \gt 0\) such that if we assume \(0 \lt |x-2| \lt \delta\text{,}\) we can guarantee that \(\frac{|x-2|}{2|x|} \lt \epsilon\text{.}\) Well, if we know that \(|x-2| \lt \delta\text{,}\) then we can write
\begin{equation*}
\frac{|x-2|}{2|x|} \lt \frac{\delta}{2|x|} \leq \epsilon
\end{equation*}
and so we need
\begin{equation*}
\delta \leq 2|x| \epsilon.
\end{equation*}
This is not quite enough — our choice of \(\delta\) should not depend on \(x\text{.}\) We need some bound on \(x\text{.}\)
Recall our intuitive idea of the limit, as
\(x\) gets very close to
\(2\text{,}\) the function
\(\frac{1}{x}\) gets very close to
\(\frac{1}{2}\text{.}\) We don’t really care what happens when
\(x\) is a long way from
\(2\text{,}\) and only on what happens when
\(x\) is very close to
\(2\text{.}\) Thus we should be able to focus on the region around
\(x=2\text{,}\) say,
\(1 \lt x \lt 3\text{,}\) or equivalently,
\(|x-2| \lt 1\text{.}\)
How does this help us? Well, if we know that \(1 \lt x \lt 3\text{,}\) then we know that \(|x|\gt 1\text{,}\) and so
\begin{equation*}
\frac{|x-2|}{2|x|} \lt \frac{\delta}{2|x|} \lt \frac{\delta}{2} \leq \epsilon
\end{equation*}
And thus we need to ensure that
\begin{equation*}
\delta \leq 2 \epsilon.
\end{equation*}
At this point it seems that we can choose any \(\delta \leq 2 \epsilon\text{,}\) but this is not quite right. Say, we chose a large value of \(\epsilon\text{,}\) like \(\epsilon=3\text{,}\) and so we could pick \(\delta = 2\epsilon=6\text{.}\) With that choice of \(\epsilon\) and \(\delta\text{,}\) the implication at the heart of the definition of convergence becomes
\begin{equation*}
(|x-2| \lt 6) \implies \left(\left|\frac{1}{x}-\frac{1}{2}\right| \lt 3\right).
\end{equation*}
Unfortunately this is false. We could take, say \(x=\frac{1}{10}=0.1\text{,}\) and then the hypothesis is true, since \(|x-2|=1.9 \lt 6\text{,}\) but the conclusion is false since \(\left|\frac{1}{x}-\frac{1}{2}\right| = |10-0.5| = 9.5 \gt 3\text{.}\)
What went wrong? Remember to make our bound on \(|x|\) we required that \(|x-2|\lt 1\text{.}\) This is the same as requiring that \(\delta\leq 1\text{.}\) So we have actually imposed two requirements on \(\delta\text{.}\) We need both \(\delta \leq 1\) and \(\delta \leq 2\epsilon\text{.}\) To enforce both of these we can pick
\begin{equation*}
\delta = \min\{1, 2\epsilon \}.
\end{equation*}
Now we can finally write up the proof.