Skip to content
The site is in test mode. All features are free for now.
MathAgora

University Mathematics · Real analysis

Functional limits and continuity

The Dirichlet and Thomae functions, the ε–δ definition of a functional limit, continuity, continuous functions on compact sets, uniform continuity, the Intermediate Value Theorem, sets of discontinuity.

95 min 8 questions

01The examples of Dirichlet and Thomae

The intuition "a continuous graph can be drawn without lifting the pencil" breaks down for strange functions.

Dirichlet's function: g(x)=1g(x) = 1 if x∈Qx \in \mathbb Q and g(x)=0g(x) = 0 if x∉Qx \notin \mathbb Q. Near every point there are both rationals and irrationals, so gg is continuous nowhere.

Thomae's function: t(x)=1nt(x) = \frac1n if x=mnx = \frac mn in lowest terms (n>0n > 0), t(0)=1t(0) = 1, and t(x)=0t(x) = 0 for irrational xx. It is continuous at every irrational and discontinuous at every rational. The reason: for any ε>0\varepsilon > 0 only finitely many rationals (in a bounded interval) have denominator n≤1εn \le \frac1\varepsilon.

02Functional limits

Let cc be a limit point of AA and f:A→Rf : A \to \mathbb R. lim⁡x→cf(x)=L\lim_{x\to c}f(x) = L if for every ε>0\varepsilon > 0 there is δ>0\delta > 0 such that 0<∣x−c∣<δ0 < |x - c| < \delta (x∈Ax \in A) implies ∣f(x)−L∣<ε|f(x) - L| < \varepsilon. The condition 0<∣x−c∣0 < |x - c| means the value f(c)f(c) (if it exists at all) does not affect the limit.

Sequential criterion: lim⁡x→cf(x)=L\lim_{x\to c}f(x) = L   ⟺  \iff f(xn)→Lf(x_n) \to L for every sequence xn→cx_n \to c with xn≠cx_n \ne c.

This criterion is the main tool for proving that a limit does not exist: find two sequences xn,yn→cx_n, y_n \to c with lim⁡f(xn)≠lim⁡f(yn)\lim f(x_n) \ne \lim f(y_n). E.g. for sin⁡1x\sin\frac1x, xn=12πnx_n = \frac{1}{2\pi n} gives 0 while yn=12πn+π/2y_n = \frac{1}{2\pi n + \pi/2} gives 1.

03Continuous functions

ff is continuous at c∈Ac \in A if for every ε>0\varepsilon > 0 there is δ>0\delta > 0 such that ∣x−c∣<δ|x - c| < \delta (x∈Ax \in A) implies ∣f(x)−f(c)∣<ε|f(x) - f(c)| < \varepsilon. Equivalently: xn→c⇒f(xn)→f(c)x_n \to c \Rightarrow f(x_n) \to f(c). (Every function is continuous at an isolated point.)

Sums, products, quotients (where the denominator ≠0\ne 0) and compositions of continuous functions are continuous. Polynomials, sin⁡\sin, cos⁡\cos, exe^x, ∣x∣|x| and x\sqrt x are continuous on their domains.

Topological characterization: f:R→Rf : \mathbb R \to \mathbb R is continuous   ⟺  \iff f−1(O)f^{-1}(O) is open for every open OO.

04Continuous functions on compact sets

Theorem: if ff is continuous and KK is compact, then f(K)f(K) is compact.

Extreme Value Theorem: a continuous ff on a compact KK (e.g. [a,b][a,b]) is bounded and attains its maximum and minimum. Compactness is essential: 1x\frac1x is unbounded on (0,1](0,1], and xx has no maximum on (0,1)(0,1).

ff is uniformly continuous on AA if for every ε>0\varepsilon > 0 there is one δ>0\delta > 0 that works at every point: ∣x−y∣<δ⇒∣f(x)−f(y)∣<ε|x - y| < \delta \Rightarrow |f(x) - f(y)| < \varepsilon. E.g. x2x^2 is not uniformly continuous on R\mathbb R (the graph gets too steep for large xx), nor is sin⁡1x\sin\frac1x on (0,1)(0,1).

Theorem: a function continuous on a compact set is uniformly continuous there.

05The Intermediate Value Theorem

Theorem: if ff is continuous on [a,b][a,b] and LL lies between f(a)f(a) and f(b)f(b), then there is c∈(a,b)c \in (a,b) with f(c)=Lf(c) = L.

Two proofs: 1) by connectedness: a continuous function maps connected sets to connected sets, and in R\mathbb R connected means interval; 2) by nested intervals (bisection): at each step keep the half on whose endpoints f−Lf - L has opposite signs.

Bisection is also a practical algorithm: after nn steps the root is known to within b−a2n\frac{b - a}{2^n}. The theorem fails over Q\mathbb Q: x2−2x^2 - 2 changes sign on [1,2][1,2] but has no rational root.

06Sets of discontinuity

A monotone function can only have jump discontinuities, and only countably many: each jump can be assigned a different rational number inside its gap.

In general, the set of discontinuities of any f:R→Rf : \mathbb R \to \mathbb R is an FσF_\sigma set, a countable union of closed sets. By Baire's theorem R∖Q\mathbb R \setminus \mathbb Q is not FσF_\sigma, so there is no function continuous exactly at the rationals: the "reverse" of Thomae's function is impossible.

Key formulas

  • lim⁡x→cf(x)=L\lim_{x\to c}f(x)=L

    ∀ε>0 ∃δ>0: 0<∣x−c∣<δ⇒∣f(x)−L∣<ε\forall\varepsilon>0\ \exists\delta>0:\ 0<|x-c|<\delta\Rightarrow|f(x)-L|<\varepsilon
  • Sequential criterion for continuity

    xn→c ⇒ f(xn)→f(c)x_n\to c\ \Rightarrow\ f(x_n)\to f(c)
  • Uniform continuity

    ∀ε ∃δ ∀x,y: ∣x−y∣<δ⇒∣f(x)−f(y)∣<ε\forall\varepsilon\ \exists\delta\ \forall x,y:\ |x-y|<\delta\Rightarrow|f(x)-f(y)|<\varepsilon
  • Intermediate Value Theorem

    f∈C[a,b], f(a)<L<f(b) ⇒ ∃c: f(c)=Lf\in C[a,b],\ f(a)<L<f(b)\ \Rightarrow\ \exists c:\ f(c)=L
  • Bisection accuracy after nn steps

    ∣c−mn∣≤b−a2n|c-m_n|\le\frac{b-a}{2^{n}}

Worked examples

Example 1

Prove from the definition that lim⁡x→2x2=4\lim\limits_{x\to2}x^2 = 4.

Example 2

Show that f(x)=1xf(x) = \frac1x is not uniformly continuous on (0,1)(0,1).