The definition my textbook gives for continuity is of a function $f: X \to Y$ is: $f$ is continuous $\iff \forall x,x' \in X, \forall \epsilon > 0, \exists \delta > 0: d_X(x,x')<\delta \implies d_Y(f(x),f(x')) < \epsilon$.
To show that a function is not continuous can I show that the negation is true?
i.e. $f$ is not continuous $\iff \exists \epsilon > 0: \forall \delta > 0, d_X(x,x') < \delta$ does not imply $d_Y(f(x),f(x')) < \epsilon$
How do I actually do it?
Thanks for you help.
As an example, consider the function
$f(x) = 0 \quad x \le 0 \\ f(x) = 1 \quad x > 0 $
and test for continuity at $x=0$. No matter how small we make $\delta$ we can always find an $x'$ closer than $\delta$ to $0$ where $f(x')=1$ and so $|f(x')-f(x)|=1$. For instance, we could use $x'=\frac{\delta}{2}$.
So if we take a value of $\epsilon$ that is less than 1 - say $\epsilon = \frac{1}{2}$ - then there is no value of $\delta$ that ensures that $|f(x')-f(0)| < \epsilon$ for all $x'$ such that $|x'-0| < \delta$. Therefore $f(x)$ is not continuous at $x=0$.