The Definition of Continuity

This scene shows what continuity means at a point. Move the point a, then lift one value and watch continuity break.

There is one condition. The height you approach must equal the height at the point. Changing a single value breaks that agreement. The graph then tears at that point.

For example, draw the graph with a ✏️ pencil without lifting it. If one stroke suffices, the function is continuous. If one point floats above the rest, you must lift the pencil there.

f continuous at a  ⟺  lim⁡x→af(x)=f(a)f \text{ continuous at } a \iff \lim_{x \to a} f(x) = f(a)
g(a)=a2+1≠a2=lim⁡x→ag(x)g(a) = a^2 + 1 \neq a^2 = \lim_{x \to a} g(x)

Part of these learning paths

Examples & Exercises

Prove that sums and products of continuous functions are continuous, and deduce that every polynomial is continuous.

∣f(x)g(x)−f(a)g(a)∣≤∣f(x)∣⋅∣g(x)−g(a)∣+∣g(a)∣⋅∣f(x)−f(a)∣\lvert f(x)g(x) - f(a)g(a)\rvert \leq \lvert f(x)\rvert\cdot\lvert g(x) - g(a)\rvert + \lvert g(a)\rvert\cdot\lvert f(x) - f(a)\rvert
a=1a = 1, the intact parabola — polynomials are continuous everywhere.
Show proof
  1. Constants cc: ∣c−c∣=0<ε\lvert c - c\rvert = 0 < \varepsilon, so continuous. The identity x↦xx \mapsto x: δ=ε\delta = \varepsilon works, since ∣x−a∣<δ\lvert x - a\rvert < \delta gives ∣x−a∣<ε\lvert x - a\rvert < \varepsilon.

  2. (Sum) Let f,gf, g be continuous at aa. Given ε>0\varepsilon > 0, take δ1\delta_1 with ∣f(x)−f(a)∣<ε2\lvert f(x) - f(a)\rvert < \frac{\varepsilon}{2} and δ2\delta_2 with ∣g(x)−g(a)∣<ε2\lvert g(x) - g(a)\rvert < \frac{\varepsilon}{2}; with δ=min⁡(δ1,δ2)\delta = \min(\delta_1, \delta_2), ∣(f+g)(x)−(f+g)(a)∣≤∣f(x)−f(a)∣+∣g(x)−g(a)∣<ε\lvert (f+g)(x) - (f+g)(a)\rvert \leq \lvert f(x) - f(a)\rvert + \lvert g(x) - g(a)\rvert < \varepsilon.

  3. (Product) Use the identity ∣f(x)g(x)−f(a)g(a)∣≤∣f(x)∣⋅∣g(x)−g(a)∣+∣g(a)∣⋅∣f(x)−f(a)∣\lvert f(x)g(x) - f(a)g(a)\rvert \leq \lvert f(x)\rvert\cdot\lvert g(x) - g(a)\rvert + \lvert g(a)\rvert\cdot\lvert f(x) - f(a)\rvert.

    First bound ff near aa: by continuity of ff there is δ0\delta_0 with ∣f(x)−f(a)∣<1\lvert f(x) - f(a)\rvert < 1 for ∣x−a∣<δ0\lvert x - a\rvert < \delta_0, hence ∣f(x)∣≤∣f(a)∣+1=:M\lvert f(x)\rvert \leq \lvert f(a)\rvert + 1 =: M there (local boundedness).

    Now take δ1\delta_1 with ∣g(x)−g(a)∣<ε2M\lvert g(x) - g(a)\rvert < \frac{\varepsilon}{2M} and δ2\delta_2 with ∣f(x)−f(a)∣<ε2(∣g(a)∣+1)\lvert f(x) - f(a)\rvert < \frac{\varepsilon}{2(\lvert g(a)\rvert + 1)}; with δ=min⁡(δ0,δ1,δ2)\delta = \min(\delta_0, \delta_1, \delta_2) we get ∣f(x)g(x)−f(a)g(a)∣<M⋅ε2M+∣g(a)∣⋅ε2(∣g(a)∣+1)<ε2+ε2=ε\lvert f(x)g(x) - f(a)g(a)\rvert < M \cdot \frac{\varepsilon}{2M} + \lvert g(a)\rvert \cdot \frac{\varepsilon}{2(\lvert g(a)\rvert+1)} < \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon.

  4. We show xnx^n is continuous by induction.

    Base cases: for n=0n = 0, x0=1x^0 = 1 is the constant function proved continuous above; for n=1n = 1, x1=xx^1 = x is the identity proved continuous above.

    Inductive step: if xnx^n is continuous, then xn+1=xn⋅xx^{n+1} = x^n \cdot x is a product of continuous functions, hence continuous by the product rule.

    So xnx^n is continuous for every n≥0n \ge 0.

    Then cxnc x^n is continuous (constant times continuous, by the product rule), and any polynomial — a finite sum of such terms ckxkc_k x^k — is continuous (the sum rule, applied finitely many times).

