Skip to content

Limits and Continuity: Reading ε-δ as a Contract on Error

Prerequisite:The Grammar of Mathematics: Reading and Writing Sets and Logic

Raw
  • “As xx approaches aa indefinitely, f(x)f(x) approaches LL indefinitely” is a metaphor that contains motion. As it stands, its truth cannot be decided. The ε-δ formulation rewrites it as a static condition: whatever accuracy is demanded of us, we can return a range that guarantees it.
  • The skeleton of the definition is the order of the quantifiers ∀ε ∃δ ∀x\forall \varepsilon\ \exists \delta\ \forall x. Here δ\delta may depend on ε\varepsilon, never the other way round. This one-way street settles every feature of the definition.
  • Uniqueness of limits, the algebra of limits and the squeeze theorem can all be proved from this definition alone. The proofs follow a single pattern: split the demanded ε\varepsilon and hand out the pieces.
  • Continuity means that the limit as x→ax \to a exists and, in addition, that its value equals f(a)f(a). Dirichlet’s function is discontinuous at every point, Thomae’s function is continuous exactly at the irrationals — examples beyond the reach of intuition, yet decided mechanically once we follow the definition.
  • Moving one quantifier produces a different notion, uniform continuity. The function f(x)=1/xf(x) = 1/x is continuous on (0,1](0,1] but not uniformly continuous there.

1. Motivation: where “approaches indefinitely” is vague

Section titled “1. Motivation: where “approaches indefinitely” is vague”

“As xx approaches aa indefinitely, f(x)f(x) approaches LL indefinitely.” This explanation, the one found in high-school textbooks, works well in many situations. Nobody doubts that bringing xx close to 11 in f(x)=2x+1f(x) = 2x+1 brings f(x)f(x) close to 33. Even so, we cannot adopt the sentence as it stands as a mathematical definition. There are three reasons.

First, “approaches” is a word about motion. The xx that appears in mathematics does not change. It is a single point on the real line, not a particle moving with time. Reading “approaches” literally would drag in the extra notion of time.

Second, the degree of “indefinitely” cannot be measured. When we say that f(x)f(x) is close to LL, how close must it be? Within 0.10.1? Within 10−10010^{-100}? Calling something close without fixing a standard does not let us decide whether a given assertion is true or false, and a sentence whose truth cannot be decided is not a definition.

Third, functions on which intuition fails really do exist. Consider the following function, Dirichlet’s function.

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

Let us bring xx “indefinitely close” to 00. Approaching along x=1/nx = 1/n, the value D(x)D(x) is 11 the whole way; approaching along x=2/nx = \sqrt{2}/n, it is 00 the whole way. The answer changes with the manner of approach, and the naive phrasing falls silent. Moreover the values of DD do not “jump” between 11 and 00: inside every interval, however narrow, both values keep occurring. Drawing the graph and looking at it is not an option either.

Historically, too, this vagueness did real damage. Analysis in the eighteenth century used “infinitesimals” freely — quantities that are not 00 yet smaller than every positive number — and thereby obtained a great many formulas, but it also put false claims into circulation, such as the assertion that the sum of a series of continuous functions is continuous. The confusion was settled when Cauchy placed limits at the foundation of analysis in his Cours d’analyse (1821), and Weierstrass and his school completed the formulation in terms of ε\varepsilon and δ\delta in the second half of the nineteenth century. The question of why 0.999⋯=10.999\cdots = 1 is correct as an equality has the same root (What is a number?).

The practical gain from making limits rigorous is plain. The derivative is itself the limit lim⁡h→0f(a+h)−f(a)h\lim_{h \to 0} \dfrac{f(a+h)-f(a)}{h} (The definition of the derivative and basic differentiation), and the sum of an infinite series is defined as the limit of the sequence of partial sums (Series and convergence tests). If the foundation is vague, every theorem built on it is vague as well.

The change of viewpoint is this. We stop speaking of the process of approaching and speak only of accuracy achieved. ”f(x)f(x) is close to LL” is reread as “the error is less than ε\varepsilon”, and the range of xx permitted in order to guarantee that is reread as “the distance from aa is less than δ\delta”. Everything then reduces to a single question: can we fill every order for accuracy?

2. Preliminaries: neighborhoods, accumulation points, notation

Section titled “2. Preliminaries: neighborhoods, accumulation points, notation”

Throughout, N={1,2,3,…}\mathbb{N} = \{1, 2, 3, \ldots\} (we do not include 00), Q\mathbb{Q} is the set of rational numbers and R\mathbb{R} the set of real numbers. The symbol ∣x∣|x| denotes the absolute value, and ∣x−y∣|x - y| the distance between xx and yy on the number line. The two inequalities we shall use again and again are these.

∣x+y∣≤∣x∣+∣y∣,∣∣x∣−∣y∣∣≤∣x−y∣|x + y| \le |x| + |y|, \qquad \bigl| |x| - |y| \bigr| \le |x - y|

The first (the triangle inequality) follows once we add ±x≤∣x∣\pm x \le |x| and ±y≤∣y∣\pm y \le |y| to obtain ±(x+y)≤∣x∣+∣y∣\pm(x+y) \le |x|+|y|. For the second, ∣x∣=∣(x−y)+y∣≤∣x−y∣+∣y∣|x| = |(x-y)+y| \le |x-y| + |y| gives ∣x∣−∣y∣≤∣x−y∣|x|-|y| \le |x-y|, and interchanging xx and yy gives ∣y∣−∣x∣≤∣x−y∣|y|-|x| \le |x-y|; combining the two yields the claim.

We take as given the handling of the quantifiers ∀\forall (for all) and ∃\exists (there exists), together with their negations, as treated in The grammar of mathematics: sets and logic.

Definition 2.1(Neighborhoods, punctured neighborhoods, accumulation points)

For a∈Ra \in \mathbb{R} and δ>0\delta > 0, the sets

Uδ(a)={ x∈R:∣x−a∣<δ },Uδ∗(a)={ x∈R:0<∣x−a∣<δ }U_\delta(a) = \{\, x \in \mathbb{R} : |x - a| < \delta \,\}, \qquad U_\delta^{*}(a) = \{\, x \in \mathbb{R} : 0 < |x - a| < \delta \,\}

are called the δ\delta-neighborhood and the punctured δ\delta-neighborhood of aa, respectively. Thus Uδ(a)U_\delta(a) equals the open interval (a−δ, a+δ)(a-\delta,\ a+\delta), and Uδ∗(a)U^{*}_\delta(a) is that set with the single point aa removed.

Further, for A⊆RA \subseteq \mathbb{R} and a∈Ra \in \mathbb{R}, if

∀δ>0,Uδ∗(a)∩A≠∅\forall \delta > 0,\quad U^{*}_\delta(a) \cap A \ne \emptyset

holds, then aa is called an accumulation point of AA.

Being an accumulation point means that arbitrarily close to aa there are points of AA different from aa itself. For instance, the set of accumulation points of A=(0,1)A = (0,1) is [0,1][0,1] (the endpoints 00 and 11 do not belong to AA, yet they are accumulation points). By contrast, 00 is not an accumulation point of A={0}∪(1,2)A = \{0\} \cup (1,2), since taking δ=1\delta = 1 gives U1∗(0)∩A=∅U^{*}_1(0) \cap A = \emptyset. Such a point is called an isolated point.

The accumulation-point condition is the minimal hypothesis under which limits can be discussed at all. If there are no points of AA near aa, there is no material with which to speak of “the value f(x)f(x) as xx is brought close to aa”. In Theorem 3.5 we shall see what breaks if this hypothesis is dropped.

Definition 3.1(Limit of a function)

