Sequential Characterization of Continuity

Suppose you want to check that a function is continuous at a point. But the ε\varepsilon-δ\delta definition feels too rigid to work with directly. A natural alternative idea presents itself: continuity should mean that whenever inputs drift toward cc, the outputs drift toward f(c)f(c). This is exactly the content of the Sequential Characterization of Continuity. It is one of the most useful bridges in analysis. It connects the topological world of ε\varepsilon-δ\delta statements to the combinatorial world of sequences. This theorem matters because sequences are often far easier to manipulate than quantifier-laden inequalities. Many properties of continuous functions become almost immediate once continuity is restated in terms of sequences. These include that they preserve limits, that compositions of continuous functions are continuous, and that continuous images of compact sets are compact. It also gives the cleanest possible tool for proving discontinuity. To show ff fails to be continuous at cc, it suffices to exhibit a single sequence xn→cx_n \to c. This sequence must satisfy f(xn)↛f(c)f(x_n) \not\to f(c). The big picture is a duality that runs throughout analysis. Local behavior of a function near a point can be probed two ways. One way is by shrinking neighborhoods (ε\varepsilon-δ\delta). The other is by testing along paths of points approaching that point (sequences). These two descriptions turn out to be logically equivalent. This is precisely because R\mathbb{R}, and more generally any metric space, has a well-behaved notion of distance. This distance lets sequences "see" every neighborhood. This article states the precise definition of continuity at a point. It proves the equivalence with sequential preservation of limits in both directions. It illustrates the idea with a number-line picture. It works through two asymmetric examples, including a function continuous everywhere except one point, tested with a cleverly chosen sequence. Finally, it shows via a counterexample why the "for every sequence" quantifier cannot be weakened to "for some sequence."

Key takeaways
  • Continuity at cc can be tested purely with sequences: xn→c⇒f(xn)→f(c)x_n \to c \Rightarrow f(x_n) \to f(c).
  • This equivalence goes both ways: it is an "if and only if," not just one implication.
  • The forward direction (continuity ⇒\Rightarrow sequential preservation) uses the ε\varepsilon-δ\delta definition directly.
  • The converse (sequential preservation ⇒\Rightarrow continuity) is proved by contrapositive, constructing a bad sequence from a failure of ε\varepsilon-δ\delta continuity.
  • A single sequence along which f(xn)↛f(c)f(x_n) \not\to f(c) is enough to disprove continuity — this is the theorem's main practical use.
  • Key idea: continuity is the statement that ff commutes with every limiting process approaching cc, and this is logically equivalent to the ε\varepsilon-δ\delta definition.

Where this lives today

The sequential characterization is the standard tool for proving that compositions and algebraic combinations of continuous functions remain continuous (foreshadowing Composition of Continuous Functions): one simply chases a sequence through each function in turn, using convergence of sequences at each stage instead of juggling nested ε\varepsilon's and δ\delta's. It underlies the proof that continuous images of sequentially compact sets are sequentially compact, which feeds directly into The Extreme Value Theorem — a continuous function on a closed bounded interval attains a maximum, proved by extracting convergent subsequences of a maximizing sequence and using sequential continuity to pass the limit through ff. Beyond core analysis, the idea generalizes verbatim to metric spaces and (with care) to general topological spaces, where it becomes the basis for defining continuity via nets or filters when sequences alone are insufficient. In numerical analysis and scientific computing, the sequential viewpoint justifies why iterative approximation schemes (finite-difference or fixed-point methods) that converge to an input value also produce function values converging to the true output, provided the function being approximated is continuous. In probability theory, sequential continuity arguments justify the continuous mapping theorem, used to transfer convergence in distribution of random variables through continuous transformations. In machine learning, sequential characterizations of continuity underpin arguments about the stability of loss functions and activation functions under small perturbations of input data along training trajectories.

Ask the tutor: Can you show me how this same sequential trick proves that the composition of two continuous functions is continuous?

DefinitionContinuity at a point

