Skip to content

Common Mistakes and Counterexamples

This page collects the wrong turns that come up most often in §1–§18. Each entry states a claim that sounds right, gives a short counterexample that breaks it, and says what is actually true. Citations such as Theorem 10.2 are links: hover over or focus one to see the statement.

A good habit: before using a theorem, check every hypothesis. Most of the counterexamples below work by dropping exactly one of them.

An induction step that fails for the smallest case

Section titled “An induction step that fails for the smallest case”

Tempting. “In any group of nn people, everyone has the same birthday.” For n=1n = 1 it is true. For the step, remove one person from a group of n+1n + 1; the other nn share a birthday. Remove a different person; again the rest share a birthday. The two groups overlap, so all n+1n + 1 do.

What goes wrong. Going from n=1n = 1 to n=2n = 2, the two groups of size 11 do not overlap. The step must work for every nn from the basis on, including the first one. See §1.

Tempting. “2n>n22^n > n^2 for all nn, by induction.”

Counterexample. It holds for n=1n = 1, fails for n=2,3,4n = 2, 3, 4, and holds for every n≥5n \ge 5. The step 2n>n2⇒2n+1>(n+1)22^n > n^2 \Rightarrow 2^{n+1} > (n+1)^2 needs 2n2≥(n+1)22n^2 \ge (n+1)^2, which is true only for n≥3n \ge 3, so the basis has to be n=5n = 5. Induction may start at any integer, but its conclusion only covers what comes after the basis. See §1.

Tempting. “Given ε>0\varepsilon > 0, take N=nN = n.”

What is true. In Definition 7.1, NN may depend on ε\varepsilon (and on the sequence), but it has to be chosen before nn. The condition is then checked for every n>Nn > N. See §7.

Tempting. “I started from ∣sn−s∣<ε|s_n - s| < \varepsilon and simplified until I reached n>1εn > \frac{1}{\varepsilon}, so the proof is done.”

What is true. Working backwards is how you find NN. The formal proof runs forwards, from n>Nn > N to ∣sn−s∣<ε|s_n - s| < \varepsilon, and each step must be valid in that direction. Any assumption your estimate needs, such as “n≥10n \ge 10” or “the denominator is positive”, must be built into the choice of NN. See §8.

Proving “for all” with a single example

Section titled “Proving “for all” with a single example”

Tempting. “g(xn)→g(0)g(x_n) \to g(0) for the sequence xn=1nx_n = \frac1n, so gg is continuous at 00.”

What is true. One example can disprove a “for all” statement, but it cannot prove one. Continuity at x0x_0 needs f(xn)→f(x0)f(x_n) \to f(x_0) for every sequence xn→x0x_n \to x_0 in the domain (Definition 17.1). For g(x)=sin⁡πxg(x) = \sin\frac{\pi}{x} with g(0)=0g(0) = 0, the sequence 1n\frac1n gives values 00, but xn=24n+1x_n = \frac{2}{4n + 1} gives values 11. See §17.

Using the Triangle Inequality as a lower bound

Section titled “Using the Triangle Inequality as a lower bound”

Tempting. “∣a+b∣|a + b| is about the size of ∣a∣+∣b∣|a| + |b|.”

Counterexample. ∣5+(−5)∣=0|5 + (-5)| = 0 while ∣5∣+∣−5∣=10|5| + |-5| = 10. Theorem 3.7 only gives an upper bound. For a lower bound use ∣a+b∣≥∣a∣−∣b∣|a + b| \ge |a| - |b|. See §3.

Tempting. “From a<ba < b and c<dc < d, conclude a−c<b−da - c < b - d.”

Counterexample. 1<21 < 2 and 0<50 < 5, but 1−0<2−51 - 0 < 2 - 5 is false. Inequalities pointing the same way can be added. Multiplying needs signs: multiplying by a negative number reverses the inequality (Theorem 3.2). See §3.

Assuming the supremum is the largest element

Section titled “Assuming the supremum is the largest element”

Tempting. “sup⁡S\sup S is the biggest number in SS.”