Let A⊆RA \subseteq \mathbb{R}, let f:A→Rf : A \to \mathbb{R}, and let aa be an accumulation point of AA (Definition 2.1). If a real number LL satisfies

∀ε>0, ∃δ>0, ∀x∈A,0<∣x−a∣<δ  ⟹  ∣f(x)−L∣<ε\forall \varepsilon > 0,\ \exists \delta > 0,\ \forall x \in A, \quad 0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon

then ff is said to converge to LL as x→ax \to a, and we write

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

The notation f(x)→L (x→a)f(x) \to L\ (x \to a) carries the same meaning.

Read this formula as an exchange between two players. The opponent places the order for accuracy; we are the ones who must fill it.

Reading ε-δ as a contract on error. What is essential is the order: ε is given first, and δ is chosen afterwards

We have lim⁡x→af(x)=L\lim_{x\to a} f(x) = L exactly when we can win, that is, when we can respond to every ε\varepsilon. What is decisive here is the order of play. The value ε\varepsilon is given first and δ\delta is chosen afterwards; hence δ\delta may depend on ε\varepsilon, and in practice one usually has to take δ\delta smaller as ε\varepsilon gets smaller. Conversely xx is chosen after δ\delta, so δ\delta is not permitted to depend on xx.

In a picture, ε\varepsilon determines a horizontal band (the permitted spread of values) and δ\delta a vertical band (the permitted spread of xx).

L + εLL − εa − δaa + δxε bandδ bandy = f(x)
The horizontal band (the tolerance ε on values) is given first, and the vertical band (the width δ around a, with a itself excluded) is chosen to match. Every x in the vertical band must be carried into the horizontal band

Remark 3.2(Negating the definition)

The negation of Definition 3.1, that is, the statement that LL is not the limit of ff as x→ax \to a, is obtained by reversing the quantifiers in turn and using the negation of an implication, ¬(P  ⟹  Q)≡P∧¬Q\lnot(P \implies Q) \equiv P \wedge \lnot Q:

∃ε0>0, ∀δ>0, ∃x∈A,0<∣x−a∣<δ ∧ ∣f(x)−L∣≥ε0\exists \varepsilon_0 > 0,\ \forall \delta > 0,\ \exists x \in A, \quad 0 < |x - a| < \delta \ \wedge\ |f(x) - L| \ge \varepsilon_0

In words: there is an accuracy ε0\varepsilon_0 such that, however small δ\delta is taken, a point with error at least ε0\varepsilon_0 remains inside the punctured δ\delta-neighborhood of aa. Saying that ff has no limit as x→ax \to a then means that this holds for every L∈RL \in \mathbb{R}. When showing that a limit fails to exist, this is the form we aim at.

Example 3.3(Limit of a linear function)

Let us show that lim⁡x→1f(x)=3\lim_{x \to 1} f(x) = 3 for f(x)=2x+1f(x) = 2x + 1 (with A=RA = \mathbb{R}).

Scratch work (how to find δ\delta). The inequality we must guarantee is ∣f(x)−3∣<ε|f(x) - 3| < \varepsilon. Computing the left-hand side,

∣f(x)−3∣=∣(2x+1)−3∣=∣2x−2∣=2∣x−1∣|f(x) - 3| = |(2x+1) - 3| = |2x - 2| = 2|x - 1|

so it is enough to have 2∣x−1∣<ε2|x-1| < \varepsilon, that is, ∣x−1∣<ε/2|x - 1| < \varepsilon/2. This suggests taking δ=ε/2\delta = \varepsilon/2.

Proof. Let ε>0\varepsilon > 0 be arbitrary and put δ=ε/2>0\delta = \varepsilon/2 > 0. For every x∈Rx \in \mathbb{R} with 0<∣x−1∣<δ0 < |x - 1| < \delta, the computation above gives

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

Since ε\varepsilon was arbitrary, Definition 3.1 gives lim⁡x→1(2x+1)=3\lim_{x\to1}(2x+1) = 3.

The scratch work traces the inequalities backwards; it is not the proof itself. When writing the proof, keep to the order: receive ε\varepsilon, declare δ\delta, then chain the inequalities forwards.

Example 3.4(Limit of a quadratic function: choosing δ in two stages)

Let us show that lim⁡x→2g(x)=4\lim_{x \to 2} g(x) = 4 for g(x)=x2g(x) = x^2.

Scratch work. We have ∣x2−4∣=∣x−2∣ ∣x+2∣|x^2 - 4| = |x - 2|\,|x + 2|. The factor ∣x−2∣|x-2| can be made small by δ\delta, but ∣x+2∣|x+2| remains. So we decide in advance to work only in the range ∣x−2∣<1|x-2| < 1. There 1<x<31 < x < 3, hence

∣x+2∣=x+2<5|x + 2| = x + 2 < 5

and we may use ∣x2−4∣<5∣x−2∣|x^2 - 4| < 5|x-2|. It then suffices to impose 5∣x−2∣<ε5|x-2| < \varepsilon, that is, ∣x−2∣<ε/5|x-2| < \varepsilon/5. To meet both requirements at once we take the minimum, so we set δ=min⁡(1, ε/5)\delta = \min(1,\ \varepsilon/5).

Proof. Let ε>0\varepsilon > 0 be arbitrary and put δ=min⁡(1, ε5)>0\delta = \min\left(1,\ \dfrac{\varepsilon}{5}\right) > 0. Suppose 0<∣x−2∣<δ0 < |x - 2| < \delta. First, ∣x−2∣<1|x - 2| < 1 gives 1<x<31 < x < 3, hence ∣x+2∣=x+2<5|x+2| = x + 2 < 5. Second, we also have ∣x−2∣<ε/5|x-2| < \varepsilon/5, so

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

Therefore lim⁡x→2x2=4\lim_{x\to2} x^2 = 4.

Note that δ\delta may depend not only on ε\varepsilon but also on the point aa being approached. Carrying out the same computation for a general aa yields δ=min⁡(1, ε/(2∣a∣+1))\delta = \min(1,\ \varepsilon/(2|a|+1)), so the larger ∣a∣|a| is, the smaller δ\delta must be taken. This dependence becomes the theme of §6.

Theorem 3.5(Uniqueness of limits)

Let A⊆RA \subseteq \mathbb{R}, let f:A→Rf : A \to \mathbb{R}, and let aa be an accumulation point of AA. If lim⁡x→af(x)=L\lim_{x\to a} f(x) = L and lim⁡x→af(x)=M\lim_{x \to a} f(x) = M, then L=ML = M.

Proof(Theorem 3.5)

We assume L≠ML \ne M and derive a contradiction (a proof by contradiction; on the shapes of such arguments see Techniques of proof: induction and contradiction).

Put ε=∣L−M∣2\varepsilon = \dfrac{|L - M|}{2}. From L≠ML \ne M we get ∣L−M∣>0|L-M| > 0, hence ε>0\varepsilon > 0.

Applying Definition 3.1 to LL, there is δ1>0\delta_1 > 0 such that x∈Ax \in A and 0<∣x−a∣<δ10 < |x-a| < \delta_1 imply ∣f(x)−L∣<ε|f(x) - L| < \varepsilon. Applying it likewise to MM, there is δ2>0\delta_2 > 0 such that x∈Ax \in A and 0<∣x−a∣<δ20 < |x-a| < \delta_2 imply ∣f(x)−M∣<ε|f(x) - M| < \varepsilon.