Prove ∣x∣\lvert x\rvert is continuous at 00 with δ=ε\delta = \varepsilon.

∣∣x∣−0∣=∣x∣<ε\left\lvert \lvert x\rvert - 0 \right\rvert = \lvert x\rvert < \varepsilon
a=0a = 0 — continuity survives the cusp (differentiability is another story).
Show proof
  1. We need ∣x−0∣<δ⇒∣∣x∣−∣0∣∣<ε\lvert x - 0\rvert < \delta \Rightarrow \lvert \lvert x\rvert - \lvert 0\rvert \rvert < \varepsilon. But ∣∣x∣−0∣=∣x∣\lvert \lvert x\rvert - 0\rvert = \lvert x\rvert, so it suffices to get ∣x∣<ε\lvert x\rvert < \varepsilon.

  2. Put δ=ε\delta = \varepsilon: then ∣x−0∣=∣x∣<δ=ε\lvert x - 0\rvert = \lvert x\rvert < \delta = \varepsilon is exactly the desired inequality. Hence ∣x∣\lvert x\rvert is continuous at 00.

  3. [framing] Continuity does not imply differentiability: ∣x∣\lvert x\rvert is not differentiable at 00. Continuity is "no breaks", not "smoothness".

If ff is continuous at aa and gg is continuous at f(a)f(a), prove h=g∘fh = g \circ f is continuous at aa.

∣x−a∣<δ⇒∣f(x)−f(a)∣<η⇒∣g(f(x))−g(f(a))∣<ε\lvert x - a\rvert < \delta \Rightarrow \lvert f(x) - f(a)\rvert < \eta \Rightarrow \lvert g(f(x)) - g(f(a))\rvert < \varepsilon
a=−1a = -1 — continuity travels through composition: the chain ε←η←δ\varepsilon \leftarrow \eta \leftarrow \delta.
Show proof
  1. Let ε>0\varepsilon > 0. Since gg is continuous at b=f(a)b = f(a), there is η>0\eta > 0 with ∣g(y)−g(b)∣<ε\lvert g(y) - g(b)\rvert < \varepsilon whenever ∣y−b∣<η\lvert y - b\rvert < \eta.

  2. Now apply the continuity of ff to η\eta: there is δ>0\delta > 0 with ∣f(x)−f(a)∣<η\lvert f(x) - f(a)\rvert < \eta whenever ∣x−a∣<δ\lvert x - a\rvert < \delta.

  3. If ∣x−a∣<δ\lvert x - a\rvert < \delta then ∣f(x)−b∣<η\lvert f(x) - b\rvert < \eta, so ∣g(f(x))−g(b)∣<ε\lvert g(f(x)) - g(b)\rvert < \varepsilon, i.e. ∣h(x)−h(a)∣<ε\lvert h(x) - h(a)\rvert < \varepsilon. Hence hh is continuous at aa.

  4. Numerically: if gg demands η=ε2\eta = \frac{\varepsilon}{2} and ff answers that η\eta with δ=η2\delta = \frac{\eta}{2}, the composition runs on δ=ε4\delta = \frac{\varepsilon}{4} — the allowances compose along the chain.

4. Continuity