STEMviz
Mathematics · Differential and Integral Calculus

Limit Theorems and the Continuity of Functions

Limit laws (sum, product, quotient, squeeze) proved from the epsilon-delta definition, the rigorous definition of continuity, and the Intermediate and Extreme Value Theorems.

Limit Theorems and the Continuity of Functions

The ε\varepsilon-δ\delta definition of the previous chapter is precise but painful to use directly on every function you meet. This chapter proves a small toolbox of limit laws — for sums, products, quotients and compositions — each derived once and for all from the definition, so that afterwards you compute limits of complicated expressions algebraically instead of re-running an ε\varepsilon-δ\delta argument every time. The second half of the chapter uses these laws to define continuity rigorously and to prove the two theorems that make continuous functions on closed intervals so useful: the Intermediate Value Theorem and the Extreme Value Theorem.

Have to hand: the ε\varepsilon-δ\delta definition of a limit, the triangle inequality, and the notion of a bounded set. Everything here is built on Chapter 1 and nothing is assumed beyond it.

What continuity is not. Continuity is often introduced as "you can draw the graph without lifting your pen." That is a useful cartoon but not a definition — it cannot be checked for a function you cannot draw, and it says nothing about why the theorems of this chapter hold. The precise definition in Section 4 is what every proof below actually uses.

1. The Limit Laws

Theorem (Sum Rule). If lim⁡x→af(x)=L1\lim_{x\to a}f(x)=L_1 and lim⁡x→ag(x)=L2\lim_{x\to a}g(x)=L_2, then lim⁡x→a[f(x)+g(x)]=L1+L2\lim_{x\to a}[f(x)+g(x)] = L_1+L_2.

Proof. Let ε>0\varepsilon>0. Apply the hypothesis on ff with tolerance ε/2\varepsilon/2: there is δ1>0\delta_1>0 such that 0<∣x−a∣<δ1  ⟹  ∣f(x)−L1∣<ε/20<|x-a|<\delta_1 \implies |f(x)-L_1|<\varepsilon/2. Apply the hypothesis on gg likewise: there is δ2>0\delta_2>0 such that 0<∣x−a∣<δ2  ⟹  ∣g(x)−L2∣<ε/20<|x-a|<\delta_2 \implies |g(x)-L_2|<\varepsilon/2. Let δ=min⁡{δ1,δ2}\delta=\min\{\delta_1,\delta_2\}. If 0<∣x−a∣<δ0<|x-a|<\delta, both conditions hold simultaneously, and by the triangle inequality,

∣(f(x)+g(x))−(L1+L2)∣≤∣f(x)−L1∣+∣g(x)−L2∣<ε2+ε2=ε.|(f(x)+g(x))-(L_1+L_2)| \le |f(x)-L_1| + |g(x)-L_2| < \frac{\varepsilon}{2}+\frac{\varepsilon}{2} = \varepsilon.

Since ε>0\varepsilon>0 was arbitrary, the sum rule holds. ■\blacksquare

Theorem (Product Rule). If lim⁡x→af(x)=L1\lim_{x\to a}f(x)=L_1 and lim⁡x→ag(x)=L2\lim_{x\to a}g(x)=L_2, then lim⁡x→a[f(x)g(x)]=L1L2\lim_{x\to a}[f(x)g(x)] = L_1L_2.

Proof sketch. Write f(x)g(x)−L1L2=f(x)[g(x)−L2]+L2[f(x)−L1]f(x)g(x)-L_1L_2 = f(x)[g(x)-L_2] + L_2[f(x)-L_1]. By applying the definition of lim⁡x→af(x)=L1\lim_{x\to a}f(x)=L_1 with ε=1\varepsilon=1 we obtain δ0>0\delta_0>0 with 0<∣x−a∣<δ0  ⟹  ∣f(x)−L1∣<10<|x-a|<\delta_0\implies |f(x)-L_1|<1, hence ∣f(x)∣<∣L1∣+1=:M|f(x)|<|L_1|+1=:M on that punctured neighbourhood. Given ε\varepsilon, make ∣g(x)−L2∣<ε/(2M)|g(x)-L_2|<\varepsilon/(2M) and ∣f(x)−L1∣<ε/(2(∣L2∣+1))|f(x)-L_1|<\varepsilon/(2(|L_2|+1)) using the two hypotheses, then take the minimum of the resulting δ\delta's (together with the δ\delta that gave the bound MM). The triangle inequality closes the estimate exactly as in the sum rule. ■\blacksquare