Put δ=min⁡(δ1,δ2)>0\delta = \min(\delta_1, \delta_2) > 0. Since aa is an accumulation point of AA by hypothesis, Definition 2.1 gives Uδ∗(a)∩A≠∅U^{*}_{\delta}(a) \cap A \ne \emptyset, and we may pick a point x0x_0 from this set. This x0x_0 satisfies both 0<∣x0−a∣<δ≤δ10 < |x_0 - a| < \delta \le \delta_1 and 0<∣x0−a∣<δ≤δ20 < |x_0-a| < \delta \le \delta_2, so both conclusions above apply and

∣L−M∣=∣(L−f(x0))+(f(x0)−M)∣≤∣f(x0)−L∣+∣f(x0)−M∣<ε+ε=∣L−M∣|L - M| = |(L - f(x_0)) + (f(x_0) - M)| \le |f(x_0) - L| + |f(x_0) - M| < \varepsilon + \varepsilon = |L - M|

(the first inequality is the triangle inequality of §2). This says ∣L−M∣<∣L−M∣|L-M| < |L-M|, a contradiction. Hence L=ML = M.

In the proof, the hypothesis that aa is an accumulation point was used only in order to produce the point x0x_0. Drop it and the conclusion falls with it. Indeed, take A={0}∪(1,2)A = \{0\} \cup (1,2) and a=0a = 0 (an isolated point of AA), and let ff be an arbitrary function on AA. For δ=1\delta = 1 there is no x∈Ax \in A with 0<∣x−0∣<10 < |x-0| < 1. The implication in Definition 3.1 is then always true, its antecedent being false, so every real number LL becomes a “limit”. Uniqueness fails. Restricting aa to accumulation points in the definition is precisely what prevents this degeneracy.

4. Building calculation rules from the definition

Section titled “4. Building calculation rules from the definition”

Going back to ε\varepsilon and δ\delta every single time is laborious. Once a few basic limits and calculation rules have been proved, everything afterwards can be assembled from them. We begin by checking that a convergent function does not run wild near aa.

Lemma 4.1(Convergence implies local boundedness)

Let A⊆RA \subseteq \mathbb{R}, let g:A→Rg : A \to \mathbb{R}, let aa be an accumulation point of AA, and suppose lim⁡x→ag(x)=M\lim_{x\to a} g(x) = M. Then there exists δ0>0\delta_0 > 0 such that ∣g(x)∣<∣M∣+1|g(x)| < |M| + 1 for every x∈Uδ0∗(a)∩Ax \in U^{*}_{\delta_0}(a) \cap A.

Proof(Lemma 4.1)

Take ε=1\varepsilon = 1 in Definition 3.1 (since ε\varepsilon may be any positive number, we may apply the definition to this particular value). Then there is δ0>0\delta_0 > 0 such that x∈Ax \in A and 0<∣x−a∣<δ00 < |x - a| < \delta_0 imply ∣g(x)−M∣<1|g(x) - M| < 1. For such xx the triangle inequality (§2) gives

∣g(x)∣=∣(g(x)−M)+M∣≤∣g(x)−M∣+∣M∣<1+∣M∣|g(x)| = |(g(x) - M) + M| \le |g(x) - M| + |M| < 1 + |M|

as claimed.

Theorem 4.2(Algebra of limits)

Let A⊆RA \subseteq \mathbb{R}, let f,g:A→Rf, g : A \to \mathbb{R}, let aa be an accumulation point of AA, and suppose lim⁡x→af(x)=L\lim_{x\to a} f(x) = L and lim⁡x→ag(x)=M\lim_{x \to a} g(x) = M. Then the following hold.

  1. lim⁡x→a(f(x)+g(x))=L+M\lim_{x\to a} \bigl(f(x) + g(x)\bigr) = L + M.
  2. lim⁡x→ac f(x)=cL\lim_{x\to a} c\,f(x) = cL for every constant c∈Rc \in \mathbb{R}.
  3. lim⁡x→af(x)g(x)=LM\lim_{x\to a} f(x)g(x) = LM.
  4. If moreover M≠0M \ne 0, then there exists δ1>0\delta_1 > 0 such that g(x)≠0g(x) \ne 0 for x∈Uδ1∗(a)∩Ax \in U^{*}_{\delta_1}(a) \cap A, and the function f/gf/g, defined on B=Uδ1∗(a)∩AB = U^{*}_{\delta_1}(a) \cap A, satisfies lim⁡x→af(x)g(x)=LM\lim_{x\to a} \dfrac{f(x)}{g(x)} = \dfrac{L}{M}.
Proof(Theorem 4.2)

(1) Let ε>0\varepsilon > 0 be arbitrary. Since ε/2>0\varepsilon/2 > 0, apply Definition 3.1 to ff with ε/2\varepsilon/2 to get δ1>0\delta_1 > 0, and to gg with ε/2\varepsilon/2 to get δ2>0\delta_2 > 0. Put δ=min⁡(δ1,δ2)>0\delta = \min(\delta_1,\delta_2) > 0. For x∈Ax \in A with 0<∣x−a∣<δ0 < |x-a| < \delta both estimates apply, and the triangle inequality (§2) gives

∣(f(x)+g(x))−(L+M)∣≤∣f(x)−L∣+∣g(x)−M∣<ε2+ε2=ε.|(f(x)+g(x)) - (L+M)| \le |f(x)-L| + |g(x)-M| < \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon .

(2) If c=0c = 0, then ∣0−0∣=0<ε|0 - 0| = 0 < \varepsilon holds for every δ\delta. If c≠0c \ne 0, feed ε/∣c∣>0\varepsilon/|c| > 0 into Definition 3.1 for a given ε>0\varepsilon > 0 to obtain δ>0\delta > 0; then for 0<∣x−a∣<δ0<|x-a|<\delta we get ∣cf(x)−cL∣=∣c∣ ∣f(x)−L∣<∣c∣⋅ε/∣c∣=ε|cf(x) - cL| = |c|\,|f(x)-L| < |c| \cdot \varepsilon/|c| = \varepsilon.

(3) We split the difference in two. From the identity

f(x)g(x)−LM=g(x)(f(x)−L)+L(g(x)−M)f(x)g(x) - LM = g(x)\bigl(f(x)-L\bigr) + L\bigl(g(x)-M\bigr)

(expanding the right-hand side gives g(x)f(x)−Lg(x)+Lg(x)−LMg(x)f(x) - Lg(x) + Lg(x) - LM, which is the left-hand side) together with the triangle inequality,

∣f(x)g(x)−LM∣≤∣g(x)∣ ∣f(x)−L∣+∣L∣ ∣g(x)−M∣.|f(x)g(x) - LM| \le |g(x)|\,|f(x)-L| + |L|\,|g(x)-M| .

By Lemma 4.1 choose δ0>0\delta_0 > 0 with ∣g(x)∣<∣M∣+1|g(x)| < |M|+1 for 0<∣x−a∣<δ00<|x-a|<\delta_0. Let ε>0\varepsilon > 0 be arbitrary, and apply Definition 3.1 to ff with ε2(∣M∣+1)>0\dfrac{\varepsilon}{2(|M|+1)} > 0 to get δ2\delta_2, and to gg with ε2(∣L∣+1)>0\dfrac{\varepsilon}{2(|L|+1)} > 0 to get δ3\delta_3 (the +1+1 in the denominators is there so that the division is legitimate even when L=0L = 0). Putting δ=min⁡(δ0,δ2,δ3)\delta = \min(\delta_0,\delta_2,\delta_3), for 0<∣x−a∣<δ0 < |x-a| < \delta we obtain

∣f(x)g(x)−LM∣<(∣M∣+1)⋅ε2(∣M∣+1)+∣L∣⋅ε2(∣L∣+1)≤ε2+ε2=ε|f(x)g(x)-LM| < (|M|+1)\cdot\frac{\varepsilon}{2(|M|+1)} + |L| \cdot \frac{\varepsilon}{2(|L|+1)} \le \frac{\varepsilon}{2} + \frac{\varepsilon}{2} = \varepsilon

