Skip to content

§17 Continuous Functions

Most of calculus is the study of continuous functions. In this chapter we study continuous and uniformly continuous functions.

Why this matters

Continuity is what lets limits pass through a function: if xn→x0x_n \to x_0, then f(xn)→f(x0)f(x_n) \to f(x_0). The big theorems of the next section (maximum values, the Intermediate Value Theorem) and later of differentiation and integration all depend on it. As always, the vague idea (“the graph has no breaks”) has to be replaced by something precise enough to prove things with.

Recall the salient features of a function ff:

  1. the set on which ff is defined, called the domain of ff and written dom⁡(f)\operatorname{dom}(f);
  2. the assignment, rule or formula specifying the value f(x)f(x) of ff at each xx in dom⁡(f)\operatorname{dom}(f).

We consider functions with dom⁡(f)⊆R\operatorname{dom}(f) \subseteq \mathbb{R} that are real-valued, i.e. f(x)∈Rf(x) \in \mathbb{R} for all x∈dom⁡(f)x \in \operatorname{dom}(f). Strictly, ff is the function and f(x)f(x) its value at xx. A function is often given just by its values; then the domain is understood to be the natural domain, the largest subset of R\mathbb{R} on which the formula is a well-defined real-valued function. Thus “the function f(x)=1xf(x) = \frac1x” is shorthand for “the function ff given by f(x)=1xf(x) = \frac1x with natural domain {x∈R:x≠0}\{x \in \mathbb{R} : x \ne 0\}.” Similarly the natural domain of g(x)=4−x2g(x) = \sqrt{4 - x^2} is [−2,2][-2, 2], and that of csc⁡x=1sin⁡x\csc x = \frac1{\sin x} is the set of xx not of the form nπn\pi, n∈Zn \in \mathbb{Z}.

In keeping with the approach of this book, we define continuity in terms of sequences, and then show the definition is equivalent to the usual ε–δ definition.

17.1 Definition.

Let ff be a real-valued function whose domain is a subset of R\mathbb{R}. The function ff is continuous at x0x_0 in dom⁡(f)\operatorname{dom}(f) if, for every sequence (xn)(x_n) in dom⁡(f)\operatorname{dom}(f) converging to x0x_0, we have lim⁡nf(xn)=f(x0)\lim_n f(x_n) = f(x_0). If ff is continuous at each point of a set S⊆dom⁡(f)S \subseteq \operatorname{dom}(f), then ff is continuous on SS. The function ff is continuous if it is continuous on dom⁡(f)\operatorname{dom}(f).

Used in Exercise 17.10, Exercise 17.15, §18

Our definition says the values f(x)f(x) are close to f(x0)f(x_0) when xx is close to x0x_0. The next theorem says this another way: condition (1) is the ε–δ definition of continuity found in many calculus books.

17.2 Theorem.

Let ff be a real-valued function whose domain is a subset of R\mathbb{R}. Then ff is continuous at x0x_0 in dom⁡(f)\operatorname{dom}(f) if and only if

for each ε>0 there exists δ>0 such thatx∈dom⁡(f) and ∣x−x0∣<δ imply ∣f(x)−f(x0)∣<ε.(1)\begin{gathered} \text{for each } \varepsilon > 0 \text{ there exists } \delta > 0 \text{ such that} \\ x \in \operatorname{dom}(f) \text{ and } |x - x_0| < \delta \text{ imply } |f(x) - f(x_0)| < \varepsilon. \end{gathered} \tag{1}

Used in Exercise 17.9, Theorem 18.5

Proof

Suppose (1) holds, and let (xn)(x_n) be a sequence in dom⁡(f)\operatorname{dom}(f) with lim⁡xn=x0\lim x_n = x_0. Let ε>0\varepsilon > 0. By (1) there is δ>0\delta > 0 such that x∈dom⁡(f)x \in \operatorname{dom}(f) and ∣x−x0∣<δ|x - x_0| < \delta imply ∣f(x)−f(x0)∣<ε|f(x) - f(x_0)| < \varepsilon. Since lim⁡xn=x0\lim x_n = x_0, there is NN such that n>Nn > N implies ∣xn−x0∣<δ|x_n - x_0| < \delta. Hence n>Nn > N implies ∣f(xn)−f(x0)∣<ε|f(x_n) - f(x_0)| < \varepsilon, which proves lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0).

Now assume ff is continuous at x0x_0 but (1) fails. Then there is ε>0\varepsilon > 0 for which the implication

“x∈dom⁡(f) and ∣x−x0∣<δ imply ∣f(x)−f(x0)∣<ε”\text{“}x \in \operatorname{dom}(f) \text{ and } |x - x_0| < \delta \text{ imply } |f(x) - f(x_0)| < \varepsilon\text{”}

fails for every δ>0\delta > 0. In particular it fails for δ=1n\delta = \frac1n, for each n∈Nn \in \mathbb{N}: there is xn∈dom⁡(f)x_n \in \operatorname{dom}(f) with ∣xn−x0∣<1n|x_n - x_0| < \frac1n and yet ∣f(x0)−f(xn)∣≥ε|f(x_0) - f(x_n)| \ge \varepsilon. Thus lim⁡xn=x0\lim x_n = x_0, but lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0) is impossible. So ff is not continuous at x0x_0, contrary to assumption.

∎

Intuitiontwo readings of the same idea

Definition 17.1 says that ff commutes with limits: lim⁡f(xn)=f(lim⁡xn)\lim f(x_n) = f(\lim x_n) for every sequence in the domain converging to x0x_0. Condition (1) says that any output tolerance can be met by some input tolerance: to get f(x)f(x) within ε\varepsilon of f(x0)f(x_0), it is enough to take xx within δ\delta of x0x_0. In general δ\delta depends on both ε\varepsilon and the point x0x_0. When one δ\delta works for every point at once, the function is uniformly continuous (§19).

Let f(x)=0f(x) = 0 for x<0x < 0 and f(x)=1f(x) = 1 for x≥0x \ge 0. At x0=0x_0 = 0, choose the band half-width ε=12\varepsilon = \tfrac12 around f(0)=1f(0) = 1. Is there a δ>0\delta > 0 that keeps the graph inside the band for all ∣x∣<δ|x| < \delta?

Your opponent picks ε, which sets the blue band around f(x0)f(x_0). You must answer with a δ so that the whole graph above the orange strip stays inside the band. For a continuous function you can always win; for Example 3 or the step function, once ε is small, no δ does.

band f(x₀) ± εstrip x₀ ± δgraph inside the bandgraph escaping the band

✗ δ = 0.500 fails: x = 1.500 is within δ of x₀ but |f(x) − f(x₀)| ≈ 2.50 ≥ ε. The largest δ that works is about 0.0724. Continuous. The book’s δ is safe but not the largest possible.