Theorem (Quotient Rule). If lim⁡x→af(x)=L1\lim_{x\to a}f(x)=L_1, lim⁡x→ag(x)=L2≠0\lim_{x\to a}g(x)=L_2\ne0, then lim⁡x→af(x)g(x)=L1L2\lim_{x\to a}\dfrac{f(x)}{g(x)} = \dfrac{L_1}{L_2}.

Key step. Since L2≠0L_2\ne0, taking ε=∣L2∣/2\varepsilon = |L_2|/2 in the hypothesis on gg gives a δ0\delta_0 such that 0<∣x−a∣<δ0  ⟹  ∣g(x)∣>∣L2∣/20<|x-a|<\delta_0 \implies |g(x)|>|L_2|/2, so g(x)g(x) is bounded away from zero near aa and 1/g(x)1/g(x) is well-defined and bounded there. The rest follows the product rule pattern applied to f(x)⋅1g(x)f(x)\cdot\frac{1}{g(x)}, after first proving lim⁡x→a1g(x)=1L2\lim_{x\to a}\frac{1}{g(x)}=\frac{1}{L_2} directly from ∣1/g(x)−1/L2∣=∣g(x)−L2∣/(∣g(x)∣∣L2∣)|1/g(x)-1/L_2| = |g(x)-L_2|/(|g(x)||L_2|).

Worked example. Compute lim⁡x→23x2−5x+1\lim_{x\to2}\dfrac{3x^2-5}{x+1}. Since lim⁡x→2(3x2−5)=3(4)−5=7\lim_{x\to2}(3x^2-5) = 3(4)-5=7 (by the product and sum rules applied to the basic limit lim⁡x→2x=2\lim_{x\to2}x=2) and lim⁡x→2(x+1)=3≠0\lim_{x\to2}(x+1)=3\ne0, the quotient rule gives lim⁡x→23x2−5x+1=73\lim_{x\to2}\dfrac{3x^2-5}{x+1} = \dfrac{7}{3}.

Why these proofs matter even though you never re-derive them. Once proved, the sum, product and quotient rules let you compute lim⁡x→a(any rational function)\lim_{x\to a}(\text{any rational function}) by direct substitution, provided the denominator does not vanish at aa — that proviso is exactly where the quotient rule's hypothesis L2≠0L_2\ne0 bites.

2. The Squeeze Theorem

Theorem (Squeeze/Sandwich Theorem). Suppose g(x)≤f(x)≤h(x)g(x) \le f(x) \le h(x) for all xx in some punctured neighbourhood of aa, and lim⁡x→ag(x)=lim⁡x→ah(x)=L\lim_{x\to a}g(x) = \lim_{x\to a}h(x) = L. Then lim⁡x→af(x)=L\lim_{x\to a}f(x) = L.

Proof. Let ε>0\varepsilon>0. Choose δ1,δ2>0\delta_1,\delta_2>0 from the hypotheses on g,hg,h so that 0<∣x−a∣<δ1  ⟹  L−ε<g(x)<L+ε0<|x-a|<\delta_1 \implies L-\varepsilon<g(x)<L+\varepsilon and 0<∣x−a∣<δ2  ⟹  L−ε<h(x)<L+ε0<|x-a|<\delta_2 \implies L-\varepsilon<h(x)<L+\varepsilon. Let δ=min⁡{δ1,δ2,δ3}\delta=\min\{\delta_1,\delta_2,\delta_3\} where δ3\delta_3 is the radius of the neighbourhood on which g≤f≤hg\le f\le h holds. For 0<∣x−a∣<δ0<|x-a|<\delta,

L−ε<g(x)≤f(x)≤h(x)<L+ε,L-\varepsilon < g(x) \le f(x) \le h(x) < L+\varepsilon,

so ∣f(x)−L∣<ε|f(x)-L|<\varepsilon. ■\blacksquare