(the last inequality uses ∣L∣≤∣L∣+1|L| \le |L|+1).

(4) First we show that gg does not vanish near aa. Since M≠0M \ne 0 we have ∣M∣/2>0|M|/2 > 0, so applying Definition 3.1 to gg with ε=∣M∣/2\varepsilon = |M|/2 yields δ1>0\delta_1 > 0. For x∈B=Uδ1∗(a)∩Ax \in B = U^{*}_{\delta_1}(a) \cap A, the second inequality of §2 gives

∣M∣−∣g(x)∣≤∣g(x)−M∣<∣M∣2⟹∣g(x)∣>∣M∣2>0|M| - |g(x)| \le |g(x) - M| < \frac{|M|}{2} \quad\Longrightarrow\quad |g(x)| > \frac{|M|}{2} > 0

and in particular g(x)≠0g(x) \ne 0. Hence f/gf/g is defined on BB. Moreover aa is an accumulation point of BB as well: for any δ>0\delta>0, since aa is an accumulation point of AA we have Umin⁡(δ,δ1)∗(a)∩A≠∅U^{*}_{\min(\delta,\delta_1)}(a) \cap A \ne \emptyset, and this set is contained in Uδ∗(a)∩BU^{*}_\delta(a) \cap B. We are therefore entitled to speak of the limit.

Now we estimate. For x∈Bx \in B,

∣f(x)g(x)−LM∣=∣Mf(x)−Lg(x)∣∣g(x)∣ ∣M∣≤2∣M∣2 ∣M(f(x)−L)−L(g(x)−M)∣≤2∣M∣2(∣M∣ ∣f(x)−L∣+∣L∣ ∣g(x)−M∣)\left| \frac{f(x)}{g(x)} - \frac{L}{M} \right| = \frac{|M f(x) - L g(x)|}{|g(x)|\,|M|} \le \frac{2}{|M|^2}\,\bigl| M(f(x)-L) - L(g(x)-M) \bigr| \le \frac{2}{|M|^2}\Bigl( |M|\,|f(x)-L| + |L|\,|g(x)-M| \Bigr)

(we used ∣g(x)∣>∣M∣/2|g(x)| > |M|/2 in the denominator, and rewrote the numerator as Mf(x)−Lg(x)=M(f(x)−L)−L(g(x)−M)Mf(x)-Lg(x) = M(f(x)-L) - L(g(x)-M) before applying the triangle inequality). Let ε>0\varepsilon>0 be arbitrary and apply Definition 3.1 to ff with ∣M∣ε4>0\dfrac{|M|\varepsilon}{4} > 0 and to gg with ∣M∣2ε4(∣L∣+1)>0\dfrac{|M|^2 \varepsilon}{4(|L|+1)} > 0, obtaining δ2,δ3\delta_2, \delta_3. Putting δ=min⁡(δ1,δ2,δ3)\delta = \min(\delta_1,\delta_2,\delta_3), for 0<∣x−a∣<δ0<|x-a|<\delta with x∈Bx \in B we get

∣f(x)g(x)−LM∣<2∣M∣2(∣M∣⋅∣M∣ε4+∣L∣⋅∣M∣2ε4(∣L∣+1))=ε2+∣L∣∣L∣+1⋅ε2≤ε\left| \frac{f(x)}{g(x)} - \frac{L}{M} \right| < \frac{2}{|M|^2}\left( |M| \cdot \frac{|M|\varepsilon}{4} + |L| \cdot \frac{|M|^2\varepsilon}{4(|L|+1)} \right) = \frac{\varepsilon}{2} + \frac{|L|}{|L|+1}\cdot\frac{\varepsilon}{2} \le \varepsilon

as required.

Theorem 4.3(Squeeze theorem)

Let A⊆RA \subseteq \mathbb{R}, let f,g,h:A→Rf, g, h : A \to \mathbb{R}, and let aa be an accumulation point of AA. Suppose there is δ0>0\delta_0 > 0 with

x∈Uδ0∗(a)∩A  ⟹  f(x)≤g(x)≤h(x)x \in U^{*}_{\delta_0}(a) \cap A \implies f(x) \le g(x) \le h(x)

and suppose lim⁡x→af(x)=lim⁡x→ah(x)=L\lim_{x\to a} f(x) = \lim_{x \to a} h(x) = L. Then lim⁡x→ag(x)=L\lim_{x\to a} g(x) = L.

Proof(Theorem 4.3)

Let ε>0\varepsilon > 0 be arbitrary. Applying Definition 3.1 to ff gives δ1>0\delta_1 > 0, and applying it to hh gives δ2>0\delta_2 > 0. Put δ=min⁡(δ0,δ1,δ2)>0\delta = \min(\delta_0, \delta_1, \delta_2) > 0 and take x∈Ax \in A with 0<∣x−a∣<δ0 < |x-a| < \delta.

From ∣f(x)−L∣<ε|f(x) - L| < \varepsilon we get L−ε<f(x)L - \varepsilon < f(x), and from ∣h(x)−L∣<ε|h(x)-L| < \varepsilon we get h(x)<L+εh(x) < L + \varepsilon. Also δ≤δ0\delta \le \delta_0, so the assumed inequality applies and f(x)≤g(x)≤h(x)f(x) \le g(x) \le h(x). Chaining these,

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

which gives −ε<g(x)−L<ε-\varepsilon < g(x) - L < \varepsilon, that is, ∣g(x)−L∣<ε|g(x) - L| < \varepsilon.

Example 4.4(A function that converges while oscillating)

On A=R∖{0}A = \mathbb{R} \setminus \{0\} put g(x)=xsin⁡1xg(x) = x \sin\dfrac{1}{x}. Then lim⁡x→0g(x)=0\lim_{x\to0} g(x) = 0.

For x≠0x \ne 0 we have ∣sin⁡1x∣≤1\left|\sin\dfrac1x\right| \le 1, hence

−∣x∣≤xsin⁡1x≤∣x∣-|x| \le x \sin\frac{1}{x} \le |x|

The limit lim⁡x→0∣x∣=0\lim_{x\to0} |x| = 0 is immediate from the definition (given ε>0\varepsilon>0, take δ=ε\delta = \varepsilon; then 0<∣x−0∣<δ0<|x-0|<\delta gives ∣∣x∣−0∣=∣x∣<ε\bigl||x| - 0\bigr| = |x| < \varepsilon). Taking c=−1c = -1 in part (2) of Theorem 4.2 gives lim⁡x→0(−∣x∣)=0\lim_{x\to0}(-|x|) = 0. So Theorem 4.3 applies with f(x)=−∣x∣f(x) = -|x|, h(x)=∣x∣h(x) = |x|, L=0L = 0 and δ0\delta_0 arbitrary (say 11), and we obtain lim⁡x→0g(x)=0\lim_{x\to0} g(x) = 0.

This function oscillates infinitely often near 00, yet it converges because the amplitude is crushed down to 00. Approaching monotonically is not a requirement for convergence. If instead the amplitude is not damped and we consider sin⁡1x\sin\dfrac1x itself, the limit does not exist (Exercise 7.3).

Theorem 4.5(Sequential characterization)

Let A⊆RA \subseteq \mathbb{R}, let f:A→Rf : A \to \mathbb{R}, let aa be an accumulation point of AA, and let L∈RL \in \mathbb{R}. The following two conditions are equivalent.

  1. lim⁡x→af(x)=L\lim_{x\to a} f(x) = L.
  2. For every sequence (xn)n∈N(x_n)_{n \in \mathbb{N}} with xn∈Ax_n \in A, xn≠ax_n \ne a for all n∈Nn \in \mathbb{N}, and lim⁡n→∞xn=a\lim_{n\to\infty} x_n = a, one has lim⁡n→∞f(xn)=L\lim_{n\to\infty} f(x_n) = L.