The game above lets you adjust ε and δ freely. Here the roles are fixed, as in the definition. The page plays the opponent: it announces an ε, you commit to a δ, and then it searches the interval (x0−δ,x0+δ)(x_0-\delta, x_0+\delta) for a point where ∣f(x)−f(x0)∣≥ε|f(x)-f(x_0)| \ge \varepsilon. Survive all seven challenges and the function is behaving continuously at x0x_0; if the page keeps breaking you however small you make δ, you have found a discontinuity.

Try Thomae’s function at a rational and at an irrational point, and sin⁡(1/x)\sin(1/x) at 00 and at 0.20.2. Notice that surviving seven rounds is not a proof: a proof must give a δ for every ε.

band f(x₀) ± εstrip x₀ ± δinside the bandescaping the band

Round 1 of 7 · survived 0. The page challenges you with ε = 0.5. Choose a δ and press “Submit δ”: the page will search for a point x with |x − x₀| < δ and |f(x) − f(x₀)| ≥ ε.

As the next example shows, the sequential definition is sometimes easier to work with than the ε–δ property. But it is important to get comfortable with ε–δ, partly because uniform continuity (§19) is more closely related to it.

Example 1.

Let f(x)=2x2+1f(x) = 2x^2 + 1 for x∈Rx \in \mathbb{R}. Prove ff is continuous on R\mathbb{R} (a) using the definition, and (b) using the ε–δ property of Theorem 17.2.

Solution

(a) Suppose lim⁡xn=x0\lim x_n = x_0. Then

lim⁡f(xn)=lim⁡[2xn2+1]=2[lim⁡xn]2+1=2x02+1=f(x0),\lim f(x_n) = \lim [2x_n^2 + 1] = 2[\lim x_n]^2 + 1 = 2x_0^2 + 1 = f(x_0),

where the second equality uses the limit Theorems 9.2–9.4. Hence ff is continuous at each x0∈Rx_0 \in \mathbb{R}.

(b) Let x0∈Rx_0 \in \mathbb{R} and ε>0\varepsilon > 0. We want ∣f(x)−f(x0)∣<ε|f(x) - f(x_0)| < \varepsilon whenever ∣x−x0∣|x - x_0| is less than some δ\delta. Observe

∣f(x)−f(x0)∣=∣2x2+1−(2x02+1)∣=∣2x2−2x02∣=2∣x−x0∣⋅∣x+x0∣.|f(x) - f(x_0)| = |2x^2 + 1 - (2x_0^2 + 1)| = |2x^2 - 2x_0^2| = 2|x - x_0| \cdot |x + x_0|.

We need a bound for ∣x+x0∣|x + x_0| that does not depend on xx. If ∣x−x0∣<1|x - x_0| < 1, say, then ∣x∣<∣x0∣+1|x| < |x_0| + 1 and hence ∣x+x0∣≤∣x∣+∣x0∣<2∣x0∣+1|x + x_0| \le |x| + |x_0| < 2|x_0| + 1. Thus

∣f(x)−f(x0)∣≤2∣x−x0∣(2∣x0∣+1)provided ∣x−x0∣<1.|f(x) - f(x_0)| \le 2|x - x_0|(2|x_0| + 1) \qquad\text{provided } |x - x_0| < 1.

To make 2∣x−x0∣(2∣x0∣+1)<ε2|x - x_0|(2|x_0| + 1) < \varepsilon, it suffices to have ∣x−x0∣<ε2(2∣x0∣+1)|x - x_0| < \frac{\varepsilon}{2(2|x_0| + 1)} and also ∣x−x0∣<1|x - x_0| < 1. So put

δ=min⁡{1,ε2(2∣x0∣+1)}.\delta = \min\left\{1, \frac{\varepsilon}{2(2|x_0| + 1)}\right\}.

The work above shows ∣x−x0∣<δ|x - x_0| < \delta implies ∣f(x)−f(x0)∣<ε|f(x) - f(x_0)| < \varepsilon.

Intuitionthe “first restrict, then shrink” trick

Part (b) uses a technique that recurs constantly. The difference ∣f(x)−f(x0)∣|f(x) - f(x_0)| factors as ∣x−x0∣|x - x_0| times a factor ∣x+x0∣|x + x_0| that depends on xx. First restrict to ∣x−x0∣<1|x - x_0| < 1 to get a fixed bound on that factor, then shrink further so that the product is below ε\varepsilon. Taking δ\delta to be the min⁡\min of the two requirements enforces both. Notice that this δ\delta gets smaller as ∣x0∣|x_0| grows: the graph of 2x2+12x^2 + 1 gets steeper, so you must stay closer to x0x_0.

Solution (a) is much easier because the careful analysis was already done in proving the limit theorems of §9.

Example 2.

Let f(x)=x2sin⁡(1x)f(x) = x^2 \sin\left(\frac1x\right) for x≠0x \ne 0 and f(0)=0f(0) = 0. Its graph looks continuous; prove ff is continuous at 00.

Let ε>0\varepsilon > 0. Clearly ∣f(x)−f(0)∣=∣f(x)∣≤x2|f(x) - f(0)| = |f(x)| \le x^2 for all xx. We want this less than ε\varepsilon, so set δ=ε\delta = \sqrt\varepsilon. Then ∣x−0∣<δ|x - 0| < \delta implies x2<δ2=εx^2 < \delta^2 = \varepsilon, so

∣x−0∣<δimplies∣f(x)−f(0)∣<ε.|x - 0| < \delta \quad\text{implies}\quad |f(x) - f(0)| < \varepsilon.

Hence the ε–δ property holds and ff is continuous at 00. It would have been equally easy to show lim⁡xn=0\lim x_n = 0 implies lim⁡f(xn)=0\lim f(x_n) = 0. This ff is also continuous at every other point of R\mathbb{R}; see Example 4.

Example 3.

Let f(x)=1xsin⁡(1x2)f(x) = \frac1x \sin\left(\frac1{x^2}\right) for x≠0x \ne 0 and f(0)=0f(0) = 0. Show ff is discontinuous, i.e. not continuous, at 00.

It suffices to find a sequence (xn)(x_n) converging to 00 such that f(xn)f(x_n) does not converge to f(0)=0f(0) = 0. We arrange 1xnsin⁡(1xn2)=1xn\frac1{x_n} \sin\left(\frac1{x_n^2}\right) = \frac1{x_n}, i.e. sin⁡(1xn2)=1\sin\left(\frac1{x_n^2}\right) = 1: take 1xn2=2πn+π2\frac1{x_n^2} = 2\pi n + \frac\pi2, that is,

xn=12πn+π2.x_n = \frac1{\sqrt{2\pi n + \frac\pi2}}.

Then lim⁡xn=0\lim x_n = 0 while lim⁡f(xn)=lim⁡1xn=+∞\lim f(x_n) = \lim \frac1{x_n} = +\infty.