Let f:D→Rf : D \to \mathbb{R} where D⊆RD \subseteq \mathbb{R}, and let c∈Dc \in D. We say ff is continuous at cc if for every ε>0\varepsilon > 0 there exists δ>0\delta > 0 such that

x∈D and ∣x−c∣<δ  ⟹  ∣f(x)−f(c)∣<ε.x \in D \text{ and } |x - c| < \delta \implies |f(x) - f(c)| < \varepsilon.

We say ff preserves sequential limits at cc if for every sequence (xn)n=1∞(x_n)_{n=1}^\infty with xn∈Dx_n \in D for all nn and xn→cx_n \to c, the image sequence satisfies f(xn)→f(c)f(x_n) \to f(c).

Intuition

Think of cc as a target on the number line and f(c)f(c) as the corresponding target in the range. The ε\varepsilon-δ\delta definition says: shrink a window of radius ε\varepsilon around f(c)f(c), and you can always find a matching window of radius δ\delta around cc whose entire image lands inside that ε\varepsilon-window. The sequential definition instead sends in scouts — sequences of points marching toward cc — and asks whether their images always march toward f(c)f(c). The intuition for why these agree is that a sequence converging to cc is exactly a mechanism for entering every δ\delta-neighborhood of cc eventually, no matter how small δ\delta is. So if ff has the δ\delta-neighborhood-mapping property, any sequence that eventually sits inside that neighborhood must have its image eventually sit inside the corresponding ε\varepsilon-neighborhood of f(c)f(c). Conversely, if ff fails the ε\varepsilon-δ\delta property, some ε0\varepsilon_0 resists every δ\delta, and taking δ=1/n\delta = 1/n produces witness points xnx_n that converge to cc but whose images stubbornly stay ε0\varepsilon_0 away from f(c)f(c) — a concrete failing sequence.

Figure
A sequence xn→cx_n \to c forces f(xn)→f(c)f(x_n) \to f(c) once the xnx_n enter the δ\delta-window
x c c-δ c+δ x1 x2 x3 f y f(c) f(c)-ε f(c)+ε
TheoremSequential Characterization of Continuity

Let f:D→Rf : D \to \mathbb{R} with D⊆RD \subseteq \mathbb{R}, and let c∈Dc \in D. Then ff is continuous at cc if and only if for every sequence (xn)(x_n) in DD with xn→cx_n \to c, we have f(xn)→f(c)f(x_n) \to f(c).

Proof

We prove both directions.

(⇒\Rightarrow) Continuity implies sequential preservation. Assume ff is continuous at cc. Let (xn)(x_n) be any sequence in DD with xn→cx_n \to c. Fix ε>0\varepsilon > 0. By continuity of ff at cc, there exists δ>0\delta > 0 such that

x∈D, ∣x−c∣<δ  ⟹  ∣f(x)−f(c)∣<ε.(1)x \in D,\ |x - c| < \delta \implies |f(x) - f(c)| < \varepsilon. \tag{1}

Since xn→cx_n \to c, by the definition of sequence convergence applied to this δ>0\delta > 0, there exists N∈NN \in \mathbb{N} such that

n≥N  ⟹  ∣xn−c∣<δ.(2)n \geq N \implies |x_n - c| < \delta. \tag{2}

Combining (1)(1) and (2)(2): for all n≥Nn \geq N, since xn∈Dx_n \in D and ∣xn−c∣<δ|x_n - c| < \delta, we conclude ∣f(xn)−f(c)∣<ε|f(x_n) - f(c)| < \varepsilon. Since ε>0\varepsilon > 0 was arbitrary, this shows precisely that f(xn)→f(c)f(x_n) \to f(c), using the ε\varepsilon-NN definition of convergence of a sequence to a limit (this is the definitional criterion from Sequential Characterization of Limits). As (xn)(x_n) was an arbitrary sequence converging to cc, this proves sequential preservation.

