Continuity can be tested with sequences instead of ε and δ, which turns everything you know about limits of sequences into facts about functions. The criterion is especially good at proving that a function is not continuous, where an ε–δ argument would be clumsy. It builds on ε–δ continuity.
Key idea
Why it works
The classic example is $f(x) = \sin\frac{1}{x}$ near $0$. Along $x_n = \frac{1}{2\pi n + \pi/2}$, $f(x_n) = 1$ for every $n$; along $x_n = \frac{1}{2\pi n}$, $f(x_n) = 0$. Both sequences tend to $0$, so no choice of $f(0)$ makes $f$ continuous there. Functions defined differently on rationals and irrationals work the same way, because every interval contains both kinds of numbers.
Worked examples
Worked example: Choosing the sequence
- $\frac{1}{x_n} = 2\pi n + \frac{\pi}{3}$, so $f(x_n) = \cos\left(\frac{\pi}{3}\right) = \frac{1}{2}$ for every $n$.
Answer: $\frac{1}{2}$. Another sequence gives $1$, so $\cos\frac{1}{x}$ has no limit at $0$.
Worked example: Rational and irrational pieces
- Near any $a$ there are rationals $r_n \to a$ and irrationals $t_n \to a$, giving $f(r_n) \to a^{2}$ and $f(t_n) \to a + 2$.
- Continuity at $a$ needs $a^{2} = a + 2$, so $a = 2$ or $a = -1$. At those points every sequence gives the same limit, and $f$ is continuous; everywhere else it is not.
Answer: $\{-1, 2\}$
Worked example: Thomae's function
- $f\left(\frac{2}{3}\right) = \frac{1}{3}$.
- Irrationals $t_n \to \frac{2}{3}$ have $f(t_n) = 0 \not\to \frac{1}{3}$.
Answer: No. (At irrational points it is continuous: nearby rationals have large denominators.)
Common mistake