Calculus I · Getting Arbitrarily Close

What continuity guarantees: two theorems you’ll use everywhere

Continuity does more than keep graphs tidy — it forces a continuous function to behave in two powerful ways, and the entire back half of this book leans on both. Neither is obvious, and both turn out to rest on the same deep fact about the real numbers.

The Intermediate Value Theorem: you can’t cross without touching

Intermediate Value Theorem (IVT). If ff is continuous on [a,b][a,b], then for every value NN between f(a)f(a) and f(b)f(b), there is at least one point cc in [a,b][a,b] with f(c)=Nf(c) = N.

The picture is exactly the “no lifting the pen” idea. To get from height f(a)f(a) to height f(b)f(b), a continuous graph must sweep through every height in between — it cannot teleport over a value. So every intermediate height NN is hit somewhere. (Figure 2.4: a continuous curve from f(a)f(a) to f(b)f(b), a horizontal line at height NN, and the crossing point cc where the theorem promises a solution.)

Figure 2.4
Figure 2.4

Its most useful form is root-finding. Suppose ff is continuous and changes sign on [a,b][a,b] — say f(a)<0f(a) < 0 and f(b)>0f(b) > 0. Then 00 is a value between f(a)f(a) and f(b)f(b), so the IVT guarantees a cc with f(c)=0f(c) = 0: a root. This lets you prove a solution exists without ever solving the equation. For instance, f(x)=x5+x−1f(x) = x^5 + x - 1 has f(0)=−1<0f(0) = -1 < 0 and f(1)=1>0f(1) = 1 > 0 — so it has a root between 00 and 11, even though no formula will ever produce it.

This also pays back a debt. In Chapter 1, and again in Chapter 5, we claimed the number ee exists because M(a)M(a) — the slope of axa^x as it crosses the axis — slides from below 11 (at a=2a = 2) to above 11 (at a=3a = 3), so it “must equal 11 somewhere in between.” That “must equal 11 somewhere” was an Intermediate Value Theorem argument all along, taken on faith at the time. Now it is a theorem, and the loan is repaid.

The IVT doesn’t say where the root is — but it suggests how to hunt it. Check the midpoint mm of [a,b][a,b]: the sign change must survive in one of the two halves [a,m][a,m] or [m,b][m,b], so keep that half and repeat, halving the interval around the root every step. This is the bisection method — slow, but utterly reliable: it cannot fail or fly off. In Chapter 9 it becomes the safety net beneath Newton’s method, which is fast but fragile; real root-finders combine the two.

The Extreme Value Theorem: a peak that is actually reached

Extreme Value Theorem (EVT). If ff is continuous on a closed interval [a,b][a,b], then ff attains a maximum and a minimum on [a,b][a,b] — there are points where it reaches its highest and lowest values.

Intuition: a continuous function on a closed interval cannot run off to infinity (that would require a jump), and it cannot merely approach its highest value without reaching it — there is no gap for the peak to slip into. So the high point and low point are genuinely attained, not just approached. (Figure 2.5: a continuous curve on [a,b][a,b] with its actual maximum and minimum points marked.)

Figure 2.5
Figure 2.5

Both words in the hypothesis are load-bearing, and watching them fail is the fastest way to understand them: - Drop closed: on the open interval (0,1)(0,1), f(x)=xf(x) = x has no maximum and no minimum — the values creep toward 00 and 11 but never reach them, because those endpoints aren’t included. - Drop continuity: on [0,1][0,1], define f(x)=xf(x) = x for x<1x < 1 and f(1)=0f(1) = 0. The values climb toward 11 but the function never takes the value 11 (it drops to 00 at the end), so there is no maximum — the discontinuity let the peak escape.

This is exactly the theorem Chapter 6 will open with: Rolle’s proof begins “by the Extreme Value Theorem, ff attains a maximum and a minimum,” and the Mean Value Theorem — the engine of the whole back half — follows from there. It is also what guarantees, in Chapter 8, that a global maximum on a closed interval exists to be found before you go looking for it.