Common pitfallone sequence is not enough to prove continuity

To show ff is discontinuous at x0x_0, one bad sequence is enough, as in Example 3. To show ff is continuous, Definition 17.1 needs every sequence converging to x0x_0; checking a single convenient one proves nothing. For example, let g(x)=sin⁡πxg(x) = \sin\frac{\pi}{x} for x≠0x \ne 0 and g(0)=0g(0) = 0. Along xn=1nx_n = \frac1n we get g(xn)=sin⁡(nπ)=0→g(0)g(x_n) = \sin(n\pi) = 0 \to g(0). But along xn=24n+1x_n = \frac{2}{4n+1} we get g(xn)=sin⁡(2nπ+π2)=1g(x_n) = \sin\left(2n\pi + \frac\pi2\right) = 1 for every nn. So gg is not continuous at 00.

Common pitfallcontinuity only makes sense at points of the domain

f(x)=1xf(x) = \frac1x is continuous: it is continuous at every point of its domain, and 00 is not in its domain. The graph has a break, but Definition 17.1 says nothing about points where ff is not defined. Whether ff can be extended continuously to 00 is a different question, about limits of functions, taken up in §20.

For a real-valued function ff and k∈Rk \in \mathbb{R}, kfkf is the function (kf)(x)=kf(x)(kf)(x) = kf(x) for x∈dom⁡(f)x \in \operatorname{dom}(f), and ∣f∣|f| is the function ∣f∣(x)=∣f(x)∣|f|(x) = |f(x)|. For example, if f(x)=x−4f(x) = \sqrt x - 4 for x≥0x \ge 0, then (3f)(x)=3x−12(3f)(x) = 3\sqrt x - 12 and ∣f∣(x)=∣x−4∣|f|(x) = |\sqrt x - 4|, both for x≥0x \ge 0.

17.3 Theorem.

Let ff be a real-valued function with dom⁡(f)⊆R\operatorname{dom}(f) \subseteq \mathbb{R}. If ff is continuous at x0x_0 in dom⁡(f)\operatorname{dom}(f), then ∣f∣|f| and kfkf, k∈Rk \in \mathbb{R}, are continuous at x0x_0.

Used in Exercise 17.7, Exercise 17.8, Exercise 18.11

Proof

Let (xn)(x_n) be a sequence in dom⁡(f)\operatorname{dom}(f) converging to x0x_0. Since ff is continuous at x0x_0, lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0), and Theorem 9.2 gives lim⁡kf(xn)=kf(x0)\lim kf(x_n) = kf(x_0). So kfkf is continuous at x0x_0.

For ∣f∣|f| we need lim⁡∣f(xn)∣=∣f(x0)∣\lim |f(x_n)| = |f(x_0)|. This follows from

∣∣f(xn)∣−∣f(x0)∣∣≤∣f(xn)−f(x0)∣(1)\big||f(x_n)| - |f(x_0)|\big| \le |f(x_n) - f(x_0)| \tag{1}

(Exercise 3.5). In detail: given ε>0\varepsilon > 0 there is NN such that n>Nn > N implies ∣f(xn)−f(x0)∣<ε|f(x_n) - f(x_0)| < \varepsilon, so by (1) n>Nn > N implies ∣∣f(xn)∣−∣f(x0)∣∣<ε\big||f(x_n)| - |f(x_0)|\big| < \varepsilon.

∎

Real-valued functions ff and gg combine into new functions:

(f+g)(x)=f(x)+g(x),fg(x)=f(x)g(x),(f/g)(x)=f(x)g(x),g∘f(x)=g(f(x)),max⁡(f,g)(x)=max⁡{f(x),g(x)},min⁡(f,g)(x)=min⁡{f(x),g(x)}.\begin{aligned} (f + g)(x) &= f(x) + g(x), & fg(x) &= f(x)g(x), \\ (f/g)(x) &= \frac{f(x)}{g(x)}, & g \circ f(x) &= g(f(x)), \\ \max(f, g)(x) &= \max\{f(x), g(x)\}, & \min(f, g)(x) &= \min\{f(x), g(x)\}. \end{aligned}

The function g∘fg \circ f is the composition of gg and ff. Each new function is defined exactly where it makes sense: f+gf + g, fgfg, max⁡(f,g)\max(f, g) and min⁡(f,g)\min(f, g) have domain dom⁡(f)∩dom⁡(g)\operatorname{dom}(f) \cap \operatorname{dom}(g); f/gf/g has domain dom⁡(f)∩{x∈dom⁡(g):g(x)≠0}\operatorname{dom}(f) \cap \{x \in \operatorname{dom}(g) : g(x) \ne 0\}; and g∘fg \circ f has domain {x∈dom⁡(f):f(x)∈dom⁡(g)}\{x \in \operatorname{dom}(f) : f(x) \in \operatorname{dom}(g)\}. Note f+g=g+ff + g = g + f and fg=gffg = gf, but in general f∘g≠g∘ff \circ g \ne g \circ f.

These new functions are continuous if ff and gg are.

17.4 Theorem.

Let ff and gg be real-valued functions that are continuous at x0x_0 in R\mathbb{R}. Then

  1. f+gf + g is continuous at x0x_0;
  2. fgfg is continuous at x0x_0;
  3. f/gf/g is continuous at x0x_0 if g(x0)≠0g(x_0) \ne 0.

Used in Exercise 17.3, Exercise 17.5, Exercise 17.6, Exercise 17.12

Proof

We are given x0∈dom⁡(f)∩dom⁡(g)x_0 \in \operatorname{dom}(f) \cap \operatorname{dom}(g). Let (xn)(x_n) be a sequence in dom⁡(f)∩dom⁡(g)\operatorname{dom}(f) \cap \operatorname{dom}(g) converging to x0x_0. Then lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0) and lim⁡g(xn)=g(x0)\lim g(x_n) = g(x_0), and Theorem 9.3 gives

lim⁡(f+g)(xn)=lim⁡[f(xn)+g(xn)]=lim⁡f(xn)+lim⁡g(xn)=f(x0)+g(x0)=(f+g)(x0),\lim (f + g)(x_n) = \lim [f(x_n) + g(x_n)] = \lim f(x_n) + \lim g(x_n) = f(x_0) + g(x_0) = (f + g)(x_0),

so f+gf + g is continuous at x0x_0. Likewise Theorem 9.4 shows fgfg is continuous at x0x_0.

For f/gf/g, assume g(x0)≠0g(x_0) \ne 0 and let (xn)(x_n) be a sequence in dom⁡(f)∩{x∈dom⁡(g):g(x)≠0}\operatorname{dom}(f) \cap \{x \in \operatorname{dom}(g) : g(x) \ne 0\} converging to x0x_0. Theorem 9.6 gives

