STEMviz
Mathematics · Differential and Integral Calculus

The Rigorous (Epsilon-Delta) Definition of a Limit

The epsilon-delta definition of a limit, with worked constructions of delta, uniqueness, one-sided and infinite limits, and the sequential criterion.

The Rigorous (Epsilon-Delta) Definition of a Limit

Every theorem of calculus you will meet in this course — continuity, the derivative, the integral, convergence of series — rests on a single precise idea: the limit. In secondary school the limit is usually described informally ("f(x)f(x) gets close to LL as xx gets close to aa"), and that description is good enough to compute with but useless for proving anything, because "gets close to" is not a mathematical statement. This chapter replaces the informal picture with the ε\varepsilon-δ\delta definition due to Cauchy and Weierstrass, which turns "close" into an inequality and "limit" into a statement with quantifiers that can be verified or refuted.

Have to hand: the absolute value ∣x∣|x| and its triangle inequality ∣a+b∣≤∣a∣+∣b∣|a+b|\le |a|+|b|, interval notation, and familiarity with solving inequalities in one variable. Nothing beyond that is assumed.

Why bother with quantifiers. A statement like "f(x)f(x) is close to LL when xx is close to aa" has two hidden roles reversed if read carelessly. The challenge is how close to LL you must get (that is ε\varepsilon); the response is how close to aa that forces you to be (that is δ\delta). Getting the order of quantifiers backwards is the single most common error in this entire course.

1. The Definition

Definition (limit of a function). Let ff be a function defined on some set containing an open interval around aa, except possibly at aa itself. We say the limit of f(x)f(x) as xx approaches aa is LL, written

lim⁡x→af(x)=L,\lim_{x\to a} f(x) = L,

if for every ε>0\varepsilon > 0 there exists a δ>0\delta > 0 such that for all xx,

0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε.0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon.

Read this sentence left to right: first an adversary picks an arbitrarily small tolerance ε\varepsilon on the output; then, knowing ε\varepsilon, you must produce a tolerance δ\delta on the input that guarantees the output lands within ε\varepsilon of LL. The condition 0<∣x−a∣0 < |x-a| deliberately excludes x=ax = a: the limit describes the behaviour of ff near aa, not at aa, so ff need not even be defined at aa.

Definition vs. intuition. "f(x)→Lf(x)\to L as x→ax\to a" is intuition; the ε\varepsilon-δ\delta inequality chain above is the definition. Every proof in this chapter manipulates the inequality, never the intuition directly — though the intuition is exactly what tells you how to find δ\delta.

2. Finding δ\delta from ε\varepsilon: A Worked Example

Worked example. Prove that lim⁡x→3(2x+1)=7\lim_{x\to 3}(2x+1) = 7.

We must show: for every ε>0\varepsilon>0 there is a δ>0\delta>0 such that 0<∣x−3∣<δ0<|x-3|<\delta implies ∣(2x+1)−7∣<ε|(2x+1)-7|<\varepsilon.

Scratch work (not part of the proof, but how we find δ\delta). We want ∣(2x+1)−7∣=∣2x−6∣=2∣x−3∣<ε|(2x+1)-7| = |2x-6| = 2|x-3| < \varepsilon, i.e. ∣x−3∣<ε/2|x-3| < \varepsilon/2. This suggests δ=ε/2\delta = \varepsilon/2.

Proof. Let ε>0\varepsilon > 0 be given. Choose δ=ε/2\delta = \varepsilon/2. Suppose 0<∣x−3∣<δ0 < |x-3| < \delta. Then

∣(2x+1)−7∣=∣2x−6∣=2∣x−3∣<2δ=2⋅ε2=ε.|(2x+1) - 7| = |2x - 6| = 2|x-3| < 2\delta = 2\cdot\frac{\varepsilon}{2} = \varepsilon.

Since ε>0\varepsilon>0 was arbitrary, this proves lim⁡x→3(2x+1)=7\lim_{x\to 3}(2x+1)=7. ■\blacksquare

Notice the logical shape: the scratch work runs backwards (from the desired conclusion to a condition on δ\delta), but the proof itself runs forwards (assume ∣x−3∣<δ|x-3|<\delta, derive ∣f(x)−L∣<ε|f(x)-L|<\varepsilon). A proof that only shows the backwards direction has shown the condition is necessary, not that the chosen δ\delta is sufficient — though for a chain of reversible inequalities, as here, both directions coincide and either can be written up.

