Part IV · Calculus Chapter 25 of 60
Limits
Speed at an instant looks like zero divided by zero. For a century and a half mathematicians used it without being able to explain what it was. The explanation turned out to be a game against a stubborn opponent: let’s learn its rules.
Builds on: 24 · Conic sections
You will learn
- understand the ε–δ definition of a limit and prove simple limits from it
- compute limits by the rules: by cancelling, by dividing by the highest power, through sin x / x
- tell continuous functions from discontinuous ones and find a root of an equation by bisection
The last chapter ended with two questions that turn out on inspection to be one. We found the tangents to the ellipse and the parabola by a trick, through mirrors, but the graph of $y = x^3$ or a sine wave has no mirrors. And a planet, as the law of areas requires, flies faster near the Sun than far from it, but how fast is it flying now, at this very instant? Average speed is distance divided by time. In one instant there’s neither distance nor time, and speed “at an instant” looks like zero divided by zero.
This question is where calculus begins, the part of the course about how quantities change. Everything in it rests on one notion, the limit. For a century and a half mathematicians used limits without being able to say what they were, and got correct answers from arguments that didn’t stand up to criticism. A precise definition was finally found, and it’s built as a game against a stubborn opponent. In this chapter we’ll learn its rules and play a few rounds.
Ghosts of departed quantities
Drop a stone from a tall tower. Ignoring air resistance and rounding the acceleration due to gravity to $10$ m/s², in $t$ seconds the stone falls $s(t) = 5t^2$ metres: the familiar parabola from the chapter on quadratic equations. How fast is it falling exactly one second after it’s released?
There’s nothing to measure instantaneous speed with. But average speed is easy to compute. Take a short stretch of time, from $1$ to $1 + h$ seconds. In it the stone falls $s(1 + h) - s(1) = 5(1 + h)^2 - 5 = 10h + 5h^2$ metres, and the average speed over this stretch is
$$v(h) = \frac{10h + 5h^2}{h} = 10 + 5h.$$The shorter the stretch, the closer the average speed is to ten:
| Stretch of time $h$, s | Average speed, m/s |
|---|---|
| $1$ | $15$ |
| $0.1$ | $10.5$ |
| $0.01$ | $10.05$ |
| $0.001$ | $10.005$ |
The answer suggests itself: the speed after one second is $10$ m/s; just substitute $h = 0$ into $10 + 5h$. But you can’t substitute. The expression $10 + 5h$ came from dividing by $h$, and you can divide only while $h \ne 0$. At $h = 0$ the original fraction becomes $\frac00$ and means nothing: in zero time the stone falls zero metres.
That’s exactly how Isaac Newton and Gottfried Wilhelm Leibniz calculated when, in the second half of the seventeenth century, they independently created what we now call calculus. Leibniz published his rules first, in 1684, in the paper “A New Method for Maxima and Minima”. He called increments like our $h$ infinitely small. Newton, in the Mathematical Principles of Natural Philosophy (1687), spoke of “the ultimate ratios of evanescent quantities”: the ratio that quantities have not before they vanish and not after, but at the very moment they vanish. The methods worked: orbits, tides and the flight of projectiles were computed with them. But what the moment of vanishing was, nobody could properly explain.
In 1734 the Irish philosopher and bishop George Berkeley published a pamphlet, The Analyst, addressed “to an infidel mathematician” (usually taken to mean Edmond Halley). Berkeley struck exactly at our spot. First the increment is taken to be not zero, or else you couldn’t divide by it. Then it’s taken to be zero, and the term $5h$ is thrown away. One or the other: either $h$ is zero or it isn’t, and here it’s been both in a single argument. Then comes the famous passage:
And what are these Fluxions? The Velocities of evanescent Increments. And what are these same evanescent Increments? They are neither finite Quantities nor Quantities infinitely small, nor yet nothing. May we not call them the Ghosts of departed Quantities?
Berkeley didn’t dispute Newton’s answers; he disputed that they had been proved, and he was right. The answer to his objection was found only in the nineteenth century, and it’s unexpected: $h$ is never set equal to zero. Instead one proves that $10 + 5h$ differs from $10$ by as little as you like, provided $h$ is small enough. And the words “as little as you like” and “small enough” are turned into moves in a game.
There are two players. The first is us: we claim a quantity tends to some number. The second is an opponent who takes nothing on trust. Let’s call them the Skeptic, in Berkeley’s honour. Each round goes the same way: the Skeptic says what accuracy they demand, and we show where that accuracy is reached. Beating the Skeptic whatever their move is exactly what it means to prove.
The rules of the game
Let’s play the first rounds on sequences from chapter 13: there time is measured by the indices $n = 1, 2, 3, \dots$ Take the sequence $a_n = \frac{n + 1}{n}$, whose terms are $2$, $1.5$, $1.333\ldots$, $1.25$, $1.2$, …
We claim it tends to one. The Skeptic: “How close? Here’s a tolerance, $\varepsilon = 0.01$. Show me from which point on the terms differ from one by less than that.” We compute: $a_n - 1 = \frac1n$, and $\frac1n < 0.01$ for $n > 100$. We answer: “Every term after the hundredth.” The first hundred terms don’t get into the band, but they don’t have to: the game is about what happens further on. The Skeptic narrows the tolerance to $0.0001$, and we answer “after the ten-thousandth”. For any tolerance $\varepsilon$ we have an answer ready: an index $N$ no smaller than $\frac1\varepsilon$. The Skeptic has lost, and in all rounds at once.
In 1821 Augustin-Louis Cauchy, in the Course of Analysis written for the École Polytechnique, defined the limit in words: if the values of a variable approach a fixed number without bound, so that they end up differing from it by as little as you like, that number is called the limit. The game turns each word of this sentence into a move.
A number $a$ is called the limit of the sequence $a_n$ if for every number $\varepsilon > 0$ there is an index $N$ such that for all $n > N$, $|a_n - a| < \varepsilon$. We write $\lim\limits_{n \to \infty} a_n = a$, or briefly $a_n \to a$, and read it “$a_n$ tends to $a$”.
Behind the answer “$N$ no smaller than $\frac1\varepsilon$” hides a property of numbers that seems obvious: whatever positive number is named, there’s a natural number larger than it. Take the whole-number part of its decimal and add one. This property is called the Archimedean property: for Archimedes it was an axiom about lengths, that any segment, however short, laid off enough times, exceeds any given one. From it follows the simplest and most needed limit: $\frac1n \to 0$. Indeed, if $N \ge \frac1\varepsilon$, then for $n > N$ we get $\frac1n < \frac1N \le \varepsilon$.
The sequence $a_n = 3 - \frac2n$ tends to $3$. The Skeptic names $\varepsilon = 0.01$. What is the smallest $N$ you can answer with?
$|a_n - 3| = \frac2n$, and $\frac2n < 0.01$ exactly when $n > 200$. So $N = 200$: after the two-hundredth term all the rest are in the band, and the two-hundredth itself, $a_{200} = 2.99$, lies exactly on its edge and isn’t in the band, but it isn’t required to be. Any $N$ greater than two hundred will do too.
Not every sequence can be brought to a number. Take $(-1)^n$: $-1, 1, -1, 1, \dots$ Whoever declares its limit to be some $a$, the Skeptic answers with the tolerance $\varepsilon = 1$. The band $(a - 1, a + 1)$ has width $2$, and two numbers a distance $2$ apart could fit in it only at its very edges, and the edges aren’t in the band. The numbers $-1$ and $1$ occur in the tail after any $N$, and at least one of them will be outside the band. Here the Skeptic wins.
A sequence that has a limit is called convergent, and a sequence without a limit divergent. A sequence converging to zero is called infinitesimal.
And there’s the answer to Berkeley’s ghosts. There’s no number among the reals that’s smaller than every positive number and yet not zero: if $x > 0$, then $\frac x2$ is a smaller positive number. An infinitesimal is a process: a quantity that in time becomes smaller than any tolerance. The sequence $\frac1n$ is infinitesimal, and each of its terms is a perfectly ordinary positive number.
Before playing on, the Skeptic is entitled to ask: couldn’t one sequence tend to two different numbers at once? Then the notation $\lim a_n = a$ would mean nothing.
A sequence can’t have two different limits.
The trick is to choose a tolerance at which the bands around the two “limits” don’t overlap.
Let’s test intuition on a sequence where it often lets you down.
What does $\left(1 + \frac1n\right)^n$ tend to?
The terms are: $2$, $2.25$, $2.370$; at $n = 10$ already $2.5937$; at $n = 100$, $2.7048$; at $n = 1000$, $2.7169$. They grow, but ever more slowly, and close in on the number $e = 2.71828\ldots$, one of the main numbers of mathematics. Why the limit exists, and where else this number hides (in a bank, in radioactive decay, in the hat-check problem), is told in the chapter on the number $e$.
An old debt: Fibonacci’s rabbits
In chapter 13 we saw that the ratios of neighbouring Fibonacci numbers, $1, 2, 1.5, 1.667, 1.6, 1.625, \dots$, oscillate around the golden ratio $\varphi = \frac{1 + \sqrt5}{2} \approx 1.618$. There we managed to prove half of it: if the ratios have a limit, it’s $\varphi$. That the limit exists was left owing. Now we have the language to say it precisely, and the game to win it.
Let $F_1 = F_2 = 1$, $F_{n+1} = F_n + F_{n-1}$ and $r_n = \frac{F_{n+1}}{F_n}$. Then $|r_n - \varphi| \le \frac{1}{\varphi^n}$ for every $n$, and so $r_n \to \varphi$.
The idea: each step of the recurrence shrinks the distance to $\varphi$ by at least a factor of $\varphi$.
Divide $F_{n+1} = F_n + F_{n-1}$ by $F_n$: we get $r_n = 1 + \frac{1}{r_{n-1}}$ for $n \ge 2$. All $r_n \ge 1$, because $F_{n+1} = F_n + F_{n-1} \ge F_n$. The number $\varphi$ is the positive root of $x^2 = x + 1$ (chapter 10); dividing this equation by $x$ gives $\varphi = 1 + \frac1\varphi$. Subtract one equation from the other:
$$r_n - \varphi = \frac{1}{r_{n-1}} - \frac{1}{\varphi} = \frac{\varphi - r_{n-1}}{r_{n-1}\,\varphi}.$$The denominator $r_{n-1}\varphi$ is at least $\varphi$, since $r_{n-1} \ge 1$. So $|r_n - \varphi| \le \frac{|r_{n-1} - \varphi|}{\varphi}$: at each step the distance to $\varphi$ shrinks by a factor of at least $\varphi \approx 1.618$. We started from $|r_1 - \varphi| = \varphi - 1 = \frac1\varphi$ (the last equality again from $\varphi = 1 + \frac1\varphi$). After $n - 1$ steps we get $|r_n - \varphi| \le \frac1\varphi \cdot \frac{1}{\varphi^{n-1}} = \frac{1}{\varphi^n}$.
It remains to win the round. By Bernoulli’s inequality from chapter 13, $\varphi^n = (1 + 0.618\ldots)^n \ge 1 + 0.618\ldots \cdot n > \frac n2$, so $|r_n - \varphi| < \frac2n$. The Skeptic names $\varepsilon$; we answer with any $N \ge \frac2\varepsilon$: for $n > N$ we’ll have $|r_n - \varphi| < \frac2n < \frac2N \le \varepsilon$.
The bound is generous: in fact $r_{10} = \frac{89}{55} = 1.61818\ldots$ differs from $\varphi$ by only $0.00015$, while the bound promises less than $0.0082$. But generosity doesn’t prevent a win: the game doesn’t require the best index, just some index.
Along the way let’s pay back the debt of chapter 12. There it was said that the powers $2^{1.4} \approx 2.639$, $2^{1.41} \approx 2.657$, $2^{1.414} \approx 2.6647$ “close in” on the number $2^{\sqrt2} = 2.66514\ldots$ Now this can be said precisely: for any $\varepsilon$ there’s an index after which all the powers with exponents from the decimal approximations of $\sqrt2$ differ from $2^{\sqrt2}$ by less than $\varepsilon$. Why such a sequence has a limit at all (it increases and doesn’t exceed $2^{1.5}$) is proved in chapter 53.
A game on a graph
Back to the stone. There $h$ approaches zero smoothly, without any indices, and the rules have to change a little. The Skeptic still names a tolerance $\varepsilon$: a band around the number $10$ on the speed axis. But we have to answer with a window around zero on the time axis: a number $\delta > 0$ such that for any $h$ in the window $(-\delta, \delta)$, except zero itself, the average speed lies in the band.
The deviation of the average speed from ten is $|10 + 5h - 10| = 5|h|$. It’s less than $\varepsilon$ when $|h| < \frac\varepsilon5$, and we answer $\delta = \frac\varepsilon5$. The Skeptic demands an accuracy of $0.01$ m/s: we take stretches of time shorter than $0.002$ s. They demand $0.000001$: shorter than $0.0000002$ s. For every move there’s an answer, and the stone’s speed one second after release is $10$ m/s. Nowhere did we set $h$ equal to zero: zero is punched out of the window. No ghosts were needed.
A number $L$ is called the limit of the function $f$ at the point $a$ if for every $\varepsilon > 0$ there is a $\delta > 0$ such that for all $x$ with $0 < |x - a| < \delta$, $|f(x) - L| < \varepsilon$. We write $\lim\limits_{x \to a} f(x) = L$. The function must be defined at points near $a$, but not necessarily at $a$ itself.
This notation, with the symbols $\varepsilon$ and $\delta$ and the strict order “for every… there is…”, was brought into use by Karl Weierstrass in his Berlin lectures of the 1860s; it reached print largely through his students. Since then every university course in analysis has started with it.
Sometimes the neighbours on the left and on the right behave differently. The function $\operatorname{sgn} x$ (“the sign of $x$”) equals $-1$ for negative $x$, $1$ for positive $x$ and $0$ at zero. Whatever $L$ we name, the Skeptic says “$\varepsilon = 1$”: every window around zero contains both values $-1$ and values $1$, and they won’t fit together in one band of width $2$, exactly as with $(-1)^n$. There’s no limit at zero. But if you look only at the neighbours on the right, they all equal one.
A one-sided limit is a limit in which $x$ approaches $a$ from one side only. In the definition the window $0 < |x - a| < \delta$ is replaced by its right half $a < x < a + \delta$, giving the limit from the right, $\lim\limits_{x \to a^+} f(x)$, or by its left half $a - \delta < x < a$, giving the limit from the left, $\lim\limits_{x \to a^-} f(x)$.
The limit of a function at a point $a$ exists and equals $L$ if and only if both one-sided limits exist and equal $L$.
If the limit is $L$, the window that wins the round for the two-sided limit wins it for each of its halves too: both one-sided limits are $L$. Conversely, let both one-sided limits be $L$ and let the Skeptic name $\varepsilon$. For the limit from the right there’s a window $\delta_1$, for the limit from the left a window $\delta_2$. Take the smaller, $\delta = \min(\delta_1,\ \delta_2)$. Any $x$ with $0 < |x - a| < \delta$ lies either to the right of $a$, closer than $\delta_1$, or to the left, closer than $\delta_2$, and in both cases $|f(x) - L| < \varepsilon$.
For the sign function $\lim\limits_{x \to 0^+} \operatorname{sgn} x = 1$, and $\lim\limits_{x \to 0^-} \operatorname{sgn} x = -1$: the one-sided limits exist but differ, so there’s no two-sided one.
The game can be played around things other than numbers. The notation $\lim\limits_{x \to 0^+} \frac1x = +\infty$ means a round in which the Skeptic names a height $M$, and we must find a window to the right of zero where the function is above $M$: $\delta = \frac1M$ will do. And the notation $\lim\limits_{x \to +\infty} \frac1x = 0$ means a round where instead of a window around a point we name a ray $x > R$ on which $\frac1x$ lands in the band $(-\varepsilon, \varepsilon)$: $R = \frac1\varepsilon$ will do. The form of the moves changes; the meaning of the game stays the same: to every challenge from the Skeptic we have an answer.
Find $\lim\limits_{x \to 3} \dfrac{x^2 - 9}{x - 3}$.
The fraction isn’t defined at $3$, but a limit is about the neighbours. For $x \ne 3$ the numerator factors: $x^2 - 9 = (x - 3)(x + 3)$, and the fraction equals $x + 3$. Values near three are close to $6$: for a tolerance $\varepsilon$, $\delta = \varepsilon$ will do, since $|(x + 3) - 6| = |x - 3|$. Answer: $6$.
Winning strategies
Playing every round from scratch is tiring. Chess players remember openings, and we’ll have strategies that win whole classes of rounds at once. The main one assembles complicated limits from simple ones.
Let $\lim\limits_{x \to a} f(x) = A$ and $\lim\limits_{x \to a} g(x) = B$. Then $\lim\limits_{x \to a} \bigl(f(x) + g(x)\bigr) = A + B$ and $\lim\limits_{x \to a} f(x)\,g(x) = AB$, and if $B \ne 0$, also $\lim\limits_{x \to a} \frac{f(x)}{g(x)} = \frac AB$. For sequences and for $x \to \pm\infty$ it’s the same.
The idea: split the Skeptic’s tolerance in half and give one half to $f$, the other to $g$.
Product. The trick is to write the deviation so that every term has a factor that can be made small: $fg - AB = f\,(g - B) + B\,(f - A)$. First play with $f$ at tolerance $1$: near $a$, $|f(x) - A| < 1$, so $|f(x)| < |A| + 1$: the values of $f$ don’t run away. Now the Skeptic names $\varepsilon$. Choose a window in which at once $|f - A| < 1$, $|g - B| < \frac{\varepsilon}{2(|A| + 1)}$ and $|f - A| < \frac{\varepsilon}{2(|B| + 1)}$: the smallest of the three windows given by the three rounds with $f$ and $g$. In it
$$|fg - AB| \le |f|\,|g - B| + |B|\,|f - A| < (|A| + 1)\cdot\frac{\varepsilon}{2(|A| + 1)} + |B| \cdot \frac{\varepsilon}{2(|B| + 1)} < \frac\varepsilon2 + \frac\varepsilon2 = \varepsilon.$$Quotient. It’s enough to prove that $\frac1g \to \frac1B$: then the product rule does the rest, since $\frac fg = f \cdot \frac1g$. Play with $g$ at tolerance $\frac{|B|}2$: near $a$ the values of $g$ differ from $B$ by less than half of $|B|$, so $|g(x)| > \frac{|B|}2$; in particular $g(x) \ne 0$ and we can divide by it. Then
$$\left|\frac1g - \frac1B\right| = \frac{|B - g|}{|g|\,|B|} < \frac{2\,|g - B|}{B^2},$$and this is less than $\varepsilon$ as soon as $|g - B| < \frac{\varepsilon B^2}{2}$. The smaller of the two windows wins the round.
From this theorem and two of the simplest limits, $\lim\limits_{x \to a} c = c$ for a constant and $\lim\limits_{x \to a} x = a$ (for a tolerance $\varepsilon$, $\delta = \varepsilon$ will do), a great deal can be assembled. A polynomial is built from $x$’s and numbers by additions and multiplications, so its limit at any point equals its value: $\lim\limits_{x \to 2} (x^3 - 4x + 1) = 8 - 8 + 1 = 1$. The same goes for a fraction of polynomials, if the denominator isn’t zero at the point.
When it is zero, the quotient rule is silent: the expression $\frac00$ says nothing about the limit; it only signals that another strategy is needed. The first is to cancel a common factor, as with $\frac{x^2 - 9}{x - 3}$. Cancelling is legitimate because the limit doesn’t look at the point itself, and near it the factor isn’t zero. The second strategy, at infinity, is to divide the numerator and denominator by the highest power:
$$\frac{2x^2 + 1}{5x^2 - x} = \frac{2 + \frac{1}{x^2}}{5 - \frac1x} \to \frac{2 + 0}{5 - 0} = \frac25 \qquad (x \to \infty).$$Find $\lim\limits_{x \to \infty} \dfrac{(x + 1)(2x - 3)}{4x^2 + x}$.
Expand the brackets: the numerator is $2x^2 - x - 3$. Divide the numerator and denominator by $x^2$: $\frac{2 - \frac1x - \frac3{x^2}}{4 + \frac1x} \to \frac24 = \frac12$. The leading terms decide everything: at infinity the fraction behaves like $\frac{2x^2}{4x^2}$.
If you come across a limit that won’t give in, the limit solver will take it apart step by step and explain which strategy worked.
Under the microscope: the sine and the arc
The most famous limit of school calculus doesn’t give in to our strategies:
$$\lim_{x \to 0} \frac{\sin x}{x}.$$Both the numerator and the denominator tend to zero, and there’s nothing to cancel: the sine isn’t a polynomial, and no factor $x$ is in sight. Let’s compute (angles in radians):
| $x$ | $\frac{\sin x}{x}$ |
|---|---|
| $1$ | $0.84147\ldots$ |
| $0.5$ | $0.95885\ldots$ |
| $0.1$ | $0.99833\ldots$ |
| $0.01$ | $0.999983\ldots$ |
| $0.001$ | $0.99999983\ldots$ |
It looks like one. To understand why, let’s look at the graph under a microscope.
The circle shows where the one comes from: for a small angle the arc hardly differs from the half-chord. To turn this “hardly” into a proof we need one more strategy. If a quantity is hemmed in on both sides by two others and both tend to the same number, it has nowhere else to go.
Let $g(x) \le f(x) \le h(x)$ near the point $a$ (except perhaps at the point itself) and $\lim\limits_{x \to a} g(x) = \lim\limits_{x \to a} h(x) = L$. Then $\lim\limits_{x \to a} f(x) = L$ too.
In English it’s called the squeeze or sandwich theorem; elsewhere students know it jokingly as the theorem of the two policemen: two policemen lead a detainee by the arms, and wherever they go, the detainee goes too.
If the Skeptic has lost to both policemen, the detainee takes the Skeptic down with them.
$\lim\limits_{x \to 0} \dfrac{\sin x}{x} = 1$ (the angle $x$ measured in radians).
The idea: nest three figures inside one another whose areas are expressed through $\sin x$, $x$ and $\tan x$, and squeeze the fraction between two policemen.
Isn’t this circular?
It’s sometimes said that this proof goes round in a circle: the area of a disc is supposedly derived from the very limit we’re proving. That’s not so. Archimedes found the area of a disc by the method of exhaustion, inscribing and circumscribing polygons, with no sine at all (chapter 19). The radian measure is also defined without a limit: an angle is measured by the length of an arc of the unit circle. The weak spot is elsewhere: to speak of the length of an arc and the area of a sector with full rigour, these notions themselves need precise definitions. They’re given through limits and integrals (chapter 28), and the sine can be defined by a series (chapter 30). None of these definitions relies on the fundamental trigonometric limit.
And if the angle is measured in degrees? What is $\lim\limits_{x \to 0} \dfrac{\sin x^\circ}{x}$?
$x$ degrees is $t = \frac{\pi x}{180}$ radians, so $\frac{\sin x^\circ}{x} = \frac{\pi}{180} \cdot \frac{\sin t}{t}$, and $t \to 0$ along with $x$. The limit is $\frac{\pi}{180} \approx 0.0175$. That’s why calculus measures angles in radians: only there is the limit one, and the derivative of the sine, as we’ll see in the next chapter, the cosine with no extra factor.
Find $\lim\limits_{x \to 0} \dfrac{\sin 3x}{2x}$.
Make the denominator match the sine’s argument: $\frac{\sin 3x}{2x} = \frac32 \cdot \frac{\sin 3x}{3x}$. As $x \to 0$, $t = 3x \to 0$ too, and $\frac{\sin t}{t} \to 1$. Answer: $\frac32$. Numerical check: at $x = 0.001$ the fraction is $1.49999775\ldots$
A gallery of discontinuities
For most of the functions we’ve dealt with, the limit at a point is simply the value: plug in and you have it. This property is called continuity.
A function $f$ is continuous at a point $a$ if it’s defined at this point and near it and $\lim\limits_{x \to a} f(x) = f(a)$. A function is continuous on an interval if it’s continuous at each of its points (at the ends of a closed interval, the limit is taken from one side).
By the arithmetic of limits, polynomials are continuous everywhere, and fractions of them wherever the denominator isn’t zero. The sine is continuous too. The inequality $|\sin t| \le |t|$ holds for all $t$: for $|t| < \frac\pi2$ we’ve just proved it, and for $|t| \ge \frac\pi2$ it follows from $|\sin t| \le 1 < \frac\pi2$. Hence also $1 - \cos t = 2\sin^2\frac t2 \le \frac{t^2}{2}$ for all $t$. By the addition formula $\sin(a + h) - \sin a = \sin a\,(\cos h - 1) + \cos a \sin h$, so $|\sin(a + h) - \sin a| \le \frac{h^2}{2} + |h|$. For $|h| \le 1$ this is at most $\frac32|h|$, and for a tolerance $\varepsilon$, $\delta = \min\left(1,\ \frac\varepsilon2\right)$ will do. The other functions we’ve met in the course, roots, exponential functions, logarithms, are also continuous on their domains; the proofs are in chapters 29 and 53.
On a graph, continuity is visible at once: you can draw it without lifting the pencil from the paper. Where the pencil has to be lifted, discontinuities live.
If a function is defined near a point $a$ but isn’t continuous at it, the point $a$ is called a point of discontinuity. The discontinuity is removable if the limit at the point exists but there’s no value or a different one; a jump if both one-sided limits exist but differ; essential if at least one one-sided limit doesn’t exist or is infinite.
Discontinuities aren’t only found in textbooks. The postage on a letter rises with its weight in steps: a letter just over a price boundary costs noticeably more. The function $\frac1x$ runs off to infinity near zero. And $\sin\frac1x$ oscillates faster and faster near zero: on any interval to the right of zero, however tiny, it runs through all values from $-1$ to $1$ infinitely many times, and no candidate for its limit survives a round with the Skeptic.
The most instructive exhibit is $x \sin\frac1x$. It too oscillates infinitely often, but the amplitude shrinks: $-|x| \le x\sin\frac1x \le |x|$. The policemen $-|x|$ and $|x|$ tend to zero, and by the squeeze theorem the limit at zero is $0$. At zero itself the function isn’t defined, but the discontinuity is removable: set $f(0) = 0$ and you get a function continuous everywhere. No hand can draw it “without lifting the pencil”: near zero the graph trembles infinitely many times. The pencil rule is a good hint, but the definition remains the limit.
A root that can’t be hidden
Continuous functions can do what you intuitively expect of them: if in one place a function is negative and in another positive, somewhere in between it’s zero. A temperature that dropped overnight from plus five to minus three was exactly zero at some moment. It sounds obvious, and for a long time it was taken as such. In 1817 Bernard Bolzano, a priest and mathematician in Prague, published a “purely analytic proof” of this fact: he realised that a picture proves nothing here, and that one has to rely on the properties of the numbers themselves. In 1821 Cauchy gave his own proof in the Course of Analysis.
Why it’s a matter of numbers can be seen from an example. The function $f(x) = x^2 - 2$ on the interval $[1, 2]$ is continuous, $f(1) = -1 < 0$, $f(2) = 2 > 0$. If the line contained only fractions, there’d be no root: $\sqrt2$ isn’t a fraction (chapter 6). The graph would slip across the axis through a hole. The theorem rests on the real numbers having no holes, and this property has to be written down explicitly.
If the closed intervals $[a_1, b_1] \supset [a_2, b_2] \supset [a_3, b_3] \supset \dots$ are nested one inside another, they have a common point: a number belonging to all of them.
In chapter 6 this property already flashed by: each new digit of a decimal narrows the window tenfold, and a real number is what’s left when the windows shrink without end. For fractions the principle fails: the intervals $[1, 2]$, $[1.4, 1.5]$, $[1.41, 1.42]$, … around $\sqrt2$ are nested, but they have no common fraction. We accept this principle as an axiom: it’s one form of the property called the completeness of the real numbers. In chapter 53 it will be derived from a rigorous construction of $\mathbb R$.
If a function $f$ is continuous on the interval $[a, b]$ and takes values of opposite signs at its ends, then there’s a point $c$ in this interval at which $f(c) = 0$.
Keep halving the interval, each time keeping the half whose ends still have opposite signs.
Hence the theorem’s name. Apply it to the function $f(x) - C$: if a continuous function takes the values $f(a)$ and $f(b)$, it also takes every intermediate value $C$ between them.
The method in the proof is called bisection, or interval halving. It’s slow but reliable: each step adds one correct binary digit, and ten steps narrow the interval by a factor of $2^{10} = 1024$. Many root-finding programs use it as a safety net under clever fast methods: where a clever method might miss, bisection won’t.
Against the cunning Skeptic you can’t do better than bisection. They don’t even have to choose a function in advance: it’s enough that their answers don’t contradict one another. After each question they leave the root in the longer part of the interval, and it’s always longer than half unless you asked exactly at the midpoint. So in $k$ questions the interval can’t be narrowed by more than a factor of $2^k$, and for an accuracy of $0.001$ on an interval of length $1$ you need ten questions: $2^9 = 512 < 1000 < 1024 = 2^{10}$.
The intermediate value theorem pays back one more debt, from chapter 14.
Every polynomial of odd degree with real coefficients has a real root.
The idea: for large $|x|$ a polynomial behaves like its leading term, and $a_n x^n$ with odd $n$ has opposite signs at the two ends of the number line.
Let $P(x) = a_n x^n + a_{n-1}x^{n-1} + \dots + a_0$, with odd degree $n$ and $a_n \ne 0$. For $x \ne 0$ take the leading term out of the brackets:
$$P(x) = a_n x^n \left(1 + \frac{a_{n-1}}{a_n}\cdot\frac1x + \dots + \frac{a_0}{a_n}\cdot\frac{1}{x^n}\right).$$As $x \to +\infty$ or $x \to -\infty$, each fraction $\frac{1}{x^k}$ tends to zero, and by the arithmetic of limits the bracket tends to $1$. So there’s a number $R > 0$ such that for $|x| \ge R$ the bracket is greater than $\frac12$, that is, positive, and the sign of $P(x)$ is the sign of $a_n x^n$. The degree is odd, so $R^n > 0$ and $(-R)^n < 0$: the values $P(R)$ and $P(-R)$ have opposite signs. A polynomial is continuous, and by the intermediate value theorem it has a root on the interval $[-R, R]$.
That’s what the chapter on polynomials promised: the graph of a cubic can cross the axis at one, two or three points, but it can’t slip past it.
Practice
Rounds with the Skeptic are needed to prove the rules. Computing limits by those rules is a separate craft, and it’s learned by hand. The trainer has three levels: substitution and cancelling fractions, limits at infinity, and limits that reduce to the fundamental trigonometric one.
A step-by-step breakdown of any limit of your own is in the solver, and all the course’s trainers are on the practice page.
Where next
We started with the stone: the average speed over the stretch of time $[1, 1 + h]$ is $10 + 5h$, and its limit as $h \to 0$ is the speed one second after release, $10$ m/s. The same move works for any motion and any function. The average rate of change of $f$ over the stretch from $x$ to $x + h$ is $\frac{f(x + h) - f(x)}{h}$, and its limit as $h \to 0$ answers the question the chapter began with: how fast is a quantity changing at a given instant. On a graph the same limit is the slope of the tangent, for the parabola, for $y = x^3$ and for a sine wave alike, with no mirrors. This limit has a name: the derivative. A speedometer needle shows it, and a few rules help to compute it, with no need for rounds against the Skeptic. Where those rules come from, and what a speedometer really shows: chapter 26.