lim⁡(fg)(xn)=lim⁡f(xn)g(xn)=f(x0)g(x0)=(fg)(x0).\lim \left(\frac fg\right)(x_n) = \lim \frac{f(x_n)}{g(x_n)} = \frac{f(x_0)}{g(x_0)} = \left(\frac fg\right)(x_0).∎
17.5 Theorem.

If ff is continuous at x0x_0 and gg is continuous at f(x0)f(x_0), then the composite function g∘fg \circ f is continuous at x0x_0.

Used in Exercise 17.3, Exercise 17.7

Proof

We are given x0∈dom⁡(f)x_0 \in \operatorname{dom}(f) and f(x0)∈dom⁡(g)f(x_0) \in \operatorname{dom}(g). Let (xn)(x_n) be a sequence in {x∈dom⁡(f):f(x)∈dom⁡(g)}\{x \in \operatorname{dom}(f) : f(x) \in \operatorname{dom}(g)\} converging to x0x_0. Since ff is continuous at x0x_0, lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0). Since (f(xn))(f(x_n)) converges to f(x0)f(x_0) and gg is continuous at f(x0)f(x_0), also lim⁡g(f(xn))=g(f(x0))\lim g(f(x_n)) = g(f(x_0)); that is, lim⁡g∘f(xn)=g∘f(x0)\lim g \circ f(x_n) = g \circ f(x_0).

∎
Example 4.

Accept as known that polynomials and sin⁡x\sin x, cos⁡x\cos x, exe^x are continuous on R\mathbb{R}. Then 4ex4e^x and ∣sin⁡x∣|\sin x| are continuous on R\mathbb{R} by Theorem 17.3; sin⁡x+4ex+x3\sin x + 4e^x + x^3 by 17.4(i); and x4sin⁡xx^4 \sin x by 17.4(ii). By 17.4(iii), tan⁡x=sin⁡xcos⁡x\tan x = \frac{\sin x}{\cos x} is continuous wherever cos⁡x≠0\cos x \ne 0, i.e. at all xx not of the form nπ+π2n\pi + \frac\pi2, n∈Zn \in \mathbb{Z}. Theorem 17.5 says esin⁡xe^{\sin x} and cos⁡(ex)\cos(e^x) are continuous on R\mathbb{R}; for example cos⁡(ex)=g∘f(x)\cos(e^x) = g \circ f(x) with f(x)=exf(x) = e^x and g(x)=cos⁡xg(x) = \cos x. Several applications of Theorems 17.3–17.5 show x2sin⁡(1x)x^2 \sin\left(\frac1x\right) and 1xsin⁡(1x2)\frac1x \sin\left(\frac1{x^2}\right) are continuous at all nonzero xx.

Example 5.

Let ff and gg be continuous at x0x_0 in R\mathbb{R}. Prove max⁡(f,g)\max(f, g) is continuous at x0x_0.

We could use Definition 17.1 or the ε–δ condition, but instead we illustrate a useful technique: reduce to results already established. Observe

max⁡(f,g)=12(f+g)+12∣f−g∣,\max(f, g) = \tfrac12 (f + g) + \tfrac12 |f - g|,

since max⁡{a,b}=12(a+b)+12∣a−b∣\max\{a, b\} = \frac12(a + b) + \frac12|a - b| for all a,b∈Ra, b \in \mathbb{R} (check the cases a≥ba \ge b and a<ba < b). By 17.4(i), f+gf + g and f−gf - g are continuous at x0x_0, so ∣f−g∣|f - g| is by Theorem 17.3. Then 12(f+g)\frac12(f + g) and 12∣f−g∣\frac12|f - g| are continuous at x0x_0 by Theorem 17.3, and another application of 17.4(i) shows max⁡(f,g)\max(f, g) is continuous at x0x_0.

Reading alongside Abbott

Abbott’s Sections 4.2 and 4.3 make the opposite choice from Ross: continuity is defined by the ε–δ condition, and the sequence version is proved as a theorem. Theorem 17.2 is exactly why the choice does not matter. Abbott opens Chapter 4 (Section 4.1) with two striking examples: the function that is 11 on the rationals and 00 on the irrationals, which is continuous nowhere, and a function that is continuous at every irrational and discontinuous at every rational. Both appear here as Exercises 17.13 and 17.14, and they are well worth working through with the sequence definition.

An ε\varepsilon–δ\delta proof where the clever part, the choice of δ\delta, is left to you.

Fill in the gaps: x² is continuous at 3

