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 xax \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 1010010^{-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(xQ)0(xQ)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 limh0f(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 xy|x - y| the distance between xx and yy on the number line. The two inequalities we shall use again and again are these.

x+yx+y,xyxy|x + y| \le |x| + |y|, \qquad \bigl| |x| - |y| \bigr| \le |x - y|

The first (the triangle inequality) follows once we add ±xx\pm x \le |x| and ±yy\pm y \le |y| to obtain ±(x+y)x+y\pm(x+y) \le |x|+|y|. For the second, x=(xy)+yxy+y|x| = |(x-y)+y| \le |x-y| + |y| gives xyxy|x|-|y| \le |x-y|, and interchanging xx and yy gives yxxy|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.1Neighborhoods, punctured neighborhoods, accumulation points

For aRa \in \mathbb{R} and δ>0\delta > 0, the sets

Uδ(a)={xR:xa<δ},Uδ(a)={xR:0<xa<δ}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 ARA \subseteq \mathbb{R} and aRa \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.1Limit of a function

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

ε>0, δ>0, xA,0<xa<δ    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 xax \to a, and we write

limxaf(x)=L\lim_{x \to a} f(x) = L

The notation f(x)L (xa)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.

flowchart LR
A["Move 1: the opponent specifies an accuracy ε > 0"] --> B["Move 2: we produce a single δ > 0"]
B --> C["Move 3: the opponent freely picks a point x within distance δ of a (a itself excluded)"]
C --> D["Verdict: if f(x) is within ε of L for every such x, the contract is met"]
Reading ε-δ as a contract on error. What is essential is the order: ε is given first, and δ is chosen afterwards

We have limxaf(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.2Negating the definition

The negation of Definition 3.1, that is, the statement that LL is not the limit of ff as xax \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, xA,0<xa<δ  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 xax \to a then means that this holds for every LRL \in \mathbb{R}. When showing that a limit fails to exist, this is the form we aim at.

Example 3.3Limit of a linear function

Let us show that limx1f(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=2x2=2x1|f(x) - 3| = |(2x+1) - 3| = |2x - 2| = 2|x - 1|

so it is enough to have 2x1<ε2|x-1| < \varepsilon, that is, x1<ε/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 xRx \in \mathbb{R} with 0<x1<δ0 < |x - 1| < \delta, the computation above gives

f(x)3=2x1<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 limx1(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.4Limit of a quadratic function: choosing δ in two stages

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

Scratch work. We have x24=x2x+2|x^2 - 4| = |x - 2|\,|x + 2|. The factor x2|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 x2<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 x24<5x2|x^2 - 4| < 5|x-2|. It then suffices to impose 5x2<ε5|x-2| < \varepsilon, that is, x2<ε/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<x2<δ0 < |x - 2| < \delta. First, x2<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 x2<ε/5|x-2| < \varepsilon/5, so

x24=x2x+2<ε55=ε.|x^2 - 4| = |x-2|\,|x+2| < \frac{\varepsilon}{5} \cdot 5 = \varepsilon .

Therefore limx2x2=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, ε/(2a+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.5Uniqueness of limits

Let ARA \subseteq \mathbb{R}, let f:ARf : A \to \mathbb{R}, and let aa be an accumulation point of AA. If limxaf(x)=L\lim_{x\to a} f(x) = L and limxaf(x)=M\lim_{x \to a} f(x) = M, then L=ML = M.

Proof(Theorem 3.5)

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

Put ε=LM2\varepsilon = \dfrac{|L - M|}{2}. From LML \ne M we get LM>0|L-M| > 0, hence ε>0\varepsilon > 0.

Applying Definition 3.1 to LL, there is δ1>0\delta_1 > 0 such that xAx \in A and 0<xa<δ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 xAx \in A and 0<xa<δ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)AU^{*}_{\delta}(a) \cap A \ne \emptyset, and we may pick a point x0x_0 from this set. This x0x_0 satisfies both 0<x0a<δδ10 < |x_0 - a| < \delta \le \delta_1 and 0<x0a<δδ20 < |x_0-a| < \delta \le \delta_2, so both conclusions above apply and

LM=(Lf(x0))+(f(x0)M)f(x0)L+f(x0)M<ε+ε=LM|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 LM<LM|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 xAx \in A with 0<x0<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.1Convergence implies local boundedness

Let ARA \subseteq \mathbb{R}, let g:ARg : A \to \mathbb{R}, let aa be an accumulation point of AA, and suppose limxag(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 xUδ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 xAx \in A and 0<xa<δ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)+Mg(x)M+M<1+M|g(x)| = |(g(x) - M) + M| \le |g(x) - M| + |M| < 1 + |M|

as claimed.

Theorem 4.2Algebra of limits

Let ARA \subseteq \mathbb{R}, let f,g:ARf, g : A \to \mathbb{R}, let aa be an accumulation point of AA, and suppose limxaf(x)=L\lim_{x\to a} f(x) = L and limxag(x)=M\lim_{x \to a} g(x) = M. Then the following hold.

  1. limxa(f(x)+g(x))=L+M\lim_{x\to a} \bigl(f(x) + g(x)\bigr) = L + M.
  2. limxacf(x)=cL\lim_{x\to a} c\,f(x) = cL for every constant cRc \in \mathbb{R}.
  3. limxaf(x)g(x)=LM\lim_{x\to a} f(x)g(x) = LM.
  4. If moreover M0M \ne 0, then there exists δ1>0\delta_1 > 0 such that g(x)0g(x) \ne 0 for xUδ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 limxaf(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 xAx \in A with 0<xa<δ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 00=0<ε|0 - 0| = 0 < \varepsilon holds for every δ\delta. If c0c \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<xa<δ0<|x-a|<\delta we get cf(x)cL=cf(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)LMg(x)f(x)L+Lg(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<xa<δ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<xa<δ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 LL+1|L| \le |L|+1).

(4) First we show that gg does not vanish near aa. Since M0M \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 xB=Uδ1(a)Ax \in B = U^{*}_{\delta_1}(a) \cap A, the second inequality of §2 gives

Mg(x)g(x)M<M2g(x)>M2>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)AU^{*}_{\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 xBx \in B,

f(x)g(x)LM=Mf(x)Lg(x)g(x)M<2M2M(f(x)L)L(g(x)M)2M2(Mf(x)L+Lg(x)M)\left| \frac{f(x)}{g(x)} - \frac{L}{M} \right| = \frac{|M f(x) - L g(x)|}{|g(x)|\,|M|} < \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 M2ε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<xa<δ0<|x-a|<\delta with xBx \in B we get

f(x)g(x)LM<2M2(MMε4+LM2ε4(L+1))=ε2+LL+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.3Squeeze theorem

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

xUδ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 limxaf(x)=limxah(x)=L\lim_{x\to a} f(x) = \lim_{x \to a} h(x) = L. Then limxag(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 xAx \in A with 0<xa<δ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.4A function that converges while oscillating

On A=R{0}A = \mathbb{R} \setminus \{0\} put g(x)=xsin1xg(x) = x \sin\dfrac{1}{x}. Then limx0g(x)=0\lim_{x\to0} g(x) = 0.

For x0x \ne 0 we have sin1x1\left|\sin\dfrac1x\right| \le 1, hence

xxsin1xx-|x| \le x \sin\frac{1}{x} \le |x|

The limit limx0x=0\lim_{x\to0} |x| = 0 is immediate from the definition (given ε>0\varepsilon>0, take δ=ε\delta = \varepsilon; then 0<x0<δ0<|x-0|<\delta gives x0=x<ε\bigl||x| - 0\bigr| = |x| < \varepsilon). Taking c=1c = -1 in part (2) of Theorem 4.2 gives limx0(x)=0\lim_{x\to0}(-|x|) = 0. So Theorem 4.3 applies with f(x)=xf(x) = -|x|, h(x)=xh(x) = |x|, L=0L = 0 and δ0\delta_0 arbitrary (say 11), and we obtain limx0g(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 sin1x\sin\dfrac1x itself, the limit does not exist (Exercise 7.3).

Theorem 4.5Sequential characterization

Let ARA \subseteq \mathbb{R}, let f:ARf : A \to \mathbb{R}, let aa be an accumulation point of AA, and let LRL \in \mathbb{R}. The following two conditions are equivalent.

  1. limxaf(x)=L\lim_{x\to a} f(x) = L.
  2. For every sequence (xn)nN(x_n)_{n \in \mathbb{N}} with xnAx_n \in A, xnax_n \ne a for all nNn \in \mathbb{N}, and limnxn=a\lim_{n\to\infty} x_n = a, one has limnf(xn)=L\lim_{n\to\infty} f(x_n) = L.

Here convergence of a sequence, limnyn=c\lim_{n\to\infty} y_n = c, means "ε>0, NN, nN, ync<ε\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 xAx\in A and 0<xa<δ0<|x-a|<\delta imply f(x)L<ε|f(x)-L|<\varepsilon. Since xnax_n \to a, using this δ\delta as the ε\varepsilon in the definition of convergence of a sequence gives NNN \in \mathbb{N} such that nNn \ge N implies xna<δ|x_n - a| < \delta. Furthermore xnax_n \ne a by hypothesis, that is, xna>0|x_n - a| > 0. Hence for nNn \ge N we have 0<xna<δ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 xAx \in A with 0<xa<δ0<|x-a|<\delta and f(x)Lε0|f(x)-L| \ge \varepsilon_0.

For each nNn \in \mathbb{N} apply this with δ=1/n\delta = 1/n and choose one such xx, calling it xnx_n. Then xnAx_n \in A, 0<xna<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 xna>0|x_n - a| > 0 gives xnax_n \ne a, and for ε>0\varepsilon>0 the Archimedean property provides NNN \in \mathbb{N} with 1/N<ε1/N < \varepsilon, so that nNn \ge N implies xna<1/n1/N<ε|x_n - a| < 1/n \le 1/N < \varepsilon; hence xnax_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.1Continuity at a point

Let ARA \subseteq \mathbb{R}, let f:ARf : A \to \mathbb{R} and let aAa \in A. If

ε>0, δ>0, xA,xa<δ    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<xa0 < |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 "limxaf(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.2Continuity 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 ckRc_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 aRa \in \mathbb{R}. The constant function xcx \mapsto c is continuous: for any ε>0\varepsilon>0, take δ=1\delta = 1; then cc=0<ε|c - c| = 0 < \varepsilon. The identity function xxx \mapsto x is continuous: take δ=ε\delta = \varepsilon; then xa<δ=ε|x - a| < \delta = \varepsilon. Since aa is an accumulation point of R\mathbb{R}, the equivalence stated above lets us restate these as limxac=c\lim_{x\to a} c = c and limxax=a\lim_{x\to a} x = a.

We show limxaxk=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 limxaxk+1=aka=ak+1\lim_{x\to a} x^{k+1} = a^k \cdot a = a^{k+1}. Hence the statement holds for every kNk \in \mathbb{N}.

Next, part (2) of Theorem 4.2 gives limxackxk=ckak\lim_{x\to a} c_k x^k = c_k a^k, and applying part (1) nn times gives limxap(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 q0q \ne 0 and limxap(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.3Continuity of a composition

Let A,BRA, B \subseteq \mathbb{R}, let f:ARf : A \to \mathbb{R} satisfy f(A)Bf(A) \subseteq B, and let g:BRg : B \to \mathbb{R}. If ff is continuous at aAa \in A and gg is continuous at b=f(a)Bb = f(a) \in B, then the composition gf:ARg \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

yB, yb<η    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

xA, xa<δ    f(x)f(a)=f(x)b<ηx \in A,\ |x - a| < \delta \implies |f(x) - f(a)| = |f(x) - b| < \eta

Now let xAx \in A with xa<δ|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 gfg \circ f is continuous at aa.

Remark 5.4The limit version of composition fails

It is tempting to restate Theorem 5.3 as “if limxaf(x)=b\lim_{x\to a} f(x) = b and limybg(y)=c\lim_{y\to b} g(y) = c, then limxag(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 xRx \in \mathbb{R}, and let

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

Since ff is constant, limx0f(x)=0\lim_{x\to0} f(x) = 0. Also g(y)=1g(y)=1 for every yy with 0<y0<δ0 < |y-0| < \delta, so limy0g(y)=1\lim_{y\to0} g(y) = 1. But g(f(x))=g(0)=0g(f(x)) = g(0) = 0 for every xx, whence limx0g(f(x))=01\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.5Dirichlet's function is discontinuous at every point

For the Dirichlet function DD defined in §1, the limit limxaD(x)\lim_{x\to a} D(x) fails to exist for every aRa \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 nNn \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 aRa \in \mathbb{R} and suppose some LRL \in \mathbb{R} satisfies limxaD(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<xa<δ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<pa<δ0 < |p - a| < \delta and 0<qa<δ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+LD(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 limxaD(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.6Thomae's function: continuous exactly at the irrationals

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

t(x)={1q(x=pq, pZ, qN, gcd(p,q)=1)0(xQ)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: limxat(x)=0\lim_{x \to a} t(x) = 0 for every aRa \in \mathbb{R}.

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

S={x(a1, a+1):x=pq, pZ, qN, gcd(p,q)=1, qN}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(a1,a+1)p/q \in (a-1,a+1) satisfies q(a1)<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 m1m-1; but both lie in an open interval of length 2q2q, so that difference is smaller than 2q2q, giving m1<2qm - 1 < 2q, that is, m2q2Nm \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, minsS{a}sa)\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 sas \ne a, that is, sa>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<xa<δ0 < |x - a| < \delta. Since δ1\delta \le 1 we have x(a1,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 xax \ne a and xa<δ|x-a| < \delta, so by the choice of δ\delta we have xS{a}x \notin S \setminus \{a\} and hence xSx \notin S. But x(a1,a+1)x \in (a-1,a+1), so by the definition of SS it cannot be that qNq \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 limxat(x)=0\lim_{x\to a} t(x) = 0, proving the claim.

Consequence. If aa is irrational, then t(a)=0=limxat(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>00=limxat(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.1Uniform continuity

Let ARA \subseteq \mathbb{R} and f:ARf : A \to \mathbb{R}. If

ε>0, δ>0, xA, yA,xy<δ    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ε aA δ xA\forall \varepsilon\ \forall a \in A\ \exists \delta\ \forall x \in Aε\varepsilon and aa
Uniformly continuous on AAε δ aA xA\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.2A continuous function that is not uniformly continuous

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

Continuity. The functions x1x \mapsto 1 and xxx \mapsto x are polynomials, so by Corollary 5.2 the function f=1/xf = 1/x is continuous at every point with x0x \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,yAx, y \in A with xy<δ|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 nNn \in \mathbb{N} with 1n<δ\dfrac1n < \delta, and put

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

Since n1n \ge 1 we have x,y(0,1]x, y \in (0,1]. Then

xy=12n1n=12n<1n<δ,f(x)f(y)=2nn=n1=ε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.3On 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 limx3(5x2)=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<x3<δ0 < |x - 3| < \delta,

(5x2)13=5x15=5x3<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 limx3(5x2)=13\lim_{x\to3}(5x-2) = 13.

Exercise 7.2Standard

Prove limx21x=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 x0x \ne 0,

1x12=2x2x=x22x\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 x2<1|x-2|<1. Then 1<x<31 < x < 3, so x=x>1|x| = x > 1 and hence 12x<12\dfrac{1}{2|x|} < \dfrac12, giving

1x12<x22\left|\frac1x - \frac12\right| < \frac{|x-2|}{2}

For this to be less than ε\varepsilon it suffices that x2<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<x2<δ0 < |x-2| < \delta. From x2<1|x-2|<1 we get 1<x<31 < x < 3, in particular x0x \ne 0, so 1/x1/x is defined, and the estimate above gives

1x12=x22x<x22<2ε2=ε\left|\frac1x - \frac12\right| = \frac{|x-2|}{2|x|} < \frac{|x-2|}{2} < \frac{2\varepsilon}{2} = \varepsilon

Hence limx21x=12\lim_{x\to2} \dfrac1x = \dfrac12.

Exercise 7.3Standard

Show that the function s(x)=sin1xs(x) = \sin\dfrac1x on A=R{0}A = \mathbb{R}\setminus\{0\} has no limit as x0x \to 0.

Solution

We use Theorem 4.5. Suppose some LRL \in \mathbb{R} satisfies limx0s(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 nNn \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 xn0x_n \to 0 and yn0y_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 limx0sin1x\lim_{x\to0}\sin\dfrac1x does not exist.

The difference from xsin1xx\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 aRa \in \mathbb{R} and let ε>0\varepsilon>0 be arbitrary. Put δ=min(1, ε1+2a)>0\delta = \min\left(1,\ \dfrac{\varepsilon}{1 + 2|a|}\right) > 0. Suppose xa<δ|x - a| < \delta. From xa<1|x-a| < 1 and the triangle inequality (§2),

x+a=(xa)+2axa+2a<1+2a|x + a| = |(x - a) + 2a| \le |x-a| + 2|a| < 1 + 2|a|

so that

x2a2=xax+a<ε1+2a(1+2a)=ε|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 xy=δ2<δ|x - y| = \dfrac{\delta}{2} < \delta, but

x2y2=xyx+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,yRx,y \in \mathbb{R} with xy<δ|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,ε/(2a+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.

Report an error in this article ・Operated by: Mugen Giken LLCPricingTermsLegal notice

© 2026 夢現技研合同会社 ・Feeding the text to an LLM is welcome. Code samples are MIT licensed.