Counterexample. sup⁡(0,1)=1\sup(0, 1) = 1, and 1∉(0,1)1 \notin (0, 1). When sup⁡S\sup S belongs to SS it is max⁡S\max S; when it does not, SS has no maximum. See §4.

Keeping a strict inequality through a supremum or a limit

Section titled “Keeping a strict inequality through a supremum or a limit”

Tempting. “If s<Ms < M for every s∈Ss \in S, then sup⁡S<M\sup S < M.” Or: “If sn>0s_n > 0 for all nn and sn→ss_n \to s, then s>0s > 0.”

Counterexample. Every element of (0,1)(0, 1) is less than 11, and sup⁡(0,1)=1\sup(0, 1) = 1. Every 1n\frac1n is positive, and lim⁡1n=0\lim \frac1n = 0. Suprema, limits and lim sups keep ≤\le but can turn << into ==. See §4, §9 and §12.

Tempting. “I showed MM is an upper bound of SS, so sup⁡S=M\sup S = M.”

What is true. That proves only sup⁡S≤M\sup S \le M. For sup⁡S≥M\sup S \ge M you also need elements of SS that come as close to MM as you like, or an argument that every upper bound is at least MM. See §4.

Expecting rational sets to have rational suprema

Section titled “Expecting rational sets to have rational suprema”

Tempting. “A bounded set of rationals has a least upper bound, and it is rational.”

Counterexample. S={r∈Q:r2<2}S = \{r \in \mathbb{Q} : r^2 < 2\} is bounded above, but its least upper bound in R\mathbb{R} is 2\sqrt2, which is irrational (Corollary 2.3). Inside Q\mathbb{Q} alone, SS has no least upper bound at all. The Completeness Axiom (Theorem 4.4) is exactly what Q\mathbb{Q} lacks. See §2 and §4.

Tempting. “∞−∞=0\infty - \infty = 0” or “0⋅∞=00 \cdot \infty = 0.”

Counterexample. n→∞n \to \infty and n2→∞n^2 \to \infty, yet n−n→0n - n \to 0, n2−n→+∞n^2 - n \to +\infty and n−n2→−∞n - n^2 \to -\infty. Likewise n⋅1n→1n \cdot \frac1n \to 1 while n2⋅1n→+∞n^2 \cdot \frac1n \to +\infty. These forms have no single value, which is why they are left undefined. See §5 and §9.

Tempting. “If ∣sn−s∣|s_n - s| decreases at every step, then sn→ss_n \to s.”

Counterexample. 1n\frac1n gets closer to −1-1 at every step, yet 1n→0\frac1n \to 0. The distance must eventually drop below every ε>0\varepsilon > 0, not merely shrink. See §7.

Tempting. “A convergent sequence is eventually increasing or decreasing.”

Counterexample. (−1)nn→0\frac{(-1)^n}{n} \to 0, alternating sides of 00 forever. Convergence says nothing about the path, only about where the terms end up. See §7.

Tempting. “Bounded sequences converge.” Or: “Monotone sequences converge.”

Counterexample. (−1)n(-1)^n is bounded but diverges. sn=ns_n = n is increasing but tends to +∞+\infty. You need both together (Theorem 10.2). What is true for bounded sequences alone is that some subsequence converges (Theorem 11.5). See §10 and §11.

Splitting a limit before you know the pieces converge

Section titled “Splitting a limit before you know the pieces converge”

Tempting. “lim⁡(sn+tn)=lim⁡sn+lim⁡tn\lim(s_n + t_n) = \lim s_n + \lim t_n, always.”

Counterexample. sn=(−1)ns_n = (-1)^n and tn=−(−1)nt_n = -(-1)^n: the sum is 00 for every nn, but neither limit on the right exists. Theorems 9.3 and 9.4 assume both limits exist as real numbers, and Theorem 9.6 also needs the limit in the denominator to be nonzero. See §9.

Tempting. “s1=1s_1 = 1 and sn+1=2sns_{n+1} = 2s_n. If s=lim⁡sns = \lim s_n, then s=2ss = 2s, so s=0s = 0.”