Here convergence of a sequence, lim⁡n→∞yn=c\lim_{n\to\infty} y_n = c, means "∀ε>0, ∃N∈N, ∀n≥N, ∣yn−c∣<ε\forall \varepsilon>0,\ \exists N \in \mathbb{N},\ \forall n \ge N,\ |y_n - c| < \varepsilon".

Proof(Theorem 4.5)

(1) implies (2). Let (xn)(x_n) be a sequence satisfying the stated conditions and let ε>0\varepsilon>0 be arbitrary. By (1) and Definition 3.1 there is δ>0\delta>0 such that x∈Ax\in A and 0<∣x−a∣<δ0<|x-a|<\delta imply ∣f(x)−L∣<ε|f(x)-L|<\varepsilon. Since xn→ax_n \to a, using this δ\delta as the ε\varepsilon in the definition of convergence of a sequence gives N∈NN \in \mathbb{N} such that n≥Nn \ge N implies ∣xn−a∣<δ|x_n - a| < \delta. Furthermore xn≠ax_n \ne a by hypothesis, that is, ∣xn−a∣>0|x_n - a| > 0. Hence for n≥Nn \ge N we have 0<∣xn−a∣<δ0 < |x_n - a| < \delta and therefore ∣f(xn)−L∣<ε|f(x_n) - L| < \varepsilon. This says f(xn)→Lf(x_n) \to L.

(2) implies (1). We prove the contrapositive. If (1) fails, then by the form in Remark 3.2 there is ε0>0\varepsilon_0>0 such that for every δ>0\delta>0 there exists x∈Ax \in A with 0<∣x−a∣<δ0<|x-a|<\delta and ∣f(x)−L∣≥ε0|f(x)-L| \ge \varepsilon_0.

For each n∈Nn \in \mathbb{N} apply this with δ=1/n\delta = 1/n and choose one such xx, calling it xnx_n. Then xn∈Ax_n \in A, 0<∣xn−a∣<1/n0 < |x_n - a| < 1/n and ∣f(xn)−L∣≥ε0|f(x_n) - L| \ge \varepsilon_0.

This sequence satisfies the hypotheses of (2). Indeed ∣xn−a∣>0|x_n - a| > 0 gives xn≠ax_n \ne a, and for ε>0\varepsilon>0 the Archimedean property provides N∈NN \in \mathbb{N} with 1/N<ε1/N < \varepsilon, so that n≥Nn \ge N implies ∣xn−a∣<1/n≤1/N<ε|x_n - a| < 1/n \le 1/N < \varepsilon; hence xn→ax_n \to a.

But ∣f(xn)−L∣≥ε0|f(x_n) - L| \ge \varepsilon_0 holds for every nn, so for this ε0\varepsilon_0 no choice of NN makes ∣f(xN)−L∣<ε0|f(x_N)-L| < \varepsilon_0, and f(xn)→Lf(x_n) \to L fails. Thus (2) fails.

Theorem 4.5 is especially effective for proving that a limit does not exist. If we can find two sequences converging to aa along which the values of ff head for different destinations, that alone lets us conclude that there is no limit.

Definition 5.1(Continuity at a point)

Let A⊆RA \subseteq \mathbb{R}, let f:A→Rf : A \to \mathbb{R} and let a∈Aa \in A. If

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

holds, then ff is said to be continuous at aa. If ff is continuous at every point of AA, then ff is said to be continuous on AA.

There are only two differences from Definition 3.1. First, the target value LL is fixed to be f(a)f(a). Second, the exclusion 0<∣x−a∣0 < |x-a| has been dropped, so x=ax = a is now among the points to be tested. The second change has no substantial effect, because for x=ax = a the inequality ∣f(a)−f(a)∣=0<ε|f(a)-f(a)| = 0 < \varepsilon always holds. Consequently, if aa is an accumulation point of AA, then ”ff is continuous at aa” and "lim⁡x→af(x)=f(a)\lim_{x\to a} f(x) = f(a)" are equivalent. If instead aa is an isolated point of AA, we can choose δ>0\delta>0 with Uδ(a)∩A={a}U_{\delta}(a) \cap A = \{a\}, and this δ\delta meets the condition for every ε\varepsilon, so ff is automatically continuous at aa. Continuity is thus a combination of two things, that the limit exists and that its value is f(a)f(a); since the value f(a)f(a) itself is at stake, it is a notion distinct from that of a limit.

Corollary 5.2(Continuity of polynomials and rational functions)

A polynomial function p(x)=c0+c1x+⋯+cnxnp(x) = c_0 + c_1 x + \cdots + c_n x^n (with ck∈Rc_k \in \mathbb{R}) is continuous on R\mathbb{R}. Moreover, if pp and qq are polynomials, the rational function p/qp/q is continuous at every point aa with q(a)≠0q(a) \ne 0.

Proof(Corollary 5.2)

Fix a∈Ra \in \mathbb{R}. The constant function x↦cx \mapsto c is continuous: for any ε>0\varepsilon>0, take δ=1\delta = 1; then ∣c−c∣=0<ε|c - c| = 0 < \varepsilon. The identity function x↦xx \mapsto x is continuous: take δ=ε\delta = \varepsilon; then ∣x−a∣<δ=ε|x - a| < \delta = \varepsilon. Since aa is an accumulation point of R\mathbb{R}, the equivalence stated above lets us restate these as lim⁡x→ac=c\lim_{x\to a} c = c and lim⁡x→ax=a\lim_{x\to a} x = a.

We show lim⁡x→axk=ak\lim_{x\to a} x^k = a^k by induction on kk. The case k=1k=1 was just seen. Assuming it for kk, apply part (3) of Theorem 4.2 to f(x)=xkf(x)=x^k and g(x)=xg(x)=x to obtain lim⁡x→axk+1=ak⋅a=ak+1\lim_{x\to a} x^{k+1} = a^k \cdot a = a^{k+1}. Hence the statement holds for every k∈Nk \in \mathbb{N}.

Next, part (2) of Theorem 4.2 gives lim⁡x→ackxk=ckak\lim_{x\to a} c_k x^k = c_k a^k, and applying part (1) nn times gives lim⁡x→ap(x)=p(a)\lim_{x\to a} p(x) = p(a). This is exactly the continuity of pp at aa.

As for rational functions, when q(a)≠0q(a) \ne 0 we apply part (4) of Theorem 4.2 with M=q(a)≠0M = q(a) \ne 0: on some punctured neighborhood of aa we have q≠0q \ne 0 and lim⁡x→ap(x)/q(x)=p(a)/q(a)\lim_{x\to a} p(x)/q(x) = p(a)/q(a). Since q(a)≠0q(a) \ne 0 at x=ax=a as well, p/qp/q is defined on a neighborhood containing aa and is continuous at aa.

Theorem 5.3(Continuity of a composition)

Let A,B⊆RA, B \subseteq \mathbb{R}, let f:A→Rf : A \to \mathbb{R} satisfy f(A)⊆Bf(A) \subseteq B, and let g:B→Rg : B \to \mathbb{R}. If ff is continuous at a∈Aa \in A and gg is continuous at b=f(a)∈Bb = f(a) \in B, then the composition g∘f:A→Rg \circ f : A \to \mathbb{R} is continuous at aa.

Proof(Theorem 5.3)

