I'm trying to get a better handle on mathematical proofs that use the definition of a limit. It seems that there are numerous techniques for constructing such proofs, some of which involve "guessing" a value for epsilon. For example, when given:
$$ f(x) = \begin{cases} 0 & x\in\mathbb Q\\ 1 & x\in\mathbb R \setminus \mathbb Q \end{cases} $$
Prove that $\lim\limits_{x\to0}f(x)$ does not exist.
I've gone through the proof by contradiction. For example:
Assume $\lim\limits_{x\to0}f(x)=L$. If $\epsilon > 0$, there exists $\delta > 0$ such that $ 0 < |x| < \delta \implies |f(x) - L| < \epsilon$. If $q$ is a rational number where $0 < |q| < \delta$, then $|f(x) - L| < \epsilon$ for all $\epsilon > 0$. Since $f(q) = 0$, then $|-L| = |L| < \epsilon$.
Likewise, if $p$ is an irrational number where $0 < |p| < \delta$, then $|f(x) - L| < \epsilon$ for all $\epsilon > 0$. Since $f(p) = 1$, $|1 - L| = |L - 1| < \epsilon$.
Next, we can assume $0 < \epsilon \leqslant \frac 1 2 $ and then reach a contradiction, thus showing that the initial assumption was not valid. What I do not understand is how was $\frac 1 2$ chosen?
You have: $$|1-L|\leq \varepsilon \Longleftrightarrow-\varepsilon \leq L-1 \leq \varepsilon \Longleftrightarrow 1-\varepsilon \leq L \leq 1+\varepsilon$$
and:
$$ |L| \leq \varepsilon \Longleftrightarrow -\varepsilon \leq - L \leq \varepsilon$$
to be satisfied.
By summing the two inequalities you end up with:
$$ 1-2\varepsilon \leq 0 \leq 1+2\varepsilon$$
Which is true iff $\varepsilon > 1/2$. So necessarily you choose $\varepsilon \in \, ]0;1/2]$ to have your contradiction.