Counterexample. sn=2n−1→+∞s_n = 2^{n-1} \to +\infty. Passing to the limit in a recursion tells you what the limit must be if it exists. First prove it exists, for example with Theorem 10.2. See §10.

Tempting. “If ∣sn+1−sn∣→0|s_{n+1} - s_n| \to 0, then (sn)(s_n) is Cauchy.”

Counterexample. n+1−n=1n+1+n→0\sqrt{n+1} - \sqrt{n} = \frac{1}{\sqrt{n+1} + \sqrt{n}} \to 0, yet n→+∞\sqrt n \to +\infty. The Cauchy condition (Definition 10.8) controls ∣sm−sn∣|s_m - s_n| for all pairs m,n>Nm, n > N, not just neighbours. The partial sums of ∑1n\sum \frac1n fail the same way. See §10.

Tempting. “(s2,s1,s4,s3,… )(s_2, s_1, s_4, s_3, \dots) is a subsequence of (sn)(s_n).”

What is true. A subsequence uses indices n1<n2<n3<⋯n_1 < n_2 < n_3 < \cdots, so it keeps the original order and uses each term at most once. Neither swapping nor repeating terms is allowed (Definition 11.1). See §11.

Tempting. “A subsequence converges to ss, so the sequence does.”

Counterexample. (−1)n(-1)^n has the subsequence of even terms, which is constantly 11, but (−1)n(-1)^n diverges. The true direction is the reverse: if the sequence converges, every subsequence converges to the same limit (Theorem 11.3). See §11.

Tempting. “Two subsequences converge to ss, so the sequence converges to ss.”

Counterexample. Let sn=1s_n = 1 when nn is a multiple of 33 and sn=0s_n = 0 otherwise. The subsequences (s3k+1)(s_{3k+1}) and (s3k+2)(s_{3k+2}) are both constantly 00, but (sn)(s_n) diverges. The claim is true when the subsequences together use every index from some point on, for instance the even terms and the odd terms. See §11.

Tempting. “lim sup⁡sn=sup⁡{sn:n∈N}\limsup s_n = \sup\{s_n : n \in \mathbb{N}\}.”

Counterexample. For sn=1ns_n = \frac1n, sup⁡{sn}=1\sup\{s_n\} = 1 but lim sup⁡sn=0\limsup s_n = 0. The supremum can be set by one early term; the lim sup ignores any finite number of terms (Definition 10.6). See §10 and §12.

Tempting. “lim sup⁡(sn+tn)=lim sup⁡sn+lim sup⁡tn\limsup(s_n + t_n) = \limsup s_n + \limsup t_n.”

Counterexample. With sn=(−1)ns_n = (-1)^n and tn=−(−1)nt_n = -(-1)^n, the left side is 00 and the right side is 1+1=21 + 1 = 2. In general only ≤\le holds (when the right side makes sense). Products of limits need a convergent factor, as in Theorem 12.1. See §12.

Tempting. “Every set is either open or closed.”

Counterexample. [0,1)[0, 1) is neither. It is not open, because no interval around 00 fits inside it. It is not closed, because its complement contains 11 but no interval around 11. R\mathbb{R} and ∅\varnothing are both open and closed. Closed means “the complement is open” (Definition 13.8), not “not open”. See §13.

Tempting. “An intersection of open sets is open.”

Counterexample. ⋂n=1∞(−1n,1n)={0}\bigcap_{n=1}^\infty \left(-\frac1n, \frac1n\right) = \{0\}, which is not open. Finite intersections of open sets are open. Dually, ⋃n=1∞[1n,1]=(0,1]\bigcup_{n=1}^\infty \left[\frac1n, 1\right] = (0, 1] is a union of closed sets that is not closed. See §13.

“Closed and bounded” as the definition of compact

Section titled ““Closed and bounded” as the definition of compact”

Tempting. “A closed, bounded set is compact, in any metric space.”