(⇐\Leftarrow) Sequential preservation implies continuity. We prove the contrapositive: assume ff is not continuous at cc, and construct a sequence (xn)(x_n) in DD with xn→cx_n \to c but f(xn)↛f(c)f(x_n) \not\to f(c). Since ff is not continuous at cc, the ε\varepsilon-δ\delta definition fails: there exists some ε0>0\varepsilon_0 > 0 such that for every δ>0\delta > 0, there exists a point x∈Dx \in D with ∣x−c∣<δ|x - c| < \delta but ∣f(x)−f(c)∣≥ε0|f(x) - f(c)| \geq \varepsilon_0. (This is the logical negation of the continuity statement, obtained by negating the quantifiers: ¬(∀ε ∃δ ∀x(⋯ ))\neg(\forall \varepsilon \, \exists \delta \, \forall x(\cdots)) becomes ∃ε ∀δ ∃x(⋯ fails)\exists \varepsilon \, \forall \delta \, \exists x (\cdots \text{ fails}).) Apply this failure statement with δ=1n\delta = \frac{1}{n} for each n∈Nn \in \mathbb{N}. For each nn, we obtain a point xn∈Dx_n \in D such that

∣xn−c∣<1nand∣f(xn)−f(c)∣≥ε0.(3)|x_n - c| < \frac{1}{n} \quad \text{and} \quad |f(x_n) - f(c)| \geq \varepsilon_0. \tag{3}

This defines a sequence (xn)n=1∞(x_n)_{n=1}^\infty in DD. Claim: xn→cx_n \to c. Let η>0\eta > 0 be arbitrary. By the Archimedean property, there exists N∈NN \in \mathbb{N} with 1N<η\frac{1}{N} < \eta. Then for all n≥Nn \geq N, we have ∣xn−c∣<1n≤1N<η|x_n - c| < \frac{1}{n} \leq \frac{1}{N} < \eta by (3)(3). Hence xn→cx_n \to c. Claim: f(xn)↛f(c)f(x_n) \not\to f(c). By (3)(3), for every nn we have ∣f(xn)−f(c)∣≥ε0>0|f(x_n) - f(c)| \geq \varepsilon_0 > 0. Thus no term of the sequence (f(xn))\bigl(f(x_n)\bigr) lies within ε0\varepsilon_0 of f(c)f(c), so it is impossible for f(xn)→f(c)f(x_n) \to f(c): taking ε=ε0\varepsilon = \varepsilon_0 in the definition of convergence to f(c)f(c), no NN can satisfy ∣f(xn)−f(c)∣<ε0|f(x_n) - f(c)| < \varepsilon_0 for all n≥Nn \geq N, since in fact ∣f(xn)−f(c)∣≥ε0|f(x_n)-f(c)|\ge \varepsilon_0 for every nn. We have exhibited a sequence (xn)(x_n) in DD with xn→cx_n \to c but f(xn)↛f(c)f(x_n) \not\to f(c). This shows that sequential preservation fails whenever continuity fails — the contrapositive of the desired implication. Since both directions hold, ff is continuous at cc if and only if ff preserves the limit of every sequence converging to cc. ■\blacksquare

∎

Worked examples

Example 1: Confirming continuity of a piecewise-defined function using a specific sequence family. Let D=RD = \mathbb{R} and define