This is the skeleton of the proof. In each gap choose the option that makes the argument work, then check.

  1. By Theorem 17.2 it is enough to show: for each ε>0\varepsilon > 0 there is δ>0\delta > 0 with ∣x−3∣<δ⇒∣x2−9∣<ε|x - 3| < \delta \Rightarrow |x^2 - 9| < \varepsilon. We have ∣x2−9∣=∣x−3∣ ∣x+3∣|x^2 - 9| = |x - 3|\,|x + 3|.
  2. If ∣x−3∣<1|x - 3| < 1, then 2<x<42 < x < 4, so ∣x+3∣<|x + 3| < .
  3. Given ε>0\varepsilon > 0, let δ=\delta = .
  4. If ∣x−3∣<δ|x - 3| < \delta, then ∣x2−9∣<7⋅ε7=ε|x^2 - 9| < 7 \cdot \frac\varepsilon7 = \varepsilon.

    Continuity is a statement about every sequence, which makes one tempting shortcut.

    Spot the error: a sine that oscillates

    One line of this argument is wrong. Press the button on the line you think is the mistake.

    1. Let g(x)=sin⁡πxg(x) = \sin\frac\pi x for x≠0x \ne 0 and g(0)=0g(0) = 0. We show gg is continuous at 00.
    2. Take xn=1nx_n = \frac1n, so xn→0x_n \to 0. Then g(xn)=sin⁡(nπ)=0g(x_n) = \sin(n\pi) = 0 for every nn.
    3. So g(xn)→0=g(0)g(x_n) \to 0 = g(0), and therefore gg is continuous at 00.

    Take the quiz (3 questions)

    Which is the ε–δ condition of Theorem 17.2 for continuity at x0x_0?

    Let f(x)=1f(x) = 1 for rational xx and f(x)=0f(x) = 0 for irrational xx. Where is ff continuous?

    Which result shows directly that h(x)=1+x2h(x) = \sqrt{1 + x^2} is continuous, given that 1+x21 + x^2 and x\sqrt{x} are?

    Exercise 17.1

    Let f(x)=4−xf(x) = \sqrt{4 - x} for x≤4x \le 4 and g(x)=x2g(x) = x^2 for all x∈Rx \in \mathbb{R}.

    1. Give the domains of f+gf + g, fgfg, f∘gf \circ g and g∘fg \circ f.
    2. Find f∘g(0)f \circ g(0), g∘f(0)g \circ f(0), f∘g(1)f \circ g(1), g∘f(1)g \circ f(1), f∘g(2)f \circ g(2) and g∘f(2)g \circ f(2).
    3. Are the functions f∘gf \circ g and g∘fg \circ f equal?
    4. Are f∘g(3)f \circ g(3) and g∘f(3)g \circ f(3) meaningful?
    Solution

    (a) (−∞,4](-\infty, 4], (−∞,4](-\infty, 4], [−2,2][-2, 2], (−∞,4](-\infty, 4]. (b) 2,4,3,3,0,22, 4, \sqrt3, 3, 0, 2. (c) No. (d) f∘g(3)f \circ g(3) is not; g∘f(3)=1g \circ f(3) = 1.

    Tags: Warm-upComputation

    Exercise 17.2

    Let f(x)=4f(x) = 4 for x≥0x \ge 0, f(x)=0f(x) = 0 for x<0x < 0, and g(x)=x2g(x) = x^2 for all xx. Thus dom⁡(f)=dom⁡(g)=R\operatorname{dom}(f) = \operatorname{dom}(g) = \mathbb{R}.

    1. Determine f+gf + g, fgfg, f∘gf \circ g, g∘fg \circ f. Be sure to specify their domains.
    2. Which of ff, gg, f+gf + g, fgfg, f∘gf \circ g, g∘fg \circ f is continuous?
    Solution

    All have domain R\mathbb{R}. f∘g≡4f \circ g \equiv 4; g∘f=16g \circ f = 16 for x≥0x \ge 0 and 00 for x<0x < 0. (b) gg and f∘gf \circ g are continuous; the others jump at 00.

    Tags: Warm-upComputation

    Exercise 17.3

    Accept on faith that the following are continuous on their domains: sin⁡x\sin x, cos⁡x\cos x, exe^x, 2x2^x, log⁡ex\log_e x for x>0x > 0, and xpx^p for x>0x > 0 (pp any real number). Use these facts and the theorems of this section to prove the following functions are also continuous.

    1. log⁡e(1+cos⁡4x)\log_e(1 + \cos^4 x)
    2. [sin⁡2x+cos⁡6x]π[\sin^2 x + \cos^6 x]^\pi
    3. 2x22^{x^2}
    4. 8x8^x
    5. tan⁡x\tan x for x≠x \ne odd multiple of π2\frac\pi2
    6. xsin⁡(1x)x \sin\left(\frac1x\right) for x≠0x \ne 0
    7. x2sin⁡(1x)x^2 \sin\left(\frac1x\right) for x≠0x \ne 0
    8. 1xsin⁡(1x2)\frac1x \sin\left(\frac1{x^2}\right) for x≠0x \ne 0
    Solution

    Throughout, the identity xx and constants are continuous, and sums, products, quotients (with nonzero denominator) and composites of continuous functions are continuous (Theorems 17.4 and 17.5).

    1. cos⁡4x\cos^4 x is a product of continuous functions, so 1+cos⁡4x1 + \cos^4 x is continuous, and it is at least 1>01 > 0. Composing with log⁡e\log_e, which is continuous on (0,∞)(0, \infty), gives a continuous function on all of R\mathbb{R}.
    2. sin⁡2x+cos⁡6x\sin^2 x + \cos^6 x is continuous. It is positive everywhere: it is nonnegative, and if it were 00 then both sin⁡x=0\sin x = 0 and cos⁡x=0\cos x = 0, contradicting sin⁡2x+cos⁡2x=1\sin^2 x + \cos^2 x = 1. Composing with t↦tπt \mapsto t^\pi, continuous on (0,∞)(0, \infty), finishes it.
    3. 2x22^{x^2} is the composite of x↦x2x \mapsto x^2 and t↦2tt \mapsto 2^t.
    4. 8x=(23)x=23x8^x = (2^3)^x = 2^{3x} is the composite of x↦3xx \mapsto 3x and t↦2tt \mapsto 2^t.
    5. tan⁡x=sin⁡x/cos⁡x\tan x = \sin x / \cos x is a quotient of continuous functions, and the denominator is nonzero off the odd multiples of π2\frac\pi2.
    6. On x≠0x \neq 0 the function 1/x1/x is continuous (a quotient), so sin⁡(1/x)\sin(1/x) is a composite of continuous functions, and multiplying by xx keeps it continuous.
    7. Same as (f), using the product of x2x^2 and sin⁡(1/x)\sin(1/x).
    8. 1/x21/x^2 is continuous for x≠0x \ne 0, so sin⁡(1/x2)\sin(1/x^2) is too, and the product with 1/x1/x is continuous on x≠0x \neq 0.

    Tags: Warm-upSequences & continuity

    Exercise 17.4

    Prove the function x\sqrt x is continuous on its domain [0,∞)[0, \infty).

    Hint

    Apply Example 5 in §8.

    Solution

    Let x0≥0x_0 \ge 0 and let (xn)(x_n) be a sequence in [0,∞)[0, \infty) with xn→x0x_n \to x_0. We show xn→x0\sqrt{x_n} \to \sqrt{x_0}.

    Case x0=0x_0 = 0. Given ε>0\varepsilon > 0, choose NN so that xn<ε2x_n < \varepsilon^2 for n>Nn > N. Then xn<ε\sqrt{x_n} < \varepsilon, so xn→0\sqrt{x_n} \to 0.

    Case x0>0x_0 > 0. Multiplying and dividing by the conjugate,

    ∣xn−x0∣=∣xn−x0∣xn+x0≤∣xn−x0∣x0→0.|\sqrt{x_n} - \sqrt{x_0}| = \frac{|x_n - x_0|}{\sqrt{x_n} + \sqrt{x_0}} \le \frac{|x_n - x_0|}{\sqrt{x_0}} \to 0 .

    Hence xn→x0\sqrt{x_n} \to \sqrt{x_0}, and x\sqrt{x} is continuous at every point of [0,∞)[0,\infty).

    Tags: Standardε–N / ε–δ

    Used in §18

    Exercise 17.5
    1. Prove that if m∈Nm \in \mathbb{N}, then f(x)=xmf(x) = x^m is continuous on R\mathbb{R}.
    2. Prove every polynomial p(x)=a0+a1x+⋯+anxnp(x) = a_0 + a_1 x + \cdots + a_n x^n is continuous on R\mathbb{R}.
    Hint

    Induction on mm with Theorem 17.4(ii); then 17.3 and 17.4(i).

    Solution
    1. Induct on mm. For m=1m = 1, f(x)=xf(x) = x is continuous: if xn→x0x_n \to x_0 then f(xn)=xn→x0f(x_n) = x_n \to x_0. If xmx^m is continuous, then xm+1=x⋅xmx^{m+1} = x \cdot x^m is a product of continuous functions, hence continuous by Theorem 17.4(ii).
    2. A constant function is continuous (every sequence of values is constant). So each term akxka_k x^k is a product of continuous functions, and pp is a finite sum of them. Induction on the number of terms with Theorem 17.4(i) shows pp is continuous on R\mathbb{R}.

    Tags: StandardSequences & continuityInduction

    Used in Exercise 17.6, Exercise 17.7, §18, Exercise 18.9

    Exercise 17.6

    A rational function is a function f=p/qf = p/q with p,qp, q polynomials; its domain is {x∈R:q(x)≠0}\{x \in \mathbb{R} : q(x) \ne 0\}. Prove every rational function is continuous.

    Hint
    Solution

    Let f=p/qf = p/q. By Exercise 17.5, pp and qq are continuous on R\mathbb{R}. At any x0x_0 with q(x0)≠0q(x_0) \neq 0, that is, any point of the domain of ff, Theorem 17.4(iii) says p/qp/q is continuous at x0x_0. So ff is continuous at every point of its domain.

    Tags: StandardSequences & continuity

    Exercise 17.7
    1. Observe that if k∈Rk \in \mathbb{R}, then g(x)=kxg(x) = kx is continuous by Exercise 17.5.
    2. Prove ∣x∣|x| is a continuous function on R\mathbb{R}.
    3. Use (a), (b) and Theorem 17.5 to give another proof of Theorem 17.3.
    Solution
    1. g(x)=kxg(x) = kx is the product of the constant function kk and the identity, both continuous by Exercise 17.5 (take m=1m = 1 and the polynomial kk).
    2. Let xn→x0x_n \to x_0. The reverse triangle inequality gives ∣∣xn∣−∣x0∣∣≤∣xn−x0∣→0\bigl||x_n| - |x_0|\bigr| \le |x_n - x_0| \to 0, so ∣xn∣→∣x0∣|x_n| \to |x_0|.
    3. Let ff be continuous at x0x_0. Then ∣f∣|f| is the composite of ff with the continuous function ∣⋅∣|\cdot| from (b), so it is continuous at x0x_0 by Theorem 17.5. Likewise kfkf is the composite of ff with x↦kxx \mapsto kx from (a).

    Tags: Warm-upSequences & continuity

    Exercise 17.8

    Let ff and gg be real-valued functions.

    1. Show min⁡(f,g)=12(f+g)−12∣f−g∣\min(f, g) = \frac12(f + g) - \frac12|f - g|.
    2. Show min⁡(f,g)=−max⁡(−f,−g)\min(f, g) = -\max(-f, -g).
    3. Use (a) or (b) to prove that if ff and gg are continuous at x0x_0, then min⁡(f,g)\min(f, g) is continuous at x0x_0.
    Solution
    1. If f≥gf \ge g at a point, then ∣f−g∣=f−g|f - g| = f - g there and 12(f+g)−12(f−g)=g=min⁡(f,g)\frac12(f+g) - \frac12(f-g) = g = \min(f,g). If f<gf < g, then ∣f−g∣=g−f|f-g| = g - f and 12(f+g)−12(g−f)=f=min⁡(f,g)\frac12(f+g) - \frac12(g-f) = f = \min(f,g).
    2. Negating reverses order: the larger of −f(x),−g(x)-f(x), -g(x) is the negative of the smaller of f(x),g(x)f(x), g(x). So max⁡(−f,−g)=−min⁡(f,g)\max(-f,-g) = -\min(f,g), which is the claim.
    3. If f,gf, g are continuous at x0x_0, then so are f+gf + g and f−gf - g, hence ∣f−g∣|f - g| (Theorem 17.3) and the scalar multiples 12(f+g)\frac12(f+g) and 12∣f−g∣\frac12|f-g|, and finally their difference. By (a) that difference is min⁡(f,g)\min(f,g).

    Tags: StandardSequences & continuity

    Exercise 17.9

    Prove each function is continuous at x0x_0 by verifying the ε–δ property of Theorem 17.2. (Try (a)–(c) in the widget above.)

    1. f(x)=x2f(x) = x^2, x0=2x_0 = 2;
    2. f(x)=xf(x) = \sqrt x, x0=0x_0 = 0;
    3. f(x)=xsin⁡(1x)f(x) = x \sin\left(\frac1x\right) for x≠0x \ne 0 and f(0)=0f(0) = 0, x0=0x_0 = 0;
    4. g(x)=x3g(x) = x^3, x0x_0 arbitrary.
    Hint

    (a) δ=min⁡{1,ε/5}\delta = \min\{1, \varepsilon/5\}. (b) δ=ε2\delta = \varepsilon^2. (c) δ=ε\delta = \varepsilon. (d) x3−x03=(x−x0)(x2+x0x+x02)x^3 - x_0^3 = (x - x_0)(x^2 + x_0 x + x_0^2); bound the second factor assuming ∣x−x0∣<1|x - x_0| < 1.

    Solution

    In each part, fix ε>0\varepsilon > 0 and show the stated δ\delta works.

    1. Take δ=min⁡{1,ε/5}\delta = \min\{1, \varepsilon/5\}. If ∣x−2∣<δ|x - 2| < \delta then ∣x∣<3|x| < 3, so ∣x+2∣<5|x + 2| < 5 and ∣x2−4∣=∣x−2∣∣x+2∣<5⋅ε5=ε|x^2 - 4| = |x-2||x+2| < 5 \cdot \tfrac\varepsilon5 = \varepsilon.
    2. Take δ=ε2\delta = \varepsilon^2. If x≥0x \ge 0 and ∣x−0∣<ε2|x - 0| < \varepsilon^2 then ∣x−0∣=x<ε|\sqrt x - 0| = \sqrt x < \varepsilon.
    3. Take δ=ε\delta = \varepsilon. If x≠0x \neq 0 then ∣f(x)−f(0)∣=∣x∣∣sin⁡(1/x)∣≤∣x∣<ε|f(x) - f(0)| = |x||\sin(1/x)| \le |x| < \varepsilon when ∣x∣<δ|x| < \delta; if x=0x = 0 the difference is 00.
    4. Put M=3x02+3∣x0∣+1M = 3x_0^2 + 3|x_0| + 1 and δ=min⁡{1,ε/M}\delta = \min\{1, \varepsilon/M\}. If ∣x−x0∣<δ|x - x_0| < \delta, then ∣x∣<∣x0∣+1|x| < |x_0| + 1, so ∣x2+x0x+x02∣≤(∣x0∣+1)2+∣x0∣(∣x0∣+1)+x02=M|x^2 + x_0 x + x_0^2| \le (|x_0|+1)^2 + |x_0|(|x_0|+1) + x_0^2 = M, and ∣x3−x03∣=∣x−x0∣ ∣x2+x0x+x02∣<εM⋅M=ε|x^3 - x_0^3| = |x - x_0|\,|x^2 + x_0x + x_0^2| < \tfrac\varepsilon M \cdot M = \varepsilon.

    Tags: Standardε–N / ε–δ

    Exercise 17.10

    Prove the following functions are discontinuous at the indicated points, using either Definition 17.1 or the ε–δ property.

    1. f(x)=1f(x) = 1 for x>0x > 0 and f(x)=0f(x) = 0 for x≤0x \le 0, x0=0x_0 = 0;
    2. g(x)=sin⁡(1x)g(x) = \sin\left(\frac1x\right) for x≠0x \ne 0 and g(0)=0g(0) = 0, x0=0x_0 = 0;
    3. sgn⁡(x)=−1\operatorname{sgn}(x) = -1 for x<0x < 0, sgn⁡(x)=1\operatorname{sgn}(x) = 1 for x>0x > 0, sgn⁡(0)=0\operatorname{sgn}(0) = 0, x0=0x_0 = 0. The function sgn⁡\operatorname{sgn} is the signum function; note sgn⁡(x)=x∣x∣\operatorname{sgn}(x) = \frac{x}{|x|} for x≠0x \ne 0.
    Hint

    (a), (c): use xn=1nx_n = \frac1n. (b): use xn=12πn+π/2x_n = \frac1{2\pi n + \pi/2}, where g(xn)=1g(x_n) = 1.

    Solution

    In each part we exhibit a sequence xn→0x_n \to 0 along which f(xn)↛f(0)f(x_n) \not\to f(0), which contradicts Definition 17.1.

    1. With xn=1nx_n = \frac1n we have f(xn)=1f(x_n) = 1 for all nn, so f(xn)→1≠0=f(0)f(x_n) \to 1 \ne 0 = f(0).
    2. With xn=12πn+π/2x_n = \frac{1}{2\pi n + \pi/2} we have xn→0x_n \to 0 and g(xn)=sin⁡(2πn+π2)=1g(x_n) = \sin(2\pi n + \tfrac\pi2) = 1, so g(xn)→1≠0=g(0)g(x_n) \to 1 \neq 0 = g(0).
    3. With xn=1nx_n = \frac1n we have sgn⁡(xn)=1→1≠0=sgn⁡(0)\operatorname{sgn}(x_n) = 1 \to 1 \neq 0 = \operatorname{sgn}(0).

    Tags: Standardε–N / ε–δExamples & counterexamples

    Used in Exercise 18.12

    Exercise 17.11

    Let ff be real-valued with dom⁡(f)⊆R\operatorname{dom}(f) \subseteq \mathbb{R}. Prove ff is continuous at x0x_0 if and only if, for every monotonic sequence (xn)(x_n) in dom⁡(f)\operatorname{dom}(f) converging to x0x_0, lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0).

    Hint

    Don’t forget Theorem 11.4.

    Solution

    (⇒\Rightarrow) If ff is continuous at x0x_0, then f(xn)→f(x0)f(x_n) \to f(x_0) for every sequence in the domain converging to x0x_0, in particular for monotonic ones.

    (⇐\Leftarrow) Suppose ff is not continuous at x0x_0. Then there is a sequence (xn)(x_n) in dom⁡(f)\operatorname{dom}(f) with xn→x0x_n \to x_0 but f(xn)↛f(x0)f(x_n) \not\to f(x_0). So for some ε>0\varepsilon > 0 there are infinitely many nn with ∣f(xn)−f(x0)∣≥ε|f(x_n) - f(x_0)| \ge \varepsilon; these form a subsequence (xnk)(x_{n_k}) that still converges to x0x_0. By Theorem 11.4 this subsequence has a monotonic subsequence (yj)(y_j). It converges to x0x_0 and satisfies ∣f(yj)−f(x0)∣≥ε|f(y_j) - f(x_0)| \ge \varepsilon for all jj, so f(yj)↛f(x0)f(y_j) \not\to f(x_0). That contradicts the hypothesis, so ff is continuous at x0x_0.

    Tags: ChallengeSequences & continuitySubsequences

    Exercise 17.12
    1. Let ff be a continuous real-valued function with domain (a,b)(a, b). Show that if f(r)=0f(r) = 0 for each rational rr in (a,b)(a, b), then f(x)=0f(x) = 0 for all x∈(a,b)x \in (a, b).
    2. Let ff and gg be continuous on (a,b)(a, b) with f(r)=g(r)f(r) = g(r) for each rational rr in (a,b)(a, b). Prove f(x)=g(x)f(x) = g(x) for all x∈(a,b)x \in (a, b).
    Hint

    (a) Every xx is a limit of rationals in (a,b)(a, b) (denseness, Theorem 4.7). (b) Apply (a) to f−gf - g.

    Solution
    1. Let x∈(a,b)x \in (a,b). For each nn choose a rational rnr_n with x<rn<min⁡{x+1n,b}x < r_n < \min\{x + \tfrac1n, b\}, which is possible since the rationals are dense. Then rn∈(a,b)r_n \in (a,b) and rn→xr_n \to x. By continuity, f(x)=lim⁡f(rn)=lim⁡0=0f(x) = \lim f(r_n) = \lim 0 = 0.
    2. The function f−gf - g is continuous on (a,b)(a,b) (Theorem 17.4) and vanishes at each rational point of (a,b)(a,b). By (a), f−g=0f - g = 0 everywhere, so f=gf = g.

    Tags: StandardSequences & continuity

    Exercise 17.13
    1. Let f(x)=1f(x) = 1 for rational xx and f(x)=0f(x) = 0 for irrational xx. Show ff is discontinuous at every xx in R\mathbb{R}.
    2. Let h(x)=xh(x) = x for rational xx and h(x)=0h(x) = 0 for irrational xx. Show hh is continuous at x=0x = 0 and at no other point.
    Solution

    Both parts use that every real number is a limit of a sequence of rationals and also of a sequence of irrationals (density).

    1. Fix x0x_0. Take rationals pn→x0p_n \to x_0 and irrationals qn→x0q_n \to x_0. Then f(pn)=1f(p_n) = 1 and f(qn)=0f(q_n) = 0 for all nn, so f(pn)→1f(p_n) \to 1 and f(qn)→0f(q_n) \to 0. These cannot both equal f(x0)f(x_0), so ff is discontinuous at x0x_0.
    2. At x0=0x_0 = 0: ∣h(x)∣≤∣x∣|h(x)| \le |x| for all xx, so if xn→0x_n \to 0 then ∣h(xn)∣≤∣xn∣→0|h(x_n)| \le |x_n| \to 0, and h(xn)→0=h(0)h(x_n) \to 0 = h(0). Now let x0≠0x_0 \neq 0. If x0x_0 is rational, take irrationals qn→x0q_n \to x_0: then h(qn)=0→0≠x0=h(x0)h(q_n) = 0 \to 0 \neq x_0 = h(x_0). If x0x_0 is irrational, take rationals pn→x0p_n \to x_0: then h(pn)=pn→x0≠0=h(x0)h(p_n) = p_n \to x_0 \neq 0 = h(x_0). Either way hh is discontinuous at x0x_0.

    Tags: StandardSequences & continuityExamples & counterexamples

    Exercise 17.14

    For each nonzero rational xx, write x=pqx = \frac pq with p,qp, q integers having no common factors and q>0q > 0, and define f(x)=1qf(x) = \frac1q. Also define f(0)=1f(0) = 1 and f(x)=0f(x) = 0 for all x∈R∖Qx \in \mathbb{R} \setminus \mathbb{Q}. Thus f(x)=1f(x) = 1 for each integer, f(12)=f(−12)=f(32)=⋯=12f\left(\frac12\right) = f\left(-\frac12\right) = f\left(\frac32\right) = \cdots = \frac12, etc. Show ff is continuous at each point of R∖Q\mathbb{R} \setminus \mathbb{Q} and discontinuous at each point of Q\mathbb{Q}.

    Hint

    At an irrational x0x_0, given ε\varepsilon, only finitely many rationals in (x0−1,x0+1)(x_0 - 1, x_0 + 1) have denominator q≤1/εq \le 1/\varepsilon; choose δ\delta to avoid them all.

    Solution

    Rational points. If x0∈Qx_0 \in \mathbb{Q} then f(x0)>0f(x_0) > 0 (it is 1/q1/q, or 11 at 00). Choose irrationals qn→x0q_n \to x_0; then f(qn)=0↛f(x0)f(q_n) = 0 \not\to f(x_0). So ff is discontinuous at x0x_0.

    Irrational points. Let x0x_0 be irrational, so f(x0)=0f(x_0) = 0, and let ε>0\varepsilon > 0. Fix an integer N>1/εN > 1/\varepsilon. Let FF be the set of rationals in (x0−1,x0+1)(x_0 - 1, x_0 + 1) that can be written with a denominator q≤Nq \le N. For each q≤Nq \le N there are only finitely many integers pp with p/q∈(x0−1,x0+1)p/q \in (x_0 - 1, x_0 + 1), so FF is finite. Since x0∉Fx_0 \notin F, the number δ=min⁡({1}∪{∣r−x0∣:r∈F})\delta = \min\bigl(\{1\} \cup \{|r - x_0| : r \in F\}\bigr) is positive. Now let ∣x−x0∣<δ|x - x_0| < \delta. If xx is irrational, f(x)=0f(x) = 0. If xx is rational, then x∈(x0−1,x0+1)x \in (x_0 - 1, x_0+1) but x∉Fx \notin F, so its reduced denominator satisfies q>Nq > N, and f(x)=1/q<1/N<εf(x) = 1/q < 1/N < \varepsilon. In all cases ∣f(x)−f(x0)∣<ε|f(x) - f(x_0)| < \varepsilon, so ff is continuous at x0x_0.

    Tags: ChallengeExamples & counterexamplesε–N / ε–δ

    Exercise 17.15

    Let ff be real-valued with dom⁡(f)⊆R\operatorname{dom}(f) \subseteq \mathbb{R}. Show ff is continuous at x0x_0 in dom⁡(f)\operatorname{dom}(f) if and only if, for every sequence (xn)(x_n) in dom⁡(f)∖{x0}\operatorname{dom}(f) \setminus \{x_0\} converging to x0x_0, we have lim⁡f(xn)=f(x0)\lim f(x_n) = f(x_0).

    Solution

    (⇒\Rightarrow) A sequence in dom⁡(f)∖{x0}\operatorname{dom}(f) \setminus \{x_0\} is in particular a sequence in dom⁡(f)\operatorname{dom}(f), so Definition 17.1 applies.

    (⇐\Leftarrow) Let (xn)(x_n) be any sequence in dom⁡(f)\operatorname{dom}(f) with xn→x0x_n \to x_0, and let ε>0\varepsilon > 0. Let A={n:xn≠x0}A = \{n : x_n \neq x_0\}. If AA is finite, then f(xn)=f(x0)f(x_n) = f(x_0) for all large nn and we are done. Otherwise (xn)n∈A(x_n)_{n \in A} is a subsequence in dom⁡(f)∖{x0}\operatorname{dom}(f) \setminus \{x_0\} converging to x0x_0, so by hypothesis there is NN with ∣f(xn)−f(x0)∣<ε|f(x_n) - f(x_0)| < \varepsilon for n∈An \in A, n>Nn > N. For n∉An \notin A we have f(xn)=f(x0)f(x_n) = f(x_0) exactly. Hence ∣f(xn)−f(x0)∣<ε|f(x_n) - f(x_0)| < \varepsilon for all n>Nn > N, and f(xn)→f(x0)f(x_n) \to f(x_0).

    Tags: StandardSequences & continuity

    Exercise 17.16

    The postage-stamp function PP is defined by P(x)=AP(x) = A for 0≤x<10 \le x < 1 and P(x)=A+BnP(x) = A + Bn for n≤x<n+1n \le x < n + 1. So PP takes the value AA on [0,1)[0, 1), A+BA + B on [1,2)[1, 2), A+2BA + 2B on [2,3)[2, 3), and so on: AA is the postage for the first ounce and BB for each additional ounce. Show PP is discontinuous at every positive integer. (Because postage rates tend to increase over time, AA and BB are actually functions.)

    Solution

    We assume B≠0B \neq 0 (if B=0B = 0 then P≡AP \equiv A is constant and, of course, continuous). Fix an integer n≥1n \ge 1. Then P(n)=A+BnP(n) = A + Bn. Let xk=n−1kx_k = n - \frac1k for k≥1k \ge 1; then xk→nx_k \to n and n−1≤xk<nn - 1 \le x_k < n, so P(xk)=A+B(n−1)P(x_k) = A + B(n-1). Therefore P(xk)→A+Bn−B≠A+Bn=P(n)P(x_k) \to A + Bn - B \neq A + Bn = P(n). So PP is discontinuous at nn.

    Tags: Warm-upComputation

    Keyboard shortcuts

    Single-key shortcuts
    KeyAction
    nNext section
    pPrevious section
    jNext exercise
    kPrevious exercise
    hShow or hide all hints
    sShow or hide all solutions
    /Search
    ?Show this list
    Ctrl K or ⌘ KSearch (built in)
    EscClose a dialog

    Shortcuts never fire while you type in a text field or hold Ctrl, Alt or ⌘. Screen reader users in browse mode can press the keys after switching to focus mode, or turn them off here.