Worked example. Prove lim⁡x→0x2sin⁡(1/x)=0\lim_{x\to0}x^2\sin(1/x) = 0. Since −1≤sin⁡(1/x)≤1-1\le\sin(1/x)\le1 for x≠0x\ne0, multiplying by x2≥0x^2\ge0 gives −x2≤x2sin⁡(1/x)≤x2-x^2 \le x^2\sin(1/x) \le x^2. Both bounding functions tend to 00 as x→0x\to0 (direct from the product rule), so the Squeeze Theorem gives lim⁡x→0x2sin⁡(1/x)=0\lim_{x\to0}x^2\sin(1/x)=0 — even though sin⁡(1/x)\sin(1/x) itself has no limit at 00 (Chapter 1, Section 7), the shrinking factor x2x^2 forces the product to converge anyway.

3. Basic Limits by Direct Substitution

Combining the limit laws with the trivial limits lim⁡x→ac=c\lim_{x\to a}c = c and lim⁡x→ax=a\lim_{x\to a}x = a (both immediate from the ε\varepsilon-δ\delta definition) gives, by induction on the number of operations:

Corollary. If p(x)p(x) is a polynomial, lim⁡x→ap(x)=p(a)\lim_{x\to a}p(x) = p(a) for every aa. If r(x)=p(x)/q(x)r(x)=p(x)/q(x) is a rational function and q(a)≠0q(a)\ne0, lim⁡x→ar(x)=r(a)\lim_{x\to a}r(x) = r(a).

This single corollary is why direct substitution works for "nice" functions — it is not a separate axiom, it is a consequence of the sum, product and quotient rules applied repeatedly.

4. The Definition of Continuity

Definition. ff is continuous at aa if (i) f(a)f(a) is defined, (ii) lim⁡x→af(x)\lim_{x\to a}f(x) exists, and (iii) lim⁡x→af(x)=f(a)\lim_{x\to a}f(x) = f(a). Equivalently, in a single quantified statement:

∀ε>0 ∃δ>0:∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε.\forall\varepsilon>0\,\exists\delta>0: |x-a|<\delta \implies |f(x)-f(a)|<\varepsilon.

Notice the condition is now ∣x−a∣<δ|x-a|<\delta, not punctured — x=ax=a is allowed and trivially satisfies the conclusion since ∣f(a)−f(a)∣=0|f(a)-f(a)|=0. ff is continuous on a set SS if it is continuous at every point of SS; continuous (unqualified) usually means continuous at every point of its domain.

The three conditions, and where each is used to rule out a discontinuity. A removable discontinuity fails exactly condition (i) or has (ii) true but (iii) false (limit exists, but f(a)f(a) is undefined or wrong). A jump discontinuity fails (ii): the one-sided limits exist but disagree. An infinite/essential discontinuity fails (ii) in a stronger way: no finite limit exists at all.

Theorem (continuity and the limit laws). If f,gf,g are continuous at aa, so are f+gf+g, fgfg, and (if g(a)≠0g(a)\ne0) f/gf/g. If gg is continuous at aa and ff is continuous at g(a)g(a), then f∘gf\circ g is continuous at aa.

Proof (composition case). Let ε>0\varepsilon>0. Since ff is continuous at g(a)g(a), there is η>0\eta>0 such that ∣y−g(a)∣<η  ⟹  ∣f(y)−f(g(a))∣<ε|y-g(a)|<\eta \implies |f(y)-f(g(a))|<\varepsilon. Since gg is continuous at aa, applying this η\eta as the tolerance gives δ>0\delta>0 such that ∣x−a∣<δ  ⟹  ∣g(x)−g(a)∣<η|x-a|<\delta \implies |g(x)-g(a)|<\eta. Chaining the two implications: ∣x−a∣<δ  ⟹  ∣g(x)−g(a)∣<η  ⟹  ∣f(g(x))−f(g(a))∣<ε|x-a|<\delta \implies |g(x)-g(a)|<\eta \implies |f(g(x))-f(g(a))|<\varepsilon, which is exactly continuity of f∘gf\circ g at aa. ■\blacksquare