f(x)={x2sin⁡ ⁣(1x)x≠00x=0.f(x) = \begin{cases} x^2 \sin\!\left(\dfrac{1}{x}\right) & x \neq 0 \\ 0 & x = 0. \end{cases}

We claim ff is continuous at c=0c = 0, and we verify this using the sequential characterization with an asymmetric, non-obvious test sequence rather than the trivial choice xn=1/nx_n = 1/n. Take xn=1(n+3)π+π/6x_n = \dfrac{1}{(n+3)\pi + \pi/6} for n=1,2,3,…n = 1, 2, 3, \dots — chosen so that sin⁡(1/xn)=sin⁡((n+3)π+π/6)=±sin⁡(π/6)=±12\sin(1/x_n) = \sin\big((n+3)\pi + \pi/6\big) = \pm \sin(\pi/6) = \pm \tfrac12, a deliberately non-simplifying, oscillating sequence of sine-values, rather than the sequence where sin⁡(1/xn)\sin(1/x_n) is constantly 00 or 11. First, xn→0x_n \to 0: as n→∞n \to \infty, the denominator (n+3)π+π/6→∞(n+3)\pi + \pi/6 \to \infty, so xn→0x_n \to 0 by the standard fact that 1/n→01/n \to 0 (formally, 0<xn<1nπ0 < x_n < \frac{1}{n\pi} for all n≥1n\ge 1, and 1nπ→0\frac{1}{n\pi}\to 0, so the Squeeze Theorem for sequences forces xn→0x_n \to 0). Now compute f(xn)=xn2sin⁡(1/xn)f(x_n) = x_n^2 \sin(1/x_n). Since ∣sin⁡(1/xn)∣≤1|\sin(1/x_n)| \le 1 always (regardless of the oscillating value ±12\pm\tfrac12), we get

∣f(xn)−f(0)∣=∣xn2sin⁡(1/xn)−0∣≤xn2.|f(x_n) - f(0)| = |x_n^2 \sin(1/x_n) - 0| \leq x_n^2.

Since xn→0x_n \to 0, also xn2→0x_n^2 \to 0 (product of convergent sequences), so by the Squeeze Theorem, f(xn)→0=f(0)f(x_n) \to 0 = f(0). This single sequence does not prove continuity at 00 (that requires checking all sequences, which the direct ε\varepsilon–δ\delta argument does: given ε>0\varepsilon>0, take δ=ε\delta=\sqrt\varepsilon, so ∣x∣<δ⇒∣f(x)∣≤x2<ε|x|<\delta \Rightarrow |f(x)| \le x^2 < \varepsilon). But the exercise shows how the theorem's forward direction is used in practice: no matter which sequence approaching 00 we pick — even an oscillating one built from an unusual arithmetic progression of angles — the images are forced to converge to f(0)=0f(0) = 0, exactly as the theorem guarantees.

Example 2: Detecting discontinuity by exhibiting one bad sequence. Let D=RD = \mathbb{R} and define the function

g(x)={x3−8x−2x≠25x=2.g(x) = \begin{cases} \dfrac{x^3 - 8}{x - 2} & x \neq 2 \\ 5 & x = 2. \end{cases}

We use the sequential characterization to show gg is not continuous at c=2c = 2. For x≠2x \neq 2, factor: x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x-2)(x^2 + 2x + 4), so g(x)=x2+2x+4g(x) = x^2 + 2x + 4 for x≠2x \ne 2. Choose the sequence xn=2+1n2+1x_n = 2 + \dfrac{1}{n^2+1} for n=1,2,3,…n = 1, 2, 3, \dots (an asymmetric, non-standard choice of step size, distinct from the generic 2+1/n2 + 1/n). Since 1n2+1→0\frac{1}{n^2+1} \to 0, we have xn→2x_n \to 2, and xn≠2x_n \neq 2 for every nn, so xn∈D∖{2}x_n \in D \setminus \{2\}. Compute the image sequence using g(xn)=xn2+2xn+4g(x_n) = x_n^2 + 2x_n + 4 for n≥1n\ge 1. As xn→2x_n \to 2, and polynomials are continuous (a fact itself provable via this same theorem, since polynomials are built from sums and products of the identity and constant sequences), we get

g(xn)=xn2+2xn+4⟶22+2(2)+4=4+4+4=12.g(x_n) = x_n^2 + 2x_n + 4 \longrightarrow 2^2 + 2(2) + 4 = 4 + 4 + 4 = 12.

But g(2)=5g(2) = 5 by definition. Since 12≠512 \neq 5, we have found a sequence xn→2x_n \to 2 with g(xn)→12≠g(2)=5g(x_n) \to 12 \ne g(2) = 5. By the contrapositive of the forward direction of the theorem (equivalently, by the converse direction applied in reverse: sequential preservation fails, so continuity fails), gg is not continuous at c=2c = 2. Notice we needed only one cleverly chosen sequence to kill continuity — this asymmetry (one sequence suffices to disprove, but all sequences are needed to prove) is the central practical payoff of the theorem.

CounterexampleWhy "for every sequence" cannot be weakened to "for some sequence"

The theorem requires that f(xn)→f(c)f(x_n) \to f(c) hold for every sequence xn→cx_n \to c, not merely for some particular sequence. If we only demand this for one convenient sequence, continuity can fail dramatically. Let D=RD = \mathbb{R} and define the Dirichlet-type function

h(x)={1x∈Q0x∉Q.h(x) = \begin{cases} 1 & x \in \mathbb{Q} \\ 0 & x \notin \mathbb{Q}. \end{cases}

Fix c=0c = 0, and note h(0)=1h(0) = 1 since 0∈Q0 \in \mathbb{Q}. Consider the specific sequence xn=1nx_n = \dfrac{1}{n}, which lies in Q\mathbb{Q} for every nn, and xn→0x_n \to 0. Then h(xn)=1h(x_n) = 1 for all nn, so trivially h(xn)→1=h(0)h(x_n) \to 1 = h(0). If we only checked this one sequence, we might wrongly conclude hh is continuous at 00. But hh is not continuous at 00. Take instead the sequence yn=2ny_n = \dfrac{\sqrt 2}{n}, which is irrational for every n≥1n \geq 1 (since 2\sqrt 2 is irrational and a nonzero rational multiple of an irrational number remains irrational), and yn→0y_n \to 0. Then h(yn)=0h(y_n) = 0 for every nn, so h(yn)→0≠1=h(0)h(y_n) \to 0 \ne 1 = h(0). This exhibits two sequences, both converging to the same point c=0c=0, whose images converge to different limits (11 and 00). Since the theorem demands f(xn)→f(c)f(x_n) \to f(c) for every sequence — and here two legitimate approaching sequences already disagree with each other — continuity fails. This is precisely why the universal quantifier "for every sequence" in the theorem's statement is essential and cannot be relaxed to an existential one: checking a single well-behaved sequence never suffices to certify continuity.

Scope, edge cases & common traps

SituationWhat to watch for
Proving continuity at ccMust show f(xn)→f(c)f(x_n)\to f(c) for all sequences xn→cx_n \to c, not just one; usually easier via direct ε\varepsilon-δ\delta or algebraic limit laws unless a specific structural trick is available
Disproving continuity at ccOnly need one sequence xn→cx_n \to c with f(xn)↛f(c)f(x_n) \not\to f(c) (or with f(xn)f(x_n) converging to the wrong limit, or not converging at all)
Domain restrictionsSequence (xn)(x_n) must lie in DD; if cc is isolated in DD, every sequence in DD converging to cc is eventually constant =c=c, and continuity there is automatic
Two-sided vs one-sidedThe theorem as stated tests all sequences in DD approaching cc from any admissible direction; if DD only allows one side (e.g. D=[c,∞)D=[c,\infty)), the sequential test automatically reduces to a one-sided limit
Confusing "some sequence" with "every sequence"See the counterexample: a single matching sequence never proves continuity

The mathematician behind it

Origins · 1 minAugustin-Louis Cauchy and how this was discovered
AC
Augustin-Louis Cauchy
1789–1857 · Early 19th-century French mathematical analysis

Cauchy was among the first to insist on rigorous definitions of limit, continuity, and convergence, replacing informal "infinitesimal" reasoning inherited from Newton and Leibniz. His 1821 Cours d'Analyse laid foundations that Bolzano, Weierstrass, and later Heine sharpened into the modern ε\varepsilon-δ\delta and sequential formulations used today. The equivalence between sequential and ε\varepsilon-δ\delta continuity is often attributed in spirit to Eduard Heine, who worked out the precise sequential criterion in the 1870s while formalizing uniform continuity, building on Cauchy's earlier convergence-based approach to limits.

History
- 1821 — Cauchy's Cours d'Analyse gives an early rigorous, limit-based treatment of continuity.
- 1817 — Bolzano anticipates ε\varepsilon-style continuity arguments in unpublished work, largely unrecognized at the time.
- 1861 — Weierstrass, in Berlin lectures, formalizes the modern ε\varepsilon-δ\delta definition of continuity and limit.
- 1872 — Heine publishes work connecting continuity to sequential convergence, motivated by uniform continuity on compact intervals.
- Late 1800s — the equivalence of sequential and ε\varepsilon-δ\delta continuity becomes standard, later generalized to metric and topological spaces (where it requires first countability).
Why do we even need the sequential characterization if we already have the ε\varepsilon-δ\delta definition?

The ε\varepsilon-δ\delta definition is the foundational one, but it is often clumsy to manipulate directly, especially when chaining several functions together or taking limits of limits. Sequences obey simple, well-established algebraic limit laws (sums, products, quotients, composition with continuous functions), so restating continuity in sequential terms lets you reuse those laws instead of re-deriving ε\varepsilon-δ\delta estimates from scratch every time. It is also the fastest route to disproving continuity: one explicit bad sequence settles the question, whereas disproving an ε\varepsilon-δ\delta statement directly requires negating three nested quantifiers correctly.

Does this theorem hold for functions of several variables or on general metric spaces?

Yes. The proof given here uses only the metric structure of R\mathbb{R} — the notion of distance ∣x−c∣|x-c| — not any special property of the real line, so it carries over verbatim to functions between metric spaces, replacing ∣x−c∣|x-c| and ∣f(x)−f(c)∣|f(x)-f(c)| with the respective metrics. It even extends to general topological spaces, but there one needs the space to be "first countable" (having a countable neighborhood basis at each point) for sequences to fully capture the topology; without first countability, one must use the more general notion of a net or filter instead of a sequence.

Can I use just one sequence to prove continuity if the function looks "nice," like a polynomial?

No — technically the definition demands checking every convergent sequence, but for polynomials and other standard functions you never actually run the sequential test by hand. Instead, you invoke previously established facts (identity and constant functions are continuous; sums, products, and quotients — where the denominator is nonzero — of continuous functions are continuous) which were themselves proved once using this theorem or the equivalent ε\varepsilon-δ\delta definition. Testing a single sequence, as in the counterexample with the Dirichlet function, can badly mislead you if the function is not actually continuous.

How does this theorem relate to the Sequential Characterization of Limits?

The sequential characterization of continuity is essentially a special case of the sequential characterization of limits, combined with the requirement that the limiting value equal f(c)f(c). Recall that lim⁡x→cf(x)=L\lim_{x\to c} f(x) = L if and only if for every sequence xn→cx_n \to c with xn≠cx_n \neq c, f(xn)→Lf(x_n) \to L. Continuity at cc additionally requires c∈Dc \in D and that this limit LL actually equal f(c)f(c); allowing xn=cx_n = c in the sequence is harmless since then trivially f(xn)=f(c)f(x_n) = f(c).

What if the function is not defined at nearby points, so no nontrivial sequence exists?

If cc is an isolated point of the domain DD — meaning there is some δ>0\delta>0 such that the only point of DD within distance δ\delta of cc is cc itself — then every sequence in DD converging to cc must eventually equal cc (it cannot approach through other domain points, because there are none nearby). In that case f(xn)=f(c)f(x_n) = f(c) for all large nn trivially, so the sequential condition holds automatically, and ff is continuous at every isolated point of its domain regardless of the formula defining ff.

Is the converse direction really necessary, or is continuity's usual definition already equivalent by common sense?

It is not automatic — it requires proof, and the direction is subtle because it is proved by contrapositive rather than directly. The key insight is that failing the ε\varepsilon-δ\delta definition for some ε0\varepsilon_0 lets you plug in a shrinking sequence of δ\delta values (like 1/n1/n) to manufacture a specific bad sequence, using the Archimedean property to confirm it actually converges to cc. Without carefully constructing this witness sequence, one cannot logically pass from "the ε\varepsilon-δ\delta definition fails" to "some concrete sequence breaks sequential preservation."

Before this

Where this leads