3. A Harder Example: A Nonlinear Function

Linear functions make δ\delta exactly proportional to ε\varepsilon. For nonlinear ff, the factor relating ∣x−a∣|x-a| to ∣f(x)−L∣|f(x)-L| is itself not constant, so we must first bound it on some neighbourhood of aa, which is why a first restriction on δ\delta (e.g. δ≤1\delta \le 1) appears before the final choice.

Worked example. Prove that lim⁡x→2x2=4\lim_{x\to 2} x^2 = 4.

Scratch work. ∣x2−4∣=∣x−2∣ ∣x+2∣|x^2-4| = |x-2|\,|x+2|. The factor ∣x+2∣|x+2| is not a constant, but if we first insist δ≤1\delta \le 1, then 0<∣x−2∣<10<|x-2|<1 gives 1<x<31<x<3, hence 3<x+2<53<x+2<5, so ∣x+2∣<5|x+2|<5. Then ∣x2−4∣<5∣x−2∣|x^2-4| < 5|x-2|, and we want this <ε<\varepsilon, i.e. ∣x−2∣<ε/5|x-2|<\varepsilon/5. So we need δ≤1\delta \le 1 and δ≤ε/5\delta \le \varepsilon/5; take the minimum.

Proof. Let ε>0\varepsilon>0. Choose δ=min⁡{1,ε/5}\delta = \min\{1, \varepsilon/5\}. Suppose 0<∣x−2∣<δ0<|x-2|<\delta. Since δ≤1\delta\le 1, we have ∣x−2∣<1|x-2|<1, so 1<x<31<x<3 and thus ∣x+2∣<5|x+2|<5. Then

∣x2−4∣=∣x−2∣ ∣x+2∣<δ⋅5≤ε5⋅5=ε.|x^2-4| = |x-2|\,|x+2| < \delta\cdot 5 \le \frac{\varepsilon}{5}\cdot 5 = \varepsilon.

Since ε>0\varepsilon>0 was arbitrary, lim⁡x→2x2=4\lim_{x\to2}x^2=4. ■\blacksquare

The device "take δ\delta to be the minimum of a bound that controls the troublesome factor and a bound that delivers the target ε\varepsilon" recurs throughout analysis; remember it, not just this one computation.

4. Uniqueness of the Limit

Theorem. If lim⁡x→af(x)=L1\lim_{x\to a}f(x) = L_1 and lim⁡x→af(x)=L2\lim_{x\to a}f(x)=L_2, then L1=L2L_1 = L_2.

Proof. Suppose for contradiction L1≠L2L_1 \ne L_2. Let ε=∣L1−L2∣2>0\varepsilon = \dfrac{|L_1-L_2|}{2} > 0. By the two limit hypotheses applied to this ε\varepsilon, there exist δ1,δ2>0\delta_1,\delta_2>0 such that 0<∣x−a∣<δ1  ⟹  ∣f(x)−L1∣<ε0<|x-a|<\delta_1 \implies |f(x)-L_1|<\varepsilon and 0<∣x−a∣<δ2  ⟹  ∣f(x)−L2∣<ε0<|x-a|<\delta_2 \implies |f(x)-L_2|<\varepsilon. Let δ=min⁡{δ1,δ2}\delta=\min\{\delta_1,\delta_2\}, and pick any xx with 0<∣x−a∣<δ0<|x-a|<\delta (such xx exists, e.g. x=a+δ/2x = a+\delta/2). Then by the triangle inequality,

∣L1−L2∣≤∣L1−f(x)∣+∣f(x)−L2∣<ε+ε=∣L1−L2∣,|L_1-L_2| \le |L_1-f(x)| + |f(x)-L_2| < \varepsilon+\varepsilon = |L_1-L_2|,

a contradiction (∣L1−L2∣<∣L1−L2∣|L_1-L_2|<|L_1-L_2| is false). Hence L1=L2L_1=L_2. ■\blacksquare

This is why the notation lim⁡x→af(x)=L\lim_{x\to a}f(x)=L is legitimate: the limit, when it exists, is a single well-defined number, and "the limit does not exist" is a meaningful alternative, not a failure of notation.

5. One-Sided Limits