The other three parts follow immediately from the corresponding limit laws of Section 1, using lim⁡x→af(x)=f(a)\lim_{x\to a}f(x)=f(a) and lim⁡x→ag(x)=g(a)\lim_{x\to a}g(x)=g(a) in place of general limit values L1,L2L_1,L_2.

Corollary. Polynomials are continuous everywhere; rational functions are continuous on their domain (wherever the denominator is nonzero); compositions of continuous functions are continuous.

5. One-Sided Continuity and Classifying Discontinuities

Definition. ff is right-continuous at aa if lim⁡x→a+f(x)=f(a)\lim_{x\to a^+}f(x)=f(a), and left-continuous if lim⁡x→a−f(x)=f(a)\lim_{x\to a^-}f(x)=f(a). By Chapter 1, Section 5, ff is continuous at aa iff it is both left- and right-continuous there.

Worked example. Classify the discontinuity of f(x)=x2−1x−1f(x) = \dfrac{x^2-1}{x-1} at x=1x=1 (with f(1)f(1) left undefined), versus g(x)=⌊x⌋g(x)=\lfloor x\rfloor at x=1x=1. For ff: lim⁡x→1f(x)=lim⁡x→1(x+1)=2\lim_{x\to1}f(x)=\lim_{x\to1}(x+1)=2 exists, but f(1)f(1) is undefined — a removable discontinuity (define f(1)=2f(1)=2 and ff becomes continuous there). For gg: lim⁡x→1−g(x)=0\lim_{x\to1^-}g(x)=0 and lim⁡x→1+g(x)=1\lim_{x\to1^+}g(x)=1 disagree — a jump discontinuity, which no redefinition of g(1)g(1) can repair, since the two one-sided limits themselves conflict.

6. The Intermediate Value Theorem

Theorem (IVT). Let ff be continuous on the closed interval [a,b][a,b], and let kk be any number strictly between f(a)f(a) and f(b)f(b). Then there exists c∈(a,b)c\in(a,b) with f(c)=kf(c)=k.

Proof idea (via the supremum). Assume f(a)<k<f(b)f(a)<k<f(b) (the other case is symmetric). Let S={x∈[a,b]:f(x)<k}S=\{x\in[a,b]: f(x)<k\}. SS is nonempty (a∈Sa\in S) and bounded above by bb, so by the completeness of R\mathbb{R}, c=sup⁡Sc=\sup S exists. Continuity of ff at cc, together with the definition of supremum, rules out both f(c)<kf(c)<k (which would put points slightly to the right of cc still in SS, contradicting c=sup⁡Sc=\sup S) and f(c)>kf(c)>k (which would exclude points slightly to the left of cc from being a supremum of SS), leaving f(c)=kf(c)=k as the only possibility. The full epsilon-delta details of this argument belong to a course in real analysis; what matters here is which hypotheses are load-bearing.

Every hypothesis of IVT is necessary. Continuity cannot be dropped: let f(x)=−1f(x)=-1 for x∈[−1,0)x\in[-1,0) and f(x)=1f(x)=1 for x∈[0,1]x\in[0,1]. This ff is discontinuous at x=0x=0 (jumping from −1-1 to 11), and indeed 00 lies strictly between f(−1)=−1f(-1)=-1 and f(1)=1f(1)=1 yet ff never equals 00 anywhere on [−1,1][-1,1] — IVT's conclusion genuinely fails without continuity. (Note sign(x)\text{sign}(x) itself is not a valid counterexample here, since sign(0)=0\text{sign}(0)=0 and the conclusion f(c)=0f(c)=0 does hold, at c=0c=0.) The interval must be an interval (connected): continuity on a union of two disjoint intervals can skip values between them. And [a,b][a,b] cannot be replaced by an open interval without additional care about endpoint behaviour, since kk is pinned between the endpoint values f(a),f(b)f(a),f(b).

Worked example. Show x3−3x+1=0x^3 - 3x + 1 = 0 has a root in (1,2)(1,2). Let f(x)=x3−3x+1f(x)=x^3-3x+1, continuous everywhere (a polynomial). f(1)=1−3+1=−1<0f(1) = 1-3+1=-1<0 and f(2)=8−6+1=3>0f(2)=8-6+1=3>0. Since ff is continuous on [1,2][1,2] and 00 lies strictly between f(1)=−1f(1)=-1 and f(2)=3f(2)=3, IVT guarantees some c∈(1,2)c\in(1,2) with f(c)=0f(c)=0.