The hidden foundation: no gaps

Why are these true? Both fail for the rational numbers and hold only for the reals — and the reason is the one you met in Chapter 1: the real number line has no gaps (completeness). On a number line full of holes, a continuous-looking function could slip between two values without ever equaling the one in the middle (no IVT), or climb toward a peak that simply isn’t there (no EVT). The no-gaps property is doing the real work — the very same property that guaranteed ee exists as the limit of a climbing sequence. The fully rigorous proofs belong to a more advanced course, but the engine driving them is completeness, which you already own.

◆ Layer 2 — Proving the IVT by bisection (and why completeness is the secret)

Here is the IVT’s proof for the root-finding case (f(a)<0<f(b)f(a) < 0 < f(b)), and it is the bisection algorithm made rigorous. Look at the midpoint m=a+b2m = \tfrac{a+b}{2}. If f(m)=0f(m) = 0 we’re done. Otherwise f(m)f(m) is either positive or negative, so the sign change persists across exactly one of [a,m][a,m], [m,b][m,b] — keep that half and call it [a1,b1][a_1, b_1]. Repeat forever, producing nested intervals [a1,b1]⊃[a2,b2]⊃⋯[a_1,b_1] \supset [a_2,b_2] \supset \cdots, each half the width of the last, each still straddling a sign change. The left endpoints a1≤a2≤⋯a_1 \le a_2 \le \cdots climb but stay bounded above (by bb), so by the Monotone Convergence principle of Chapter 1 they converge to a limit cc — and this is the only step that uses completeness; on the rationals the ana_n might pile up against a hole and there’d be no cc. The interval widths shrink to 00, so the right endpoints converge to the same cc. Since ff is continuous and each f(an)≤0f(a_n) \le 0 while each f(bn)≥0f(b_n) \ge 0, taking limits forces f(c)≤0f(c) \le 0 and f(c)≥0f(c) \ge 0 — so f(c)=0f(c) = 0. The root exists, and bisection is exactly the process that finds it. ◼\blacksquare (The EVT’s proof runs on the same completeness fuel but is more delicate — first showing a continuous function on [a,b][a,b] is bounded, then that it attains its bound — and is the natural next step in a real analysis course.)


◆ Layer 2 — What “arbitrarily close” really means: the ε\varepsilon–δ\delta definition

This is the grown-up version of Chapter 1’s ε\varepsilon–NN game, and it is the definition the entire subject rests on. Same two players, one change: the skeptic now challenges the output, and you answer by controlling the input.

Definition. lim⁡x→af(x)=L\displaystyle\lim_{x\to a}f(x)=L means: for every output tolerance ε>0\varepsilon>0, there exists an input closeness δ>0\delta>0 such that whenever 0<|x−a|<δ0<|x-a|<\delta, we have |f(x)−L|<ε|f(x)-L|<\varepsilon.

The skeptic says “keep the output within ε\varepsilon of LL.” You reply “then keep the input within δ\delta of aa, and I guarantee it.” If you can win for every ε\varepsilon the skeptic throws, the limit is LL.

Stare at the “0<|x−a|0 < |x-a|” on the left. That “0<0 <” says xx is allowed to be near aa but never equal to aa — we deliberately exclude the point itself. That single symbol is the loophole made formal: it is exactly why the function can have a hole at aa (as x2−1x−1\tfrac{x^2-1}{x-1} does) and still have a perfectly good limit there. The definition was built from the start to look only at the neighborhood, never the point.

And notice continuity in this language: ff is continuous at aa precisely when “input within δ\delta forces output within ε\varepsilon” — which is the robustness promise from the last section, now exact. Small input change, small output change, with the skeptic allowed to define “small.”

Figure 2.6
Figure 2.6

◆ Proof: lim⁡x→2(3x−1)=5\displaystyle\lim_{x\to 2}(3x-1)=5