Definition. lim⁡x→a+f(x)=L\lim_{x\to a^+} f(x) = L means: for every ε>0\varepsilon>0 there is δ>0\delta>0 such that a<x<a+δ  ⟹  ∣f(x)−L∣<εa < x < a+\delta \implies |f(x)-L|<\varepsilon. Similarly lim⁡x→a−f(x)=L\lim_{x\to a^-}f(x)=L restricts to a−δ<x<aa-\delta<x<a.

Theorem. lim⁡x→af(x)=L\lim_{x\to a}f(x) = L if and only if both one-sided limits exist and lim⁡x→a+f(x)=lim⁡x→a−f(x)=L\lim_{x\to a^+}f(x) = \lim_{x\to a^-}f(x) = L.

The proof is a direct unpacking of the definitions: the two-sided condition 0<∣x−a∣<δ0<|x-a|<\delta is exactly the union of a−δ<x<aa-\delta<x<a and a<x<a+δa<x<a+\delta, so a single δ\delta working two-sidedly is equivalent to δ\delta's working on each side separately (take the minimum of the two one-sided δ\delta's, or re-use one δ\delta for both). This theorem is the standard tool for showing a limit fails to exist at a jump: compute both one-sided limits and show they disagree.

Worked example. For f(x)=∣x∣xf(x) = \dfrac{|x|}{x} (x≠0x\ne0), lim⁡x→0+f(x)=lim⁡x→0+1=1\lim_{x\to0^+}f(x) = \lim_{x\to0^+}1 = 1 and lim⁡x→0−f(x)=lim⁡x→0−(−1)=−1\lim_{x\to0^-}f(x)=\lim_{x\to0^-}(-1)=-1. Since 1≠−11\ne-1, lim⁡x→0f(x)\lim_{x\to0}f(x) does not exist.

6. Limits at Infinity and Infinite Limits

Definition. lim⁡x→∞f(x)=L\lim_{x\to\infty}f(x)=L means: for every ε>0\varepsilon>0 there exists M>0M>0 such that x>M  ⟹  ∣f(x)−L∣<εx>M \implies |f(x)-L|<\varepsilon. Here MM plays the role δ\delta played before — it bounds how large xx must be, rather than how close to aa.

Definition. lim⁡x→af(x)=∞\lim_{x\to a}f(x) = \infty means: for every K>0K>0 there exists δ>0\delta>0 such that 0<∣x−a∣<δ  ⟹  f(x)>K0<|x-a|<\delta \implies f(x) > K. This is not a claim that the limit exists in the sense of Section 1 — ∞\infty is not a real number — it is a separate piece of notation recording a specific kind of divergence.

A common confusion. "The limit is ∞\infty" and "the limit does not exist" are both true simultaneously for, e.g., f(x)=1/x2f(x)=1/x^2 at a=0a=0: no real number LL satisfies the Section 1 definition, yet the specific divergence is informative enough to deserve its own symbol and its own quantifier pattern.

7. Sequential Characterisation of the Limit

Theorem (sequential criterion). lim⁡x→af(x)=L\lim_{x\to a}f(x) = L if and only if for every sequence (xn)(x_n) with xn≠ax_n \ne a for all nn and xn→ax_n \to a, we have f(xn)→Lf(x_n) \to L.

Proof (⇒\Rightarrow). Suppose lim⁡x→af(x)=L\lim_{x\to a}f(x)=L and let (xn)→a(x_n)\to a, xn≠ax_n\ne a. Given ε>0\varepsilon>0, choose δ>0\delta>0 from the hypothesis so that 0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε0<|x-a|<\delta\implies|f(x)-L|<\varepsilon. Since xn→ax_n\to a, there is NN such that n>N  ⟹  ∣xn−a∣<δn>N \implies |x_n-a|<\delta; also xn≠ax_n\ne a gives 0<∣xn−a∣0<|x_n-a|. Hence n>N  ⟹  ∣f(xn)−L∣<εn>N \implies |f(x_n)-L|<\varepsilon, i.e. f(xn)→Lf(x_n)\to L.

Proof (⇐\Leftarrow, by contrapositive). Suppose lim⁡x→af(x)≠L\lim_{x\to a}f(x) \ne L (or does not exist equal to LL). Then there is some ε0>0\varepsilon_0>0 such that no δ>0\delta>0 works: for every δ>0\delta>0 there is an xx with 0<∣x−a∣<δ0<|x-a|<\delta but ∣f(x)−L∣≥ε0|f(x)-L|\ge\varepsilon_0. Apply this with δ=1/n\delta = 1/n for each n∈Nn\in\mathbb{N} to construct xnx_n with 0<∣xn−a∣<1/n0<|x_n-a|<1/n and ∣f(xn)−L∣≥ε0|f(x_n)-L|\ge\varepsilon_0. Then xn→ax_n\to a, xn≠ax_n\ne a, but f(xn)↛Lf(x_n)\not\to L. This is the contrapositive of the claim, so the claim holds. ■\blacksquare