7. The Extreme Value Theorem and Boundedness

Theorem (Boundedness Theorem). If ff is continuous on the closed, bounded interval [a,b][a,b], then ff is bounded on [a,b][a,b].

Theorem (Extreme Value Theorem, EVT). If ff is continuous on [a,b][a,b], then ff attains both a maximum and a minimum value on [a,b][a,b]: there exist c,d∈[a,b]c,d\in[a,b] with f(c)≥f(x)≥f(d)f(c)\ge f(x)\ge f(d) for all x∈[a,b]x\in[a,b].

Both theorems rest crucially on [a,b][a,b] being closed and bounded (compact). Each hypothesis is necessary: f(x)=1/xf(x)=1/x is continuous but unbounded on the bounded-but-not-closed interval (0,1](0,1]; f(x)=xf(x)=x is continuous but unbounded on the closed-but-not-bounded interval [0,∞)[0,\infty); and f(x)=xf(x)=x on the open interval (0,1)(0,1) never attains a maximum, approaching but never reaching 11.

IVT, EVT and boundedness are existence theorems, not construction recipes. They guarantee a root, or a maximum, exists; they do not tell you where. Finding the actual location is the job of the derivative tools in the chapters that follow.

Common Exam Pitfalls

  • Using the quotient rule without checking L2≠0L_2\ne0. If the denominator's limit is 00, the quotient rule simply does not apply; the limit may still exist (via cancellation) or be infinite — it must be investigated separately.
  • Treating "the graph has no gaps" as the definition. It is an intuition for continuity, not the testable condition; always check the three numbered conditions explicitly when asked to justify continuity.
  • Forgetting that continuity is a two-sided, non-punctured condition. Unlike the limit, f(a)f(a) is squarely part of the continuity requirement — a removable discontinuity is a discontinuity precisely because the (existing) limit and the (defined or not) value disagree.
  • Misapplying IVT when ff is not continuous on the whole interval. A single internal discontinuity, even "invisible" in a rough sketch, can break the guarantee entirely.
  • Assuming EVT or the Boundedness Theorem applies on an open or unbounded interval. Compactness ([a,b][a,b] closed and bounded) is not a technicality; EVT provably fails without it, as the counterexamples in Section 7 show. (IVT only needs continuity on the whole interval between the two points used.)
  • Confusing a root guaranteed by IVT with a unique root. IVT guarantees existence of at least one cc with f(c)=kf(c)=k; it says nothing about uniqueness, which requires additional monotonicity information.

Summary

  • Limit laws: sum, product and quotient rules reduce limits of combined functions to limits of the pieces, each proved once from the ε\varepsilon-δ\delta definition via ε/2\varepsilon/2-splitting and the triangle inequality; the quotient rule requires the denominator's limit to be nonzero.
  • Squeeze theorem: if g≤f≤hg\le f\le h near aa and g,h→Lg,h\to L, then f→Lf\to L — useful exactly when ff itself resists direct estimation.
  • Direct substitution for polynomials and (where the denominator is nonzero) rational functions is a consequence of the limit laws, not a separate rule.
  • Continuity at aa: f(a)f(a) defined, lim⁡x→af(x)\lim_{x\to a}f(x) exists, and the two are equal — equivalently ∀ε∃δ:∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣<ε\forall\varepsilon\exists\delta: |x-a|<\delta\implies|f(x)-f(a)|<\varepsilon, with no puncture.
  • Discontinuity types: removable (limit exists, value missing or wrong), jump (one-sided limits disagree), infinite/essential (no finite limit).
  • Sums, products, quotients and compositions of continuous functions are continuous, hence polynomials, rational functions (off their poles) and compositions thereof are continuous.
  • IVT: continuity on [a,b][a,b] guarantees every value between f(a)f(a) and f(b)f(b) is attained somewhere in (a,b)(a,b) — an existence, not a location, result.
  • EVT/Boundedness: continuity on a closed, bounded interval guarantees ff is bounded and attains both a maximum and a minimum; compactness of the interval is essential to both.