Let ε>0\varepsilon>0 be arbitrary. Since gg is continuous at bb, Definition 5.1 provides η>0\eta > 0 such that

y∈B, ∣y−b∣<η  ⟹  ∣g(y)−g(b)∣<εy \in B,\ |y - b| < \eta \implies |g(y) - g(b)| < \varepsilon

Next, since ff is continuous at aa, applying Definition 5.1 with this η\eta as the “demanded accuracy” provides δ>0\delta>0 such that

x∈A, ∣x−a∣<δ  ⟹  ∣f(x)−f(a)∣=∣f(x)−b∣<ηx \in A,\ |x - a| < \delta \implies |f(x) - f(a)| = |f(x) - b| < \eta

Now let x∈Ax \in A with ∣x−a∣<δ|x-a|<\delta. Then f(x)∈f(A)⊆Bf(x) \in f(A) \subseteq B (by hypothesis) and ∣f(x)−b∣<η|f(x)-b| < \eta, so the first implication applies with y=f(x)y = f(x) and gives

∣g(f(x))−g(f(a))∣<ε|g(f(x)) - g(f(a))| < \varepsilon

Hence g∘fg \circ f is continuous at aa.

Remark 5.4(The limit version of composition fails)

It is tempting to restate Theorem 5.3 as “if lim⁡x→af(x)=b\lim_{x\to a} f(x) = b and lim⁡y→bg(y)=c\lim_{y\to b} g(y) = c, then lim⁡x→ag(f(x))=c\lim_{x\to a} g(f(x)) = c”, but this is false. Here is a counterexample. Let f(x)=0f(x) = 0 for all x∈Rx \in \mathbb{R}, and let