This theorem is the standard tool for proving a limit does not exist without guessing an ε0\varepsilon_0 directly: exhibit two sequences xn→ax_n\to a and yn→ay_n \to a with f(xn)→L1≠L2←lim⁡f(yn)f(x_n)\to L_1 \ne L_2 \leftarrow \lim f(y_n).

Worked example. lim⁡x→0sin⁡(1/x)\lim_{x\to0}\sin(1/x) does not exist. Take xn=12πn→0x_n = \dfrac{1}{2\pi n}\to 0, giving f(xn)=sin⁡(2πn)=0f(x_n)=\sin(2\pi n)=0. Take yn=1π/2+2πn→0y_n = \dfrac{1}{\pi/2+2\pi n}\to0, giving f(yn)=sin⁡(π/2+2πn)=1f(y_n)=\sin(\pi/2+2\pi n)=1. Since 0≠10\ne1, the sequential criterion shows the limit does not exist — note that the function is perfectly bounded, so this has nothing to do with blowing up, only with oscillation.

Common Exam Pitfalls

  • Reversing the quantifier order. Writing "there exists δ\delta such that for all ε\varepsilon..." instead of "for all ε\varepsilon there exists δ\delta..." is a different (false, for non-constant ff) statement, not a stylistic variant.
  • Choosing δ\delta before bounding the nonlinear factor. For f(x)=x2f(x)=x^2 or similar, skipping the preliminary restriction δ≤1\delta\le1 step leaves an unbounded factor like ∣x+2∣|x+2| loose in the final inequality.
  • Forgetting x≠ax\ne a. The punctured condition 0<∣x−a∣<δ0<|x-a|<\delta is essential; dropping it silently assumes f(a)=Lf(a)=L, which need not hold and is irrelevant to the limit's existence.
  • Treating lim⁡x→af(x)=∞\lim_{x\to a}f(x)=\infty as "the limit exists". It is standard shorthand for a specific divergence pattern, not a value satisfying the Section 1 definition — say so explicitly if asked whether the limit "exists".
  • Using one sequence to prove a limit exists. The sequential criterion requires every sequence xn→ax_n\to a; checking one or two convergent sequences can only ever disprove a limit (by exhibiting disagreement), never prove it exists.
  • Confusing the roles of ε\varepsilon and δ\delta with δ\delta "depending on xx" instead of on ε\varepsilon. δ\delta may depend on aa and ε\varepsilon only; it must work uniformly for all xx in the punctured neighbourhood, not be re-chosen per xx.

Summary

  • Definition: lim⁡x→af(x)=L\lim_{x\to a}f(x)=L iff ∀ε>0 ∃δ>0\forall\varepsilon>0\,\exists\delta>0 such that 0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε0<|x-a|<\delta \implies |f(x)-L|<\varepsilon.
  • To find δ\delta: manipulate ∣f(x)−L∣|f(x)-L| algebraically into (constant)×∣x−a∣\times|x-a|, restricting δ≤1\delta\le1 first if a nonlinear factor needs bounding, then take δ=min⁡{bound,ε/constant}\delta=\min\{\text{bound}, \varepsilon/\text{constant}\}.
  • Uniqueness: a limit, if it exists, is unique — proved by splitting ε=∣L1−L2∣/2\varepsilon=|L_1-L_2|/2 and the triangle inequality.
  • One-sided limits lim⁡x→a±f(x)\lim_{x\to a^\pm}f(x) restrict xx to one side of aa; the two-sided limit exists iff both one-sided limits exist and agree.
  • Limits at infinity / infinite limits replace δ\delta (or the target inequality) with MM or KK, but keep the same ∀\forall-∃\exists logical shape.
  • Sequential criterion: lim⁡x→af(x)=L\lim_{x\to a}f(x)=L iff f(xn)→Lf(x_n)\to L for every sequence xn→ax_n\to a with xn≠ax_n\ne a — the standard tool for proving non-existence via two sequences with different limits.