Counterexample. In Q\mathbb{Q} with the usual distance, {r∈Q:0≤r≤2}\{r \in \mathbb{Q} : 0 \le r \le 2\} is closed and bounded but not compact. The open sets {r∈Q:∣r−2∣>1n}\{r \in \mathbb{Q} : |r - \sqrt2| > \frac1n\} cover it, and no finitely many of them do. The Heine–Borel Theorem 13.12 relies on the completeness of Rk\mathbb{R}^k. See §13.

Tempting. “an→0a_n \to 0, so ∑an\sum a_n converges.”

Counterexample. ∑1n\sum \frac1n diverges although 1n→0\frac1n \to 0. Corollary 14.5 runs the other way: if an↛0a_n \not\to 0, the series diverges. When an→0a_n \to 0 you have learned nothing yet. See §14 and §15.

Tempting. “∑n=1∞12n\sum_{n=1}^\infty \frac1{2^n} converges to 00, because 12n→0\frac1{2^n} \to 0.”

What is true. The sum of a series is the limit of its partial sums (Definition 14.2), not of its terms. Here the partial sums are 1−12n1 - \frac1{2^n}, so the series converges to 11. See §14.

Tempting. “1n2≤1n\frac1{n^2} \le \frac1n and ∑1n\sum \frac1n diverges, so ∑1n2\sum \frac1{n^2} diverges.”

What is true. To prove convergence, bound the terms above by a convergent series. To prove divergence, bound them below by a divergent one. The other two combinations prove nothing. See §14.

Tempting. “bn≤anb_n \le a_n and ∑an\sum a_n converges, so ∑bn\sum b_n converges.”

Counterexample. bn=−1≤1n2=anb_n = -1 \le \frac1{n^2} = a_n, and ∑bn=−∞\sum b_n = -\infty. The Comparison Test (Theorem 14.6) needs ∣bn∣≤an|b_n| \le a_n, not just bn≤anb_n \le a_n. See §14.

Tempting. “∣an+1an∣<1\left|\frac{a_{n+1}}{a_n}\right| < 1 for every nn, so ∑an\sum a_n converges.” Or: “the ratios tend to 11, so the series diverges.”

Counterexample. For ∑1n\sum \frac1n every ratio nn+1\frac{n}{n+1} is below 11, yet the series diverges. And the ratios tend to 11 both for ∑1n\sum \frac1n, which diverges, and for ∑1n2\sum \frac1{n^2}, which converges. The Ratio Test (Theorem 14.8) needs the ratios to stay below a fixed r<1r < 1, and it says nothing when lim sup⁡\limsup of the ratios is 11. The same applies to the Root Test (Theorem 14.9). See §14.

Tempting. “If ∑an\sum a_n converges, so does ∑∣an∣\sum |a_n|.”

Counterexample. 1−12+13−14+⋯1 - \frac12 + \frac13 - \frac14 + \cdots converges by the Alternating Series Theorem 15.3, but ∑1n\sum \frac1n diverges. Only the reverse is true: absolutely convergent series converge (Corollary 14.7). See §14 and §15.

Tempting. “The signs alternate and the terms tend to 00, so the series converges.”

Counterexample. 1−1+12−14+13−19+⋯1 - 1 + \frac12 - \frac14 + \frac13 - \frac19 + \cdots, whose kk-th pair is 1k−1k2\frac1k - \frac1{k^2}. The partial sums at the end of each pair are ∑j≤k(1j−1j2)→+∞\sum_{j \le k} \left(\frac1j - \frac1{j^2}\right) \to +\infty. Theorem 15.3 needs the absolute values of the terms to decrease. See §15.

Using the integral test without “decreasing”

Section titled “Using the integral test without “decreasing””

Tempting. “∑f(n)\sum f(n) and ∫1∞f(x) dx\int_1^\infty f(x)\,dx always behave alike.”

Counterexample. f(x)=sin⁡2(πx)f(x) = \sin^2(\pi x) is 00 at every integer, so ∑f(n)=0\sum f(n) = 0, yet the integral is +∞+\infty. The comparison between sums and integrals in §15 relies on ff being decreasing (and positive). See §15.

Rearranging a conditionally convergent series

Section titled “Rearranging a conditionally convergent series”