Let ε>0\varepsilon>0 be given. We need a δ\delta so that 0<|x−2|<δ0<|x-2|<\delta forces |(3x−1)−5|<ε|(3x-1)-5|<\varepsilon. Work backward from the goal: |(3x−1)−5|=|3x−6|=3|x−2|.|(3x-1)-5| = |3x-6| = 3\,|x-2|. We want this below ε\varepsilon, i.e. |x−2|<ε3|x-2| < \tfrac{\varepsilon}{3}. So choose δ=ε3\delta=\tfrac{\varepsilon}{3}. Then whenever 0<|x−2|<δ0<|x-2|<\delta, we get |(3x−1)−5|=3|x−2|<3δ=ε|(3x-1)-5| = 3|x-2| < 3\delta = \varepsilon. Won for every ε\varepsilon. ◼\blacksquare

The pattern is the same three-move dance as the sequence proofs: let ε\varepsilon be given → solve the output inequality back into an input inequality → name δ\delta and verify. Linear functions give a clean δ=ε/(slope)\delta = \varepsilon/(\text{slope}); curved ones (problem 26) take one extra step.


◆ The squeeze theorem, and the limit that becomes a slope

The squeeze theorem from Chapter 1 lifts to functions word for word:

Squeeze Theorem. If g(x)≤f(x)≤h(x)g(x)\le f(x)\le h(x) for all xx near aa, and g(x)→Lg(x)\to L and h(x)→Lh(x)\to L, then f(x)→Lf(x)\to L.

Its headline application is the limit this whole chapter has been pointing at. (This box uses sin\sin, cos\cos, tan\tan, the unit circle, and angles in radians — the precalculus trigonometry you bring with you. We’ll prove the derivatives of sin\sin and cos\cos in Chapter 4, and this limit is exactly the tool that makes those proofs work.)

Claim: lim⁡x→0sin⁡xx=1.\displaystyle\lim_{x\to 0}\frac{\sin x}{x} = 1. Substituting gives 00\tfrac00, so there is real work to do.

Take 0<x<π20 < x < \tfrac\pi2 and compare three nested regions in the unit circle — a thin triangle inside a circular wedge inside a larger triangle. Their areas give the classic chain sin⁡x<x<tan⁡x.\sin x \;<\; x \;<\; \tan x. This is the step that requires radians: the wedge’s arc length equals xx only in radian measure. (In degrees, an ugly factor of π180\tfrac{\pi}{180} appears and the limit is no longer 11 — which is the honest reason mathematicians abandon degrees for calculus.) Divide all three by sin⁡x\sin x (positive), then flip the fractions: 1<xsin⁡x<1cos⁡x⇒cos⁡x<sin⁡xx<1.1 < \frac{x}{\sin x} < \frac{1}{\cos x}\qquad\Longrightarrow\qquad \cos x < \frac{\sin x}{x} < 1. As x→0x\to0, cos⁡x→1\cos x\to1, so sin⁡xx\tfrac{\sin x}{x} is pinned between something heading to 11 and 11 itself. Squeeze, and sin⁡xx→1\tfrac{\sin x}{x}\to1. (For x<0x<0 nothing changes — swapping x→−xx\to-x leaves both sin⁡xx\tfrac{\sin x}{x} and the bounds alone.) ◼\blacksquare

Why this is the most important limit in the book: notice it is a 00\tfrac00 limit, and its answer, 11, is the slope of the sine curve as it leaves the origin. In Chapter 3 we will define “slope of a curve” as exactly this kind of 00\tfrac00 limit — so you have, right now and ahead of schedule, computed that the graph of sin\sin sets off at a perfect 45∘45^\circ. (Figure 2.7: y=sin⁡xxy=\tfrac{\sin x}{x} near 00, a smooth curve sailing through height 11 with a single open hole exactly at x=0x=0.)

Figure 2.8
Figure 2.8
Figure 2.7
Figure 2.7

All 12 chapters of Calculus I · Foundations · All courses