g(y)={1(y≠0)0(y=0)g(y) = \begin{cases} 1 & (y \ne 0) \\ 0 & (y = 0) \end{cases}

Since ff is constant, lim⁡x→0f(x)=0\lim_{x\to0} f(x) = 0. Also g(y)=1g(y)=1 for every yy with 0<∣y−0∣<δ0 < |y-0| < \delta, so lim⁡y→0g(y)=1\lim_{y\to0} g(y) = 1. But g(f(x))=g(0)=0g(f(x)) = g(0) = 0 for every xx, whence lim⁡x→0g(f(x))=0≠1\lim_{x\to0} g(f(x)) = 0 \ne 1.

The cause is clear: the definition of a limit excludes y=by = b from inspection, while ff actually attains the value bb. The definition of continuity does not exclude x=ax=a, so it has no such hole. When composing in the language of limits, assume that the outer function gg is continuous at bb.

Proposition 5.5(Dirichlet's function is discontinuous at every point)

For the Dirichlet function DD defined in §1, the limit lim⁡x→aD(x)\lim_{x\to a} D(x) fails to exist for every a∈Ra \in \mathbb{R}, and consequently DD is not continuous at aa.

Proof(Proposition 5.5)

We first use the fact that for any real numbers α<β\alpha < \beta the open interval (α,β)(\alpha,\beta) contains at least one rational and at least one irrational number. Existence of a rational is the density of Q\mathbb{Q}. For an irrational, take a rational r∈(α,β)r \in (\alpha,\beta) and, by the Archimedean property, an n∈Nn \in \mathbb{N} with 2/n<β−r\sqrt{2}/n < \beta - r; then r+2/n∈(r,β)⊆(α,β)r + \sqrt{2}/n \in (r,\beta) \subseteq (\alpha,\beta), and this number is irrational (the sum of a rational and an irrational is irrational: if r+2/nr + \sqrt2/n were rational, then 2=n((r+2/n)−r)\sqrt2 = n\bigl((r+\sqrt2/n) - r\bigr) would be rational, contradicting the irrationality of 2\sqrt2).

Now fix a∈Ra \in \mathbb{R} and suppose some L∈RL \in \mathbb{R} satisfies lim⁡x→aD(x)=L\lim_{x\to a} D(x) = L. For ε0=12>0\varepsilon_0 = \dfrac12 > 0, Definition 3.1 provides δ>0\delta>0 such that 0<∣x−a∣<δ0<|x-a|<\delta implies ∣D(x)−L∣<12|D(x)-L| < \dfrac12.

By what was just shown, the interval (a, a+δ)(a,\ a+\delta) contains a rational pp and an irrational qq. Both satisfy a<p<a+δa < p < a+\delta and a<q<a+δa < q < a+\delta, hence 0<∣p−a∣<δ0 < |p - a| < \delta and 0<∣q−a∣<δ0 < |q-a| < \delta. Therefore ∣D(p)−L∣<12|D(p)-L|<\dfrac12 and ∣D(q)−L∣<12|D(q)-L|<\dfrac12. But D(p)=1D(p)=1 and D(q)=0D(q)=0, so the triangle inequality (§2) gives

1=∣D(p)−D(q)∣≤∣D(p)−L∣+∣L−D(q)∣<12+12=11 = |D(p) - D(q)| \le |D(p)-L| + |L - D(q)| < \frac12 + \frac12 = 1

a contradiction. Hence no such LL exists. Since aa is an accumulation point of R\mathbb{R}, continuity of DD at aa would force lim⁡x→aD(x)=D(a)\lim_{x\to a} D(x) = D(a), so the limit would exist. Therefore DD is not continuous at aa.

Example 5.6(Thomae's function: continuous exactly at the irrationals)

Consider the following function t:R→Rt : \mathbb{R} \to \mathbb{R}.

t(x)={1q(x=pq, p∈Z, q∈N, gcd⁡(∣p∣,q)=1)0(x∉Q)t(x) = \begin{cases} \dfrac{1}{q} & \left(x = \dfrac{p}{q},\ p \in \mathbb{Z},\ q \in \mathbb{N},\ \gcd(|p|,q) = 1\right) \\ 0 & (x \notin \mathbb{Q}) \end{cases}

Since the reduced representation of a rational number is unique once the denominator is taken positive, there is no ambiguity in this definition (for instance t(0)=t(0/1)=1t(0) = t(0/1) = 1, t(1/2)=1/2t(1/2) = 1/2, t(2/4)=t(1/2)=1/2t(2/4) = t(1/2) = 1/2).

Claim: lim⁡x→at(x)=0\lim_{x \to a} t(x) = 0 for every a∈Ra \in \mathbb{R}.

Let ε>0\varepsilon>0 be arbitrary. By the Archimedean property there is N∈NN \in \mathbb{N} with 1N<ε\dfrac1N < \varepsilon. Put

S={ x∈(a−1, a+1):x=pq, p∈Z, q∈N, gcd⁡(∣p∣,q)=1, q≤N }S = \left\{\, x \in (a-1,\ a+1) : x = \frac{p}{q},\ p \in \mathbb{Z},\ q \in \mathbb{N},\ \gcd(|p|,q)=1,\ q \le N \,\right\}

The set SS is finite. Indeed, for each q∈{1,…,N}q \in \{1,\ldots,N\}, an integer pp with p/q∈(a−1,a+1)p/q \in (a-1,a+1) satisfies q(a−1)<p<q(a+1)q(a-1) < p < q(a+1). If there are mm integers satisfying this condition, then the difference between the largest and the smallest of them is at least m−1m-1; but both lie in an open interval of length 2q2q, so that difference is smaller than 2q2q, giving m−1<2qm - 1 < 2q, that is, m≤2q≤2Nm \le 2q \le 2N. Since there are NN candidate denominators qq, the set SS has at most 2N22N^2 elements.

If S∖{a}S \setminus \{a\} is nonempty, put

δ=min⁡(1, min⁡s∈S∖{a}∣s−a∣)\delta = \min\Bigl(1,\ \min_{s \in S \setminus \{a\}} |s - a| \Bigr)

The set S∖{a}S \setminus \{a\} is finite and each of its elements ss satisfies s≠as \ne a, that is, ∣s−a∣>0|s-a|>0, so δ>0\delta > 0 as the minimum of finitely many positive numbers (this is where finiteness is doing the work). If S∖{a}S \setminus \{a\} is empty, put δ=1\delta = 1.

Suppose 0<∣x−a∣<δ0 < |x - a| < \delta. Since δ≤1\delta \le 1 we have x∈(a−1,a+1)x \in (a-1,a+1).

  • If xx is irrational, then ∣t(x)−0∣=0<ε|t(x) - 0| = 0 < \varepsilon.
  • If xx is rational with reduced representation p/qp/q, then x≠ax \ne a and ∣x−a∣<δ|x-a| < \delta, so by the choice of δ\delta we have x∉S∖{a}x \notin S \setminus \{a\} and hence x∉Sx \notin S. But x∈(a−1,a+1)x \in (a-1,a+1), so by the definition of SS it cannot be that q≤Nq \le N. Therefore q>Nq > N and ∣t(x)−0∣=1q<1N<ε|t(x)-0| = \dfrac1q < \dfrac1N < \varepsilon.

In both cases ∣t(x)−0∣<ε|t(x) - 0| < \varepsilon, so Definition 3.1 gives lim⁡x→at(x)=0\lim_{x\to a} t(x) = 0, proving the claim.

Consequence. If aa is irrational, then t(a)=0=lim⁡x→at(x)t(a) = 0 = \lim_{x\to a} t(x), so by the equivalence at the start of §5 the function tt is continuous at aa. If aa is rational with reduced representation p/qp/q, then t(a)=1/q>0≠0=lim⁡x→at(x)t(a) = 1/q > 0 \ne 0 = \lim_{x\to a}t(x), so tt is discontinuous at aa. That is, tt is continuous exactly at the irrationals.

Because the rationals are scattered densely among the irrationals, the behavior of this function cannot be captured by a picture. Even so, Definition 3.1 constructs an explicit δ\delta for each ε\varepsilon and settles the matter completely. This is where the practical value of ε-δ arguments lies.

6. The order of quantifiers once more: uniform continuity

Section titled “6. The order of quantifiers once more: uniform continuity”

As we saw in Example 3.4, the δ\delta in the definition of continuity may depend not only on ε\varepsilon but also on the point aa. Demanding that a δ\delta can be chosen independently of aa produces a different notion.

Definition 6.1(Uniform continuity)

Let A⊆RA \subseteq \mathbb{R} and f:A→Rf : A \to \mathbb{R}. If

∀ε>0, ∃δ>0, ∀x∈A, ∀y∈A,∣x−y∣<δ  ⟹  ∣f(x)−f(y)∣<ε\forall \varepsilon>0,\ \exists \delta>0,\ \forall x \in A,\ \forall y \in A,\quad |x - y| < \delta \implies |f(x)-f(y)| < \varepsilon

holds, then ff is said to be uniformly continuous on AA.

The two notions differ only in the position of a quantifier.

NotionSkeleton of the formulaWhat δ\delta may depend on
Continuous at each point of AA∀ε ∀a∈A ∃δ ∀x∈A\forall \varepsilon\ \forall a \in A\ \exists \delta\ \forall x \in Aε\varepsilon and aa
Uniformly continuous on AA∀ε ∃δ ∀a∈A ∀x∈A\forall \varepsilon\ \exists \delta\ \forall a \in A\ \forall x \in Aε\varepsilon only

The only difference is whether ∃δ\exists \delta stands to the left or to the right of ∀a\forall a. By definition, uniform continuity implies continuity at each point (just use the uniform δ\delta at each point). The converse fails.

Example 6.2(A continuous function that is not uniformly continuous)

On A=(0,1]A = (0,1] put f(x)=1xf(x) = \dfrac1x.

Continuity. The functions x↦1x \mapsto 1 and x↦xx \mapsto x are polynomials, so by Corollary 5.2 the function f=1/xf = 1/x is continuous at every point with x≠0x \ne 0; in particular at every point of AA.

Failure of uniform continuity. The negation of Definition 6.1 reads: there is ε0>0\varepsilon_0>0 such that for every δ>0\delta>0 there exist x,y∈Ax, y \in A with ∣x−y∣<δ|x-y|<\delta and ∣f(x)−f(y)∣≥ε0|f(x)-f(y)| \ge \varepsilon_0. Take ε0=1\varepsilon_0 = 1. Let δ>0\delta>0 be arbitrary, use the Archimedean property to choose n∈Nn \in \mathbb{N} with 1n<δ\dfrac1n < \delta, and put

x=12n,y=1nx = \frac{1}{2n},\qquad y = \frac1n

Since n≥1n \ge 1 we have x,y∈(0,1]x, y \in (0,1]. Then

∣x−y∣=∣12n−1n∣=12n<1n<δ,∣f(x)−f(y)∣=∣2n−n∣=n≥1=ε0|x - y| = \left|\frac{1}{2n} - \frac1n\right| = \frac{1}{2n} < \frac1n < \delta, \qquad |f(x) - f(y)| = |2n - n| = n \ge 1 = \varepsilon_0

Hence no δ\delta satisfies the condition, and ff is not uniformly continuous on (0,1](0,1].

Intuitively, the graph becomes steeper the closer we get to 00, so the δ\delta needed to respect a fixed ε\varepsilon becomes arbitrarily small. A finite δ\delta can be chosen at each individual point, but these δ\delta‘s have no positive lower bound.

Remark 6.3(On a closed bounded interval the distinction disappears)

A continuous function on a closed bounded interval [α,β][\alpha,\beta] is necessarily uniformly continuous (the Heine–Cantor theorem). It was essential in Example 6.2 that (0,1](0,1] is not a closed interval. Proving this theorem requires the completeness of R\mathbb{R} (the Bolzano–Weierstrass theorem, or the Heine–Borel covering theorem) and lies beyond the scope of this article. For a proof see Sugiura, Kaiseki Nyūmon I, Chapter I, or Rudin, Principles of Mathematical Analysis, Chapter 4. The theorem is used in an essential way in the proof that continuous functions are Riemann integrable (The fundamental theorem of calculus and the definite integral).

Exercise 7.1Easy

Prove lim⁡x→3(5x−2)=13\lim_{x\to3}(5x - 2) = 13 directly from the definition (Definition 3.1).

Solution

Let ε>0\varepsilon>0 be arbitrary and put δ=ε5>0\delta = \dfrac{\varepsilon}{5} > 0. For every real xx with 0<∣x−3∣<δ0 < |x - 3| < \delta,

∣(5x−2)−13∣=∣5x−15∣=5∣x−3∣<5δ=5⋅ε5=ε|(5x-2) - 13| = |5x - 15| = 5|x-3| < 5\delta = 5 \cdot \frac{\varepsilon}{5} = \varepsilon

Since ε>0\varepsilon>0 was arbitrary, Definition 3.1 gives lim⁡x→3(5x−2)=13\lim_{x\to3}(5x-2) = 13.

Exercise 7.2Standard

Prove lim⁡x→21x=12\lim_{x\to2} \dfrac1x = \dfrac12 directly from the definition (construct δ\delta explicitly, without using part (4) of Theorem 4.2).

Solution

First we rewrite. For x≠0x \ne 0,

∣1x−12∣=∣2−x2x∣=∣x−2∣2∣x∣\left|\frac1x - \frac12\right| = \left|\frac{2 - x}{2x}\right| = \frac{|x-2|}{2|x|}

To bound the ∣x∣|x| in the denominator from below, restrict to ∣x−2∣<1|x-2|<1. Then 1<x<31 < x < 3, so ∣x∣=x>1|x| = x > 1 and hence 12∣x∣<12\dfrac{1}{2|x|} < \dfrac12, giving

∣1x−12∣<∣x−2∣2\left|\frac1x - \frac12\right| < \frac{|x-2|}{2}

For this to be less than ε\varepsilon it suffices that ∣x−2∣<2ε|x-2| < 2\varepsilon.

Proof. Let ε>0\varepsilon>0 be arbitrary and put δ=min⁡(1, 2ε)>0\delta = \min(1,\ 2\varepsilon) > 0. Suppose 0<∣x−2∣<δ0 < |x-2| < \delta. From ∣x−2∣<1|x-2|<1 we get 1<x<31 < x < 3, in particular x≠0x \ne 0, so 1/x1/x is defined, and the estimate above gives

∣1x−12∣=∣x−2∣2∣x∣<∣x−2∣2<2ε2=ε\left|\frac1x - \frac12\right| = \frac{|x-2|}{2|x|} < \frac{|x-2|}{2} < \frac{2\varepsilon}{2} = \varepsilon

Hence lim⁡x→21x=12\lim_{x\to2} \dfrac1x = \dfrac12.

Exercise 7.3Standard

Show that the function s(x)=sin⁡1xs(x) = \sin\dfrac1x on A=R∖{0}A = \mathbb{R}\setminus\{0\} has no limit as x→0x \to 0.

Solution

We use Theorem 4.5. Suppose some L∈RL \in \mathbb{R} satisfies lim⁡x→0s(x)=L\lim_{x\to0} s(x) = L.

Put xn=12πnx_n = \dfrac{1}{2\pi n} and yn=12πn+π/2y_n = \dfrac{1}{2\pi n + \pi/2} for n∈Nn \in \mathbb{N}. Both are elements of AA and are nonzero, and from 0<xn<1n0 < x_n < \dfrac1n and 0<yn<1n0 < y_n < \dfrac1n the Archimedean property gives xn→0x_n \to 0 and yn→0y_n \to 0.

Since s(xn)=sin⁡(2πn)=0s(x_n) = \sin(2\pi n) = 0, the sequence (s(xn))(s(x_n)) is constantly 00 and converges to 00. Since s(yn)=sin⁡(2πn+π2)=1s(y_n) = \sin\left(2\pi n + \dfrac{\pi}{2}\right) = 1, the sequence (s(yn))(s(y_n)) is constantly 11 and converges to 11.

By the implication from (1) to (2) in Theorem 4.5, the limit for both sequences would have to be LL. Limits of sequences are unique (this is proved by the same argument as Theorem 3.5), so L=0L = 0 and L=1L = 1, giving the contradiction 0=10 = 1. Hence no such LL exists and lim⁡x→0sin⁡1x\lim_{x\to0}\sin\dfrac1x does not exist.

The difference from xsin⁡1xx\sin\dfrac1x in Example 4.4 is the amplitude. Multiplying by xx crushes the amplitude down to 00 and produces convergence, whereas ss itself keeps taking both the values 00 and 11 over and over near 00.

Exercise 7.4Hard

Show that f(x)=x2f(x) = x^2 is continuous on R\mathbb{R} but not uniformly continuous on R\mathbb{R}.

Solution

Continuity. Fix a∈Ra \in \mathbb{R} and let ε>0\varepsilon>0 be arbitrary. Put δ=min⁡(1, ε1+2∣a∣)>0\delta = \min\left(1,\ \dfrac{\varepsilon}{1 + 2|a|}\right) > 0. Suppose ∣x−a∣<δ|x - a| < \delta. From ∣x−a∣<1|x-a| < 1 and the triangle inequality (§2),

∣x+a∣=∣(x−a)+2a∣≤∣x−a∣+2∣a∣<1+2∣a∣|x + a| = |(x - a) + 2a| \le |x-a| + 2|a| < 1 + 2|a|

so that

∣x2−a2∣=∣x−a∣ ∣x+a∣<ε1+2∣a∣⋅(1+2∣a∣)=ε|x^2 - a^2| = |x-a|\,|x+a| < \frac{\varepsilon}{1+2|a|}\cdot(1 + 2|a|) = \varepsilon

Hence Definition 5.1 shows that ff is continuous at aa, and since aa was arbitrary, ff is continuous on R\mathbb{R} (this is also a special case of Corollary 5.2).

Failure of uniform continuity. Take ε0=1\varepsilon_0 = 1. Let δ>0\delta>0 be arbitrary and put

x=1δ+δ2,y=1δx = \frac{1}{\delta} + \frac{\delta}{2}, \qquad y = \frac1\delta

Then ∣x−y∣=δ2<δ|x - y| = \dfrac{\delta}{2} < \delta, but

∣x2−y2∣=∣x−y∣ ∣x+y∣=δ2(2δ+δ2)=1+δ24>1=ε0|x^2 - y^2| = |x-y|\,|x+y| = \frac{\delta}{2}\left(\frac2\delta + \frac{\delta}{2}\right) = 1 + \frac{\delta^2}{4} > 1 = \varepsilon_0

Therefore, for every δ>0\delta>0 there exist x,y∈Rx,y \in \mathbb{R} with ∣x−y∣<δ|x-y|<\delta and ∣f(x)−f(y)∣≥ε0|f(x)-f(y)| \ge \varepsilon_0, so Definition 6.1 fails.

Here too the cause is that the slope grows steeper where ∣x∣|x| is large, so the δ\delta that respects a fixed ε\varepsilon becomes arbitrarily small. The symptom was already visible in Example 3.4, where the only δ\delta we could produce was δ=min⁡(1,ε/(2∣a∣+1))\delta = \min(1, \varepsilon/(2|a|+1)), depending on aa. If, however, the domain is restricted to a closed bounded interval [−R,R][-R,R], then δ=min⁡(1,ε/(1+2R))\delta = \min(1, \varepsilon/(1+2R)) works independently of aa, so the function is uniformly continuous there (in agreement with Remark 6.3).

  • Sugiura Mitsuo, Kaiseki Nyūmon I (Introduction to Analysis I), University of Tokyo Press, 1980 (in Japanese) — Chapter I. This chapter runs from the continuity of the real numbers to the properties of continuous functions, and treats the standard handling of ε-δ arguments and uniform continuity in detail.
  • Takagi Teiji, Kaiseki Gairon (A Course of Analysis), revised 3rd ed., Iwanami Shoten, 1961 (in Japanese) — Chapter 1. A Japanese classic; its introduction to limits and continuity is still worth reading.
  • W. Rudin, Principles of Mathematical Analysis, 3rd ed., McGraw-Hill, 1976 — Chapter 4 (Continuity). Continuity is treated in the language of metric spaces, which shows how the arguments of this article generalize.
  • S. Abbott, Understanding Analysis, 2nd ed., Springer, 2015 — Chapter 4 (Functional Limits and Continuity). Rich in pathological examples, including the Dirichlet and Thomae functions, with a careful account of why rigor is needed.
  • Tajima Ichirō, Epsilon-Delta, Kyoritsu Shuppan (Sūgaku One Point Sōsho), 1978 (in Japanese) — a short book devoted to ε-δ arguments alone, focused squarely on the order of quantifiers.
  • A.-L. Cauchy, Cours d’analyse de l’École Royale Polytechnique, 1821 — the historical source that placed limits at the foundation of analysis.

not audited

Report an error in this article ・Operated by: Mugen Giken LLC ・Pricing ・Terms ・Legal notice

© 2026 夢現技研合同会社 ・Code samples are MIT licensed.