Tempting. “Changing the order of the terms cannot change the sum.”

Counterexample. Take the terms of 1−12+13−14+⋯1 - \frac12 + \frac13 - \frac14 + \cdots, which sums to log⁡2\log 2, and list them as one positive term followed by two negative ones. The rearranged series sums to 12log⁡2\frac12 \log 2. Rearranging is safe only for absolutely convergent series. See §15.

Tempting. “0.999…0.999\ldots is the closest number below 11.”

What is true. 0.999…0.999\ldots is the limit of 0.9,0.99,0.999,…0.9, 0.99, 0.999, \ldots, and that limit is exactly 11. Two different expansions name the same number, and this happens only for numbers of the form m10k\frac{m}{10^k} (Theorem 16.3). There is no “closest number below 11”: between any two reals there is another. See §16.

“Continuous” means “the graph has no gaps”

Section titled ““Continuous” means “the graph has no gaps””

Tempting. “f(x)=1xf(x) = \frac1x is discontinuous at 00.”

What is true. Continuity is defined only at points of the domain (Definition 17.1), and 00 is not in the domain of 1x\frac1x. So 1x\frac1x is continuous: at every point where it is defined. Whether it could be extended continuously to 00 is a question about limits of functions. See §17.

Continuous at a point means continuous nearby

Section titled “Continuous at a point means continuous nearby”

Tempting. “If ff is continuous at x0x_0, it is continuous on some interval around x0x_0.”

Counterexample. Let f(x)=xf(x) = x for rational xx and f(x)=0f(x) = 0 for irrational xx. Since ∣f(x)∣≤∣x∣|f(x)| \le |x|, ff is continuous at 00. At any a≠0a \ne 0, rationals tending to aa give values tending to aa and irrationals give 00, so ff is continuous only at 00. See §17.

Sums of discontinuous functions are discontinuous

Section titled “Sums of discontinuous functions are discontinuous”

Tempting. “If f+gf + g is continuous, then ff and gg are.”

Counterexample. Let f=1f = 1 on Q\mathbb{Q} and 00 elsewhere, and g=1−fg = 1 - f. Both are discontinuous at every point, but f+g=1f + g = 1. Theorem 17.4 goes one way only: continuous parts give a continuous sum, product and quotient. See §17.

The Extreme Value Theorem on the wrong kind of set

Section titled “The Extreme Value Theorem on the wrong kind of set”

Tempting. “A continuous function on an interval has a maximum and a minimum.”

Counterexample. f(x)=xf(x) = x on (0,1)(0, 1) is bounded but has no maximum or minimum. 1x\frac1x on (0,1](0, 1] is unbounded. f(x)=xf(x) = x on [0,∞)[0, \infty) is unbounded. Theorem 18.1 needs a closed, bounded interval [a,b][a, b]. See §18.

The Intermediate Value Theorem without an interval, or over ℚ

Section titled “The Intermediate Value Theorem without an interval, or over ℚ”

Tempting. “ff is continuous, negative somewhere and positive somewhere, so ff has a zero.”

Counterexample. 1x\frac1x on [−1,0)∪(0,1][-1, 0) \cup (0, 1] is continuous, takes the values −1-1 and 11, and is never 00: the domain is not an interval. And on Q\mathbb{Q}, x2−2x^2 - 2 is negative at 11 and positive at 22 but has no rational zero: the proof of Theorem 18.2 needs completeness. Even when the theorem applies, it gives existence only, not where the zero is or how many there are. See §18.

The intermediate value property implies continuity

Section titled “The intermediate value property implies continuity”

Tempting. “If ff takes every value between any two of its values, then ff is continuous.”

Counterexample. f(x)=sin⁡1xf(x) = \sin\frac1x for x≠0x \ne 0 and f(0)=0f(0) = 0. Every interval around 00 contains points where ff takes every value in [−1,1][-1, 1], so ff has the intermediate value property, but ff is not continuous at 00. Exercise 18.12 works through this example. For strictly increasing functions the converse does hold (Theorem 18.5). See §18.

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.