Understanding Real Analysis
Understanding Real Analysis
i i
i i
i i
i i
i i
i i
i i
i i
i i
Understanding
Real Analysis
Paul Zorn
Saint Olaf College
A K Peters, Ltd.
Natick, Massachusetts
i i
i i
CRC Press
Taylor & Francis Group
6000 Broken Sound Parkway NW, Suite 300
Boca Raton, FL 33487-2742
© 2010 by Taylor & Francis Group, LLC
CRC Press is an imprint of Taylor & Francis Group, an Informa business
This book contains information obtained from authentic and highly regarded sources. Reasonable efforts have been made
to publish reliable data and information, but the author and publisher cannot assume responsibility for the validity of all
materials or the consequences of their use. The authors and publishers have attempted to trace the copyright holders of
all material reproduced in this publication and apologize to copyright holders if permission to publish in this form has not
been obtained. If any copyright material has not been acknowledged please write and let us know so we may rectify in any
future reprint.
Except as permitted under U.S. Copyright Law, no part of this book may be reprinted, reproduced, transmitted, or uti-
lized in any form by any electronic, mechanical, or other means, now known or hereafter invented, including photocopy-
ing, microfilming, and recording, or in any information storage or retrieval system, without written permission from the
publishers.
For permission to photocopy or use material electronically from this work, please access [Link] ([Link]
[Link]/) or contact the Copyright Clearance Center, Inc. (CCC), 222 Rosewood Drive, Danvers, MA 01923, 978-
750-8400. CCC is a not-for-profit organization that provides licenses and registration for a variety of users. For organiza-
tions that have been granted a photocopy license by the CCC, a separate system of payment has been arranged.
Trademark Notice: Product or corporate names may be trademarks or registered trademarks, and are used only for identi-
fication and explanation without intent to infringe.
Visit the Taylor & Francis Web site at
[Link]
and the CRC Press Web site at
[Link]
i i
i i
Contents
Preface vii
4 Derivatives 173
4.1 Defining the Derivative . . . . . . . . . . . . . . . . . . . . . 173
4.2 Calculating Derivatives . . . . . . . . . . . . . . . . . . . . . 183
4.3 The Mean Value Theorem . . . . . . . . . . . . . . . . . . . 195
4.4 Sequences of Functions . . . . . . . . . . . . . . . . . . . . . 204
i i
i i
i i
i i
vi CONTENTS
5 Integrals 215
5.1 The Riemann Integral: Definition and Examples . . . . . . . . 215
5.2 Properties of the Integral . . . . . . . . . . . . . . . . . . . . 226
5.3 Integrability . . . . . . . . . . . . . . . . . . . . . . . . . . . 238
5.4 Some Fundamental Theorems . . . . . . . . . . . . . . . . . 250
Solutions 257
Index 288
i i
i i
i i
i i
Preface
Building on calculus basics. Students in the beginning real analysis course that
this book supports may have little or no course experience beyond single-variable
calculus (a year, say) and perhaps some exposure to linear algebra, differential
equations, or multivariate calculus. What can be expected from such students is a
general, though probably informal, sense of the big ideas of calculus—function,
limit, derivative, and integral—and some curiosity about the rigorous theory that
lies behind the techniques. This book’s main strategy is to exploit students’ prior
experience with and curiosity about calculus in working toward deeper under-
standing.
vii
i i
i i
i i
i i
viii Preface
Focus on the basics. This book focuses on (what I take to be) basic elements of
the theory; neither compactness nor the Lebesgue integral is covered, for instance.
This is intentional: I’ve willingly traded “coverage” for “simplicity.” (Instructors
who want to go deeper can readily do so; see below for suggestions.) Covering
fewer topics, moreover, leaves room for more narrative discussion and concrete
examples, of which there are a lot. To put it another way, I try to look closely at
relatively simple things.
Many examples, many solutions. The book contains many worked-out exam-
ples and quite a few detailed solutions to exercises, especially in earlier sections.
I believe that many students learn theory largely “inductively,” from examples,
and that detailed solutions to a substantial number of problems can usefully illus-
trate, for newcomers, the language and conventions of mathematical discourse.
i i
i i
i i
i i
Preface ix
A one-semester course? This book is designed for use in one typical college
semester, but there is more material here than I would cover in that time, except
perhaps with veterans of a proofs course. With a less experienced class I might
omit the coverage of infinite series, for instance, to concentrate more heavily on
integrals. Or one could omit integrals entirely, and go into more depth on series,
sequences, and derivatives.
Supplementary topics. Real analysis offers many possibilities for group or in-
dividual projects on supplementary topics. These can be especially useful with
unusually well-prepared or highly talented students, who can otherwise be bored
in a class of less highly selected students. Here are some ideas; all are readily
researchable in books or online by motivated students:
• The Cantor–Banach–Bernstein theorem: if f : A → B and g : B → A are
injective, then there is a bijection h : A → B.
• Exploring the limit superior and the limit inferior (a “guided discovery” on
this topic appears in the book).
• Exploring Taylor polynomials and remainder theorems (Taylor’s theorem
is mentioned, but only briefly).
• Exploring compactness of subsets of R, the Heine–Borel theorem, and con-
nections with boundedness of functions and convergence of sequences.
• Exploring deeper properties of the Riemann integral. Suppose, for instance,
that a function f is integrable on [0, 1] and f (x) > 0 for all x. Showing
1
rigorously that 0 f > 0 is harder than it might seem, and it raises good
questions about monotonicity, points of continuity, and integrability.
Thanks
This book owes its existence to a large (uncounted but surely countable) set of
teachers, academic colleagues, St. Olaf College students, publishing company
professionals, friends, advisors, critics, “competitors,” family, and others. It is
a pleasure to acknowledge some of them by name—and to claim sole credit for
errors that survived their best efforts to help.
Among local colleagues I thank Bruce Hanson, Paul Humke, Loren Larson,
Arnie Ostebee, Matt Richey, Lynn Steen, Ted Vessey, and many others with whom
i i
i i
i i
i i
x Preface
I have discussed matters mathematical and pedagogical for many years. On mat-
ters of taste and usage—both linguistic and mathematical—my friend Barry Cipra
is a reliable resource. His advice, when I have taken it, has always proved correct.
These gifted teachers, expositors, and mathematicians have helped me think about
the deep connections and subtle relationships among teaching, telling, and doing
mathematics. They have also demonstrated, by argument and example, that seri-
ous engagement with post-calculus mathematics is possible, and valuable, for a
broad range of students, not just a small elite. This “big tent” approach to our dis-
cipline informs and underpins St. Olaf’s very successful undergraduate program,
and I have kept it in mind when writing this book.
Academic colleagues elsewhere have taught me a lot, too. These include my
own mathematics teachers at Washington University and the University of Wash-
ington; authors and referees from my work with Mathematics Magazine and other
publications of the Mathematical Association of America; and authors of other
real analysis textbooks from which I have learned, taught, or read. Real analysis
can be viewed usefully from many angles; doing so offers depth and perspective.
St. Olaf College mathematics major students deserve thanks, too. Several
cohorts of students in sections of Math 244: Elementary Real Analysis have used
drafts of this book and offered valuable suggestions, criticisms, and pointers to
typos—and worse.
Klaus Peters and Charlotte Henderson, at A K Peters, have worked with re-
markable (indeed, unprecedented in my experience) care, diligence, and intelli-
gence to make this book better and its production easier. I’m all the more grateful
to them because, as a sometime editor myself, I know how difficult and exacting
that work can be.
Last, but hardly least important, are the support and forbearance of my wife,
Janet, in everything that book writing entails for anyone unlucky enough to be
around the process. Thanks.
i i
i i
i i
i i
CHAPTER 1
Preliminaries: Numbers, Sets,
Proofs, and Bounds
Using these symbols we can discuss these sets clearly and efficiently, with sen-
tences like the following:
42 √ √
N ⊆ Z ⊆ Q ⊆ R; ∈ Q; 152399025 ∈ Z; 93 ∈ R \ Q.
43
√
What each of these symbol strings says should be clear. Whether each claim is The last one says that 93 is
true or false is less obvious—but that’s a matter of mathematics, not of symbolic real but not rational. Notice the
funny “setminus” sign.
clarity. As it turns out, all four claims are true; proving the last assertion takes
some effort. We’ll see a proof soon; for now
Set notation is useful and efficient, but only when used correctly. Something the proof is beside the point.
is amiss, for instance, with each of the following expressions:
√
(i) R ∈ Q; (ii) 3.1 ⊃ N; (iii) N ⊆ R.
∗ The special font can help avoid confusion with other sets. The choices N and R are made for
obvious reasons; Q and Z remind us of quotient and Zahlen (German for “numbers”), respectively.
The symbol C can denote the set of complex numbers.
i i
i i
i i
i i
A charitable reader might try to make sense of (i)–(iii), but their problems are
ultimately fatal—none really makes sense. (A nicer way to say this is to refer to
errors of syntax.) The problem with (i), for instance, is not the (true!) fact that
real numbers may be irrational, but rather that R is a set of numbers, and hence
not even in the running to be an element of the set of rationals. Expression
√ (ii) is
meaningless for similar reasons, and (iii) is even worse: the expression N has
no clear meaning, so the question of containment in R is moot.
both of which are rich stews of integers, fractions, and irrational numbers. We
will not deny or ignore your earlier experience—all of it will be useful—but aim
to sharpen intuition and make assumptions explicit.
As a look ahead consider, for instance, the expression
f (x) − f (π)
lim = f (π),
x→π x−π
It’s f (π ), as we know from which describes a certain derivative. Making clear sense of such an expression,
beginning calculus. as we’ll need to do later in studying derivatives, depends on various properties of
real numbers. Here are some early hints:
f (x) − f (π)
x−π
i i
i i
i i
i i
• Approximation and distance: The idea of limit entails one quantity “ap-
proaching” another, in a subtle sense that we’ll soon work hard to make
precise. But it is clear already that we won’t get far without some notion of
“distance” between numbers, and we’ll need to know that any real number,
say π, has plenty of “near” neighbors along which an “approach” to π can
be made.
• No gaps: For any limit to exist there needs to be a value for the quantity in
question to approach; if the real numbers had “gaps” there could be trou-
ble. This modest-seeming requirement, called completeness, turns out to be
subtler than it might first seem. We’ll revisit it soon.
Integers. We’ll build up our description of the real numbers by starting with sim-
pler sets: first Z and then Q. What’s “simpler” depends, of course, on the situa-
tion. To a number theorist, for instance, there is nothing simple about the integers.
In real analysis, however, we’ll need only basic, familiar properties of the in-
tegers, and we’ll usually take these as “known.” We’ll accept without fuss, for
instance, that equations like
make sense, and hold true, for any integers a, b, and c. We also “know” that every
integer a has an additive inverse, −a, but that a multiplicative inverse, 1/a, need What happens if a = 0?
not be an integer.
The well-ordering property. Here’s another basic fact we’ll just assume: Every
nonempty set of positive integers has a least element. This fact is known formally
as the well-ordering property of the positive integers. The name may be myste-
rious but the property itself should be familiar and believable from experience. It comes from set theory—not
Among all even positive multiples of 7, for instance, 14 is smallest. We’ll take our subject here.
the well-ordering property as an axiom, not as a theorem to be proved. In more formal discussion the
property is sometimes proved to
follow from even simpler
Rational numbers. Basic algebraic properties of Q are equally familiar. All four
axioms.
equations above, for example, hold just as well for rational numbers a, b, and
c as for integers. Because nonzero rational numbers have (rational) reciprocals,
equations and expressions that involve division can now make sense. Here are
three examples:
i i
i i
i i
i i
p+q p q pq q p+q 1 1
= + ; =p ; = + .
r r r r r pq q p
All are true, of course, whenever p, q, and r are rational numbers and all denomi-
nators are nonzero.
In later work we’ll freely use such familiar facts, usually without comment.
Right now it is a good exercise to derive some properties of Q, assuming basic
properties of Z.
For us a rational number r is just a ratio of integers:
a
r= , where a, b ∈ Z and b = 0.
b
Of course, any given rational number has many possible forms:
2 14 −222 84
= = = = ...;
3 21 −333 132
the first form, in which numerator and denominator have no common factors, is
called reduced.
S OLUTION . The proof is direct: We start with the hypothesis and derive the
conclusions. Because p and q are rational, we can write
a c
p= and q = ,
b d
where a, b, c, d ∈ Z and b = 0 = d. Now we add fractions:
a c ad + cb
p+q = + = ,
b d bd
which exhibits p + q as the desired ratio of integers. (Both numerator and de-
nominator are integers, and the denominator is nonzero, thanks to basic integer
arithmetic, which we take as known.)
Also,
c a cb + ad ad + cb
q+p= + = = ,
d b db bd
where the last equality follows from commutativity of integer operations. The last
expression is just what we calculated earlier for p + q, so we’re done. ♦
i i
i i
i i
i i
ab
pq = = 1. ♦
ab
Q is a field. The following theorem says, in mathematical parlance, that Q is a
field. Nothing in the theorem should
surprise you; the point is to
Theorem 1.1. The set Q has the following properties: collect and formalize key
properties.
• Two operations: Addition and multiplication are operations on Q: if p and
q are any rational numbers, then so are p + q and pq.
• Commutativity: Addition and multiplication are commutative operations:
if p and q are any rational numbers, then p + q = q + p and pq = qp.
• Associative operations: Addition and multiplication are associative opera-
tions: if p, q, and r are any rational numbers, then (p + q) + r = p + (q + r)
and (pq)r = pqr.
• Identities: The rational number zero is an additive identity: 0 + p = p
holds for all p ∈ Q. The rational number one is a multiplicative identity:
1p = p holds for all p ∈ Q.
• Inverses: For every rational number p, the rational number −p is an ad-
ditive inverse: p + (−p) = 0. For every nonzero rational number p, the
rational number 1/p is a multiplicative inverse: p · 1/p = 1.
• Distributivity: Multiplication distributes across addition: For any rationals
p, q, and r, p(q + r) = pq + pr.
All parts of the theorem can be proved in the spirit of the preceding examples,
assuming similar properties of Z. But . . .
S OLUTION . To be a field, a set must satisfy each of the long list of properties
in Theorem 1.1. Proving all this can be daunting. But there’s a happy flip side:
Disproving that Z is a field is easy. It is enough to find just one property that fails
for Z, and for this even a single counterexample suffices. We could just observe,
for instance, that the integer 42 has no multiplicative inverse among the integers,
and leave it at that. ♦
i i
i i
i i
i i
Q is not R. The set Q is clearly infinite—it contains all the integers, for one thing.
A bit less obvious, perhaps, is the fact that between any two different rationals lie
infinitely many more rationals. Between 3.14 and 3.15, for instance, lie
3.141, 3.142, . . . , 3.149, 3.1411, 3.1412, . . . , 3.14237568, 3.14237569, . . .
and so on. With so many rational numbers around, one might wonder whether
there are any irrationals—numbers that cannot√ be √ written
√ as ratios of integers.
Nowadays everybody “knows” the answer: 2, 3, 3 2, π, e, and many other
favorite numbers are all irrational. But none of these facts is completely triv-
ial. Indeed, the Pythagoreans (around 500 BCE) saw all numbers as rational.
By some accounts, they drowned the philosopher Hippasus as a heretic after he
demonstrated that a square of side 1 has irrational diagonal. We’ll take that risk
and still give a proof.
√
Theorem 1.2. 2 is irrational.
√
Like other proofs we’ve given, Proof: The proof is by contradiction: Assuming 2 is rational, we’ll derive an
this one exploits basic absurdity.
properties of integers. √ √
Assume, then, that 2 is rational. We can write 2 = ab , for some positive
integers a and b, not both even. (If both were even we could cancel a common
factor of 2.) Next we do some algebra:
√ a a2
2= =⇒ 2= =⇒ 2b2 = a2 .
b b2
Now 2b2 is certainly even, and so a2 must be even, too. But then a itself must be
even; otherwise, a2 would be odd. Thus we can write a = 2c for some integer c,
and we have
2b2 = a2 = 4c2 =⇒ b2 = 2c2 .
This implies that b (like a) is even, which contradicts our earlier assumption, and
completes the proof.
See the exercises. A more general theorem can be proved by similar means:
√
Theorem 1.3. n is irrational for every integer n that is not a perfect square.
Infinitely many irrationals for the price of one. It took some work to find even
one irrational number. This done, however, it is surprisingly easy to find many,
many more irrationals.
Theorem 1.4. If x is irrational and r = 0 is rational, then
x r
xr, x + r, x − r, 1/x, , and
r x
are all irrational.
i i
i i
i i
i i
Proof: There is less to this than meets the eye. Everything boils down to the
field properties of Q, listed in Theorem 1.1. For example, suppose (aiming for
a contradiction) that xr is rational. We know from Theorem 1.1 that 1/r is also
rational, and so the product
1
xr × = x
r
is rational, too. This contradicts our hypothesis, and so xr must be irrational. The
remaining parts are similar, and are left as exercises.
Exercises
1. As in Example 1, page 2, decide whether each of the following claims
makes sense. If a claim makes sense, is it true or false?
(a) If r ∈ Q then 5r ∈ Q.
√
(b) 8 ⊂ R \ Q.
√
(c) { 8} ⊂ R \ Q.
(d) If a ∈ Q and b ∈ R \ Q then ab ∈ R \ Q.
(e) If a ∈ Q and b ∈ N then a/b ∈ Q.
(f) If a ∈ Q then there exists n ∈ N such that na2 > 100.
2. We said in this section that Z is not a field. Which of the several require-
ments in Theorem 1.1 does Z fail? Which does it pass? Give an example to
illustrate each failed requirement.
3. For which integers a is 1/a an integer? For which integers a is 1/a rational?
For which integers a is 1/a = a? No proofs necessary, but be sure to
consider all possibilities.
4. The set of irrationals is not a field because (among many other reasons) the
irrationals contain no multiplicative identity. Give one reason—as briefly
as possible—why each of the following sets is not a field.
i i
i i
i i
i i
5. Let p and q be two rational numbers. In each part following, decide whether
the given expression must be a rational number. If so, explain why, referring
to any theorems in this section. If not, give a counterexample.
p+q
(a) (the average of p and q)
2
p+q
(b) 2
p + q2
(c) p2 + q 2
(d) p2 + 2pq + q 2
6. The well-ordering property (see page 3) says something special about the
set N:
If S ⊂ N and S = ∅, then S has a least element.
Give informal answers, not formal proofs, in each part following.
(a) Does Q have the well-ordering property? (In other words, does every
nonempty subset of Q have a least element?) Why or why not?
(b) Does the set R = { 1, 10, 100, 1000, . . . } have the well-ordering
property? Why or why not?
(c) Does the set T = { −3, −2, −1, . . . , 41, 42 } have the well-ordering
property? Why or why not?
(d) Replace the word “least” with “greatest” in the well-ordering property
above. Does the result hold for N? For T ? For Z \ N?
i i
i i
i i
i i
√
9. Imitate the proof of Theorem 1.2 to show that 3 is irrational. (Hint: If a2
is divisible by 3, then a is divisible by 3, too. This is easy to prove, but just
assume it here.)
10. Use Theorem 1.4 in this problem.
(a) Show that if x2 is irrational, then x is irrational, too.
√ √ √ √
(b) We know that 2 and 3 are irrational. Show that 2 + 3 is irra-
tional, too.
√ √ √ √ √ √
(c) All of 2, 3, and 5 are irrational. Show that 2 + 3 + 5 is
irrational, too. (This is harder.)
11. Add details (explain anything
√ that isn’t obvious) to the following hints to
give another proof that 2 is irrational. (The proof’s very clever idea is
attributed to Fermat.)
√
If 2 = a/b holds for any positive integers a and b, then there must be a
smallest possible b, in the sense that no smaller denominator works. Let
such a and b be given; note that 2b2 = a2 . Now consider the new fraction
2b − a a
= .
a−b b
Explain why (i) both a and b are positive integers; (ii) b < b; (iii)
2 √
a
b = 2, and so deduce that 2 = a/b is impossible.
12. The set M2×2 of 2 × 2 matrices with real number entries permits matrix
addition and matrix multiplication, so we can ask about the properties men-
tioned in Theorem 1.1. No proofs needed, but give examples to illustrate
any properties that fail.
(a) Are addition and multiplication in M2×2 commutative?
(b) Which elements in M2×2 have additive and/or multiplicative inverses?
(c) Does addition and multiplication in M2×2 satisfy the distributive prop-
erty?
√
13. Let F be the set of real numbers of the form a + b 2, with a and b ra-
tional numbers. Show that F is a field. (Hint: The hardest part concerns
multiplicative inverses.)
14. Consider the set Z2 = {0, 1}.
(a) Show that Z2 is not a field with the usual operations of multiplication
and addition.
(b) Show that Z2 is a field if we use the two operations (i) ordinary mul-
tiplication; (ii) addition “mod 2”: 0 + 0 = 0 and 0 + 1 = 1 + 0 = 1,
but 1 + 1 = 0.
i i
i i
i i
i i
Notations and operations. Standard symbols let us describe set properties and
operations clearly and concisely. Just a few go a long way:
• Subsets and containment: The expression B ⊂ A says (truthfully for the
sets above) that B is a subset of A; the C-like symbol suggests containment.
If B A, then B is a proper subset of A.
In a similar spirit, all of these expressions:
A ⊃ B; B ⊆ A; B A; I ⊇ D; ∅⊆D
Are they all true of the sets
above? describe various containment relations.
i i
i i
i i
i i
March ∈ A; 2 ∈ D; April ∈
/ B; {2, 3} ∈ C; {2, 3} ∈
/ I.
The last two claims might be surprising. Notice that the set {2, 3} is indeed
an element of the peculiar set C, but not of I, which contains only numbers. On the other hand, {2,3} ⊂ I.
• New sets from old: Any two sets S and T can be combined in various ways
to form new sets:
union : S ∪ T = {x | x ∈ S or x ∈ T };
intersection : S ∩ T = {x | x ∈ S and x ∈ T };
set difference : S \ T = {x | x ∈ S and x ∈
/ T };
Cartesian product : S × T = {(x, y) | x ∈ S and y ∈ T }.
Here are some (true) examples from the sets above; note that all of the
results are sets:
A ∩ C = {November}; A ∪ B = A; A ∩ B = B;
A \ B = {February, April, June, September, November} ; B \ A = ∅;
A × N = {(m, n) | m is a month and n is a positive integer} .
E XAMPLE 1. Let Z, Q, and R denote (as usual) the sets of integers, rationals,
and reals, respectively, and consider the sets
S = x ∈ R | x2 − x − 1 = 0 ; T = x ∈ R | x2 − x − 1 > 5 .
The sets S and T illustrate set-builder notation: they are “built” from a larger set
using a selection rule or membership criterion. (The vertical bar | means some-
thing like “such that.”)
What does each of the following assertions mean? Which are true?
S OLUTION . Statement (i) says that S—a set of numbers—is itself an integer;
this is clearly false. Statements (ii) and (iii) make better sense; (ii) says that all
roots of x2 − x− 1 are rational, while (iii) says that these same roots are
√ irrational.
Who’s right? Well, by the quadratic formula, the two roots are (1 ± 5)/2, both
i i
i i
i i
i i
of which are real but irrational, so (iii) is true and (ii) is false. Statement (iv) boils
down to the claim that 42 − 4 − 1 > 5, which is clearly true.
We might, by the way, have saved some work by first rewriting S and T in
simpler or different forms. As we’ve seen,
√ √
1+ 5 1− 5
S= , .
2 2
Check for yourself. The quadratic formula also shows that x2 − x − 1 = 5 has the two roots x = −2
and x = 3, and so
T = {x ∈ R | x < −2 or x > 3} . ♦
Intervals. Intervals in the real line are familiar but useful sets in studying real
analysis. Calculus veterans have seen countless examples; we collect a few as
reminders of the possible variety and of some useful descriptive language.
In particular, closed intervals contain their endpoints, if any, while open in-
tervals do not. All intervals, open or closed, bounded or unbounded, share two
defining properties:
Definition 1.5. A set I ⊂ R is an interval if (i) I contains at least two points;
(ii) if a and b are in I and a < x < b, then x ∈ I, too.
E XAMPLE 2. Let I and J be any two intervals. What possible forms can the
intersection I ∩ J take?
S OLUTION . The intervals I and J might miss each other entirely; then I ∩J = ∅.
Or I and J might intersect in a single point, as do I = [1, 3] and J = [3, 5]. More
interesting is the fact that only one other possibility exists: If I ∩ J contains at
least two points, then I ∩ J is an interval.
The hard way to prove this is to handle many special cases, depending on
whether each of I and J is open, closed, bounded, unbounded, etc. The easy way
is to use Definition 1.5, in which only (ii) is a live question.
i i
i i
i i
i i
Suppose, then, that both a and b are in I ∩ J, and a < x < b. Since I is an
interval, Definition 1.5 guarantees that x ∈ I. For the same reason, we must have
x ∈ J, too. Thus x ∈ I ∩ J, and we’re done. ♦
Exercises
1. Consider several sets discussed in this section:
(a) Rewrite S and T in simpler forms. (One is a finite set and the other
an interval.)
(b) Decide whether each of the following statements is true or false, and
explain: S ⊂ N; S ⊂ T ; T ∩ Q = ∅; −2.8 ∈ Q \ T .
(c) Give the simplest possible description of the set U = {x ∈ R | x2 +
x < 0}.
(i) R \ (A ∪ B) = (R \ A) ∪ (R \ B) ;
(ii) R \ (A ∪ B) = (R \ A) ∩ (R \ B) .
(a) One of (i) and (ii) is true and the other false. Identify the false claim
and give specific sets A and B to show it is false.
(b) What happens in the special case that A = B?
i i
i i
i i
i i
(a) Let S be the set of all three-member subsets of N10 . How many ele-
ments does S have?
(b) Let T be the set of all three-tuples (a, b, c) with a, b, and c in N10 .
How many elements does T have?
(c) Let S10 be the set of all permutations (i.e., orderings) of the elements
of N10 . How many elements does S10 have?
(d) Do any two of the sets N10 , S, T , S10 have nonempty intersection?
(a) {1, 2, 3} × R
(b) R × {1, 2, 3}
(c) Z × N
(d) {(x, y) | y = x2 }
i i
i i
i i
i i
S OLUTION
√ . The formula f (x) = x2 makes the rule perfectly clear:
√ For inputs
−3, 2, and 1.2345, the corresponding outputs are f (−3) = 9, f ( 2) = 2, and
f (1.2345) = 1.23452. The domain and the codomain, on the other hand, are open
to choice. In a calculus course we might, if pressed, use the natural domain—the
set of all real numbers for which the rule makes sense. For f (x) = x2 , that’s R
i i
i i
i i
i i
itself. (For g(x) = tan(x), the natural domain omits some real numbers.) In a
number theory course, we might use N as domain.
The codomain, too, is open to choice. For a given domain, we need only as-
sure that the codomain contains all possible outputs. With domain R, for instance,
we could use as codomain for f (x) = x2 any set that contains all the nonnegative
reals. This might be R itself, the infinite interval [0, ∞), or something stranger,
like (−42, ∞) or C. With domain N, we could reuse N as codomain, or choose
any set of integers that contains all positive perfect squares. ♦
The moral. The preceding example shows that a function is more than a formula.
A function is a 3-part package: a domain A, a codomain B, and a rule (which may
or may not be a symbolic formula) for assigning a unique output b = f (a) in B to
every input a in A. The notation f : A → B emphasizes this three-fold nature. In
practice the domain or codomain or both are sometimes understood from context,
or even ignored, but they’re always waiting in the wings.
Range and codomain. The range (or image set) of a function f : A → B is the
set of all outputs:
range of f = {f (a) | a ∈ A} .
Note that the range is always a subset—perhaps a proper subset—of the codomain.
For f : R → R given by f (x) = x2 , for instance, the range is the interval [0, ∞),
which omits all the negative numbers.
i i
i i
i i
i i
Seeing Functions
Graphs. Graphs are deservedly popular in elementary calculus. Properties like
smoothness, steepness, rising vs. falling, concavity, and existence of asymptotes
reflect and reveal a lot about functions.
A less familiar fact is that, like functions, graphs can also be described in
the language of sets. The graph of a calculus-style function, say, f (x) = x2 , is
a curve in the xy-plane, made up of points of the form (x, f (x))—in this case,
(x, x2 ). But the idea of a graph makes sense for any function:
Definition 1.7. Let f : A → B be a function. The graph of f is the set
Observe:
• A graph is a set: The graph of f is a certain set of ordered pairs, and thus
a subset of the Cartesian product A × B.
• But not just any set: For f to be a function with domain A, its graph G
must contain one and only one point (a, b) for each a ∈ A. The graph of
a function f : R → R, for instance, must contain exactly one point of the
form (3, y). In pre-calculus lingo, this is the
vertical line test.
• Maybe a curve, maybe not: Graphs of calculus-style functions are often
nice curves. Indeed, a lot of beginning calculus is about connecting ge-
ometric properties of curves to analytic properties of functions. But some
functions have graphs that are nothing like curves. The graph of j in Ex-
ample 2, for instance, has points of the form (Carol, February)!
• Other “graphs” out there: Like other useful math words, “graph” has dif-
ferent meanings in different settings. The graph of an equation, for exam-
ple, is the set of points (x, y) for which x and y satisfy the equation. The
i i
i i
i i
i i
• One idea, two views: A function and its graph are so closely linked—either
one completely determines the other—that functions are sometimes de-
From this perspective, functions fined, rather than just visualized, as sets of ordered pairs. We’ll use both
are sets in their own right. of these viewpoints freely.
Other views. For some functions, geometric graphs make little sense, so we
use other descriptive devices—tables, diagrams, etc. To describe the function
B IRTH M ONTH in Example 2, for instance, we could use a table:
We could also use a diagram to describe B IRTH M ONTH , showing the domain, the
codomain, and arrows connecting inputs p to their corresponding outputs h(p).
(In such a view, the range is the set of “arrowheads,” where incoming arrows
Draw your own diagram for “land.”)
B IRTH M ONTH. Yet another, even less formal notation is sometimes useful. To describe the
M ONTH N UMBER function, we could just write
The next two examples will help illustrate the meaning of—and how to prove or
disprove—injectivity.
i i
i i
i i
i i
as desired. ♦
Definition 1.9 (Onto functions). A function f : A → B is onto (or surjective) if, Using “onto” as an adjective
for every b ∈ B, there is some a ∈ A with f (a) = b. In equivalent words: Every sounds ugly, but everybody
does it.
element of the codomain is also in the range. In equivalent symbols:
{f (a) | a ∈ A} = B.
E XAMPLE 4. The function B IRTH M ONTH from Example 2 is not onto, because
no member of P was born in (say) March. The function M ONTH N UMBER : A → Finding even one such
N12 is onto, because the 12 months range in number from 1 to 12. The “inclusion” codomain member is enough.
i : Q → R with rule i(x) = x is not onto, because the codomain includes
irrationals, but the range does not.
Is the quadratic function q : R → R given by q(x) = x2 − 6x surjective?
The short answer is no: A little calculus or algebra shows that q(3) = −9 is the
minimum value, so the range of q is the interval [−9, ∞), a smaller set than the
codomain. We could make q surjective by using [−9, ∞), not R, as the codomain.
♦
Bijective functions. A function that is both injective and surjective is called bijec-
tive, or, equivalently, a one-to-one correspondence. Our M ONTH N UMBER func-
tion is one bijection. Another is suggested by a few values: What are the domain and
codomain? What’s a good
1 → a, 2 → b, 3 → c, ..., 25 → y, 26 → z. name for this function?
Here are two bijections from calculus, this time in a matched pair:
π π
f: − , → R, with rule f (x) = tan(x)
2 2
π π
g:R→ − , , with rule g(x) = tan−1 (x).
2 2
i i
i i
i i
i i
You can readily convince yourself, perhaps with graphs, that f and g are indeed
one-to-one and onto. But notice a little surprise: f and g are one-to-one cor-
respondences between an interval of finite length and the entire real line. Such
strange behavior is possible when infinite sets are involved; we will explore infi-
nite sets further in a later section.
concocted in various ways from simpler ingredients. Tools like the product rule,
the chain rule, and u-substitution help us find derivatives and antiderivatives of
such built-up functions as appropriate combinations of simpler derivatives and
antiderivatives.
This makes sense with respect Recall, especially, that order matters: The notation g ◦ f means that g follows f .
to nested parentheses—but it The two compositions g ◦ f and f ◦ g are seldom equal—even if both make good
goes against the usual grain of
reading from left to right.
sense.†
from Example 2?
†A minor technical point: Above, to avoid extra notation, we used the same symbol, B, both for
the codomain of f and for the domain of g. In fact, these sets need not be identical. What really
matters is that the composition rule g ◦ f (a) = g(f (a)) make good sense. This occurs as long as the
range of f is contained in the domain of g. As we have seen, a function’s codomain is often open to
some choice, so this subtlety seldom causes difficulty.
i i
i i
i i
i i
and
M ONTH N UMBER ◦ B IRTH M ONTH : P → N12
make sense (the former is the function we called j in Example 2). For instance,
and
make no sense. ♦
i i
i i
i i
i i
Notes on proofs. We’ll prove (ii) and (iv), leaving (i) and (v) to the exercises.
Statement (iii) just combines (i) and (ii), so there is nothing new to prove.
To prove (ii) we need to show that for any c ∈ C there is some a ∈ A with
g ◦ f (a) = c. We can do this directly. For given c ∈ C, we know (because g is
onto) there exists b ∈ B with g(b) = c. Because f is onto there exists a ∈ A with
f (a) = b, and this a does the job: g ◦ f (a) = g( f (a) ) = g(b) = c, as desired.
To prove (iv) we’ll show that if f is not one-to-one, then g ◦ f cannot be one-
to-one either. (In math-speak, this is an indirect proof; more details on such things
in later sections.) Suppose, then, that a1 = a2 , but f (a1 ) = f (a2 ). Then we’d
have g( f (a1 ) ) = g( f (a2 ) ), which is just another way of saying that g ◦ f (a1 ) =
g ◦ f (a2 ). Thus g ◦ f is not one-to-one, and the proof is done.
Note, finally, that g need not be one-to-one just because g ◦ f is. The calculus
formula y = (ex + 1)2 illustrates this. (Let f (x) = ex + 1 and g(x) = x2 ; further
details are in exercises.)
Inverse Functions
Another important definition:
Definition 1.11 (Inverse functions). Let f : A → B and g : B → A be func-
tions. We say f and g are inverse functions if both
Recall, first, that “inverse” has several meanings in mathematics. For instance,
the numbers 3 and −3 are additive inverses because 3+(−3) = 0. Similarly, 3 and
1/3 are multiplicative inverses because 3×1/3 = 1, the multiplicative identity. In
a similar spirit, two functions are inverses if composing them (rather than adding
or multiplying) produces identity functions:
i i
i i
i i
i i
so there’s no clear choice for L ENGTH W ORD (4). Another problem is that no
month has one letter, so there’s no sensible value for L ENGTH W ORD (1).
These toy examples suggest an important general fact: a function f : A → B
has an inverse g : B → A if—but only if—f is both one-to-one and onto. In this
case, f and g simply “reverse” each other’s work: if f maps a to b, then g maps b
to a, and vice versa.
Relations
Let A be a nonempty set, and f : A → A any function on A. We can think of f
as its graph Gf = {(a, f (a)) | a ∈ A}. Note that Gf is a subset of A × A—but a A function and its graph are
subset with special properties that reflect the fact that f is a function. For instance, essentially the same thing.
Gf cannot contain two different elements of the form (a0 , a1 ) and (a0 , a2 ).
This may sound forbiddingly abstract, but familiar (if lightly disguised) examples
are all around us.
E QUALS = {(n, n) | n ∈ N}
corresponds to the equality relation: each integer is related (i.e., equal) only
to itself. In this case, of course, we usually write n = n, not n E QUALS n.
i i
i i
i i
i i
Equality (on any set) is the prototype and simplest—but not the only—example
of an equivalence relation. Consider, for example, the S AME B LOOD T YPE rela-
tion on the set of humans, where x S AME B LOOD T YPE y means (of course) that
x and y have the same blood type. It is easy to see that S AME B LOOD T YPE is
indeed an equivalence relation, which sorts people into four “families” (called
equivalence classes) based on their blood types: A, B, AB, or O. More examples
are in the exercises and later in this book.
Exercises
1. Each part following gives the rule (implicit in the name) for a possible func-
tion. For each rule, find a reasonable domain A and codomain B to create a
function. (Try to make A relatively large and then make B relatively small.)
Is your function injective? Is it surjective?
(a) M OTHER : A → B
(b) F IRST B ORN S ON : A → B
(c) E YE C OLOR : A → B
(d) B IRTHDAY : A → B
2. Find the natural domain for each of the following calculus-style functions.
i i
i i
i i
i i
(c) h(x) = x2 − 1
(d) h(x) = x2 + πx + 1 (give a decimal approximation)
(a) How can you tell from its graph whether f is one-to-one?
(b) How can you tell from its graph whether f is onto?
(c) Find formulas for three different calculus-style functions f : [0, 1] →
[0, 1] that are one-to-one and onto, and such that f (0) = 1.
(d) Define f : [0, 1] → [0, 1] by setting f (x) = x for x ∈ Q and f (x) =
x2 for x ∈
/ Q. Is f one-to-one? Onto?
(a) Describe the set G. (Hint: It is a set of ordered pairs; for instance,
(May, 3) ∈ G.)
(b) The W ORD L ENGTH function is not one-to-one. How does the graph
G reveal this?
(c) The WORD L ENGTH function is also not onto. How does the graph G
reveal this?
5. A certain function f has graph G = {(a, 1), (e, 2), (i, 3), (o, 4), (u, 5)}.
(a) What are the domain and the (smallest possible) codomain of f ?
(b) The function f is bijective. How can we tell this from the graph?
(c) Because f is bijective there is an inverse function, f −1 . What is the
graph of f −1 ?
(d) Can you think of a more descriptive names than f and f −1 for these
functions?
i i
i i
i i
i i
(a) Show that if both f and g are one-to-one, then so is g ◦ f . (This is (i)
of Theorem 1.10, page 21.)
(b) Show that if g ◦ f is onto, then so is g. (This is (v) of Theorem 1.10,
page 21.)
(c) Consider the functions f (x) = ex + 1 and g(x) = x2 , both with
domain R and codomain R. Show that g ◦ f is one-to-one, but g is
not.
√
11. Consider the functions f (x) = x2 and g(x) = x, both with [0, ∞) as
domain and as codomain.
12. The ordinary sine and arcsine functions are inverses as long as some care is
taken with domains and codomains. Work out the details—that is, specify
domains and codomains for these functions that make them inverses.
i i
i i
i i
i i
13. Explain why the S AME B LOOD T YPE relation, discussed at the end of this
section, is reflexive, symmetric, and transitive.
14. Consider the relation M OD 5 on Z, defined by M OD 5 = {(m, n) | 5 divides
m − n}.
(a) Show that M OD 5 is an equivalence relation.
(b) Find the set, denoted by [0], of all integers that are related (by Mod5,
of course) to 0. Do the same for [1], [2], [3], and [4]. (These are called
the equivalence classes for M OD 5.)
15. Let P be the set of (around 400,000) citizens of Minneapolis, Minnesota.
One possible relation on P is B ROTHER , defined by B ROTHER = {(x, y) |
y is x’s brother}. Notice that B ROTHER is transitive, but neither reflexive
(nobody is his own brother) nor symmetric (think about sisters). Notice
too that B ROTHER is not a function, because some Minneapolitans have no
Minneapolitan brothers, while others have more than one.
In each part following, decide whether the relation is (i) reflexive; (ii) sym-
metric; (iii) transitive; (iv) a function. Explain answers briefly.
(a) S AME L AST NAME
(b) A NDERSON = {(x, y) | x and y are Andersons}
(c) S IBLING
(d) M AYOR = {(x, y) | y is x’s mayor}
(e) O LDEST N EIGHBOR
i i
i i
i i
i i
The old Chinese sage who supposedly said so may have had other things in mind,
but the advice certainly applies to mathematics. Without clear and unambiguous
language—“right names”—we can’t know exactly what we are talking about, and
therefore we can’t produce really convincing proofs.
The moral is that care with language is just as important in mathematics as it
is in, say, the literary arts. Granted, poets and mathematicians use language very
differently: good poetry may rely on subtle allusions and shaded meanings, but
the best mathematical proofs are always clear, direct, and straightforward, even
when they convey difficult ideas. Both poems and proofs can be praised as ele-
gant, but the judgment depends on different standards. The good news is that we
mathematicians need not aspire to fancy artistry: clarity and directness of expres-
sion are less rarefied arts than practical skills, readily acquired and improved on
the job.
Following are some samples, phrased as advice, of characteristics of mathe-
matical writing.
Use standard symbols and notations. Using standard notations, of which we’ll
encounter many in this book, helps shorten, unclutter, and clarify mathematical
discussion—but only if notations are used consistently, and with care. For in-
stance, the notations (1, 3), [1, 3], and {1, 3} all have precise but different mean-
ings—one is an open interval, one is a closed interval, and one is a set with just
two members. Straying from these conventions is asking for trouble. It is far from
clear, for instance, what such notations as
√ √
[x | x2 > 2] and Q | (− 2, 2)
i i
i i
i i
i i
E XAMPLE 1. Prove this claim: The set of rational numbers is closed under
addition.
P ROOF. Since x and y are rational, we can write x = a/b and y = c/d, where
a, b, c, and d are integers, and b and d are nonzero. Now we use some fraction
arithmetic: See the common denominator?
a c ad bc ad + bc
x+y = + = + = ,
b d bd bd bd
a rational number, and the proof is done. ♦
Fair game? Few proofs are completely from scratch. Even the simple proof
above relies on some very basic properties of integers: sums and products of in-
tegers are always integers, and the product of nonzero integers is always nonzero.
(In this book we will freely assume and use such basic properties of integer arith-
metic.) Knowing just which assumptions are safe and which need proof can be
tricky—especially when assumptions are “understood” rather than stated explic-
itly. Learning to sort out such matters is part of the craft of proof.
Write in complete “sentences.” The quotes are there because mathematical sen-
tences in mathematics may include not just ordinary words but also symbols,
equations, inequalities, etc. For instance, it is fine to write
i i
i i
i i
i i
One problem with the latter is the lack of “connective tissue”: a reader can’t tell
whether you’re asserting that something implies something else, or just listing
your favorite inequalities. At any cost, be clear.
Would you swim here or not? Is the sign intended for human or for reptile readers?
In practice, many mathematical sentences convey complex ideas, and so nat-
urally have correspondingly complex structures. It is especially important, there-
fore, to write mathematics as clearly and unambiguously as possible, and to help
the reader decipher your meaning.
Write sentences that “scan.” Proofs and solutions must be not only correct but
also intelligible to a reader. An excellent way to assure the latter is to read each
sentence back to yourself. (Doing this silently may reduce ridicule from neigh-
bors.) A sentence with proper English grammar and syntax may be mathemat-
ically right or wrong; every mathematician has seen eloquent proofs that boil
down to nonsense. But an ungrammatical sentence is almost surely wrong or,
worse, meaningless to a reader.
Make sense. Ask carefully whether what you write makes sense by the strict
standards of mathematical writing. For instance, the sentence
is nonsensical (do you see why?) and hence neither true nor false. Your first job
is to write sentences that make sense. Your second job is to write sentences that
are true.
For every positive there exists an integer n such that 0 < 1/n < .
There exists an integer n such that 0 < 1/n < for every positive .
We will study the Archimedean The first statement is true; it is a version of so-called Archimedean principle for
principle in Section 1.6. real numbers. The second statement is meaningful, but false.
i i
i i
i i
i i
Just don’t do “it.” The harmless-looking pronoun “it” commits countless crimes
in mathematics. Here, for example, is a confusing way to describe an important
connection between a function f and its derivative f :
It’s maximum or minimum when it’s flat, and that happens when it’s
a zero of its derivative.
That’s way too many pronouns, and who knows what each refers to? Just say no:
Make it look easy. A musician planning a recital invests hours of practice and
study, and hits plenty of false notes. The recital itself skips all of this practice
and study, and most of the false notes. In the same way, a finished mathematical
proof should be the polished result, rather than the basic process, of whatever
informal thinking, experiments and false starts may have happened along the way.
It is sometimes helpful to hint at the investigative phase of proving a result, but it
is important not to confuse such material with the proof itself. Good proofs are
clear, concise, and couched in standard mathematical language.
Don’t say too much—or too little. Respect, but don’t overtax, your reader’s intel-
ligence and willingness to work. Ideas in your proof should be clear and accessi-
ble to your reader—someone with your own level of intelligence and knowledge.
i i
i i
i i
i i
too vague to make our cut, and we’ll leave the fun of debating it to colleagues
across campus.
Complex statements can be built up from simpler ones. Using ingredients
above, for instance, we can create blends like these:
and
Q and not R : It is cloudy but not raining.
Variables. Some statements involve variables: symbols that stand in for unspec-
ified inputs. For such statements we sometimes use names like P (x) to emphasize
the presence of variables. Here are some examples:
The truth or falsity of such statements usually depends on the values of the vari-
ables involved. Here, for instance, P (7) is false, P (−1) is true, Q(Sue) is proba-
Things might change if we bly false, and Q(Ed) might be true. In this case R(x, y) happens to be true for all
allowed, say, imaginary number real number inputs x and y.
inputs.
Implication and equivalence. An implication is a statement of the form “if P
then Q”; we often write P =⇒ Q. This means, of course, that Q is true
whenever P is. With P : x > 3 and Q : x2 > 9, for example,
and
Q =⇒ P means x2 > 9 =⇒ x > 3.
Here, clearly, the implication P =⇒ Q is true: x2 > 9 does indeed hold
whenever x > 3. But the implication Q =⇒ P is false; try x = −42. An
important moral is that implication is, by default, a one-way street: P =⇒ Q is
no guarantee that Q =⇒ P .
Solving equations, as in linear If it happens that both P =⇒ Q and Q =⇒ P , then P and Q always
algebra, is all about searching have the same truth values, and are therefore called equivalent. The statements
for equivalent, but simpler,
equations.
P (x) : 2x + 5 = 11 and Q(x) : x = 3 are equivalent, for instance.
And, or. Given statements P and Q, we can form new statements ( P and Q )
and ( P or Q ). (The parentheses aren’t essential, but they help keep the right
things together.) “And” is used mathematically much as it is in everyday speech:
( P and Q ) is true if, but only if, both P and Q are true. “Or” is a little different:
We take ( P or Q ) to be true when either or both of P and Q is true. This conven-
tion, called the inclusive or, differs a bit from the exclusive or, sometimes written
xor, that’s common in everyday life: A child might be offered either candy or ice
cream, but not both.
i i
i i
i i
i i
not P ,
whose truth value is opposite to that of P . Negating simple statements is easy.
With
R : It is raining,
for instance, we have simply
not R : It is not raining.
Negating complicated statements can take some thought. Consider, for instance,
Goldbach’s conjecture: This famous unsolved problem
dates back to the 1740s, in
G : Every even integer greater than 2 is the sum of two primes. correspondence between
Christian Goldbach and
How would we negate G? We could, admittedly, write something like Leonhard Euler.
i i
i i
i i
i i
or even just
As noted earlier, an implication and its converse need not have the same truth
value—and they do not in the present case. An implication and its contrapositive,
Common sense bears this out; on the other hand, always have the same truth value. This matters in mathematical
we explore it further in the practice, as we will see, because the contrapositive of a statement is sometimes
exercises.
easier to prove than the original.
i i
i i
i i
i i
Coda: new-age proofs. Proofs are no less important now than they’ve ever been.
But modern viewpoints and, especially, modern technology have made new kinds
of mathematics possible—and sometimes require new kinds of proof. For exam-
ple, the four-color theorem (four colors suffice to color any planar map of “coun-
tries”) was posed in 1852, but proved only in 1976, with aid from a computer to
check hundreds of special cases. Computer-aided proofs are now common, but
they remain controversial.
Exercises
1. This problem is about three statements:
(a) R =⇒ not S
(b) R =⇒ C
(c) R =⇒ (not S) and C
(d) C =⇒ not S
i i
i i
i i
i i
(a) P =⇒ R
(b) Q =⇒ R
(c) (P and Q) =⇒ R
3. In each part, write (as simply as possible) both the converse and the contra-
positive of the given implication. No proofs needed, but try to label each
statement as true or false. In all parts, a, b, an , etc. all stand for real num-
bers.
(a) If a and b are both rational, then a + b is rational.
(b) If a is irrational then 1/a is irrational, too.
(c) If a and b are both irrational, then ab is irrational.
(d) If a series an converges, then limn→∞ an = 0.
4. In each part, write (as simply as possible) the negation of the given state-
ment.
(a) At least one of a, b, and c is nonnegative.
(b) f (x) ≤ 3 for all x ∈ [2, 7].
(c) sin n is irrational for every positive integer n.
(d) ∃x ∈ R such that x2 = −1.
(e) ∀x ∈ R ∃y ∈ R such that xy = 1.
i i
i i
i i
i i
9. Following are several possibly true but poorly-stated claims from elemen-
tary calculus. Fix each statement by replacing all instances of “it” and
“its” and “it’s” with clearer words or phrases. (An example appears on
page 31.)
10. Each of the following sentences has one or more syntax errors. In each
case, make a clear (and true) sentence with as little editing as possible.
i i
i i
i i
i i
VI: Every even integer from 4 to 100 is the sum of two primes.
VII: Every even integer greater than 2 is the sum of two primes.
Proofs (and disproofs, when needed) come in similar variety; no simple taxonomy
is possible. Still, a few standard types of argument are so common that they appear
in every mathematician’s toolkit. We name and illustrate several of them in this
section.
Claim V is harder to restate in if–then form because its hypotheses, such as the
definition of a prime number, would be tedious to list.
The form of a claim often suggests possible strategies for proving or refuting
it. In the case of an if P then Q claim, for instance, we might attack either the
claim itself or its contrapositive, if not Q then not P. For broad claims like VII
and VIII, each of which covers infinitely many cases, we should expect to work
harder for a proof—or maybe look for even one counterexample as a disproof.
Direct Proof
A direct proof addresses a claim if P then Q in the “obvious” way—it starts with
P and derives Q. We illustrate with Claim I.
Remember, we’re assuming E XAMPLE 1. Prove directly (using basic properties of integer arithmetic) that if
integer basics. a and b are rational numbers, then ab is rational.
i i
i i
i i
i i
Indirect Proof
An indirect proof, like a direct one, addresses a claim of the form if P, then Q. But
there is a twist: instead of showing that P implies Q, we prove the contrapositive
(but equivalent!) statement:
An indirect proof may be the simplest choice when either P or Q is awkward, but
(not P ) or (not Q) is simpler. We illustrate with Claim III.
S OLUTION . A direct argument seems awkward here because the hypothesis says
something negative about a. The contrapositive is simple and straightforward: if
1/a is rational, then a is rational.
This is easily shown. If 1/a is rational, then we can write 1/a = x/y for
some (nonzero) integers x and y. But then we have a = y/x, which shows that a
is rational, as desired. ♦
i i
i i
i i
i i
Proof by Contradiction
Proofs by contradiction are close kin to indirect proofs. In each case we first
assume that the conclusion fails, and then try to deduce a contradiction, either of
the hypothesis or of some other known fact. From the resulting absurdity we infer
that the original conclusion must have been true all along. (The method is also
known as reductio ad absurdum, Latin for “reduction to the absurd.”)
√
E XAMPLE 4. Prove Claim IV: 5 is irrational.
S OLUTION . We could tweak the proof of Theorem 1.2, page 6, but for variety
we’ll take an approach based on prime factorization: Every positive integer n
has a unique list of prime factors, some of which may be repeated. (For n = 60
the list is {2, 2, 3, 5}.) The key insight for our proof is about squaring: each
prime factor of n appears twice as often among the prime factors of n2 . (For
n2 = 602 , the prime factors are {2, 2, 2, 2, 3, 3, 5, 5}.) In particular, every square
integer has an even number of prime factors. So much said, we’re ready for a crisp
proof.
√
It is traditional, and helpful, to P ROOF. Assume, toward contradiction, that 5 is rational. Then we can write
√
label contradiction proofs up 5 = a/b for some positive integers a and b, and so
front.
√ a a2
5= =⇒ 5 = 2 =⇒ 5b2 = a2 .
b b
The last equation provides our contradiction. The right side is a square, and there-
fore has an even number of prime factors. But the left side has an odd number of
prime factors—an even number coming from b2 and one more from the 5. This
absurdity completes the proof. ♦
P ROOF. Assume, toward contradiction, that there are only finitely many primes,
say p1 , p2 , p3 , . . . , pn . Now consider the number N = p1 p2 p3 · · · pn + 1. By its
N is one more than a multiple of construction, N is not divisible by any of the primes p1 , p2 , p3 , . . . , pn . Hence
each pi . either N is itself prime or N has at least one prime factor not among p1 , p2 ,
p3 , . . . , pn . Either way, the list {p1 , p2 , p3 , . . . , pn } could not have been com-
plete. This contradiction completes the proof. ♦
i i
i i
i i
i i
E XAMPLE 6. Prove Claim VI: Every even integer from 4 to 100 is the sum of
two primes.
S OLUTION . Why not just prove Claim VII—every even integer greater than
two is the sum of two primes—and be done with it? That would indeed do
the job, but Claim VII is Goldbach’s conjecture, a famous problem dating to
the 1740s. Considering that Claim VII has already stumped the likes of Euler,
we’ll stick with Claim VI. Handling its 49 special cases is easy, although perhaps
tedious: Try some more!
Proof by Induction
Mathematical induction is among every mathematician’s favorite power tools. It
is a simple, structured, and sometimes astonishingly powerful approach to prov-
ing whole families of claims at once. We illustrate the idea first informally, by
example.
i i
i i
i i
i i
It is easy in this case to check P (n) for small n, simply by listing. For P (1), the
Every set has ∅ as a subset. two subsets are {1} and ∅. For n = 2 the list is
See the pattern? With n = 3 we get eight subsets, as expected: four from the n = 2 case plus four
more that include a 3:
(i) a set with one element “obviously” has two subsets; and
(ii) adding a new element to any finite set doubles the total number of subsets
(every “old” subset generates a new one when we throw in the new element).
Induction, formally. Example 7 illustrates the usual setting for a proof by induc-
tion: a claim that some proposition P (n) holds for every positive integer n. To
prove such a claim by induction takes two (named) steps:
• The base case: Show that P (1) holds.
• The inductive step: Show that P (k) implies P (k + 1) for every positive
integer k. (Here P (k) is called the inductive hypothesis.)
We illustrate the idea (and the customary shop talk) by formalizing the proof
that, for all n, the set {1, 2, . . . , 42} has 2n subsets.
Proof (of Claim VIII, by induction): The base case n = 1 holds because the set
{1} has only itself and the empty set as subsets.
For the inductive step we assume the inductive hypothesis—that {1, 2, . . . , k}
has 2k subsets—and try to show that {1, 2, . . . , k, k + 1} has 2k+1 subsets. To
this end, note first that all 2k subsets of {1, 2, . . . , k} are also subsets of {1, 2, . . . ,
k + 1}. Every remaining subset of {1, 2, . . . , k + 1} contains k + 1, and so can be
formed by adding k + 1 to some subset of {1, 2, . . . , k}. Thus {1, 2, . . . , k, k + 1}
has 2 × 2k = 2k+1 elements, as desired, and the proof is complete.
n(n+1)
E XAMPLE 8. The identity 1 + 2 + 3 + · · · + n = 2 holds for all positive
integers n.
i i
i i
i i
i i
S OLUTION . We’ll write P (n) for the identity above; for instance, P (10) says
that 1 + 2 + · · · + 10 = 10 · 11/2 = 55. This is easily checked directly, but
we’d rather prove P (n) for all integers n—just the right job for mathematical
induction.
That the first and last quantities are equal is just what P (k + 1) asserts. The proof
is complete. ♦
i i
i i
i i
i i
We’ll take this basic fact, like others about the integers, as an axiom rather
than something to be proved.
Exercises
1. In each part of this problem, either prove or disprove the given claim. If you
prove the claim, indicate whether your proof is direct, indirect, by contra-
diction, or something else. If you disprove the√ claim, use a counterexample.
(It’s OK to assume known facts, such as that 2 is irrational.) In all cases,
x and y are real numbers.
√
(a) If x ∈ Q, then 2 + x ∈ / Q.
√
/ Q, then 2 + x ∈
(b) If x ∈ / Q.
(c) If x + y is irrational, then at least one of x and y is irrational.
(d) If p is a prime number, then 2p − 1 is prime.
(e) For all real numbers x and y, |x − y| ≤ x2 − y 2 .
2. In each part following, either prove or disprove the converse of the given
claim. If you prove the converse, indicate whether your proof is direct,
indirect, by contradiction, or something else. If you disprove
√ the converse,
use a counterexample. (Assume known facts, such as that 2 is irrational.)
In all cases, x and y are real numbers.
√
(a) If x ∈ Q, then 2 + x ∈ / Q.
√
/ Q, then 2 + x ∈
(b) If x ∈ / Q.
(c) If x + y is irrational, then at least one of x and y is irrational.
(a) Check directly that the equation holds for n = 1 and for n = 10.
(b) Prove by induction that the formula holds for all positive integers n.
(c) Use (don’t reprove) the formula in Example 8 to give another proof
(not involving induction) of the equation above.
i i
i i
i i
i i
4. Let r = 1 be a real number. Show by induction that for all positive inte-
gers n,
rn+1 − 1
1 + r + r2 + r3 + · · · + rn = .
r−1
5. Show that the inequality 2n < n! holds for all integers n > 3.
6. Guess a formula (in terms of n) for the sum
1 1 1 1
+ + + ··· + .
1·2 2·3 3·4 n · (n + 1)
Prove your answer by induction.
7. Show that
(1 + 2 + 3 + · · · + n)2 = 13 + 23 + 33 + · · · + n3
holds for all positive integers n. (Hint: Use the formula for 1 + 2 + · · · + n
in Example 8.)
√
8. A version of Theorem 1.3 says that if n is a positive integer and n is
rational, then n is a perfect square. Prove this using the following outline,
the idea of prime factorization, and the fact that a positive integer n is a
perfect square if and only if every prime factor of n appears to an even
power. See also Example 4, page 40.
√
If n = a/b, where a and b are positive integers, then squaring both sides
gives nb2 = a2 . Now factor each side of this equation as a product of
prime numbers. Because the right side is a square, each prime factor on the
right side appears to an even power, and so the same must be true on the
left. Each prime factor of b2 appears to an even power, and so (do you see
why?) each prime factor of n must also appear to an even power.
9. (a) Show that 5n > n! for positive integers n < 12.
(b) Show that 5n < n! for positive integers n ≥ 12.
10. (a) Guess a formula (in terms of n) for the sum 1 · 2 + 2 · 3 + 3 · 4 + · · · +
n · (n + 1). Prove your answer by induction.
(b) It is well known, and readily proved by induction, that
n
n(n + 1)(2n + 1)
n
n(n + 1)
j2 = and j= .
j=1
6 j=1
2
i i
i i
i i
i i
11. Every calculus student knows that if f (x) = xn for any positive integer n,
then f (x) = nxn−1 . Prove this by induction, assuming (i) if f (x) = x,
then f (x) = x; and (ii) the product rule. (We’ll define the derivative, state
and prove the product rule, and firm up other ideas later in this book; here
the point is to see induction in a familiar setting.)
12. Another familiar calculus formula (see the preceding problem) says that
1 n
if g(x) = , then g (x) = −
xn xn+1
for every positive integer n. Prove this by induction, assuming both the
n = 1 case and the product rule.
13. Claim: In any group of n kittens, if one is orange, then all are orange.
What is wrong with the following “proof” by induction?
Proof: The claim is trivial if n = 1, so the base case holds. To illustrate the
inductive step, assume the claim holds for n = 42. Suppose we’re given a
group of 43 kittens, including at least one—say, Hans—that’s orange. Any
other kitten—say Fritz—can be put in some 42-member group with Hans,
and so Fritz must also be orange by the inductive hypothesis. Thus all 43
kittens are orange, and the proof is done.
Finite sets: few surprises. “Small” sets offer few surprises. It seems clear, for
instance, that S = {a, b}, with two elements, is “smaller” than T = {a, b, c}, with
three. Similarly, N42 = {1, 2, . . . , 42} is obviously “smaller” than F IFTY S TATES
= {Alabama, Alaska, . . . , Wisconsin, Wyoming}, even though the two sets have
completely different types of elements, while N26 and E NGLISH A LPHABET =
{a, b, c, . . . , z } have the same “size.”
“Measuring” sets by counting their elements works well for sets with finitely
many elements. For such sets, moreover, our intuition is usually reliable. If, say,
a set S has 427 elements and T S, then T must be “strictly smaller,” with 426
elements or fewer..
Infinite sets: many surprises. Matters are very different for infinite sets. Con-
sider, for instance,
i i
i i
i i
i i
In one way E seems obviously “smaller”—it omits all of the (infinitely many!) odd
numbers in N. On the other hand, the mapping
is a one-to-one correspondence between N and E, so maybe the two sets have the
“same size.” Similarly, the interval (0, 1) is “shorter” than the interval (0, 2), but
the same mapping, x → 2x, is a one-to-one correspondence. An important aim
of this section is to develop useful ways of “measuring” infinite sets.
Informally speaking, two sets have the same cardinality if there is a one-to-
one correspondence between them. We saw this above for N and E and also for
(0, 1) and (0, 2); thus, N ∼ E and (0, 1) ∼ (0, 2).
E XAMPLE 1. Show that (0, 1), (−2, 5), and (0, ∞) all have the same cardinality.
i i
i i
i i
i i
5
1
4
3 0.75
2
0.5
1
0.25
1
–1
–2 10 20
i i
i i
i i
i i
• The pigeonhole principle: If a (finite!) hotel has fewer rooms than guests, We’ll revisit some of these facts
then at least one room must house at least two guests. This simple but useful in the exercises.
idea is known as the pigeonhole principle (trade rooms for nest boxes and
guests for pigeons). Here is a more formal statement:
Let f : A → B be any function, where A and B are finite sets,
and B has fewer members than A. Then f is not one-to-one.
• Subsets are finite, too: If A is a finite set and B ⊂ A, then B is finite, too.
• New finite sets from old: If A and B are finite sets, then A ∪ B, A ∩ B,
A \ B, and A × B are all finite.
• Listing and ordering: If A is any finite set, say with 42 elements, then we
can list the elements: A = {a1 , a2 , a3 , . . . , a42 }. If A happens to be a finite
set of real numbers, we can order our list from smallest to largest:
Biggest and smallest members. The last property above has a useful form that
deserves special mention:
Fact 1.16. Every finite set of real numbers contains a maximum and a minimum
element.
The words “finite” and “contains” both matter. Some infinite sets, such as Z,
are unbounded, and therefore obviously lack maximum and minimum elements.
The case of a bounded infinite set, such as the open interval (1, 3), is a little
subtler. The problem is that 3 and 1—the obvious candidates for biggest and
smallest—are not members of (1, 3). The closed interval [1,3] does
contain maximum and minimum
Countably infinite sets. The set N is the “model” countably infinite set, but many elements.
other sets turn out to have the same cardinality as N. The following proposition
says, in effect, that N is the “smallest” infinite set.
Proposition 1.17. Let S be countably infinite, and let T ⊂ S be any nonempty
subset. Then T is either finite or countably infinite.
Notice the possible surprise: Every infinite subset of N—the odd numbers, the
primes, the powers of 2, the powers of 123456789—is in the sense of cardinality
just as “big” as N itself.
The idea of the proof is to list all the members of T :
t1 , t2 , t3 , . . . , t234 , . . . .
i i
i i
i i
i i
i i
i i
i i
i i
is also countable.
Proof (sketch): Again we assume that each Ai is countably infinite, and list its
elements: Ai = {ai,1 , ai,2 , ai,3 , . . . }. As in the preceding proof, we can list all
elements of all the Ai in a big “matrix”:
Just as before, this “matrix” has countably many entries, so we’re almost done.
But a minor subtlety needs attention: the Ai might have some elements in com-
mon, so some elements of the union might appear more than once in the “matrix.”
Luckily, this turns out not to matter, because the distinct elements of the union cor-
respond to some subset of the matrix entries, and we showed in Proposition 1.17
that such subsets are countable.
be the set of fractions a/i, where a ∈ Z. Now each Ai is clearly countable—it is A given rational, say 3/7,
in one-to-one correspondence with Z—and Q is the union of all the Ai . appears not just in A 7 but also
in A14 , A 21 , and so on.
Uncountable Sets
The preceding propositions imply that many apparently large sets, such as Q, are
in fact no larger in cardinality than N. Might R itself be countable? The answer
is hardly obvious, but it turns out to be no, as the German mathematician Georg
Cantor showed around 1873.
Theorem 1.21. R is uncountable.
i i
i i
i i
i i
We’ll give a version of Cantor’s ingenious proof below, but first let’s consider
some striking implications of the theorem:
Corollary 1.22. The interval (0, 1) is uncountable. Every nonempty open interval
(a, b) is uncountable. The irrational numbers are uncountable.
All parts of the corollary say that the sets mentioned are, in cardinality, much
larger than the comparatively “sparse” set Q. Throw a dart at random at the real
line, and you’ll almost certainly hit an irrational.
Proofs of the corollaries. In Example 1 we showed that the intervals (0, 1),
We found explicit bijective (−2, 5), and (0, ∞) all have the same cardinality. Similar methods show that all
functions between these nonempty open intervals, including (−∞, ∞) (aka R), have the same cardinality.
intervals.
If the set P of irrationals were countable, then R = P ∪ Q would be the union of
two countable sets, and hence countable itself.
Cantor’s “diagonal” proof. Cantor uses the idea of infinite decimal expansion
to show that the interval (0, 1) is uncountable. The proof is by contradiction. If
(0, 1) were countable, we could list all of its elements in an infinite sequence:
x1 , x2 , x3 , . . . . Now each xi has an infinite decimal expansion, of the form
xi = 0.di1 di2 di3 di4 di5 . . . , where the dij are decimal digits, ranging from 0 to
9. Thus, we can write
Here comes the clever part. Cantor uses the diagonal entries
There are ten choices for each digit, so there are plenty of ways to choose the ei ,
Pun intended. and therefore countless possible numbers x0 . What matters is that x0 differs from
x1 in the first digit, from x2 in the second digit, from x3 in the third digit, and
so on. Thus x0 is nowhere among the original xi , which contradicts our original
assumption.
i i
i i
i i
i i
Exercises
1. Consider the functions f : (0, 1) → (−2, 5) and g : (0, ∞) → (0, 1)
defined in Example 1. (It is shown there that g is onto.)
2. Let (a, b) and (c, d) be any two bounded intervals. Find a linear function
f : (a, b) → (c, d) that is one-to-one and onto. (Give an explicit formula
for f in terms of a, b, c, and d.)
3. Let A be a set with 42 elements and B a set with 43 elements, and let
f : A → B and g : B → A be functions. Can f be one-to-one? Onto?
What about g? Give examples of what can happen, and explain what can’t.
How is the pigeonhole principle involved?
4. Let S be a finite set. Use the pigeonhole principle to show that if f : S → S
is one-to-one, then f is also onto.
5. It can be shown that a set is S is infinite if and only if there exists a function
f : S → S that is one-to-one but not onto. (The “if” part is the claim in the
preceding problem.)
(a) Find a function f : N → N that is one-to-one but not onto. (There are
many possibilities.)
(b) Find a function g : R → R that is one-to-one but not onto. (There are
many possibilities.)
(c) Find a function h : R → R \ {1} that is one-to-one and onto.
i i
i i
i i
i i
(a) For i ∈ N, let Qi be the set of rationals p/q (written in reduced form),
for which p2 + q 2 < i. How many members does Q3 have? What
about Q10 ? Can Qi = Qi+1 for some i? (Hints: Members of Qi
correspond to some, but not all, of the points inside the circle p2 + q 2
in the pq-plane. For Q3 and Q10 , just count these points.)
(b) Find an upper bound in terms of i for the number of elements in Qi .
∞
(c) Show that Q1 ⊆ Q2 ⊆ Q3 ⊆ . . . and that i=1 Qi = Q.
10. Show that [0, 1] and (0, 1) have the same cardinality by finding a function
f : [0, 1] → (0, 1) that is one-to-one and onto.
Hints: The claim seems reasonable, but finding a good function f is tricky.
Here is one possibility: Set f (0) = 1/2, f (1) = 1/3, f (1/2) = 1/4,
f (1/3) = 1/5, f (1/4) = 1/6, f (1/5) = 1/7, etc. For all other x, set
f (x) = x. Think about it, draw a graph, etc.; show that this function does
the job. (We’ll show later, by the way, that no continuous function f can
have the desired properties.)
11. Show that [0, ∞) and (0, ∞) have the same cardinality.
12. Use results from these problems to explain why all intervals in R have the
same cardinality.
13. A “book” is a finite string of characters from some finite “alphabet,” such
as the 128-character ASCII system. Is the set B of all possible “books”
finite, countably infinite, or uncountable?
14. A polynomial with integer coefficients is an expression of the form p(x) =
a0 + a1 x + a2 x2 + · · · + an xn , where n is a nonnegative integer and all
the ai are integers. The set of all such polynomials is denoted Z[x]. A
real number a is called√algebraic if √p(a) = 0 for some p in Z[x]. If, say,
p(x) = x2 − 2, then p( 2) = 0, so 2 is algebraic.
i i
i i
i i
i i
This simple idea is surprisingly helpful in making sense of expressions that in-
volve absolute values.
E XAMPLE 1. Which real numbers x satisfy (i) |x − 3| < |x + 2|? What about
(ii) |3x − 7| < 5?
7 7 5
|3x − 7| < 5 ⇐⇒ 3 x − < 5 ⇐⇒ x − < .
3 3 3
The last version makes the meaning clear: x lies within distance 5/3 from 7/3.
Equivalently, x ∈ ( 2/3, 4 ). ♦
Absolute Truths
We collect some key properties of absolute values in two theorems. The first is
easy; proofs are omitted or left as exercises.
i i
i i
i i
i i
Theorem 1.23. Let x and y denote arbitrary real numbers; assume k > 0.
We explain the name below. The next theorem is important enough to have its own name.
Theorem 1.24 (Triangle inequality). Let x and y be any real numbers. Then
|x + y| ≤ |x| + |y| .
|x − y| ≥ | |x| − |y| | .
On proofs. The triangle inequality follows from several bits of Theorem 1.23.
From (a), we get
Variations on a theme. The triangle inequalities are often used in forms slightly
different from the “vanilla” versions in the theorem. Following are some exam-
ples; observe occasional uses of Theorem 1.23:
Note especially what (ii) says about distance: the trip from x to y is no longer
than the sum of the distances from x to a and from a to y. This should sound
reasonable—stopping at a enroute shouldn’t shorten the trip from x to y—and it
i i
i i
i i
i i
helps explain the allusion to triangles. Note also (iii), which traps |x − y| between
upper and lower bounds.
In fact, triangle-type inequalities hold in quite general mathematical settings,
some beyond the scope of this book. The basic triangle inequality |x + y| ≤
|x| + |y| holds for complex numbers x and y, for instance, if |x| denotes the length
of x considered as a vector in the plane. Generalizing in another direction, related
facts like
|x1 + x2 + · · · + x100 | ≤ |x1 | + |x2 | + · · · + |x100 |
and
1 1
f (x) dx ≤ |f (x)| dx
0 0
For |x − z| there is no upper bound (why?), but the reverse triangle inequality
gives a lower bound:
To estimate |xy| and |x/y| we notice first that 6.99 < |x| < 7.01 and 6.98 <
|y| < 7.02. Thus, These bounds follow from the
triangle inequality; common
x |x| 7.01 sense works, too.
|xy| = |x||y| ≤ 6.99 · 6.98 ≈ 48.79 and = ≤ ≈ 1.004. ♦
y |y| 6.98
Exercises
1. Find all real values of x that satisfy the given inequality; express answers
in interval notation.
i i
i i
i i
i i
4. The triangle inequality (TI) for three summands follows from the ordi-
nary TI:
5. The triangle inequality |x + y| ≤ |x| + |y | also holds for vectors x and y
in the plane, where |x| denotes the length of x. Draw a picture to illustrate
this fact; make note of the triangle. When does equality hold?
6. This problem explores a connection between the absolute value and the
maximum or minimum of two quantities.
x + y + |x − y|
max{x, y} = .
2
(b) Find a similar formula for the minimum of x and y.
(c) Let f : I → R and g : I → R be functions defined on an interval
I. Find a formula involving the absolute value for the new function
h : I → R defined by h(x) = max{f (x), g(x)}.
(d) Let f (x) = sin x and g(x) = ex , and let h(x) be defined as in the
preceding part. Use technology to plot f , g, and h together in an
interval that shows clearly what’s happening.
i i
i i
i i
i i
1.8. Bounds 59
Discuss, perhaps with a picture, why this is plausible. How are Riemann
sums involved? (No formal proof is possible until we define the integral!)
1.8 Bounds
Theorems and proofs in real analysis often turn on boundedness. We’ll prove
later, for instance, that a continuous function defined on a closed and bounded
interval I = [a, b] is itself bounded on I. To make sense of such a claim re-
quires clear meanings for all its words—which include two somewhat different
instances of the b-word. In this section we start to unpack the idea and language We’ll also need to define
of boundedness in several settings. “continuous,” of course.
It is clear, for instance, that all three of the sets {1, 2, 3}, [1, 3], and (1, 3) are
bounded above by 3 and below by 1, while the interval (1, ∞) has the same lower
bound, but no upper bound.
Here are some basic notes on the idea and language of boundedness:
• Many choices: Upper and lower bounds are far from unique. For {1, 2, 3},
[1, 3], and (1, 3), for instance, −42 and 42 also work as lower and upper
bounds. These may seem unlikely choices, but in practice we sometimes
care more about the existence (or absence) of bounds than about particular
numerical values.
i i
i i
i i
i i
And similarly for sets • Unboundedness: A set is unbounded if it is not bounded. The definition is
unbounded above or far from surprising, but deciding whether a set is bounded or unbounded
unbounded below.
can be challenging. What do you think about
1 1 1 1 1 1
1, 1 + , 1 + + , 1 + + + , . . .
2 2 3 2 3 4
and
1 1 1 1 1 1
1, 1 + , 1 + + , 1 + + + , . . . ,
2 2 4 2 4 8
for example?
E XAMPLE 1. Let S and T be nonempty sets of real numbers. Prove some basic
properties of bounded sets:
(c) Let |S| = {|s| | s ∈ S}. Then S is bounded if and only if |S| is bounded.
for all s and t in question, and the claims about boundedness follow. ♦
i i
i i
i i
i i
1.8. Bounds 61
This may all seem, for now, like a lot of fuss over not much. Indeed, there is little
interesting to be said about sups and infs of simple sets, like bounded intervals.
We will see soon, however, that the existence of real sups and infs for more general
bounded sets—a property called completeness—is essential in the theory of real
analysis. Here, for the moment, are some simpler notes on the definition.
• Do they exist? If S is unbounded above (or below), then, obviously, S has
no supremum (or infimum). Every bounded set of real numbers, by con-
trast, has a real supremum β and a real infimum α. We discuss this subtle
property and its implications carefully in the next section.
• In or out? The interval I = (−3, 42] contains its supremum but not its
infimum; including or excluding intervals’ endpoints shows that all such
combinations are possible. If a set S contains its supremum β (or infimum
α), then β is the maximum (or minimum) element of S.
• Only one? We said “the” in the preceding definition, and this is justified: a
set S has at most one supremum and one infimum. The proof is easy. If β1
and β2 are both suprema for S, then we’d have both β1 ≤ β2 and β2 ≤ β1 ,
and so β1 = β2 .
i i
i i
i i
i i
For I = (0, 1) and a = 1.003, for example, we can use δ = 0.003 (or any smaller
value of δ). Just as clearly, no positive δ works for I = (0, 1) and a = 0.
E XAMPLE 2. The interval I = (2, 3) is bounded away from π because |π −x| >
0.14 for all x ∈ (2, 3). By contrast, 3 ∈
/ I, but I is not bounded away from 3,
since I has members within any small distance δ from 3. The set N is bounded
away from π, but Q is not, since for any δ > 0, no matter how small, there are
rational numbers within δ of π. ♦
S OLUTION . The idea is that, since S is finite, one of the si must be closest
to a. More precisely, let di = |si − a| be the distance from si to a. Then
D = {d1 , d2 , . . . , dn } is a finite set of positive numbers, and so has a minimum
member, say d1 . (Every finite set of numbers has largest and smallest elements;
Any positive δ smaller than d1 see Fact 1.16, page 49.) Now it is clear that δ = d1 /2 works in Definition 1.28.
works, too. ♦
E XAMPLE 4. Let
i i
i i
i i
i i
1.8. Bounds 63
the other hand, g is bounded on every bounded set A. If, say, A is the interval
[−K, K] and a ∈ A, then we have Thanks, triangle inequality.
the last quantity is an upper bound. (With more work we might find a smaller
upper bound.)
The function h behaves somewhat differently: although bounded on some
infinite intervals, such as [0.00017, ∞) and (−∞, −0.24), h is unbounded on
some finite intervals, like (0, 1) and (−0.24, 0). ♦
Exercises
1. Consider the sets EW of all non-hyphenated English words and WITP of
all words in this problem. Let f be the function with rule
(a) Is f bounded above and/or below on EW? Can you give good upper
and lower bounds? Explain.
(b) Find upper and lower bounds for f on the set WITP.
2. Consider the real-valued function g whose domain is the set GCES of gram-
matically correct English sentences, and has rule
Is g bounded on GCES? Can you give upper and lower bounds? What
bounds apply g on the subset SITP of sentences in this problem?
3. We suggested in Example 4, page 62, that every bounded set S ⊂ R is
contained in some interval of the form [−K, K]. Prove this.
4. Consider the interval I = [−10, 10]. Find good upper and lower bounds for
each of the following functions defined on I. Use the triangle inequality or
ideas from elementary calculus.
1
(a) f (x) = .
1 + x2
(b) g(x) = 3x2 + 2x − 7.
(c) h(x) = sin2 x + cos2 x + x.
5. Do the preceding problem, but replace the interval I with the interval J =
[−K, K], where K > 0. (Answers may depend on K, of course.)
i i
i i
i i
i i
6. Let f (x) = Ax + B, where A and B are any real constants, and let I be
the interval [−K, K], where K > 0. Find sharp (i.e., best possible) upper
and lower bounds for f on I. (Hint: Handle the cases A > 0, A = 0, and
A < 0 separately.)
7. Prove parts (a) and (c) of Example 1, page 60.
8. Is each of the following sets bounded? If so, give upper and lower bounds.
If not, why not? (It’s OK to use ideas from elementary calculus.)
1 1 1 1 1 1
(a) 1, 1 + , 1 + + , 1 + + + , . . .
2 2 3 2 3 4
1 1 1 1 1 1
(b) 1, 1 + , 1 + + , 1 + + + , . . .
2 2 4 2 4 8
ln 1 ln 2 ln 3 ln 4
(c) , , , ,...
1 2 3 4
1 2 3 4
2 2 2 2
(d) , , , , . . .
12 22 32 42
(e) {tan(x) | x ∈ R}
(f) x ∈ R | x3 − 5x2 + 7x − 1234 = 0
9. Show that if S is bounded and f (x) = ax + b, then f is bounded on S.
10. We remarked in this section that a set S of real numbers is bounded if and
only if there is some M > 0 such that |s| ≤ M for all s ∈ S.
(a) Suppose S has upper and lower bounds a and b, respectively. Find an
M that satisfies the condition above.
(b) Suppose M satisfies the condition above. Find upper and lower bounds
for S.
(c) Prove the statement at the beginning of this exercise.
i i
i i
i i
i i
(a) A set of positive numbers that is bounded away from one but not from
zero.
(b) A number a such that Q is bounded away from a.
(c) A set S that is bounded away from a = 42 but not bounded away
from any other integer.
13. This problem is about the intervals I = [0, 1] and J = (2, 3).
14. Show that if S ⊂ R is a finite set, then S contains both sup(S) and inf(S).
15. Let S ⊂ R be bounded, with β = sup(S). Show that S is not bounded
away from β.
i i
i i
i i
i i
Like other succinct mathematical statements, this one can use some unpacking:
• What about infs? For brevity, the completeness axiom mentions only sups.
But the story is similar for infs: Every nonempty set that is bounded below
has an infimum. The inf version, moreover, follows easily from the sup
See the exercises. version.
• The real advantage: The completeness axiom guarantees that every bounded
Rational numbers are also real. set of rationals has a supremum—which may or may not be a rational num-
ber. By contrast, the supremum of a bounded set of reals must be real. In
this sense R is complete, while Q is incomplete.
• In or out? We know already that the sup and the inf of a given set may
or may not lie within the set. It is pretty obvious, for instance, that the
half-closed interval (1, 2] contains its supremum but not its infimum. For
more complicated
sets, things may be less clear. Consider, for example,
the set S = r ∈ Q | r2 ≤ 152399024 . A little thought shows that S
is bounded, so the completeness axiom guarantees that √ a sup and an inf
exist. We might
√ also guess (correctly!) that sup(S) = 152399024 and
inf(S) = − 152399024, but do these numbers lie inside or outside S?
The question boils down to This is far from clear at a glance—and the completeness
√ axiom is no help
whether 152399024 is a perfect at all. To decide, we’d need to discover whether 152399024 is rational,
square. It isn’t . . . quite.
and this takes a little effort.
i i
i i
i i
i i
a 2a 3a b na
0 0.01 5003.47
The principle says that steps of size a, no matter how short, will eventually
complete a trip of length b, no matter how long. As Archimedes (around 250 BCE)
might have put it, a positive number a, no matter how small, is not “infinitesimal”:
successive multiples a, 2a, 3a, . . . will eventually exceed any proposed bound b.
Proof: To show that N is unbounded, assume toward contradiction that no integer
n exceeds M . Then M is an upper bound for N, and so, by the completeness
axiom, N must have a real supremum, say β. Because β is the least upper bound,
β − 1 is not an upper bound, and so n0 > β − 1 must hold for some positive
integer n0 . But then n0 + 1 > β, which contradicts our assumption that no
integer exceeds β. Thus N is unbounded, as claimed.
The remaining claims turn out to be lightly disguised versions of the result
just shown. For the Archimedean principle, note that, for positive a and b,
b
na > b ⇐⇒ n> .
a
But we’ve just shown that N is unbounded, so the right-hand inequality must hold
for sufficiently large n.
Proof of the “squeezing-in” principle is left as an exercise.
Nested Intervals
A collection of intervals I1 , I2 , I3 , . . . is called nested if
I1 ⊇ I2 ⊇ I3 ⊇ I4 ⊇ . . . .
i i
i i
i i
i i
has exactly one point of intersection—the number 0. The following theorem de-
scribes the situation in general; completeness is the key.
Theorem 1.31 (The nested intervals theorem). Consider a nested infinite col-
lection
I1 ⊇ I2 ⊇ I3 ⊇ I4 ⊇ . . .
of closed and bounded intervals. The intersection
I1 ∩ I2 ∩ I3 ∩ I4 ∩ . . .
contains at least one point. If the intervals’ lengths shrink to zero, then the inter-
section is a single point.
Proof (sketch): We sketch the main idea, leaving some details to exercises. If we
write In = [an , bn ] for all positive integers n, then the nesting condition means
a 1 ≤ a2 ≤ a3 ≤ · · · ≤ b 3 ≤ b 2 ≤ b 1 .
(a) The interval (x, y) contains at least one rational and one irrational number.
(b) The interval (x, y) contains infinitely many rationals and infinitely many
irrationals.
Proof: Claim (b) looks much stronger than (a), but showing that (a) implies (b)
is surprisingly easy. Let’s suppose, toward contradiction, that (a) holds but (x, y)
contains only finitely many rationals r1 , r2 , . . . , rn . Then one of these, say rn ,
Recall: Every nonempty finite is largest. But then the interval (rn , y) must contain no rationals, which contra-
set of reals has a maximum dicts (a). Exactly the same proof applies to irrational numbers, so we conclude
element.
that (a) implies (b).
To prove (a) we’ll use Theorem 1.30. For convenience, we’ll handle here only
the special case 0 ≤ x < y, and mop up remaining cases as exercises. If we
set = y − x, then the squeezing-in part of Theorem 1.30 says that for some
i i
i i
i i
i i
and so x < n0 p < y, as desired. The proof that x < m0 r < y for some positive
integer m0 is almost identical.
Exercises
1. We said in this section that completeness of R guarantees that the number
two has a real square root. Let’s prove it.
(a) Let S = {x | x2 < 2}. Explain why S has a least upper bound; call
it β.
(b) We’d like to show that β 2 = 2. First suppose toward contradiction
that β 2 < 2, and set h = (2 − β 2 )/5. Show that (β + h)2 < 2, and
derive a contradiction.
(c) Prove by contradiction that β 2 > 2 is also impossible. (Hint: Set
k = (β 2 − 2)/4 and consider β − k.)
2. Use the completeness axiom for sups to prove the analogous result for infs:
if S ⊂ R, S = ∅, and S is bounded below, then there is α ∈ R such
that α = inf(S). (Hint: Given a nonempty set S, look at the new set −S
defined by −S = {−s | s ∈ S}. Apply the completeness axiom to −S and
interpret the result.)
(a) Give a similar recipe for an endless list of rationals between 0 and
1
507 .
1
(b) Give a similar recipe for an endless list of rationals between 2 and 13 .
(c) Let a and b be any two rationals, with a < b. Give a recipe (involving
a and b) for an endless list of rationals between a and b.
i i
i i
i i
i i
4. Use the unboundedness of N (the first part of Theorem 1.30) to prove the
squeezing-in principle (the second part of Theorem 1.30).
5. Our statement of the Archimedean principle (part of Theorem 1.30) in-
cludes the hypothesis 0 < a < b.
6. Part (a) of Theorem 1.32 says that every interval (x, y) contains at least one
rational and one irrational. The proof given above assumed that 0 ≤ x < y.
(a) Show that the same result holds if x < 0 < y. (Hint: Apply the result
already proved to the new interval (X, Y ) = (0, y).)
(b) Show that the result still holds if x < y ≤ 0. (Hint: Look at the new
interval (X, Y ) = (−y, −x).)
(a) Is the italicized statement true or false if R is replaced (in both places)
by Z? Explain.
(b) Is the italicized statement true or false if R is replaced (in both places)
by Q? Explain.
(a) Each In is open, the In are nested, and the intersection is the single
point 3.
(b) Each In is closed, no two In are equal, and the intersection is the
interval [−3, 42].
(c) Each In is open, no two In are equal, and the intersection is the inter-
val [−3, 42].
9. This problem is about some details in the proof of Theorem 1.31, page 68;
see the notation there.
i i
i i
i i
i i
10. It is well known that every number has an infinite decimal expansion. For
instance, we can write
1
= 0.3333333 . . . ; π = 3.1415926 . . . ; 42 = 42.0000000 . . . .
3
Here is a slightly subtler fact: every infinite string of decimal digits
corresponds to a unique real number β. Use the completeness axiom to
explain why. (Hint: For convenience, consider only strings of the form
0.d1 d2 d3 d4 d5 . . . , where each di is a decimal digit. Use these digits to
construct a bounded set with supremum β.)
i i
i i
i i
i i
i i
i i
i i
i i
CHAPTER 2
Sequences and Series
73
i i
i i
i i
i i
Using the definition: notes on proofs. Our concise definition can lead, ideally,
to equally concise proofs. But such polished products can seem both impressive
and mysterious, like a Ferrari with the hood up. To raise the hood a bit, we’ll
often precede formal proofs with informal discussion—but keep the two separate.
We start with some positive and negative examples.
i i
i i
i i
i i
1
E XAMPLE 1. Prove that the sequence {an } with an = n converges to zero. In
symbols, limn→∞ n1 = 0.
P ROOF. Let > 0 be given. Set N = 1/. This N “works” because if n > N ,
then
1 1 1
|an − L| = = < = ,
n n N
which is what the definition requires. ♦
i i
i i
i i
i i
Points in a plane. Terms of {an } can also be viewed as points (n, an ) on the
graph of the function a : N → R. Figure 2.2 offers glimpses of two sequences,
{1/n} and {sin n}. One converges to zero (as we’ve proved!); the other looks un-
Proving this is another matter. likely to converge to anything. Such graphs can reveal a lot, but never everything—
a sequence has infinitely many terms, and a picture shows only a tiny sample.
Sequence graphs can also show how and N interact. The idea is to express
the key definition in graphical language: for any > 0, no matter how small,
there is some N on the (horizontal) n-axis so that all graph points to the right of
N lie inside an “-band” around the horizontal line y = L, as Figure 2.3 suggests.
L−є L L+є
i i
i i
i i
i i
0.25
1.0
0.20
0.5
0.15
0.10 10 20 30 40 50
0.05 – 0.5
10 20 30 40 50 – 1.0
(a) A look at the sequence {1/n} (b) A look at the sequence {sin n}
L+є
L
L–є
n
0 10 20 30 40 50
Properties of Sequences
Sequences, like other real-valued functions, may or may not have various behav-
ioral properties. Here are some typical definitions:
i i
i i
i i
i i
The sequence {1/n}, for example, is strictly decreasing and bounded (above and
below), while the Fibonacci sequence is increasing and unbounded (above).
The following two theorems link these properties to convergence and diver-
gence. Neither statement is surprising, but the formal proofs are nice exercises—
and left as exercises—in using the definition. Some pre-proof discussion follows
each result.
Theorem 2.3. If a sequence {an } is (i) monotone, and (ii) bounded, then {an }
converges.
i i
i i
i i
i i
D ISCUSSION . But for the annoying denominator {zn } resembles {1/n}, which
converges to zero (see Example 1). To show that zn → 0, too, for given > 0,
we need to find N for which
1 1
|zn − 0| = √ = √ <
n+ n+1+5 n+ n+1+5
whenever n > N . This looks clumsy, but a simple inequality brings radical
improvements:
1 1
|zn − 0| = √ < .
n+ n+1+5 n
Now it is easy to see that
1 1
< ⇐⇒ n > ,
n
which means that N = 1/ “works.” We assemble the parts in the concise proof.
P ROOF. Let > 0 be given. Set N = 1 . If n > N then Check each step; note the key
inequality.
1 1 1 1
|zn − 0| = √ = √ < < =
n+ n+1+5 n+ n+1+5 n N
as the definition requires. ♦
D ISCUSSION . This time the key quantity |wn − L| takes the form Check the final calculation.
4n 170
|wn − L| = −2 = ;
2n − 85 2n − 85
we want
170
|wn − L| = <
2n − 85
to hold for large n. It would be nice to drop the absolute value—alas, the de-
nominator, 2n − 85, may be negative. The good news is that this happens only
for n ≤ 42. If n > 42, then we can indeed drop the absolute value in good
conscience, and solve our inequality without undue fuss: But check all algebra carefully.
i i
i i
i i
i i
Exercises
1. If a sequence {xn } converges, then for any given > 0 there is some N
that “works” in the sense of the definition. For the sequence {1/n} the
following table shows values of N associated with values of :
Make a similar table (same values of ) for each sequence following. Try
to choose N as small as possible.
(a) n12
(b) √1n
1
(c) 1+ln n
2. This problem is about –N tables for convergent sequences, like those in
the preceding problem (with = 1, 0.1, 0.01, 0.001 in the first row).
(a) Explain why all entries in the second row can be the same.
(b) Consider the sequence {xn } with xn = 0 for all n. What goes in the
second row?
(c) Consider the sequence {yn } with yn = 1/d(n), where d(n) is the
number of base-ten digits in n. (For example, y123456 = 1/6.) What
goes in the second row?
(a) Show that there is some N such that xn ∈ (4.9, 5.1) for all n > N .
(b) Show that there is some N such that xn > 4.999 for all n > N .
(c) Show that the set {xn | xn > 6} is finite.
i i
i i
i i
i i
7. Prove that each of the following sequences converges. (Example 2, page 75,
is similar.)
2n
(a) {an }, with an = .
3n + 5
2n + 300000
(b) {bn }, with bn = .
3n + 5
2n
(c) {cn }, with cn = 2 .
3n + 5
8. Guess and then prove a limit for each sequence following. (Examples 4 and 5
may be helpful.)
2n
(a) {an }, with an = .
3n − 5
2n
(b) {bn }, with bn = .
3n + sin n + 5
2n
(c) {cn }, with cn = (−1)n 2 .
3n + 5
9. Convert the informal discussion after Theorem 2.3, page 78, into a concise
proof that a bounded, decreasing sequence converges.
10. Convert the informal discussion after Theorem 2.4, page 78, into a concise
proof.
i i
i i
i i
i i
as desired.
(a) Show by induction that fn > 1.5n for all n ≥ 11. (It is easy to check
with technology that the inequality is false for smaller n.)
(b) It can also be shown by induction (as in the preceding problem) that
fn > 1.6n for all “sufficiently large” n. Use technology to decide
which n have this property.
1
12. Consider the sequence {gn } defined by g1 = 1 and gn+1 = 1 + gn .
(a) Write out the first few terms of the sequence to see the Fibonacci
numbers pop up.
(b) Prove by induction that gn ≤ 2 for all n.
(c) Observe (with technology) √ that {gn } appears to hop back and forth
across the number φ = (1+ 5)/2 ≈ 1.618 (this is the famous golden
ratio). Prove this by showing (algebraically; no induction needed) that
(i) if gn > φ then gn+1 < φ; and (ii) if gn < φ then gn+1 > φ.
i i
i i
i i
i i
14. From any given sequence {xn } we can form the related sequence {yn } =
{5xn +2}. Use the definition of convergence to show that if {xn } converges
to 42, then {yn } converges to . (First fill in the blank.)
15. Some sequences {xn } have –N tables (in the sense of Exercise 1, above)
of the following form:
i i
i i
i i
i i
3n + 2 3 + 2/n 3 · 1 + 2 · n1
= = ,
n+5 1 + 5/n 1 + 5 · n1
which shows the original sequence as a combination of the much simpler se-
quences {1}, and {1/n}, which converge to 1 and 0, respectively. Now Theo-
rem 2.5 implies that
3 · 1 + 2 · n1 3·1+2·0
→ = 3,
1 + 5 · n1 1+5·0
as expected.
We just assumed, of course, that {1} and {1/n} do indeed converge to one
and zero. These claims need proof, too, but the proofs are easy—and need to be
done just once. ♦
E XAMPLE 2. Let {an } and {bn } be divergent sequences, and let {cn } be a
convergent sequence. Can the sum {an + bn } converge? Can it diverge? What
about {an + cn }?
S OLUTION . Theorem 2.5 says nothing about sums of divergent sequences. But
easy examples show that {an } and {bn } can either converge or diverge. With
an = n and bn = π − n, for example, we get an + bn = π for all n, so {an + bn }
Find your own example where converges.
{an + bn } diverges. Theorem 2.5 does help with {an + cn }; let’s call it {dn } for the moment. If
{dn } were convergent, then the difference {dn − cn } = {an } would converge,
too, contradicting our assumption. Thus, {an + cn } diverges. ♦
sn−1 1
s1 = 2.0 and sn = + for n > 1.
2 sn−1
The first few terms (rounded) are 2.0, 1.5, 1.41667, 1.41422, 1.41421, . . . . What
is happening here? Why?
i i
i i
i i
i i
√
S OLUTION . The numbers suggest convergence to 2, but can we be certain?
The answer is yes—if we invoke appropriate theorems. The definition implies
that sn > 0 for all n. It’s also true (and proved in exercises) that {sn } is decreas-
ing, and so Theorem 2.3, page 78, implies that {sn } converges to some limit L.
Invoking different parts of Theorem 2.5 lets us find L. Because sn → L, we know
sn−1 1 L 1
sn = + =⇒ L = + ,
2 sn−1 2 L
√ √
which implies, in turn, that L2 = 2, or L = 2. ♦ L = − 2 is clearly impossible
since all sn are positive.
Proving Theorem 2.5. Theorem 2.5 contains few surprises. Concerning sums,
for instance, it should seem reasonable that if an ≈ a and bn ≈ b for large n, then
also an + bn ≈ a + b for large n. Rigorous proofs are another matter, of course.
The definition of convergence is all about inequalities; therefore, so are con-
vergence proofs. Here, we’ll need to show that inequalities like
an a
|(an + bn ) − (a + b)| < , |an bn − (a ± b)| < , and − <
bn b
hold for large n. What we have to work with are
which do hold for large n, by hypothesis. The trick is to parlay these simpler
inequalities into proofs of their more complicated cousins. The triangle inequality
will come in very handy; watch for it in the following proof. Watch for a technical trick, too.
Proof (for sums): Let > 0; we need to choose N so that |(an + bn ) − (a+ b)| <
whenever n > N . Set = /2; note > 0. Because an → a, there is a number
N1 that “works” for :
Now let N be the larger of N1 and N2 . If n > N , then both n > N1 and n > N2 ,
and so
where we used the triangle inequality at the line break. This shows that N works
in the desired sense, and completes the proof.
i i
i i
i i
i i
Working with products. To prove our claim about products we will use the cor-
responding properties for sums (just proved) and for constant multiples (left as an
We’ll see this again. exercise). The proof starts with a standard analyst’s trick: subtracting and adding
the same quantity:
an bn = an bn − an b + an b = an (bn − b) + an b.
The result for constant multiples shows that an b → ab; we’ll be done if we can
also show that an (bn − b) → 0. The key insight, as we will see in the formal
proof, is that the {an } are bounded.
an b → ab and an (bn − b) → 0.
And left as an exercise. That an b → ab follows from the property of constant multiples that we assumed.
To show an (bn − b) → 0, observe first that the convergent sequence {an } is
bounded (Theorem 2.4, page 78, says so); in other words, there exists M > 0
with |an | ≤ M for all n. Now let > 0 be given; note that /M > 0, too. Since
bn → b, there exists N such that |bn − b| < /M when n > N . This N works
for {an (bn − b)}, because if n > N , then
|an (bn − b) − 0| = |an | |bn − b| ≤ M |bn − b| < M = ,
M
as desired.
Squeezing. The algebraic methods of Theorem 2.5 don’t immediately help with
the sequence {sin n/n}, which has a trigonometric ingredient. Still, we expect
the sequence to converge to zero because the numerator remains tamely bounded,
while the denominator “blows up.” More precisely, we know
1 sin n 1
− ≤ ≤
n n n
for all n. Both the left- and right-hand sequences converge to zero, and we expect
them to “squeeze” the middle sequence to the same limit. That intuition is correct:
Theorem 2.6 (The squeeze principle). Let {an }, {bn }, and {cn } be sequences
such that an ≤ bn ≤ cn for all n. If an → L and cn → L, then bn → L, too.
i i
i i
i i
i i
Proof: For given > 0, we need to find N such that n > N implies |bn − L| < ,
or, equivalently, L − < bn < L + .
Because an → L we can choose N1 so
Similarly, there is N2 so
Now let N = max{N1 , N2 }. This N works for {bn }, since if n > N then
L − < an ≤ bn ≤ cn < L + ,
as desired.
Proposition 2.7 (More squeezing). Let {xn }, {an }, and {bn } be sequences and
L a number.
(a) xn → 0 ⇐⇒ |xn | → 0
Since the right-hand sequence tends to zero, so must the middle one, as we aimed
to show.
For (c), we first use boundedness of {bn } to choose B > 0 with |bn | ≤ B for
all n. This leads to another squeezing inequality:
0 ≤ |an bn | ≤ B |an | .
Again, the left- and right-hand sequences tend to zero (the constant multiple B
does no harm) and therefore squeeze the middle sequence to the same limit.
i i
i i
i i
i i
Divergence to Infinity
Sequences like {n} and {−n3 } clearly have no finite limit, but they misbehave
less seriously than, say, the zig-zag sequence {1, −2, 3, −4, . . . }. The following
definition formalizes these ideas.
Definition 2.9. A sequence {xn } diverges to infinity if for every M > 0 there
exists a number N such that
Observe:
• Divergence to −∞: A similar definition holds for divergence to −∞: For
given M > 0 there must exist N with xn < −M whenever n > N .
• Big M , small : For ordinary convergence we focus mainly on small posi-
tive values of ; here the challenging values of M are large.
• Convergence or divergence? Some authors refer to convergence to ∞; we
prefer to reserve “convergence” for finite limits.
• Unboundedness and divergence to infinity: An unbounded sequence need
not diverge to ±∞, as {1, −2, 3, −4, . . . } illustrates. An unbounded mono-
tone sequence, on the other hand, must diverge to ±∞; see Example 5.
• Zero or infinity? A sequence {xn } of positive terms diverges to ∞ if and
only if {1/xn } converges to 0. (Proofs follow directly from the definitions;
see the exercises.) A similar result holds for negative sequences.
i i
i i
i i
i i
(A similar claim holds for sequences tending to −∞.) Proofs follow easily from
the definitions; see the exercises. The surprise is how powerful this straightfor-
ward idea can be in applications.
1 1 1 1 1 1 1 1
hn = + + + ··· + , sn = + √ + √ + ··· + √
1 2 3 n 1 2 3 n
It is well known that ln n → ∞, and so both {sn } and {hn }, being larger, are
also “swept away” to ∞. ♦
Exercises
1. Prove the following part of Theorem 2.5, page 83: If an → a and c is any
constant, then can → ca. (Hint: The result is trivial if c = 0, so assume
c = 0.)
2. Another part of Theorem 2.5, page 83, says that an /bn → a/b if b = 0 and
bn = 0 for all n. To complete the proof sketched in this section, we need to
show that 1/bn → 1/b.
i i
i i
i i
i i
(b) We will show just below that the sequence {1/|bnb|} is bounded, say
by M > 0. Assuming this for the moment, prove that 1/bn → 1/b.
(Hint: The preceding identity gives | b1n − 1b | < M |bn − b|. Now argue
as in the proof for products of sequences.)
(c) Show in two steps that {1/|bnb|} is bounded.
(i) Show that the set {bn } is bounded away from zero—i.e., there
is some δ > 0 such that |bn | ≥ δ for all n. (Hints: Let =
|b|/2 > 0. Since bn → b there is an integer N such that
|bn − b| < when n > N ; note that |bn | > |b|/2 for all such n.
The remaining set {|b1 |, |b2 |, . . . , |bN |} is a finite set of positive
numbers, and so has a positive minimum. Use these facts to find
a suitable value of δ.)
(ii) Show that 1/|bnb| < 2/(δ|b|) for all n .
5. Consider the sequence {sn } in Example 3, page 84. Show by induction that
{sn } is strictly decreasing; i.e., show sn+1 < sn for all n ≥ 1.
1 1 1
sn = + √ + ··· + √ .
1 2 n
7. Consider again the sequence {hn } in Example 4, page 89. Observe that
1 1 1 1
h2n = hn + + ··· + ≥ hn + n · = hn + .
n+1 2n 2n 2
Use this idea to prove (without calculus) that {hn } diverges to infinity.
i i
i i
i i
i i
1 1 1 1
Sn = + 2 + 2 + ··· + 2
1 2 3 n
is clearly increasing, so it either converges or diverges to infinity. Which
happens? To decide we work with the similar series {Tn } given by
1 1 1 1
Tn = + 2 + 2 + ··· + 2 .
1+1 2 +2 3 +3 n +n
(a) Use technology to evaluate some terms of both {Sn } and {Tn }. Do
they appear to converge or diverge?
(b) Guess a simple formula for Tn ; prove your guess by induction.
(c) Conclude from the preceding part that Tn → 1.
(d) Prove that {Sn } converges to some limit L ≤ 2. (Hint: Show first
that Sn ≤ 2Tn for all n ≥ 1.)
(a) Prove that if xn → ∞, then −xn → −∞. (The converse is also true,
and the proof is almost identical.)
(b) Show that xn → ∞ if and only if 1/xn → 0.
(c) State and prove a similar claim for sequences of negative terms. (Use
the first two parts.)
√ √
10. Suppose an > 0 for all n and an √→ 3. Show that an → 3. (Hint:
√
Show first by algebra that | an − 3| < |an − 3|.)
11. Use theorems from this section (not the definitions of convergence) to dis-
cuss each of the following limits. It is OK to assume such basic facts as
1/n → 0, but say what you’re assuming.
2n + 3 sin n
(a)
5n + cos n
(b) n2 + 1
(c) n2 + n − n
2
n + arctan n
(d)
n+2
i i
i i
i i
i i
2.3 Subsequences
Basic Ideas
Any given sequence x1 , x2 , x3 , x4 , . . . has many, many subsequences: new infi-
nite sequences, such as
formed by choosing, in order, any infinite subset of the original xn . The last
example could be called an upper tail subsequence, formed simply by skipping
over an initial string. Order matters, and repetitions aren’t allowed, so
x2 , x1 , x4 , x3 , x6 , x5 , . . . and x1 , x1 , x2 , x2 , x3 , x3 , . . .
x1 , x2 , x3 , x4 , · · · = 1, 2, 1, 2, . . . ,
then {xn } has no single limit, and therefore diverges. But the subsequences
x1 , x3 , x5 , · · · = 1, 1, 1, . . . and x2 , x4 , x6 , · · · = 2, 2, 2, . . .
i i
i i
i i
i i
2.3. Subsequences 93
S OLUTION . Yes and yes. Lacking rigorous definitions, we’ll argue (very!) in- Coming soon.
formally.
To find a subsequence of positive integers, imagine walking from left to right
along the rational sequence, underlining each term that happens to be a positive
integer. The result might look like this:
The process never stops because the supply of positive integers is infinite, so we
have our desired subsequence:
r2 , r3 , r24 , r1235 . . . .
To find a subsequence that converges to zero, recall first that for every positive
, no matter how small, the interval (−, ) contains infinitely many rationals. To
find our desired subsequence, therefore, we walk again from left to right along the
original sequence. At some position, say a9 , we find a9 ∈ (−1, 1). Continuing
our rightward walk, we find, say,
and so on. We never need to stop because, at any stage, we’ve left behind only
finitely many of the infinite family of residents of (−, ). ♦
Similar reasoning shows that any listing {rn } of Q has subsequences consist-
ing entirely of prime numbers or entirely of fractions with denominator 424242.
It is less obvious—but true—that {rn } has an increasing subsequence with limit
π, a decreasing subsequence with limit e, a decreasing subsequence of integers
diverging to −∞, and countless other subsequences of interest. We sort out such
possibilities in this section.
Formalities. The idea of subsequences is simple enough but the notation takes
some getting used to. To create a subsequence from a given sequence {an } means
to choose a strictly increasing sequence of subscripts
i i
i i
i i
i i
Observe:
• A useful inequality: The definition implies a simple inequality that is use-
ful in proofs: nk ≥ k for all k. A formal proof might involve induction
or the pigeonhole principle, but the idea is mainly common sense—the kth
term of a subsequence can’t appear before the kth term of the parent se-
quence.
• Another subsequence: The subsequence indices n1 , n2 , n3 , n4 , . . . for
{ank } form still another subsequence—a strictly increasing subsequence
of {1, 2, 3, . . . }.
a1 , a 3 , a 5 , a 7 , . . . and a2 , a4 , a6 , a8 , . . .
in functional language and notation. What can be said about {an } if both subse-
quences converge to three?
for all k. In ordinary sequence notation, we can write {ank } = {a2k−1 }; notice
that k, not n, is now the index variable. For the “even” subsequence similar
reasoning gives {ank } = {a2k }.
If both subsequences {a2k−1 } and {a2k } converge to three, then it is reason-
A bit laboriously. able to expect the parent sequence {an } to do so as well. To prove this let > 0
be given. By hypothesis, there exist numbers K1 and K2 such that
Now it turns out that N = max {2K1 , 2K2 } “works” for in the parent sequence.
i i
i i
i i
i i
2.3. Subsequences 95
Thus we have |an − 3| < for all n > N , and the proof is complete. ♦
Properties of Subsequences
Every infinite sequence {xn } has countless subsequences. What can be said about Uncountably many, in fact.
such an enormous set? The answer is, “quite a lot”: subsequences often “inherit”
their parents’ basic properties.
Theorem 2.11. Let {xn } be a sequence and L a number.
(a) If {xn } converges to L, then every subsequence {xnk } converges to L, too.
(b) If {xn } diverges to ±∞, then every subsequence {xnk } diverges to ±∞,
too.
(c) If {xn } has subsequences converging to different limits, then {xn } di-
verges.
About proofs. Key to both proofs is the fact, mentioned above, that, for any sub-
sequence, nk ≥ k for all k. To prove (a), let > 0 be given. By hypothesis there
exists N that works for {xn } in the sense that |xn − L| < whenever n > N .
The key fact above implies that the same N works for {xnk }; if k > N then
nk ≥ k > N , and so |xnk − L| < , as desired.
The proof of (b) is similar, and (c) follows immediately from (a). Further
details are left to exercises.
Proposition 2.12 is easy to state, but it’s a bit tricky to prove anything about all “Nontrivial,” in math-speak.
sequences—convergent or divergent, bounded or unbounded, tame or wild. Here,
for instance, is a randomly-chosen stretch (from n = 125 to n = 130) of terms
from the sequence {n cos(n2 )}:
i i
i i
i i
i i
It is hard to see much pattern there, but Proposition 2.12 guarantees that some-
where in there is an increasing subsequence, a decreasing subsequence, or maybe
both.
We’ll sneak up on a proof of Proposition 2.12 through two technical lemmas
about special cases.
Lemma 2.13. Every unbounded sequence {xn } has a monotone subsequence
that diverges to ±∞.
Proof (sketch): For a sequence {xn } unbounded above, we’ll find an increasing
sequence {xnk } with xnk > k for all k. Since {xn } is unbounded above, we can
choose n1 so xn1 > 1. Now the “upper tail”
Do you see why? is also unbounded above, and so we can choose n2 with n2 > n1 and xn2 >
max{2, xn1 }. Then we choose n3 > n2 with xn3 > max{3, xn2 }. Continuing
this process produces the desired subsequence. A similar construction produces a
strictly decreasing subsequence if {xn } is unbounded below.
Lemma 2.14. Let {xn } be a bounded sequence, with infimum α and supremum β.
If α ∈/ {xn }, then there is a decreasing subsequence {xnk } with xnk → α. If
β∈ / {xn }, then there is an increasing subsequence {xnk } with xnk → β.
Proof (sketch): To save a little labor we’ll use Lemma 2.13 and some fancy alge-
bra. In the case β ∈
/ {xn }, we define a new sequence {yn } by the rule
1
yn = .
β − xn
Do you see why? Now {yn } is unbounded above, and so Lemma 2.13 guarantees that there is an
increasing subsequence {ynk } with ynk → ∞. But this implies that
1
= β − xnk → 0.
ynk
This implies, in turn, that {xnk } is increasing, with limit β. A similar argument
applies if α ∈
/ {xn }.
At last we can prove Proposition 2.12. Watch for the completeness axiom to
pop up, and for Lemma 2.14 to provide the key technical insight.
Proof (of Proposition 2.12): Let {xn } be our sequence. If {xn } is unbounded,
we’re done, by Lemma 2.13. So we’ll assume that
(i) {xn } is bounded, and (ii) {xn } has no increasing subsequence,
and use these assumptions to construct a decreasing subsequence.
i i
i i
i i
i i
2.3. Subsequences 97
Again, β2 exists by the completeness axiom, and Lemma 2.14, applied this time
to the upper tail sequence
A big theorem. It is now easy to prove a famous theorem, which we’ll use re-
peatedly. We’ve done all the hard work. Starting in the very next section.
Exercises
1. The Bolzano–Weierstrass theorem (BWT) says that if a sequence {xn } is
bounded, then {xn } has a convergent subsequence.
(a) State the converse and the contrapositive of the BWT. Disprove the
false one.
(b) Consider the sequences {yn } and {zn } defined by yn = sin n and
zn = sinn n . What can be said about their subsequences? Is the BWT
helpful? Is it needed?
(c) Show (assuming the BWT) that every sequence {xn } has either (i) a
convergent subsequence, or (ii) a subsequence that diverges to ±∞.
Can both (i) and (ii) occur?
i i
i i
i i
i i
(a) Explain why the set of nonnegative rationals can also be written as a
sequence, say, {pn }.
(b) Give a reason why {pn } cannot be monotone.
(c) Although {pn } itself is not monotone, it must have a monotone sub-
sequence of positive integers. Explain why.
4. Let {xn } be any sequence of numbers and its upper tail subsequence {xnk }
given by x4242 , x4243 , x4244 , . . . . Show that xn → L if and only if
xnk → L.
(a) Find the subsequences {x2k } and {x2k−1 }. What are their limits?
(No proofs needed.) What does the answer imply about convergence
of {xn }?
(b) Let {xnk } be any subsequence of {xn }. Show that if {xnk } con-
verges, then it must converge either to 1 or to −1.
7. Show that if {xn } diverges and x0 is any number, then there exists > 0
and a subsequence {xnk } such that |xnk − x0 | > for all k. (In other
words, some subsequence {xnk } is “bounded away from x0 .)
i i
i i
i i
i i
i i
i i
i i
i i
Cauchy Basics
The formal definition describes precisely what we mean by “close to each other
for large n.”
Definition 2.16. A sequence {xn } is Cauchy if, for every > 0, there exists N
such that
|xn − xm | < whenever n > m > N.
Observe:
• Similar, but different: The definition resembles that for convergence, but
with a key difference: no limit L is mentioned.
• Not just consecutive terms: The definition requires that all terms with large
index be close to each other. This applies not only to consecutive terms, like
x12345 and x12346 , but also to any two terms with large index, like x12345
and x98765 .
• A minor convenience: The condition n > m in the definition is sometimes
convenient in proofs. This apparent asymmetry is actually harmless, be-
cause the case n = m is trivial, and we lose no generality in using n to
denote the larger of two indices.
√
E XAMPLE 1. As we know, the sequence {1/n} converges to zero, while { n}
diverges to infinity. Is either sequence Cauchy?
i i
i i
i i
i i
S OLUTION . The key idea, on which a formal proof can be based, is the se-
quence’s back-and-forth behavior:
s 2 < s4 < s6 < s8 < · · · < s 7 < s5 < s3 < s1 ,
combined with the fact that the distance between successive terms tends to zero.
If, say, = 0.001, we could set N = 1000, and observe that if n > m > 1000,
then
1
s1000 < sn , sm ≤ s1001 = s1000 + ,
1001
which implies that sn and sm lie within 1/1001 of each other. ♦
Morals from the examples. The examples suggest, correctly, a close connec-
tion between sequence convergence and the Cauchy property. Indeed, the two
properties turn out to be equivalent. As we’ll see, it is easy to show that every
convergent sequence is also Cauchy. The fact that every Cauchy sequence con-
verges is deeper, and proving it takes a little more work. The Bolzano–Weierstrass
theorem—another convergence guarantee—will be useful.
The basic idea is that if both xn and xm are eventually close to a limit L, then
they must also be close to each other. The proof makes this precise.
Proof: Suppose xn → L. For given > 0, we can choose N such that |xn −L| <
/2 whenever n > N . This N works in the Cauchy sequence definition, because Why is it OK to use /2, not ?
if n > m > N , then
|xn − xm | ≤ |xn − L| + |xm − L| < + = ;
2 2
we used the triangle inequality in the first step.
Proposition 2.18. If {xn } is Cauchy, then {xn } is bounded.
Proof: For = 1, choose N as in the Cauchy definition. Now fix any integer
m0 with m0 > N . If n > m0 , then we have |xn − xm0 | < 1, or, equivalently,
xm0 − 1 < xn < xm0 + 1. In particular, the set {xm0 , xm0 +1 , xm0 +2 , . . . } is
bounded (above by xm0 + 1 and below by xm0 − 1). Since the remaining terms
{x1 , x2 , . . . xm0 −1 } form a finite set, the entire sequence {xn } is bounded.
i i
i i
i i
i i
Proof: Proposition 2.17 is the “only if” part. To prove the “if” part, suppose that
{xn } is Cauchy. Proposition 2.18 implies that {xn } is bounded; by the Bolzano–
Weierstrass theorem, {xn } has a subsequence {xnk } that converges to some limit,
say, L. To complete the proof, we’ll show that the full sequence {xn } also con-
verges to L.
Let > 0 be given. Since {xn } is Cauchy, we can choose N1 such that
i i
i i
i i
i i
1 1 1
|an − am | = ± ± ± · · · ± n−1
2m 2m+1 2
1 1 1
≤ m + m+1 + · · · + n−1
2 2 2
1 1 1 1
= m−1 + 2 + · · · + n−m
2 2 2 2
1
< m−1 .
2
Now for given > 0, we can choose N with 1/2N −1 < . This N works in the
Cauchy definition, because if n > m ≥ N , then, as just shown,
1 1
|an − am | < ≤ N −1 < ,
2m−1 2
as desired. ♦
Exercises
1. Show that each of the following sequences either is or is not Cauchy. (Use
the definition, not theorems.)
(−1)n
(a) {xn }, where xn = n .
(−1)n
(b) {yn }, where yn = 1234 .
(c) {zn }, where zn = n+1
n
.
sin n
(d) {wn }, where wn = n2 +1 .
2. Let {xn } and {yn } be Cauchy sequences and C a constant. Use Defini-
tion 2.16 to show that {xn + yn } is Cauchy, too.
i i
i i
i i
i i
(a) The set Q of rational numbers is not complete. Show this by finding a
Cauchy sequence {rn } of rational numbers that has no rational limit.
(b) Is the set Z of integers complete?
(c) Show that [0, 1] is complete but (0, 1] is not.
6. From any given sequence {xn } we can form the related sequence {yn } =
{5xn + 2}.
(a) Use the definition of a Cauchy sequence (not theorems) to show that
if {xn } is Cauchy, then so is {yn }.
(b) Use any convenient theorems to give a shorter (not necessarily better)
proof that if {xn } is Cauchy, then so is {yn }.
7. Let {an } be a Cauchy sequence. Show that if {xn } is a sequence such that
|xn − xm | ≤ 42 |an − am | for all n and m, then {xn } is Cauchy, too.
8. This problem is about the sequence {an } in Example 3, page 102.
(a) Use Theorem 2.19, page 102, and any other already-proved results to
explain why the fact holds.
i i
i i
i i
i i
(b) (Harder.) Prove the same fact without using Theorem 2.19, page 102.
(Hints: An algebraic trick and the triangle inequality give
|xn yn − xm ym | = |xn yn − xn ym + xn ym − xm ym |
≤ |xn yn − xn ym | + |xn ym − xm ym | .
11. Let {an } be a sequence for which successive terms are “very close”:
|an+1 − an | ≤ 1/2n+1 for all n. Show that {an } is Cauchy. (Hint: For
any n and m with n > m, we have
As usual for infinite processes, some obvious questions arise. Is there some limit
(or “infinite sum”) to which the series converges? How do we decide? If a series
has a limit, how do we find it?
A first observation is that series are close kin to sequences—about which we
already know a lot. Indeed, every series ak corresponds in a natural way to
a certain sequence {An } whose properties tell us “everything” about the series. We’ll define it in a moment.
The flaw in this happy scenario is that, in practice, getting one’s hands directly on
the sequence {An } can be difficult. Much of what follows can be thought of as
strategy for getting around this problem.
Enough generalities.
i i
i i
i i
i i
∞
Definition 2.20. For a given series k=1 ak = a1 + a2 + a3 + . . . , the sequence
of partial sums is given by
A1 = a1 , A2 = a1 + a2 , ..., An = a1 + a2 + · · · + an , ....
n
In general, An = k=1 ak .
E XAMPLE 1. Describe the partial sum sequences for the two series illustrated
above. Do they have limits?
comes from the geometric family, in which successive terms differ by a constant
Much more about geometric multiple. Here we have
series soon.
1 3 1 1 7 1 15
A1 = 1, A2 = 1 + = , A3 = 1 + + = , A4 = A3 + = , ....
2 2 2 4 4 8 8
Now it is easy to guess—and to prove by induction—that
2n − 1 1
An = n−1
= 2 − n−1 .
2 2
Clearly, An → 2, so it makes sense to write 1 + 12 + 14 + 18 + · · · = 2. We’ll
sanctify this below with a formal definition.
The series
∞ ∞
1 1 1 1
hk = = 1 + + + + ...
k 2 3 4
k=1 k=1
More soon about this, too. is the famous harmonic series. Here are the first few partial sums Hn , also known
as harmonic numbers:
1 3 1 1 11 1 25
H1 = 1, H2 = 1 + = , H3 = 1 + + = , H 4 = H3 + = .
2 2 2 3 6 4 12
Thanks, technology; values are No pattern seems obvious, so let’s try some numerical experiments:
rounded.
H10 = 2.929, H433 = 6.649, H7881 = 9.549, H12345 = 9.998.
The Hn are clearly increasing, but slowly. And mysteries remain: is the sequence
By Theorem 2.3 page 78 {Hn } bounded, and therefore convergent, or do the harmonic numbers diverge to
infinity?
i i
i i
i i
i i
Notes on notation. Sigma notation packs a lot of information into a small suit-
case—and so may need careful unpacking. For instance, all of the following
expressions mean exactly the same thing: Convince yourself by writing out
some terms.
∞
∞
103
∞ ∞
∞
1 1 1 1 1 1
; ; + ; ; .
k j=1
j j=1
j j=104 j j=0
j+1 z=13
z − 12
k=1
With due care taken, such cosmetic differences won’t cause trouble. For typo-
∞
graphical economy, moreover, we will write just ak , not k=1 ak , when con-
fusion seems unlikely.
As another example of notational alternatives, note that the equation
∞
n
ak = lim ak = A
n→∞
k=1 k=1
a1 + a2 + a3 + · · · = lim (a1 + a2 + a3 + · · · + an ) = A.
n→∞
∞ 1
E XAMPLE 2. Does the series k=1 1/(k 2 + k) = 2 + 16 + . . . converge? If so,
to what limit?
i i
i i
i i
i i
Try some by hand. S OLUTION . By a happy coincidence, the partial sums follow a nice pattern:
1 2 3 100
S1 = , S2 = , S3 = , ..., S100 = , ...
2 3 4 101
Now it is easy to guess a formula for Sn , and to see that Sn → 1. (See the
exercises for details.) ♦
a1 ≤ a 1 + a 2 ≤ a 1 + a 2 + a 3 ≤ a1 + a 2 + a 3 + a 4 ≤ . . . .
By Theorem 2.3, page 78, there are only two possibilities: Either {An } converges,
or it diverges to infinity. If we can somehow rule out either alternative, the other
must apply.
Proof: We will leave the proof for sums as an exercise. For constant multiples
we want to show, in effect, that the distributive law applies to (convergent) infinite
sums. To do this, we need to show that the sequence of partial sums
converges to cA. This follows from the distributive law for finite sums, and from
what we already know about sequences. By the distributive law, we can rewrite
the preceding sequence as
i i
i i
i i
i i
or, equivalently, as
cA1 , cA2 , cA3 , . . . , cAn , . . . ,
where {An } is the sequence of partial sums of an . But we know by hypothesis
that An → A, and the constant multiple rule for sequences implies that cAn →
cA, as desired.
S OLUTION . It diverges. The given series is the sum of two simpler series—
one convergent and one divergent—discussed in Example 1. In fact, every such
sum diverges. To see why, suppose that an converges and bn diverges. If
(an + bn ) were convergent, then, by Theorem 2.22, the series
bn = ( (an + bn ) − an )
The converse,
if an → 0 then an converges,
Don’t give in. (The harmonic
is tempting but false: a series an may diverge even if an → 0. series is one counterexample.)
i i
i i
i i
i i
Watch the difference Proof: Observe first that, for all n > 1,
“telescope.”
An − An−1 = (a1 + · · · + an−1 + an ) − (a1 + · · · + an−1 ) = an .
as claimed.
where a and r are any fixed numbers; notice the common ratio r of each summand
to its predecessor. The first series discussed above, for instance, is geometric, with
ratio r = 1/2:
∞
∞
1 1 1 1
=1+ + + ··· = 0.5k−1 .
2k−1 2 4 8
k=1 k=1
The geometric form may be slightly hidden in the numbers, but it is easy to check
that successive terms have common ratio r = 1.1, and so the standard geometric
∞
template k=1 3 × 1.1k−1 fits the pattern.
It’s readily proved by induction. Geometric series satisfy a useful algebraic equation:
1 − rn
a + ar + ar2 + ar3 + · · · + arn−1 = a (∗)
1−r
i i
i i
i i
i i
What happens to the right side as n → ∞? The answer depends entirely on the
rn in the numerator—and that depends, in turn, on the value of r. If |r| < 1, then
rn → 0, and so
1 − rn 1
a →a ,
1−r 1−r
as claimed. If |r| > 1, then {arn } is unbounded, and so the series (badly!) fails
the nth term test, and so diverges.
The remaining cases (r = ±1) are much simpler, and left to the exercises.
E XAMPLE 4. Proposition 2.24 and Theorem 2.22 justify calculations like the
following: Watch the tricky index change
from k to j.
∞
∞
∞
∞
j−1 ∞
j−1
3k + 4k 3k 4k 3 4
= + = +
5k 5k 5k j=1
5 j=1
5
k=0 k=0 k=0
1 1 15
= + = = 7.5.
1 − 3/5 1 − 4/5 2
Similarly,
1 1 1 1 1 1 1 1
π+e+ − + − + ... = π + e + 1− + − + ...
3 6 12 24 3 2 4 8
∞
1
k−1
1
=π+e+ −
3 2
k=1
1 1 2
=π+e+ = π + e + ≈ 6.082.
3 1 + 1/2 9
Numerical experiments support these results. According to Mathematica,
50
50
1
k−1
3k + 4k 1
≈ 7.4993; π+e+ − ≈ 6.0821. ♦
5k 3 2
k=0 k=1
i i
i i
i i
i i
E XAMPLE 5. Does each of the following series converge or diverge? What can
be said about limits?
∞
∞
∞
2k − 1 1 sin k
(a) (b) (c)
3k 2k − 1 2k
k=1 k=1 k=1
i i
i i
i i
i i
The resulting series diverges (why?), and is comparable to series (b), which there-
fore also diverges. ∞
For series (c), comparison with k=1 1/2k is tempting, but some terms of (c)
may be negative, and so Theorem 2.25 doesn’t apply. Still, numerical evidence
suggests convergence; here are some (approximate) partial sums Sn :
The case for convergence looks strong, but we don’t (quite yet) have a proof. ♦
Absolute Convergence
Series (c) from Example 5 stumped us. The next theorem comes just in time. It’s a triangle inequality, but for
infinitely many summands.
Theorem 2.26. If |ak | converges then ak converges too, and
∞ ∞
a n ≤ |an | .
k=1 k=1
i i
i i
i i
i i
Let’s polish off series (c) from Example 5 before proving this. Clearly,
|sin k| 1
< k
2 k 2
for all k, and so Theorem 2.25 guarantees that the left-hand series converges,
to some positive limit less than one. Theorem 2.26, in turn, says that series (c)
We don’t know exactly where. converges too, to a limit somewhere in the interval (−1, 1).
is convergent, and therefore Cauchy. We will use this fact and the triangle in-
equality to show that {An } is Cauchy, too.
Let > 0 be given. Because {Cn } is Cauchy we can choose N such that
|Cn − Cm | < whenever n > m > N . The same N turns out to work for {An },
Watch for the (finite) triangle because if n > m > N , then
inequality.
|An − Am | = |(a1 + · · · + am + am+1 + · · · + an ) − (a1 + . . . am )|
= |am+1 + am+2 + · · · + an |
≤ |am+1 | + |am+2 | + · · · + |an |
= Cn − Cm = |Cn − Cm | < .
i i
i i
i i
i i
∞
k+1 1 1 1 1 1
(−1) = 1 − + − + − ...
k 2 3 4 5
k=1
S OLUTION . Taking absolute values of all terms gives the ordinary harmonic
series
1 1 1 1
1+ + + + + ...,
2 3 4 5
which we know to diverge. To see why the alternating version converges, consider
the partial sums {Sn }:
1 1 1 1 1 1 1 1 1 1
1, 1 − , 1 − + , 1 − + − , 1 − + − + . . . .
2 2 3 2 3 4 2 3 4 5
Here’s a (rounded) numerical view of S1 , . . . , S10 :
1.00, 0.500, 0.833, 0.583, 0.783, 0.617, 0.760, 0.635, 0.746, 0.646, . . . .
Notice the pattern: Successive partial sums alternately increase and decrease, but
with smaller and smaller gaps. In particular, for any N , every term Sn with n > N
lies between SN and SN +1 . If n > 1000, for example, then
The same holds for two terms. If n > m > 1000, then both Sn and Sm lie
between 0.69265 and 0.69365, and so lie within 0.001 of each other. Using this
idea we can prove that {Sn } is Cauchy, and hence convergent. We leave details
to the exercises.
So what is the limit? The striking but far-from-obvious exact answer turns
out to be ln 2 ≈ 0.69315. A rigorous proof is beyond our scope, but numerical
evidence shows we are in the ballpark. ♦
Exercises
1. For each series following, find a formula or simple rule for the partial sums
Sn . Then decide whether the series converges or diverges, and to what
limit.
∞
(a) k=1 0 = 0 + 0 + 0 + . . .
∞
(b) k=1 42 = 42 + 42 + 42 + . . .
∞
k=1 (−1) = −1 + 1 − 1 + . . .
k
(c)
i i
i i
i i
i i
∞
(d) k=1 k = 1 + 2 + 3 + ...
∞
(e) k=1 0.99k−1
∞
(f) k=1 1/(k 2 + k) (Hint: Guess a formula for Sn ; prove it by
induction.)
2. This problem is about partial sums Hn of the harmonic series (see Exam-
ple 1, page 106).
∞ 1
(a) k=1
k + 2k
∞ k
(b) k=1
2k 2 − 1
∞ k
(c) (Hint: Compare to a geometric series.)
k=1
3k
∞ k2 + 2
(d) k=1
3k 2 + 4
4. A telescoping series is one for which the partial sums Sn “collapse” to
some shorter, simpler form.
i i
i i
i i
i i
∞
(a) For the series k=1 ( k1 − k+1
1
), write out (by hand) S2 and S5 . Do you
see the “telescoping” behavior? Find a formula
∞ for Sn and deduce the
limit. (Note: This series, rewritten as k=1 1/(k 2 + k), appears in
an earlier problem.)
∞
(b) For the series k=1 ( k1 − k+2 1
), find a formula for Sn and then find
the limit. (Hints: Write out, say, S10 to see the pattern for Sn .)
∞
(c) For the series k=1 ( k1 − k+101
), find a formula for Sn and then find
the limit. (Hints: Use ideas from the preceding parts. No proofs
needed, but check your claim numerically, using technology.)
5. Prove the claim about sums and differences in Theorem 2.22, page 108.
(Note that the claim amounts to saying that addition is commutative for
convergent infinite sums; we already know that addition is commutative
for finite sums.)
(a) How does the series look if r = 1? What if r = −1? Prove (using
partial sums) that the series diverges in both of these cases.
(b) In the proof of Proposition 2.24 we used several reasonable-seeming
facts about convergence and divergence of the sequence {rn }, de-
pending on the value of r. Prove them, as follows:
(i) If r and L are any real numbers and rn → L, then rn+1 → L,
too.
(ii) If r and L are any real numbers and rn → L, then rn+1 =
r rn → r L.
(iii) If r = 0 and rn → L, then L = 0. (Hint: Use the two preceding
parts.)
(iv) If 0 ≤ r < 1, then rn → 0. (Hint: Use a theorem about
monotone sequences.)
(v) If −1 < r ≤ 0, then rn → 0. (Hint: Squeeze.)
(vi) If |r| ≥ 1, then {rn } diverges. (Hint: It is enough to explain
why rn → 0 is impossible.)
(a) Claim: For any positive integer N , every partial sum Sn with n ≥ N
is between (or equal to one of) SN and SN +1 . Prove this for N =
1000. (A general proof is similar.)
i i
i i
i i
i i
(b) Show that, for any > 0, we can find N such that |SN − SN +1 | < .
(c) Use the preceding parts to show that {Sn } is Cauchy.
1 − rn
a + ar + ar2 + ar3 + · · · + arn−1 = a
1−r
for the partial sums of a geometric series with r = 1. Prove by induction
that this formula holds for all positive integers n.
i i
i i
i i
i i
2.6. Series 102: Testing for Convergence and Estimating Limits 119
where p is any fixed number. With p = 1 we have the harmonic series, which
we’ve shown to diverge. With p = 2 we get
∞
1 1 1 1 1
= 1 + 2 + 2 + 2 + 2 + ...,
k2 2 3 4 5
k=1
which converges, as we’ll prove in two different ways. The general story on
convergence and divergence is simple:
∞ 1
Proposition 2.27. The p-series k=1 kp converges if p > 1 and diverges if p ≤ 1.
1 1
k p ≤ k, and so > .
kp k
Because the harmonic series diverges, so must every p-series with p ≥ 1.
Showing convergence for p > 1 takes a little more effort. We illustrate the It gets easier when we know
argument for p = 1.3 and leave a general proof to the exercises. about integrals.
As with any positive series, convergence occurs if the partial sum sequence
{Sn } is bounded above. “Our” proof of this uses some clever algebraic book- It’s probably centuries old.
keeping to show that the subsequence
is bounded above; this implies, in turn, that the entire sequence {Sn } is bounded
above. The idea is to group summands into blocks of length 1, 2, 4, 8, . . . , and Do you see why?
then estimate the contribution of each block. We illustrate this for S31 . The
inequality holds because the first term in each block is largest, and the last equality
comes from counting the terms in each block:
1 1 1 1 1 1 1 1
S31 = 1 + + 1.3 + 1.3 + . . . + 1.3 + 1.3 + . . . + 1.3 + 1.3 + . . . + 1.3
21.3
3 4
7 8
15 16 31
1 1 1 1 1 1 1 1
< 1 + 1.3 + 1.3 + 1.3 + . . . + 1.3 + 1.3 + . . . + 1.3 + 1.3 + . . . + 1.3
2 2 4 4 8 8 16 16
2 4 8 16 1 1 1 1
= 1 + 1.3 + 1.3 + 1.3 + 1.3 = 1 + 0.3 + 0.3 + 0.3 + 0.3 .
2 4 8 16 2 4 8 16
i i
i i
i i
i i
Here comes the punchline: The last quantity can be rewritten in geometric form:
1 1 1 1
S31 < 1 + + + 0.3 + 0.3
20.3 40.3
8 16
2 3 4
1 1 1 1
= 1 + 0.3 + + +
2 20.3 20.3 20.3
∞ k−1 ∞
1 1
< 0.3
≈ 0.81225k−1 = ≈ 5.326.
2 1 − 0.81225
k=1 k=1
Limit comparison test. The ordinary comparison test (Theorem 2.25, page 112)
is simple and powerful, but can be hard to apply. The limit comparison test can
simplify the work.
Theorem 2.28 (Limit comparison test). Consider two series ak and bk with
positive terms, and suppose that {ak /bk } converges to a finite limit L.
(a) If bk converges, then ak converges, too.
(b) If L = 0, then either both ak and bk converge or both diverge.
Before proving the theorem, let’s try it out.
∞
E XAMPLE 1. We showed in Example 2, page 107, that the series k=1 bk =
∞ 2
k=1 1/(k + k) converges, with sum 1. Use limit comparison to deduce that
some other series converge.
S OLUTION . We have already shown that the p-series ak = 1/k 2 con-
verges, but the proof was laborious. Limit comparison is easier. Here is the key
limit:
ak 1/k 2 k2 + k 1
lim = lim 2
= lim 2
= lim 1 + = 1,
k→∞ bk k→∞ 1/(k + k) k→∞ k k→∞ k
which implies (again) that 1/k 2 converges.
i i
i i
i i
i i
2.6. Series 102: Testing for Convergence and Estimating Limits 121
then a look at powers of k in the numerator and denominator suggests limit com-
parison with 1/k 2 . The strategy turns out to work: Note the algebra with sequence
limits.
k2 +7k−3 sin k
2k4 −k k 4 + 7k 3 − 3k 2 sin k
lim 1 = lim
k→∞
k2
k→∞ 2k 4 − k
1 + 7/k − 3/k 2 · sin k 1
= lim 3
= .
k→∞ 2 − 1/k 2
We’ll prove Theorem 2.28 using two auxiliary facts, each of interest in its own
right.
Proof (sketch): The trick is to compare the partial sum sequences {An } and {Bn },
which turn out to resemble each other. Here is the idea for N = 42; a general
proof is almost identical. If ak = bk for k > 42, and we know n > 42, then
An = a1 + · · · + a42 + a43 + · · · + an
= a1 + · · · + a42 + b43 + · · · + bn
= (a1 + · · · + a42 ) − (b1 + · · · + b42 ) + (b1 + · · · + b42 ) + b43 + · · · + bn
= A42 − B42 + Bn .
Thus, An = A42 − B42 + Bn for n ≥ 42, which implies that the sequences
{An } and {Bn } either both converge or both diverge. If, in fact, Bn → B, then
An → A42 − B42 + B.
i i
i i
i i
i i
Proof: The hypothesis means that, for some positive number M , we have ak <
The second series is a constant M bk for all k. Now if bk converges, then M bk also converges. By the
multiple of the first. (ordinary) comparison test, ak must also converge, as claimed in (a). Part (b)
is the contrapositive of (a).
The limit comparison test is a special case of Proposition 2.30, so the proof is
easy.
Proof (of Theorem 2.28): Because {ak /bk } converges, it is also bounded above,
and so Proposition 2.30 implies part (a).
Now suppose, as in (b), that L = 0. In this case {bk /ak } converges to 1/L,
Sorting out the a’s and b’s is a and we can apply (a) to conclude that if ak converges, bk must do so, too.
little confusing . . . but it all works This establishes the claim in (b) about convergence; the statement about diver-
out.
gence is equivalent.
The ratio test. For a geometric series, the ratio of successive terms is a constant r,
and convergence depends on the magnitude of r. The ratio test generalizes this
principle to a large class of series that, although not geometric, behave “in the
limit” something like geometric series. The theorem makes these ideas precise.
Theorem 2.31 (Ratio test). Consider a series ak with positive terms, and sup-
pose that the sequence {ak+1 /ak } converges to a finite limit L.
S OLUTION . The ratio test says that the first series converges. The ratio in ques-
tion collapses nicely:
ak+1 1/(k + 1)! k! 1 ·2 · ···· k 1
= = = = .
ak 1/k! (k + 1)! 1 · 2 · · · · · k · (k + 1) k+1
The last quantity converges to zero as k → ∞, so the ratio test guarantees con-
vergence.
i i
i i
i i
i i
2.6. Series 102: Testing for Convergence and Estimating Limits 123
ak ak ak−1 ak−2 aN −1 aN
= ...
rk ak−1 ak−2 ak−3 aN r k
aN rk−N aN aN
< r · r ·
r · . . . r · k = = N.
r rk r
k − N factors
Now the last quantity is constant (independent of k), and so the sequence is
bounded, as desired.
and
∞
(−1)k−1 1 1 1 1 1
√ = √ − √ + √ − √ + √ − ...,
k=1
k 1 2 3 4 5
which have both positive and negative terms. What can we do?
We’ve already seen one work-around: test |ak |, not ak , for convergence.
Theorem 2.26, page 113, guarantees that if the former converges, so does the
latter. Indeed, we already used this method (Example 5, page 112) to show that
the first series converges.
i i
i i
i i
i i
∞
(−1)k−1 1 1 1
√ = √ + √ + √ + ...,
k=1
k 1 2 3
(ii) ak → 0 as k → ∞.
Then the series converges, and the limit S lies between any two successive partial
sums Sn and Sn+1 .
∞ √
k=1 (−1)
k−1
E XAMPLE 3. Finish off the series / k.
S OLUTION . Conditions (i) and (ii) of the theorem hold for our series:
1 1 1 1
√ > √ > √ > · · · > √ → 0,
1 2 3 k
as needed. Thus our series converges to some limit S, which lies between any two
successive partial sums. For instance, we have
and
S1002 ≈ 0.58911 < S < 0.62068 ≈ S1003 . ♦
i i
i i
i i
i i
2.6. Series 102: Testing for Convergence and Estimating Limits 125
Proof (of Theorem 2.32): The proof depends on an nice pattern among the partial
sums:
S2 ≤ S4 ≤ S6 ≤ S8 ≤ · · · ≤ S 7 ≤ S5 ≤ S3 ≤ S1 .
All of these inequalities hold because the terms alternate in sign but decrease in
size. The reasons are straightforward but pretty, and best thought through for
oneself. Start small; see, e.g., why
In particular, the odd-index subsequence S1 , S3 , S5 , . . . is decreasing and S 5 ≥ S 8.
bounded below (by any even-index term, such as S8 ), while the even-index sub-
sequence S2 , S4 , S6 , . . . is increasing and bounded above. Hence both of these
subsequences converge. They tend to the same limit, moreover, because
S2k − S2k−1 = a2k ,
and the right side tends to zero as n tends to infinity. This implies, finally, that
{Sn } itself converges, as desired, and that the limit, S, satisfies the main ine-
quality:
S 2 ≤ S4 ≤ S6 ≤ S8 ≤ · · · ≤ S ≤ · · · ≤ S7 ≤ S5 ≤ S3 ≤ S1 .
Estimating Limits
We have now acquired and sharpened several tools for detecting whether a lot of
series converge or diverge. That’s nice, but what about the limits themselves? The
bad news is that exact limits may be hard or impossible to find. (The family of
geometric series is a rare but important exception.) The good news is that the same
tools, cleverly employed, can also help us estimate limits with good precision.
E XAMPLE 4. We used the ratio test in Example 2 to show that the series
∞
1 1 1 1 1 1
=1+ + + + + + ...
k! 1 2 6 24 120
k=0
contribute, at most?
i i
i i
i i
i i
The comparison test idea gives a quick (if slightly crude) answer. Since
1 1 1 1 1 1
< 10 , < 11 , < 12 , ...,
11! 2 12! 2 13! 2
we can compare with a geometric series, for which we do know a limit:
1 1 1 1 1 1 1
+ + + · · · < 10 + 11 + 12 + · · · = 9 ≈ 0.002.
11! 12! 13! 2 2 2 2
This tells us that S10 ≈ 2.71828 underestimates the true limit by less than 0.002,
so we can have confidence in (at least) the first three digits. ♦
Bounding the tail: lessons from Example 4. For any convergent series ak
and any partial sum Sn we can write
∞
ak = (a1 + a2 + · · · + an ) + (an+1 + an+2 + . . . ) = Sn + Rn ,
k=1
∞
where Rn = k=n+1 ak is the nth upper tail, or remainder.
The idea illustrated in Example 4 is to bound the tail: If we can somehow
show that |Rn | is small, then the limit S = Sn + Rn must be close to the finite
sum Sn , which we can compute without any worries over convergence. Upper
tails are often bounded by comparison to suitable geometric series, for which
(atypically) we can find exact limits.
We should confess, finally, that the exact limit of the series in Example 4 is
well known to be e ≈ 2.71828182846. A rigorous proof requires methods we
haven’t developed; our point here is that reasonable accuracy is available using
basic arguments.
(−1)k ∞
1 1 1 1 1
1− + − + − + ··· = .
1 2 6 24 120 k!
k=0
i i
i i
i i
i i
2.6. Series 102: Testing for Convergence and Estimating Limits 127
For the present series we find S10 ≈ 0.367879, and we conclude that the exact
limit lies somewhere within about 0.002 of S10 .
But we can do better—with less work—using Theorem 2.32, which guaran-
tees that the exact limit lies between any two successive partial sums. Calculating
S9 ≈ .3678792 and S10 ≈ 0.3678795 gives us about six decimal places of accu-
racy. Again, our estimate plays well with the exact limit, which can be shown by
other methods to be 1/e ≈ 0.367879441. ♦
Exercises
1. Use methods of this section to prove as efficiently as possible that each
series converges or diverges. (These same series appeared in exercises for
the preceding section; now we know more techniques.)
∞
1
(a)
k + 2k
k=1
∞
k
(b)
2k 2 − 1
k=1
∞
k
(c) (Hint: Compare to a geometric series.)
3k
k=1
∞
k2 + 2
(d)
3k 2 + 4
k=1
(a) Show that if ak converges, then a2k converges, too. (Hint: Use
limit comparison.)
i i
i i
i i
i i
(b) Give examples to show that if ak diverges, then a2k may either
converge or diverge.
4. In the situation and notation of Proposition 2.28, page 120, show that if
bk diverges and ak /bk → ∞, then ak diverges, too. (Hint: If ak /bk →
∞, then bk /ak → 0.)
5. Complete and prove the following version of Proposition 2.29, page 121:
Consider two series ak and bk such that ak = bk for k > N . If bk
diverges, then ak diverges, too. If bk converges to B, then ak
converges to .
6. In Example 2, page 122, we used the ratio test to show that ∞ k=0 1/k!
converges. Prove the same thing using the comparison or limit comparison
test.
∞
7. Let {Sn } be the partial sum sequence for the series √1
k=1 k . Show that
√
Sn > n for all n; conclude that the series diverges.
8. In our proof sketch for Proposition 2.27, page 119, we showed that 1/k p
converges if p = 1.3. Show in a similar way that 1/k p converges for
every p > 1. (Hint: Writing p = 1 + s simplifies the algebra slightly; then
s plays the role of 0.3 in the given proof.)
∞
9. Consider the series k=1 1/(2k−1 + 1), which converges to some limit S.
i i
i i
i i
i i
(a) Draw a picture to illustrate this inequality. (Leaf through any standard
calculus text, if necessary.)
∞ 1
(b) Estimate k=1 k3 with error less than 0.001. (Technology will be
helpful.)
Basic problems.
1. For each of the following sequences {xn }, find the corresponding sequence
{vn }; then find lim sup xn .
2. Why must all the vi exist in the sup-sequence? Why must {vn } have a
limit? (Cite appropriate theorems.)
3. How are lim xn and lim sup xn related to each other for a bounded se-
quence {xn }? Can one exist but not the other? Can both exist but be
different?
i i
i i
i i
i i
The lim inf. The lim inf is closely analogous to the lim sup.
1. Carefully state an appropriate definition for the lim inf of a bounded se-
quence. Then find lim inf xn for each of the example sequences in the first
problem.
2. Find a sequence {xn } with lim sup xn = 5 and lim inf xn = −2.
3. Prove that if lim sup xn = 5 and lim inf xn = 5, then lim xn = 5, too.
4. It seems reasonable that lim inf xn ≤ lim sup xn for any bounded sequence
{xn }. Prove this. What happens if the two are equal?
Algebra with the lim inf and the lim sup. The ordinary limit has nice algebraic
properties: for example, lim (xn + yn ) = lim xn + lim yn (assuming that both
limits on the right side exist). Do lim inf and lim sup have similar properties?
1. Find the lim sup and the lim inf of the sequence −1, −2, −3, −4, . . . . Find
a sequence {xn } with lim sup xn = ∞ and lim inf xn = −∞.
2. Show that every sequence (bounded or not) has a lim sup and a lim inf.
3. If lim sup xn = +∞, must lim xn = +∞, too? If lim sup xn = −∞,
must lim xn = −∞, too?
Lim sups, lim infs, and subsequences. The lim sup and the lim inf of a se-
quence {xn } are closely connected to subsequences of {xn }, as the following
proposition suggests.
Proposition 2.33. Let {xn } be a sequence.
(a) If {xn } is unbounded above (so lim sup xn = ∞), then some subsequence
{xnk } diverges to infinity.
(b) If {xn } is bounded above, with lim sup xn = L, then some subsequence
{xnk } converges to L.
i i
i i
i i
i i
1
L− ≤ xnk ≤ vk = sup{xk , xk+1 , . . . ,
k
where {vk } is the usual sup-sequence. Now the sequences at left and right both
clearly converge to L, so our subsequence {xnk } is “squeezed” to the same limit.
To construct the desired subsequence, observe first that L − 1 < L ≤ v1 .
Thus L − 1 is not an upper bound for {x1 , x2 , x3 , . . . }, so we can find xn1
with L − 1 < xn1 ≤ v1 , as desired. Similarly, L − 1/2 is not an upper
bound for {xn1 +1 , xn1 +2 , xn1 +3 , . . . }, so there is some xn2 with n2 > n1 and
L − 1/2 < xn2 ≤ vn2 ≤ v2 , as desired. Continuing this process produces the
desired subsequence {xn1 , xn2 , xn3 , . . . }.
1. Show that if lim sup xn = 5, then there is a subsequence {xnk } that con-
verges to 5. Could some other subsequence converge to 6? To 4? Explain
your answers.
More on the “sup-sequence.” The following problems explore further the cor-
respondence between the original sequence {xn } and the “sup-sequence” {vn }.
We can ask, for instance, about “inverting” this correspondence.
1. For each of the following sequences {vn }, find (if possible) two different
sequences {xn } that give the same sup-sequence {vn }.
3 3 4 4
(a) {vn } = 2, 2, , , , , . . .
2 2 3 3
(b) {vn } = {2, 2, 2, 2, 2, 2, . . . }
(c) {vn } = {2, 1.1, 1.01, 1.001, 1.0001, . . .}
2. For which sequences {vn } can there be more than one associated sequence
{xn }? State and prove a claim.
i i
i i
i i
i i
i i
i i
i i
i i
CHAPTER 3
Limits and Continuity
These views are not incorrect, but they are too vague to be useful for building
theory or proving theorems. What exactly does “approaches” mean? How close
to 3 must x be for x ≈ 3 to hold? We need a precise definition.
Definition 3.1 (Limit of a function). Let f be a function whose domain includes
an open interval I containing a, except perhaps for x = a. Let L be a number.
We write limx→a f (x) = L if, for every > 0, there exists δ > 0 such that
133
i i
i i
i i
i i
E XAMPLE 1. Let f (x) = (3x2 − 3)/(x − 1). Use Definition 3.1 to show that
limx→1 f (x) = 6.
S OLUTION . Note first that all is well with domains: f (1) is undefined, but f (x)
makes good sense for all other x. Next, for x = 1 we have
i i
i i
i i
i i
L+є L+є
L L
L–є L–є
S OLUTION . With f (x) = x for the first limit f (x) = k for the second, verifying
Definition 3.1 is an easy exercise. ♦
Picturing limits. Function limits can be understood graphically. For any given
and δ, we can look at the tiny rectangular “window” in the xy-plane, centered at
(a, L), in which L − < y < L + and a − δ < x < a + δ. This window has
“half-height” and “half-width” δ; two possibilities are shown in Figure 3.1.
From this viewpoint, the –δ condition is satisfied if the graph of f stays
inside this rectangle all the way from left to right, as in Figure 3.1(a). If the graph
“escapes” at top or bottom, as in Figure 3.1(b), the chosen δ does not work for the
given . The limit is L if, for any choice of (the half-height), there exists some
good half-width δ.
i i
i i
i i
i i
The next example illustrates what can—and cannot—be inferred from the ex-
istence of a limit.
E XAMPLE 4. Let f be a function for which limx→a f (x) > 0. Must f (x) > 0
also hold for x near a? What can be said if limx→a g(x) = 0?
Proof: To show that (i) implies (ii), let’s assume that (ii) fails and construct a
Let’s prove the contrapositive, in sequence {xn } that violates (i).
other words. For (ii) to fail means that there is some positive , say 0 , for which no δ > 0
works. In particular, δ = 1 fails, so there must be some x1 in I \ {a} such that
i i
i i
i i
i i
1 1
a− < xn < a +
n n
for all n. Thus our sequence {xn } violates (i), as desired, and we’ve shown that
(i) =⇒ (ii).
Showing (ii) =⇒ (i) is easier; we’ll leave it as an exercise.
Lemma 3.2 lets us exploit earlier work with sequences to find, without much
effort, a lot of function limits that would be tedious or difficult to handle from
scratch.
E XAMPLE 5. Let f (x) = (3x2 + 5x + 2)/(2x − 7). Use Lemma 3.2 to prove
that limx→5 f (x) = 102
3 .
S OLUTION . Proving such a thing straight from the –δ definition could get ugly.
With Lemma 3.2, it is easy.
To get started, let {xn } be any sequence with xn → 5. By Lemma 3.2, it is
enough to show that
i i
i i
i i
i i
New function limits from old. The following theorem does for functions what
Theorem 2.5, page 83, does for sequences.
Theorem 3.3 (Algebra with limits). Let f (x) and g(x) be defined for all inputs x
in I \ {a}, where I is any open interval containing a, and suppose that
lim f (x) = L and lim g(x) = M.
x→a x→a
Then
lim (f (x) ± g(x)) = lim f (x) ± lim g(x) = L ± M ;
x→a x→a x→a
lim (f (x) · g(x)) = lim f (x) · lim g(x) = L · M ;
x→a x→a x→a
f (x) limx→a f (x)
lim = if M = 0.
x→a g(x) limx→a g(x)
Observe:
• Existence: Theorem 3.3 is more than a recipe for calculating new limits
from old; it is also a guarantee that various limits (those on the left of each
equation) actually exist. In the case of quotients, for existence, one might
reasonably worry about small or vanishing denominators; Theorem 3.3 as-
sures us that all is well if M = 0.
• Something to combine: The how-to-combine-limits rules in Theorem 3.3
aren’t much good until we have some already-proved basic limits to com-
bine. The good news is that a few very, very basic limits, such as
lim x = a and lim k = k
x→a x→a
We addressed these in go a long way. Applying Theorem 3.3, repeatedly as necessary, lets us cal-
Example 2. culate limits like these without too much effort:
3x2 + 5x + 2 3 · 52 + 5 · 5 + 2
lim = = 34;
x→5 2x − 7 2·5−7
5+2
317x2 − 5 x+3
x+2
317 · 52 − 5 5+3
lim = ≈ 0.5117.
x→5 42.075 − x5 42.075 − 55
(We calculated the first limit, a bit differently, in Example 5.)
Proof: All parts of Theorem 3.3 follow easily when we combine the analogous
results for sequences (Theorem 2.5, page 83) with Lemma 3.2, above. Concerning
products, for instance, we consider any sequence {xn } in I \ {a}. By hypothesis,
the new sequences {f (xn )} and {g(xn )} converge to L and M , respectively.
By Theorem 2.5, the product sequence {f (xn )g(xn )} converges to LM , and
Lemma 3.2 assures us that limx→a f (x)g(x) = LM , too. The remaining parts
are similar.
i i
i i
i i
i i
Squeezing functions. A squeeze principle works for function limits. We’ve al-
ready proved the sequence version (Theorem 2.6, page 86):
Proposition 3.4 (The squeeze principle). Let f (x), g(x), and h(x) be defined
for all inputs x in I \ {a}, where I is an open interval containing a, and suppose
that
f (x) ≤ g(x) ≤ h(x) for all x ∈ I \ {a}.
If limx→a f (x) = L and limx→a h(x) = L, then limx→a g(x) = L, too.
The proof, like that of Theorem 3.3, amounts to combining the sequence version
with Lemma 3.2. We’ll leave that to the exercises.
The limit-squeezing idea is simple. The tricky bit in practice is to find helpful
squeezing inequalities.
sin x
E XAMPLE 6. Squeeze something to find limx→0 x sin(1/x) and limx→0 x . Plotting these functions might
be useful.
S OLUTION . The fact that |x sin(1/x)| ≤ |x| for all x = 0 suggests a simple
squeezing inequality:
1
− |x| ≤ x sin ≤ |x|.
x
Clearly, ±|x| → 0 as x → 0, so the middle quantity tends to zero, too.
Finding a good squeezing inequality for the second limit takes more effort.
Here is one possibility:
sin x 1
cos x ≤ ≤ if x ∈ (−1, 1) and x = 0.
x cos x
This does the job: Since cos x → 1 as x → 0, the left- and right-hand functions
tend to 1, and hence so does the middle function. The squeezing inequality needs
proof too, of course; we’ll leave that to the exercises to avoid distraction. ♦
Following are several formal definitions; we leave some others, all in the same Familiar functions from calculus
spirit, as exercises. As with Definition 3.1, each part here involves some technical seldom cause trouble on this
assumption about domains, needed to ensure that the key inequalities make sense. score.
i i
i i
i i
i i
Definition 3.5 (Variant limits). Let f be a function and let a and L be real
numbers.
• Right-hand limit: Let f (x) be defined for all inputs x in some open interval
I = (a, b). We say limx→a+ f (x) = L if, for every > 0, there exists
δ > 0 such that
• Left-hand infinite limit: Let f (x) be defined for all inputs x in some open
interval I = (b, a). We say limx→a− f (x) = −∞ if, for every M > 0,
there exists δ > 0 such that
• Limit at infinity: Let f (x) be defined for all inputs x in some open interval
I = (b, ∞). We say limx→∞ f (x) = L if, for every > 0, there exists
N > 0 such that
• Infinite (two-sided) limit: Let f (x) be defined for all inputs x in an open
interval I containing a, except perhaps at x = a. We say limx→a f (x) = ∞
if, for every M > 0, there exists δ > 0 such that
• Infinite limit at infinity: Let f (x) be defined for all inputs x in some open
interval I = (b, ∞). We say limx→∞ f (x) = ∞ if, for every M > 0, there
exists N > 0 such that
S OLUTION . Note first that the functions in all three limits are fine as regards
domains. The first is defined for x > 0, the second for x > −5, and the third for
x ≥ 0.
Limits (a) and (b) have close analogues for sequences—limn→∞ n1 = 0 and
limn→∞ (3n + 2)/(n + 5) = 3—and the proofs for functions are almost identical
to those for sequences. For (b), for instance, we proved the sequence version in
i i
i i
i i
i i
Example 2, page 75, and the function version is almost the same. First, we see
that for any positive ,
3x + 2 3x + 2 − 3(x + 5) 13
−3 = = .
x+5 x+5 x+5
(It is OK to drop the absolute value because x + 5 > 0 certainly holds for the
large positive x in which we’re interested.) Now
13 13
< ⇐⇒ − 5 < x,
x+5
and so for any given > 0 we can set M = 13/. This M works in the appropriate
definition, because if x > M , then (skipping some details from just above)
3x + 2 13 13
−3 = < = ,
x+5 x+5 M
as desired. Limit (a) is left to you.
For (c), only positive x matter, and so
2x 2x
√ −0 = √ < 2x < ⇐⇒ x< .
1+ x 1+ x 2
Thus, for given > 0 the value δ = /2 works: if 0 < x < δ, then
2x
√ − 0 =< 2x < 2δ = ,
1+ x
as the definition requires. ♦
All in the limit family. All of these limit variants are close kin to each other. Limits
at infinity, for instance, are one-sided in the sense that ∞ is approachable only
from below, and −∞ only from above. The following proposition makes some of Similar results apply to limits
this kinship explicit: that involve −∞.
Observe, especially, what the proposition says about existence: if the limits on
either side of “if and only if” exist, then so must the limits on the other side.
We will leave formal proofs to the exercises, but illustrate the idea of (i) with an
example.
i i
i i
i i
i i
0.4
0.2
– 0.2
– 0.4
S OLUTION . Let > 0 be given; we need a δ > 0 that works for . Because of
g’s peculiar two-sided nature, we’ll first find positive numbers δleft and δright that
Here “right” and “left” mean work for on the left and on the right of zero, respectively.
x > 0 and x < 0, respectively. Matters are simplest on the left. There g(x) = x/2, and so
x
|g(x) − 0| = < ⇐⇒ |x| < 2,
2
which means that δleft = 2 works (and also that limx→0− g(x) = 0). On the
right, we have g(x) = 2x sin(1/x), and so
|g(x) − 0| = |2x sin(1/x)| ≤ |2x| < ⇐⇒ |x| < ,
2
which means that δright = /2 works (and that limx→0+ g(x) = 0).
Combining these results means that |g(x) − 0| < holds for all nonzero x in
the asymmetric interval
Obviously, |g(x) − 0| < also holds for nonzero x in the (smaller) symmetric
interval (−δleft , δleft ). This means that δ = δleft = /2 works for in the desired
limit. We’re done. ♦
i i
i i
i i
i i
1 3x + 2
lim √ ; lim ; lim x2 − 1000x; lim x2 + 2x − x.
x→∞ x + x+3 x→∞ x + 5 x→∞ x→∞
S OLUTION . The first limit yields to squeezing. For all x > 0, we have
1 1
0< √ < ;
x+ x+3 x
√
since limx→∞ x1 = 0, we must have limx→∞ 1/(x + x + 3) = 0, too.
We found the second limit from scratch in Example 7. With algebra we can
reduce the limit to something simpler (also handled in Example 7):
The limit limx→∞ x2 − 1000x involves the difference of two quantities, each
tending to infinity. Which tendency “wins”? It is easy to guess that x2 over-
whelms 1000x for large x, and so, presumably limx→∞ x2 − 1000x = ∞. Alge-
bra helps confirm this. For any given M > 0, we have
so we can use N √ = max M, 1001 in the appropriate definition. Check details for yourself.
The function x2 + 2x−x is another difference of two quantities that diverge
to infinity. Plotting the function or plugging in large values of x suggests that the Try it.
limit is one. We can show this algebraically—with a little effort. The trick is to
multiply and divide by the conjugate expression:
√ √
x2 + 2x − x x2 + 2x + x
x2 + 2x − x = √
x2 + 2x + x
2x 2
= √ = .
2
x + 2x + x 1 + 2/x + 1
i i
i i
i i
i i
Exercises
1. We said in Example 2 that if a and k are any constants, then
2. Guess a value for each of the following limits; prove your answers using
Definition 3.1, page 133.
(a) lim 2x + 3
x→1
x2 − 1
(b) lim
x→−1 x + 1
x2 + x − 2
(c) lim
x→1 x−1
2 + sin x
(d) lim x
x→0 3 − cos x
3. For a function f and an input x = a it may (or may not) happen that
limx→a f (x) = f (a). If f (x) = 3x + 5, for instance, it is easy to show that
limx→42 f (x) = 3 · 42 + 5 = f (42). (At a domain endpoint, we’d use the
appropriate one-sided limit.)
In each case following, decide whether this happens. If so, prove it; if not,
say why not. (Theorem 3.3, page 138, may be useful.)
4. Prove Proposition 3.4. (One way is to use Theorem 2.6, page 86, and
Lemma 3.2.)
i i
i i
i i
i i
(a) Explain why it is good enough to show this for θ ∈ (0, π/2).
(b) Give a geometric proof of the (equivalent) inequality sin θ cos θ ≤
θ ≤ tan θ. (Hint: Draw the angle θ into the first quadrant of the
unit circle in the usual way. Then find right triangles whose areas
represent the left- and right-hand quantities above. What area does θ
represent?)
(a) Assume (it is easy to show, but don’t bother) that limx→1 f (x) = −5.
For = 0.01, find a positive δ that works, and illustrate your answer
by sketching the graph of f in a well-chosen window of half-height
and half-width δ.
i i
i i
i i
i i
(b) It is a fact that limx→100 f (x) = 9400. For = 0.01, find a positive δ
that works, and illustrate your answer by sketching the graph of f in
a well-chosen window of half-height and half-width δ.
(c) It is true that limx→10 f (x) = 40. Set = 0.01. Does δ = 0.001
work in this case? Sketch the graph of f in an appropriate window to
illustrate your answer.
10. Suppose that f (x) = 0 if x = 0 and f (0) = 42. Explain carefully why
limx→a f (x) = 0 for all real numbers a.
14. Explain why the function g in Example 8, page 142, satisfies the squeez-
ing inequality −|2x| ≤ g(x) ≤ |2x|. Use this to give another proof that
limx→0 g(x) = 0.
Otherwise, f is discontinuous at x = a.
i i
i i
i i
i i
Observe:
• In terms of limits: All those ’s and δ’s suggest a lurking limit. Sure enough,
the definition boils down to this:
lim f (x) = f (a).
x→a
x2 −4x−5
E XAMPLE 1. Where is the function f (x) = x2 −25 continuous? Can any
discontinuities be “fixed”?
i i
i i
i i
i i
0.5
– 0.5
–1
–1 – 0.5 0 0.5 1
Sketch your own. S OLUTION . As its graph suggests, the sign function is discontinuous at a = 0,
because limx→0 sign(x) does not exist. But the sign function is continuous at all
a = 0, because (as the graph also suggests) limx→a sign(x) = ±1 = sign(a).
Formal proofs are straightforward; see the exercises.
The function g is stranger, and its graph is much weirder than Figure 3.3
suggests. For example, neither “line” contains any unbroken segment, but each
“line” contains infinitely many points, so densely packed that between any two
points lie infinitely many more.
Bizarre as g seems, it is not hard to show that g is continuous at a = 0 but
discontinuous elsewhere. To show continuity at a = 0, we need to check that
limx→0 g(x) = g(0) = 0. This follows from the squeezing inequality
Since the left- and right-hand quantities clearly tend to zero, so must g(x).
For a = 0, on the other hand, limx→a g(x) does not exist. One way to prove
this is to consider two sequences {rn } and {pn }, each converging to a, with
Such sequences do exist. rn ∈ Q and pn ∈ / Q for all n. Then we have
i i
i i
i i
i i
The idea for continuity at a right endpoint is essentially the same. In practice, We leave it to you.
endpoint continuity comes up less often than the standard version—after all, an
interval has only two endpoints, but infinitely many points in between.
√
E XAMPLE 3. Check that the function f (x) = x is continuous at x = 0.
√ √
S OLUTION . We only need to show that limx→0+ x = 0 = 0. Doing so is
straightforward. For any > 0, the choice δ = 2 works:
√ √
if 0 < x ≤ δ, then 0 < x ≤ δ = ,
as desired. ♦
i i
i i
i i
i i
i i
i i
i i
i i
Continuity of c and i at any input a amounts to nothing more than that limx→a c =
c and limx→a x = a; both claims are very easy to show. Proving continuity of
the remaining functions rigorously takes more effort—starting with clear defini-
tions of these functions. We omit details here, but see the exercises for further
discussion.
f
f ± g, f g, and
g
Proof (s): Proving Proposition 3.11 boils down to verifying algebraic properties
of limits. We’ve done that already; see Theorem 3.3 (page 138) and its proof.
We’ll prove Proposition 3.12 in good –δ style. For simplicity we’ll assume The proof involves two δ’s,
that f and g are defined on open intervals about b and a, respectively. To this end, chosen one after the other.
let > 0 be given. Since f is continuous at b, there exists δ1 > 0 such that In other words, a and b are not
domain endpoints.
|f (y) − f (b)| < whenever |y − b| < δ1 .
To finish the proof, note that this δ2 works for the original > 0:
i i
i i
i i
i i
About proofs. The general point is that elementary functions are combinations,
of the types treated in Propositions 3.11 and 3.12, of the continuous functions
discussed in Proposition 3.10. For instance, writing the polynomial p(x) = 3x2 +
πx − 7 in the form
3x2 + πx − 7 = 3 · x · x + π · x − 7
shows explicitly that p is built by multiplication and addition from constant func-
tions and the function i(x), both of which are continuous according to Proposi-
tion 3.10.
Continuity of all six basic trigonometric functions on their domains follows
from continuity of the sine function and such identities as
sin x 1
cos x = sin (x + π/2) ; tan x = ; sec x = .
cos x cos x
In a similar way, the functions
3x2 + 5x − 7 cos x
r(x) = and g(x) = arctan ln
x2 − 1 3x + 1
Exercises
1. Let A, B, and c be any real numbers. Use the –δ definition to show that
f (x) = Ax + B is continuous at c. Does it matter if A = 0?
(a) Sketch graphs of max{f, g} and min{f, g} if f (x) = sin x and g(x) =
cos x on I = [−2π, 2π].
i i
i i
i i
i i
7. Suppose f (3) > 5 and f is continuous at 3. Show that there exists δ > 0
such that f (x) > 5 for x ∈ (3 − δ, 3 + δ).
8. Let f be the function whose graph consists of the two line segments joining
(0, 0), (1, 1), and (2, −1). Show that f is continuous at x = 0 and at x = 1.
(In fact, f is continuous on all of [0, 2].)
1
(a) f (x) = ; a = 0.
x
x2 − 4
(b) f (x) = ; a = −2.
x+2
1
(c) f (x) = x sin ; a = 0.
x
10. Let I be an open interval containing zero, and f : I → R any function that
is bounded on I. Define a new function g : I → R by g(x) = xf (x).
i i
i i
i i
i i
We made up the fancy name. Sticky inequalities. Our first such property says, roughly, that if a continuous
function satisfies a strict inequality at a point, then the same inequality holds
(“persists”) for inputs near that point.
Proposition 3.14 (The Principle of Persistent Inequalities (PoPI)). Let f be con-
tinuous at c and defined on an interval I containing c; let K be any constant. If
f (c) < K then there is some δ > 0 such that
i i
i i
i i
i i
30
20
10
0
0.2 0.4 0.6 0.8 1.
– 10
– 20
– 30
Proof: For simplicity, we handle the case where c is not an endpoint of I. The
case where c is an endpoint is similar.
Supposing, then, that f (c) < K, we set = K − f (c) > 0, and choose δ > 0
according to the definition of continuity of f at c. This δ satisfies our present
claim, because if |x − c| < δ, then
In particular, we have
as desired.
Boundedness. What, if anything, does continuity have to do with boundedness
of a function f on an interval I? It is clear from easy examples that a continuous
function f need not be bounded on I, even if I itself is bounded. For instance, the
functions
1 1 1 sin (1/x)
f (x) = , g(x) = + , and h(x) =
x x x−1 x
are all continuous on I = (0, 1), but f is unbounded above on I, g is unbounded
above and below, and h behaves even worse. As Figure 3.4 suggests, h is un-
bounded both above and below on every interval (0, ). But there’s good news
about continuous functions on closed intervals, and the proof involves an old
friend.
Proposition 3.15. Let f be continuous on the closed and bounded interval [a, b].
Then f is bounded on [a, b]; that is, there exist numbers m and M such that
i i
i i
i i
i i
Proof: We will show that any function f with the given properties is bounded
above; the proof for lower bounds is similar. Suppose, toward contradiction, that
f is unbounded above. Because one is not an upper bound there must be some
x1 ∈ [a, b] with f (x1 ) > 1. Because two is also not an upper bound, there is
x2 ∈ [a, b] with f (x2 ) > 2. Continuing this process, we can construct a sequence
Below by a and above by b. Now the sequence {xn } is bounded and so, by the Bolzano–Weierstrass theorem,
has a subsequence {xnk } that converges to some limit x0 ∈ [a, b].
Here comes our contradiction. Because f is continuous at x0 and xnk → x0 ,
we must have f (xnk ) → f (x0 ), too. This is impossible: for all k we have
f (xnk ) > nk ≥ k.
This means that the sequence {f (xnk )} is unbounded, and hence divergent.
Proposition 3.15 applies, by the way, to the three functions f , g, and h discussed
above—as long as we restrict domains to closed intervals, such as [0.002, 0.9998],
on which all three functions are continuous. (On this interval, −500 < h(x) <
500, for instance.)
Theorem 3.16 (Intermediate value theorem (IVT)). Let f be continuous on [a, b],
with f (a) = f (b); let v be any number between f (a) and f (b) (i.e., f (a) < v <
f (b) or f (b) < v < f (a)). Then there exists c in (a, b) with f (c) = v.
Proof: We discuss the case f (a) < v < f (b); the argument for the case f (b) <
v < f (a) is similar.
a ∈ S, for instance. Consider the set S = {x ∈ [a, b] | f (x) < v}. Because S is nonempty and
By b, for instance.
bounded above, it has a least upper bound—say, c—somewhere in [a, b]. We’ll
show that c has all the properties claimed in the theorem.
Our first claim is that f (c) ≤ v. This is trivial if c ∈ S. If c ∈
/ S, then there is
a sequence {sn } of members of S with sn → c. Because f is continuous at c we
must have f (sn ) → f (c), and since f (sn ) < v for all n it follows that f (c) ≤ v.
We see, too, that c = b, since we know f (b) > v.
That’s Proposition 3.14, To complete the proof, we show that f (c) < v is impossible; the PoPI is the
page 154. key. Indeed, if f (c) < v holds, then the PoPI says that f (x) < v must also hold
for x in some small interval (c − δ, c + δ). This is absurd—we chose c so that
f (x) ≥ v for all x > c. Thus f (c) = v, as desired.
i i
i i
i i
i i
Theorem 3.17 (Extreme value theorem (EVT)). If f is continuous on [a, b], then
f assumes both a maximum and a minimum value on [a, b]. That is, there exist
xmin and xmax in [a, b] such that
f (xmin ) ≤ f (x) ≤ f (xmax ) for all x ∈ [a, b].
Notice especially the important words “assumes,” “maximum,” and “minimum”:
The theorem guarantees that f achieves, not just approaches, biggest and smallest
values on [a, b].
Proof: Consider the output set We defined “range” in
Section 1.4.
R = range(f ) = {f (x) | x ∈ [a, b]} .
Proposition 3.15 says that R is a bounded set of real numbers. Since R is also
nonempty, the completeness axiom guarantees the existence of an infimum α and
a supremum β. To finish the proof, we need only show that α and β are members
of the range. With help—again—from Bolzano and Weierstrass we’ll handle the
case for β. The case for α is almost
Recall first that, since β = sup(R), there is a sequence {yn } contained in identical.
R with yn → β. (If β ∈ R, there is no harm done—we can just take yn = β
for all n.) Now for each yn there is at least one xn in [a, b] with f (xn ) = yn .
Choosing any one of these for each n produces a new sequence {xn } such that,
for all n,
a ≤ xn ≤ b and f (xn ) = yn .
The sequence {xn } itself need not converge, but the Bolzano–Weierstrass theo-
rem guarantees that some subsequence {xnk } converges, to a limit we’ll call xmax ;
clearly, xmax ∈ [a, b]. Since f is continuous at xmax and xnk → xmax , we must
have
f (xmax ) = lim f (xnk ) = lim ynk = lim yn = β,
k→∞ k→∞ n→∞
as claimed.
Bad values. Both the IVT and the EVT may fail, of course, if important hy-
potheses are violated. For example, the function f (x) = 1/x is continuous on the
open interval I = (0, 1), but assumes neither a maximum nor a minimum value
(for different reasons) on I. And the sign function, defined but discontinuous See Example 2, page 148.
on the closed interval [−10, 10], assumes only one intermediate value between
Which one?
f (−10) = −1 and f (10) = 1. (On the other hand, the sign function does assume
maximum and minimum values.)
i i
i i
i i
i i
“Root” seems less ambiguous; Odd-degree polynomials have real roots. A number r is a root (or a zero) of a
we’ll use it. function f if f (r) = 0. Thus, p(x) = x2 − 1 has roots ±1, q(x) = x2 + 1 has no
real roots, and
has roots 1, 2, 3, 4, and 5. Deciding whether an arbitrary function has any roots, let
alone finding them, can be challenging, but the IVT offers some encouragement
for a large class of polynomials.
of odd degree (an = 0 and n is odd) has at least one real root.
and so p(x) must assume both positive and negative values. If, say, p(x) = x3 −
7x2 + 5x + 3, then p(0) = 3 while p(−1) = −13, so p must have a root in the
Plotting p. interval (−1, 0). We leave a more formal proof to the exercises.
i i
i i
i i
i i
E XAMPLE 1. Show that if f : [0, 1] → [0, 1] is continuous on [0, 1], then f has
a fixed point.
S OLUTION . Note a crucial hypothesis about the codomain: 0 ≤ f (x) ≤ 1 for See it in the notation?
all x ∈ [0, 1]. This means, geometrically, that the graph of f stays inside the
square window [0, 1] × [0, 1] in the xy-plane. Our problem amounts to showing
that this graph touches or crosses the line y = x at least once. This may seem Sketch for yourself.
obvious, but we want proof, and the IVT will help.
The trick is to look at the new function g(x) = f (x) − x; note that g is also
continuous on [0, 1]. Note also that
(i) g(0) = f (0) ≥ 0; (ii) g(1) = f (1) − 1 ≤ 0.
If either g(0) = 0 or g(1) = 0, we’re done already, so we may as well assume
that both (i) and (ii) are strict inequalities. In this case, the IVT guarantees that
g(x) = 0 holds for some x ∈ (0, 1), as we aimed to show. ♦
i i
i i
i i
i i
With due care taken for domains, the inverse relationship means that f (a) = b if
and only if g(b) = a. For the last pair, for instance, we have f (1.2) = tan 1.2 ≈
2.57215, while g(2.57215) = arctan(2.57215) ≈ 1.2.
It is natural to hope in this situation that if either of f and g is continuous,
then so is its “partner.” (Knowing this might be practically useful—sometimes
it is easier to show directly that one rather than the other is continuous.) The
following proposition addresses this situation.
Using the IVT. The claim should seem plausible; we’ll leave its proof as an exercise. Assuming
the claim, we will handle the case where f is strictly increasing; the case for
decreasing f is similar.
Let b ∈ J be given. Then g(b) = a for some a ∈ I; note that also f (a) = b.
To see that g is continuous at b, let > 0 be given. Since I is an open interval
and a ∈ I, we may as well assume that the small closed interval [a − , a + ] is
If necessary, we can always contained in I. Because f is increasing, we know that f (a − ) < f (a) = b <
take smaller. f (a + ). To complete the proof, we now choose any δ > 0 so that
To see that this δ works for the original , consider any y in J with
Applying the strictly increasing function g to all parts of this inequality, we get
i i
i i
i i
i i
Exercises
1. Consider a function f : R → R and a domain point c ∈ R. We say that f is
locally bounded at x = c if there is some δ > 0 and some M > 0 such that
|f (x)| < M whenever x ∈ (c − δ, c + δ). (In other words, f is bounded on
some open interval centered at c.)
2. This problem revisits Proposition 3.19, page 158. Throughout, let p(x) =
xn + an−1 xn−1 + · · · + a1 x + a0 , where n is odd.
i i
i i
i i
i i
(a) What, if anything, does the EVT guarantee about maximum and min-
imum values of a continuous function f : R → R defined on all of R?
(b) No odd-degree polynomial achieves a maximum or a minimum value
on R. Explain why. (See an earlier problem.)
(c) Every even-degree polynomial q(x) achieves either a maximum or a
minimum value on R. Explain why. (Hint: This is just a little harder.
Note that either (i) q(x) → ∞ as x → ±∞, or (ii) q(x) → −∞
as x → ±∞. Show that q achieves a minimum in case (i) and a
maximum in case (ii).)
(d) Can an even-degree polynomial q(x) achieve both a maximum and a
minimum value on R? Explain.
3
5. This problem is about the functions p(a) = a(3 − a)2 and q(a) = a −1
discussed in Example 2, page 159.
(a) Does p assume a minimum on [0, 3]? If so, what is it? What does the
EVT say?
(b) Does q assume a minimum on (0, 3]? If so, what is it? What does the
EVT say?
(c) We said, but didn’t prove, in Example 2 that the maximum value of p
on [0, 3] is p(1) = 4. Prove it now, in two steps:
(i) Factor p(a) − 4 (one factor is a − 1).
(ii) Use your factorization to explain why p(a) − 4 ≤ 0 when a ∈
[0, 3].
i i
i i
i i
i i
12. Let f : [a, b] → R be continuous on [a, b]. Show that if f attains either its
maximum or its minimum value at an interior point c, then f is not one-to-
one.
13. Let I be an interval (open or closed) and suppose that f : I → R is contin-
uous and one-to-one. Show that f is strictly monotone.
i i
i i
i i
i i
What’s new here? What’s wrong with ordinary continuity, over which we’ve
worked hard? We’ll address these good questions right after some basic examples.
• One δ-size fits all: Ordinary continuity of f on I means that, having first
specified a ∈ I and > 0, we can then choose δ > 0 so that |f (x) − f (a)|
< whenever x ∈ I and |x − a| < δ. In particular, δ may depend both on
and on a.
In uniform continuity, by contrast, δ may depend on but not on a. In this
case, |f (x) − f (y)| < holds for any pair of inputs x and y in I. For
given , in other words, a single choice of δ works “uniformly” across the
interval I.
• Window dimensions: A function f is continuous at a if limx→a f (x) =
See Figure 3.1, page 135. f (a). In Section 3.1 we described this condition graphically: For any given
i i
i i
i i
i i
1.4
100.4
є+ 1
є+ 100
1
100
1–є 100 – є
0.6 99.6
> 0 we can choose δ > 0 so that the graph of f stays inside the rectangu-
lar “window”
[a − δ, a + δ] × [f (a) − , f (a) + ]
all the way from left to right, never escaping out the top or bottom. (This
window has dimensions 2δ × 2.) A function f : I → R is continuous
on I if, at every point of the graph, such a window can be found for every
“half-height” , no matter how small.
To say that f : I → R is uniformly continuous means, in this language, that
for given > 0 we can choose some δ > 0 so that a 2δ × 2 window works
at every point of the graph. This perspective suggests what went wrong
with g(x) = x2 in Example 1: as g rises more and more steeply over its
domain, its graph tends more and more to escape from the top or bottom of
a given window. Figure 3.5 gives some idea of the problem.
A function may be uniformly continuous on one set but not on another.
S OLUTION . Yes, and yes—and the second yes follows immediately from the
first. If any f is uniformly continuous on a set S, then f is automatically uni-
formly continuous on any smaller set S ⊂ S.
Informally speaking, the first “yes” applies because f is “steeper” at x = 42
than anywhere else on I = [−3, 42]. Therefore, any δ that “works” for a given
at x = 42 will also work elsewhere in I, where the graph is less steep.
i i
i i
i i
i i
Before starting the formal proof, note that for any x and y we have
|f (x) − f (y)| = x2 − y 2 = |x − y| |x + y| .
Now consider the last factor, |x + y|: For x and y in [−3, 42] I we have
as desired. ♦
Theorem 3.22. If f is continuous on a closed and bounded interval [a, b], then f
is uniformly continuous on [a, b].
Proof: Let > 0 be given, and assume, toward contradiction, that no δ > 0
works in the sense of Definition 3.21. Then δ = 1/n must fail for every positive
integer n. This means that, for each n, there must exist xn and yn in [a, b] such
that
1
|xn − yn | < but |f (xn ) − f (yn )| ≥ .
n
The two sequences {xn } and {yn } so constructed are obviously bounded; apply-
ing the Bolzano–Weierstrass theorem to {xn } produces a subsequence {xnk } that
converges to some limit x0 ∈ [a, b]. Now we extract the same subsequence {ynk }
from {yn }; because
1 1
|xnk − ynk | < ≤
nk k
for all k, we must have both xnk → x0 and ynk → x0 .
Now a contradiction looms. Since f is continuous at x0 , we must have both
i i
i i
i i
i i
We will exploit this view later, when we study integrals. This basic idea—that
f “preserves closeness”—translates naturally to Cauchy sequences, which are all
about closeness.
Proof: Let > 0 be given. By hypothesis there is some δ > 0 that works in the
sense of uniform continuity of f on I. Because {xn } is a Cauchy sequence, we
can choose N so that Yes, we mean δ, not .
as required.
E XAMPLE 3. Let f (x) = 1/x. Use Proposition 3.23 to show that f is not
uniformly continuous on I = (0, ∞). Is f uniformly continuous on [1, ∞)?
S OLUTION . We could use the definition to show directly that f is not uniformly
continuous (see the exercises), but using Proposition 3.23 is shorter. We can sim-
ply observe that the sequence {1/n} is contained in I and Cauchy, while the
output sequence {f (xn )} = {n} is surely not Cauchy.
On the interval [1, ∞), by contrast, f is uniformly continuous. To see this,
note that for x, y ∈ [1, ∞) we have
1 1 y−x
|f (x) − f (y)| = − = ≤ |y − x| .
x y xy
This implies that, for any > 0, the choice δ = works in the definition of
uniform continuity. ♦
i i
i i
i i
i i
Exercises
1. Throughout this problem, let f (x) = x2 and = 1. Since f is continuous
at c = 1, we can find some δ > 0 such that |f (x) − f (1)| < 1 when
|x − 1| < δ.
√
(a) Show that δ = 2 − 1 ≈ 0.4142 “works” in the situation described
above.
√
(b) Show that δ = 101 − 10 ≈ 0.0499 works for c = 10. (As before,
f (x) = x2 and = 1.)
(c) In the spirit of the preceding parts, find values of δ that work for c = 1,
c = 10, c = 100, and c = 1000. How do these values reflect the fact
that f is not uniformly continuous on R?
(d) Now let g(x) = 10x + 3 and (again) = 1. As in the preceding part,
find values of δ that work for c = 1, c = 10, c = 100, and c = 1000.
How do these values reflect the fact that f is uniformly continuous on
R?
(e) The function f is uniformly continuous on the interval I = [1, 1000].
Find a value of δ that works for = 1 in Definition 3.21.
2. Let I and J be any intervals, with I ⊆ J, and let f be a function. Show that
if f is uniformly continuous on J, then f is uniformly continuous on I, too.
i i
i i
i i
i i
i i
i i
i i
i i
holds for all x and y in I. The sine function, for instance, is Lipschitz
continuous (with K = 1) on R, because (as can be shown)
|sin x − sin y| ≤ |x − y|
10. Claim: Suppose f is uniformly continuous on the half-open interval (0, 1].
Then we can “extend f ” (i.e., define f (0)) to be uniformly continuous on
the closed interval [0, 1].
Prove this in the following steps:
(a) Set f (0) = limn→∞ f (1/n). Explain why this makes sense—i.e.,
explain why the limit exists. (Hint: The sequence 1, 1/2, 1/3, . . . is
Cauchy; apply Proposition 3.23, page 167.)
(b) (This is a little harder.) To show that f is uniformly continuous on
all of [0, 1], let > 0. Set = /2, and choose δ > 0 that “works”
for in the definition of uniform continuity of f on (0, 1]. Show
that this δ works for in the definition of uniform continuity of f
i i
i i
i i
i i
on [0, 1]. (Hint: It is enough to show that |f (x) − f (0)| < when
|x − 0| < δ. To do this, choose any n0 such that 0 < 1/n0 < x
and |f (1/n0 ) − f (0)| < /2. (Why is this possible?) Then use the
triangle inequality.)
√
11. Use Definition 3.21, not theorems, to show that f (x) = x √ is uniformly
√
continuous
√ on [0, 1]. (Hint: Prove first that if x ≥ y ≥ 0, then x− y ≤
x − y.)
12. Use Definition 3.21, not theorems, to show that f (x) = 1/(x2 + 1) is uni-
formly continuous on R.
i i
i i
i i
i i
i i
i i
i i
i i
CHAPTER 4
Derivatives
Thus, c (3) = 0. Since the value x = 3 played no important role in the calcula-
tion, we’d guess (correctly) that c (a) = 0 for all a.
Finding (3) is easy, too:
(x) − (3) 2x + 7 − 13 2x − 6
(3) = lim = lim = lim = 2.
x→3 x−3 x→3 x−3 x→3 x − 3
173
i i
i i
i i
i i
174 4. Derivatives
Thus, (3) = 2, and (almost) the same calculation shows that (a) = 2 for all
See the exercises. inputs a.
Watch for a factoring trick. For q, we need another limit calculation:
q(x) − q(3) x2 − 9
q (3) = lim = lim = lim (x + 3) = 6
x→3 x−3 x→3 x − 3 x→3
Thus, q (3) = 6. This time the calculation looks a bit different away from x = 3,
so we defer (just briefly) finding q (x) for other inputs.
The derivative a (3), if it exists, is the value of
a(x) − a(3) |x − 3| 1 if x > 3,
lim = lim = lim
x→3 x−3 x→3 x−3 x→3 −1 if x < 3.
Left- and right-hand limits do From the last form, we see that a (3) does not exist. ♦
exist at x = 3, but they are
unequal.
The results of Example 1 won’t surprise any calculus veteran. Let’s see what
Sketch these functions to see happens with some stranger functions, one of them an old friend.
the idea; no technology needed.
differentiable at x = 0?
S OLUTION . The short answers are no and yes. The limits in question are
f (x) g(x)
lim and lim .
x→0 x x→0 x
Look what happens along a The first limit clearly fails to exist, so f is not differentiable at x = 0. For the
rational sequence tending to second limit, we just note that
zero, and see the exercises.
g(x) x if x ≥ 0,
=
x 0 if x < 0,
and so
g(x)
g (x) = lim = 0. ♦
x→0 x
i i
i i
i i
i i
f (x) − f (a)
,
x−a
known as a difference quotient, can be thought of as the average rate of change of
f (x) with respect to x over the input interval between a and x. The derivative is
the limit of such rates as x approaches a, and so can be seen as the instantaneous
rate of change of f when x = a.
We won’t dwell now on the connection between derivatives and rates. But we
should acknowledge that the idea is among the best and most useful ever had—by
anybody. The power of calculus to describe and predict real-world change, from
falling apples to celestial mechanics, is hard to overstate. As Isaac Newton and
others discovered, calculus is the right “language” in which to express physical
laws and to deduce their consequences.
i i
i i
i i
i i
176 4. Derivatives
15
0.010
10
0.005
5
0.000
0 – 0.005
–5 – 0.010
–4 –2 0 2 4 – 0.10 – 0.05 0.00 0.05 0.10
(The second fact holds because a , being linear, has constant derivative.)
Away from x = a, anything can happen. In the case of f (x) = x2 and
l3 (x) = 9+6(x−3), for example, we have f (−42) = 1764 and f (−42) =
−84, while 3 (−42) = −261 and 3 (−42) = 6.
• Graphical views: The close connections between f and a are reflected in
their respective graphs. Indeed, the graph of a is in a natural sense the
line that “best fits” the f -graph at x = a. In elementary calculus parlance,
this line is called the tangent line at x = a. The word “tangent” suggests
“touching,” and in many cases this line does indeed “touch but not cross”
the graph of f at the point (a, f (a)), as illustrated in Figure 4.1(a). But in
other cases the graphs of f and a are seriously intertwined, as Figure 4.1(b)
and the following example illustrate. With such possibilities in mind we
will usually refer to “linear approximation” rather than “tangent lines.”
i i
i i
i i
i i
which we’ve already shown (by squeezing; see Example 6, page 139) to be zero.
Thus f (0) = 0, and so the corresponding linear approximation—also visible in
Figure 4.1(b)—is just
The calculation was easy, but the situation is still undeniably strange: The graph
of f crosses its tangent line infinitely often in every open interval (−δ, δ) around
a = 0. In the interval (−.001, .001), for instance, we have f (1/(kπ)) = 0 for all
integers k with |kπ| > 1000. ♦
Interpreting absolute values as distances, we see that the distance between outputs
f (x) and f (a) is about |m| times the distance between inputs x and a.
If f (x) = x2 , for instance, we have f (3) = 6, and f maps the small input
interval (2.95, 3.05) to the output interval (.7025, 9.3025), which is six times as
long.
Derivatives as Functions
For a given function f the derivative f (a) depends on a. If, say, f (x) = x2 , then,
as we have seen, f (a) = 2a holds for every input a, and we might simply write
f (x) = 2x. It is natural, in other words, to think of f as a function in its own
right, derived in a special way from f . Hence the term derivative
To avoid “symbol-creep” it is convenient to use the same input symbol, often function.
x, for both f and f . Thus we might write something like
f (t) − f (x)
f (x) = lim
t→x t−x
when we want to think of both f and f as functions of x. The difference with
earlier versions of the derivative limit is entirely notational—no new mathematics
is involved.
i i
i i
i i
i i
178 4. Derivatives
√
E XAMPLE 4. If f (x) = x, what’s f (x)? How are the domains of f and f
related to each other?
See the factoring trick? S OLUTION . Let’s calculate. For x > 0, we have
√ √ √ √
f (t) − f (x) t− x t− x
f (x) = lim = lim = lim √ √ √ √
t→x t−x t→x t−x t→x ( t + x)( t − x)
1 1 1
= lim √ √ =√ √ = √ ,
t→x t+ x x+ x 2 x
Higher Derivatives
The function f may be differentiable in its own right, to produce a new function
f , the second derivative of f . Repeating the process produces higher-order
derivatives f , f (4) , f (5) , and so on. If f (x) = x2 , for example, then we have
Using second derivatives we can go a step further. The quadratic (aka second-
order) approximation to f at x = a is a quadratic function that fits f even more
closely than does a :
f (a) = qa (a) and f (a) = qa (a) and f (a) = qa (a).
If, say, f (x) = cos x and a = 0, then we have (as you know from calculus)
i i
i i
i i
i i
1.0
0.5
– – 2 2
– 0.5
– 1.0
(We will give a general formula for qa in the next section.) Given the extra match-
ing derivative, we expect q0 to approximate f even better near x = 0 than does
0 . Figure 4.2 doesn’t disappoint.
About the proof. To illustrate the idea, suppose f (3) = 42 and f (3) = 7. To
show continuity of f at x = 3, we need to show that limx→3 f (x) = 42, or,
equivalently, that limx→3 ( f (x) − 42 ) = 0. The calculation involves a little
trick:
f (x) − 42 f (x) − 42
lim (f (x) − 42 ) = lim (x − 3) = lim · lim (x − 3)
x→3 x→3 x−3 x→3 x−3 x→3
= 7 · 0 = 0,
i i
i i
i i
i i
180 4. Derivatives
Digging deeper. The following lemma delves a little further into good-behavior
implications of differentiability.
Lemma 4.4. Let f be a function defined in an open interval containing x = a,
and suppose f (a) exists.
(i) If f (a) = 0, then f (x) = f (a) for all x = a in some interval (a − δ, a + δ).
(ii) If f (a) = 0, then—for every > 0, no matter how small—there exists δ > 0
such that
|f (x) − f (a)| ≤ |x − a|
whenever |x − a| < δ.
(iii) If f has a local minimum or local maximum at x = a, then f (a) = 0.
Proof: All parts follow from closer looks at the defining limit:
f (x) − f (a)
f (a) = lim .
x→a x−a
To prove (i), suppose f (a) = 0 and set = |f (a)| > 0. Because the preceding
limit exists, we can choose δ > 0 so that
f (x) − f (a)
− f (a) < = |f (a)|
x−a
whenever |x − a| < δ. In particular, we must have f (x) = f (a) for all such x;
See for yourself. otherwise the inequality above fails.
Claim (ii) essentially just restates the existence of the key limit. Because
f (a) = 0, we have
f (x) − f (a)
< , or, equivalently, |f (x) − f (a)| < |x − a| ,
x−a
as claimed.
We’ll sketch a proof of (iii) assuming that f has a local minimum at x = a;
Polishing the proof is an the proof for a local maximum is similar. In this case there is an open interval
exercise. I = (a − δ, a + δ) with f (a) ≤ f (x) for x ∈ I. In particular,
i i
i i
i i
i i
0.004
0.002
0.000
– 0.002
– 0.004
Exercises
1. Suppose f (x) exists for all x. Every calculus student knows that if g(x) =
f (x) + 3, then g (a) = f (a) for all a. Show this using Definition 4.1,
page 173.
2. Use Definition 4.1, page 173, to find each of the following derivatives, or
to show that it doesn’t exist.
i i
i i
i i
i i
182 4. Derivatives
3. (a) Use Definition 4.1, page 173, to show that if f (x) = 1/x and c = 0,
then f (c) = −1/c2 .
(b) Prove by induction: (1/xn ) = −n/xn+1 for all integers n ≥ 1.
(Note: It is OK to use the product rule; we’ll prove it in the next
section.)
(a) Show that if f (x) ≥ f (0) for x > 0, then f (0) ≥ 0. (Hint: Consider
limx→0+ (f (x) − f (0))/(x − 0).)
(b) Show that if f (x) ≥ f (0) for x < 0, then f (0) ≤ 0. (Hint: Consider
limx→0− (f (x) − f (0))/(x − 0).)
(c) What do the preceding parts say about a derivative at a minimum
point? (We will explore this famous connection more carefully later.)
i i
i i
i i
i i
12. Let f : R → R be any function such that |f (x)| ≤ x2 for all x. Show that
f (0) = 0.
4
x2 sin(3x) + 4 ln x = 3x2 cos (3x) + 2x sin (3x) + .
x
Our interest here is less in applying the rules—you’ve suffered enough—than
in stating them precisely and proving them rigorously. After all, derivatives are
limits, so algebraic properties of limits—like those in Theorem 3.3—will be key.
i i
i i
i i
i i
184 4. Derivatives
Notes on the theorem. Proofs follow or are left to the exercises. First, some
informal observations:
• Useful formulas—and more: The theorem not only justifies some well-
loved techniques from elementary calculus but also guarantees that, under
the given hypotheses, all indicated derivatives exist. This existence follows,
as we will see, from corresponding properties of limits.
• Sums and constant multiples: Both the sum rule and the constant multiple
rule for derivatives are (easy) special cases of the result for linear combina-
tions. Setting C = D = 1, for instance, gives one of these old favorites.
• Linear combinations and linear transformations: The rule for linear com-
binations can be phrased succinctly in the language of linear algebra: Dif-
ferentiation is a linear transformation from one vector space to another.
(Vectors, in this case, are functions.)
• Approximate thinking: One view of the theorem concerns linear approxi-
mation. By hypothesis, both f and g have linear approximations f,a and
g,a at x = a:
f (x) ≈ f,a (x) = f (a) + f (a)(x − a);
g(x) ≈ g,a (x) = g(a) + g (a)(x − a).
i i
i i
i i
i i
The theorem tells, in effect, how to combine f,a and g,a to create new
linear approximations to functions like f + g, f g, and f /g. For example,
the linear combination rule, says that for x near a we have Following minor
re-arrangement.
3f (x) + 2g(x) ≈ 3 f,a (x) + 2 g,a (x)
= (3f (a) + 2g (a)) (x − a) + 3f (a) + 2g(a),
Proof: All parts follow from manipulating the limits that define the derivatives in
question. We treat one part in detail and leave the rest to the exercises.
For products, the theorem claims that
f (x)g(x) − f (a)g(a)
lim = f (a)g (a) + f (a)g(a);
x→a x−a
implicit, of course, is the claim that the limit exists. To see why, we manipulate
the difference quotient limit, starting with a clever trick:
Note especially the last step, in which we evaluated four limits, of which only one
(the third) is completely trivial. The second and fourth limits define f (a) and
g (a), which we’ve assumed to exist, and the first, limx→a g(x) = g(a), holds
because g is continuous at x = a. Why? See Theorem 4.3,
page 179.
3x7 − 5x + 2
p(x) = 3x7 − 5x + 2 and q(x) = ,
x3 − x
i i
i i
i i
i i
186 4. Derivatives
S OLUTION . Theorem 4.5 guarantees, first, that the derivative functions p (x)
and q (x) exist. To prove that p(x)—or any polynomial function—is differen-
Or prove . . . it’s easy. tiable for all x, we only need to observe that f (x) = x is differentiable, with
f (x) = 1 for all x. Now Theorem 4.5 implies that power functions like
are all differentiable in their own right, and that the familiar derivative formulas
hold for all positive integer powers:
x2 = 2x, x3 = 3x2 , ... x42 = 42x41 , ....
E XAMPLE 2. What does Theorem 4.5 say about derivatives of f (x) = (x2 +1)15
and g(x) = sin x/ex ?
S OLUTION . The product rule in Theorem 4.5 can help with f (x) if—but only
if—we’re willing to multiply out the 15th power. That is tedious for a human but
no big deal for, say, Mathematica:
(x2 +1)15 = x30 +15x28 +105x26 +455x24 +1365x22 +3003x20 +· · ·+15x2 +1.
The result is easy, if laborious, to differentiate term by term. A wiser plan involves
the chain rule; see below.
Differentiating g requires the quotient rule, of course, but first we need deriva-
tives of the numerator and the denominator. Although familiar from elementary
calculus, the formulas
( sin x ) = cos x and ( ex ) = ex
are far from obvious, and we’ll defend them below. Assuming them for the mo-
ment, the rest is easy. Since numerator and denominator are differentiable, and the
denominator never vanishes, the quotient function is differentiable, with deriva-
tive
sin x ex cos x − ex sin x cos x − sin x
= = . ♦
ex ex · ex ex
i i
i i
i i
i i
Composition and the chain rule. Theorem 4.5 says nothing about functions like
h(x) = sin(x2 ) and k(x) = sin(sin(sin(ex ))), built by composition of differen-
tiable functions. Theorem 4.6 assures us that such composites are indeed differ-
entiable, and describes how the respective derivatives are combined. As always, due care for
domains is necessary.
Theorem 4.6 (The chain rule). Suppose that g is differentiable at a and f is dif-
ferentiable at b = g(a). Then f ◦ g is is differentiable at a, and
(f ◦ g) (a) = f (g(a)) · g (a).
E XAMPLE 3. The functions f (x) = sin x and g(x) = x2 are differentiable for
all x. Use the chain rule to differentiate
f ◦ g(x) = sin(x2 ) and f ◦ f ◦ g(x) = sin sin x2 .
S OLUTION . The chain rule applies directly to f ◦ g: We could substitute x for a, but
why bother?
(f ◦ g) (a) = f (g(a)) · g (a) = cos(a2 ) · 2a.
we used the earlier calculation in the last step. Substituting the formulas for f and
g gives the final answer:
(f ◦ f ◦ g) (a) = cos sin a2 · cos(a2 ) · 2a;
Here, before the proof, are some comments on the chain rule and why it is
plausible.
• Why multiply? The chain rule says that the derivative of a composition is
a certain product of derivatives. Thinking of derivatives as magnification
factors suggests why multiplication is the right thing to do. Suppose, say, We discussed the magnification
that g (a) = 2 and f (b) = 3. Then “lens” g and “lens” f magnify distances view in the preceding section.
by factors of 2 and 3, respectively, and so we expect six-fold magnification
on inputs sent first through g and then through f . Microscopes use the same
principle.
• It works for linear functions: We can just calculate, without fancy proofs,
that the chain rule holds for linear functions f and g. If f (x) = Ax + B
and g(x) = Cx + D, then f (x) = A and g (x) = C for all x, and
i i
i i
i i
i i
188 4. Derivatives
and so
(f ◦ g) (x) = AC,
as expected.
• It works for nonlinear functions, too: Differentiable functions are closely
approximated by linear functions, and so it is reasonable to hope that dif-
ferentiable functions might satisfy the same chain rule. This turns out to be
true; the formal proof explains why.
f (g(x)) − f (g(a))
lim = f (b) · g (a) = f (g(a)) · g (a).
x→b x−a
First we apply some clever algebra:
makes good sense if, but only if, g(x) = g(a) for all x = a in some interval
containing a. For most functions g, this is the case, but there are exceptions. If g
is constant, for instance, then our factorization is nonsense for all inputs x. But
all is not lost: if g is constant, then f ◦ g is also constant, and so, clearly, both
i i
i i
i i
i i
g (a) = 0 and (f ◦ g) (a) = 0,
Case 1: g (a) = 0. In this case, g(x) = g(a) for all x = a in some interval
containing a. We can therefore argue as above to obtain the chain rule. See Lemma 4.4, page 180.
Case 2: g (a) = 0. In this special case, we’ll show that (f ◦ g) (a) = 0—again,
as the chain rule claims. For notational simplicity, let’s assume that a = f (a) = 0. It makes no difference
Our claim then is that, for any > 0, we can find δ > 0 with mathematically.
f (g(x))
≤ or, equivalently, |f (g(x))| ≤ |x|
x
f (x)
≤ M, or, equivalently, |f (x)| ≤ M |x|
x
g(x)
≤ or, equivalently, |g(x)| ≤ |x|
x M M
i i
i i
i i
i i
190 4. Derivatives
We’ve already done most of the work. Theorems 4.5 and 4.6 guarantee that a
built-up function like
cos x + ex
f (x) = sin
ln (2 + x2 )
is indeed differentiable (except perhaps at endpoints of its domain), provided
that its basic building blocks—including the sine, cosine, exponential, and log
functions—are all themselves differentiable functions. Proving this rigorously
for every basic elementary function takes some work. That isn’t our top priority,
More details are in the so we give only some brief samples here.
exercises.
S OLUTION . All the remaining derivative formulas follow from the one formula
(sin x) = cos x and from algebraic properties of sines and cosines. For example,
we have
π π
( cos x ) = sin x + = cos x + = − sin x;
2 2
notice the chain rule implicit in the second equality, and two formulas relating
sines and cosines. Here is another, this time thanks to the quotient rule:
sin x cos2 x + sin2 x
( tan x ) = = = sec2 x.
cos x cos2 x
To prove that ( sin x ) = cos x, we’ll use the well-known addition formula
for sines:
sin(x + h) = sin(x) cos(h) + cos(x) sin(h).
i i
i i
i i
i i
sin(x + h) − sin(x)
( sin(x) ) = lim
h→0 h
sin(x) cos(h) + cos(x) sin(h) − sin(x)
= lim
h→0 h
cos(h) − 1 sin(h)
= sin(x) lim + cos(x) lim
h→0 h h→0 h
= sin(x) · 0 + cos(x) · 1 = cos(x),
as desired. ♦
E XAMPLE 5 (Exponential derivatives). The exponential derivative (ex ) = ex
follows from the single limit
eh − 1
lim = 1.
h→0 h
How? Why?
ex+h − ex ex eh − ex eh − 1
( ex ) = lim = lim = ex lim = ex ,
h→0 h h→0 h h→0 h
as expected. ♦
Derivatives of inverse functions. One loose end remains untied concerning dif-
ferentiability of elementary functions: handling inverses of differentiable func-
tions. (Logarithmic and√exponential functions are inverses, for instance, as are
f (x) = x3 and g(x) = 3 x.) It turns out that inverses of differentiable functions
are indeed differentiable—if the usual care is taken with domains of definition
and to avoid division by zero. Here is the key result:
1
g (f (a)) = .
f (a)
i i
i i
i i
i i
192 4. Derivatives
y
g(x)
f (x)
f (a)
x
f (a) a
1
g(f (x)) = x =⇒ g (f (x)) · f (x) = 1 =⇒ g (f (a)) =
f (a)
whenever f (a) = 0.
The harder part turns out to be showing what we assumed above: that g (f (a))
exists. Figure 4.4 makes that assumption look reasonable, but proving it rigor-
ously takes us a bit off our main course. We omit the detour.
1 1
g (f (a)) = , or g (ea )) = .
f (a) ea
Writing b = ea gives the familiar formula g (b) = ( ln b ) = 1b . ♦
i i
i i
i i
i i
Exercises
1. We said in this section that f (x) = xn for any positive integer n, then
f (x) = nxn−1 . For one inductive proof (using the product rule) see Prob-
lem 11, page 46.
Another approach is to work directly with the definition:
f (x) − f (a) xn − an
f (a) = lim = lim .
x→a x−a x→a x − a
4. Prove the claim about linear combinations in Theorem 4.5, page 184.
5. This problem outlines a proof—assuming both the product rule and the
chain rule, which we proved separately—of the quotient rule part of The-
orem 4.5, page 184. Assume throughout that f and g are differentiable at
x = a and that g(a) = 0.
(a) Assume (it is easy to show) that the function k(x) = 1/x is differen-
tiable for all x = 0, with k (x) = −1/x2 . Use this and the chain rule
to find h (a), where h(x) = 1/g(x).
(b) Apply the product rule to f (x)/g(x) = f (x) · 1/g(x) to deduce the
quotient rule as stated in Theorem 4.5.
6. Use Theorem 4.5 and the fact that (sin x) = cos x to find derivatives of the
other five standard trigonometric functions.
i i
i i
i i
i i
194 4. Derivatives
3x7 − 5x + 2
q(x) = .
x3 − x
(a) Use technology to plot q; notice the two vertical asymptotes. How are
they related to derivatives?
(b) The number one is a root of the denominator, but the graph of q has
no vertical asymptote there. Why not?
(c) The value q(1) is undefined in the formula above. What value of q(1)
makes q differentiable at x = 1? Why?
i i
i i
i i
i i
f (b) − f (a)
f (c) = .
b−a
Like the IVT and the EVT, the MVT says that a certain function—f , this
time—assumes a certain “mean” (or “average”) value. Unexciting as this might
seem, it turns out to be a big deal, with surprisingly broad and deep implications.
We explore several before proving the theorem.
The graphical view. The MVT equation says something about slopes on the
graph of f : At some point c between a and b, the tangent line is parallel to the
secant line joining (a, f (a)) and (b, f (b)). Figure 4.5 illustrates this. The (linear)
secant line function, labeled L(x) in the picture, will play a role in the proof.
The horizontal case: Rolle’s theorem. If we add to the other hypotheses the
requirement that f (a) = f (b), then the conclusion takes a slightly simpler form:
y
f (x)
L(x)
f (b)
f (a)
x
a c b
i i
i i
i i
i i
196 4. Derivatives
f (x)
f (0)
x
0 c1 c2 b
In graphical terms, the new hypothesis says that the graph has the same height
More than one possible c is fine at x = a and at x = b; the conclusion says that the graph has a horizontal tangent
with Rolle. somewhere in between. Figure 4.6 shows two such horizontal tangents.
The units might be miles and Car talk. If f (t) is the position of a car at time t, then (f (b) − f (a))/(b − a)
hours. is the car’s average velocity over the time interval [a, b], and f (t) is the car’s
instantaneous velocity at time t. At some intermediate time c, says the MVT (and
common sense), these two velocities must be equal. Rolle’s version sounds even
more intuitive: if a car starts and ends at the same position, then it must be stopped
at some instant in between.
Proof: Let s and t be any two points in I. By the MVT, there is a point c between
s and t for which
f (s) − f (t)
f (c) = .
s−t
Since the left side is zero, so is the right, which means f (s) = f (t), as desired.
i i
i i
i i
i i
About Step 1. Our Step 1 claim should be familiar, for at least two reasons.
First, it lurks behind most of those classic maximum–minimum problems of ele-
mentary calculus. Second, we’ve already proved it (and a bit more), as part (c) of Find the largest rectangular
Lemma 4.4, page 180. Let’s move on. pigpen . . . one side is a river . . . .
About Step 3. Rolle’s theorem is more than a junior-grade version of the MVT.
With a little ingenuity, the latter can be deduced from the former. The trick is A common one in analysis.
to apply Rolle’s theorem not to the function f given in the MVT, but to another
function g, cleverly contrived from f . We sketch the argument, leaving details to
the exercises.
1. Let L(x) be the linear function whose graph joins the points (a, f (a)) and
(b, f (b)); see Figure 4.5. Notice some properties of L:
f (b) − f (a)
(i) L(a) = f (a); (ii) L(b) = f (b); (iii) L (x) = for all x.
b−a
i i
i i
i i
i i
198 4. Derivatives
f need not be strictly increasing. (i) f (x) ≥ 0 for all x ∈ I if and only if f is increasing on I.
Proof (s): For the “only if” part of (i), suppose that f (x) ≥ 0 for all x ∈ I. To
show f is increasing, let s and t be in I, with s < t. By the MVT, we have, for
some c between s and t,
f (t) − f (s)
= f (c) or, equivalently, f (t) − f (s) = f (c)(t − s).
t−s
f (t) − f (x)
≥0
t−x
for all t ∈ I with t > x. Thus f (x) is the limit of a nonnegative expression, and
so must itself be nonnegative.
This completes the proof of (i); we leave remaining parts to the exercises.
i i
i i
i i
i i
Taylor’s theorem: the MVT generalized. The mean value theorem equation can
be rewritten to say that, under the appropriate hypotheses, we have
for some number c between a and b. This equation can be thought of as saying that
f (b) approximates f (a) with error no larger than the last term. Taylor’s theorem,
dating from around 1700 and named for the Scottish mathematician Brook Taylor,
offers a more powerful version of such an approximation. Here is a special case:
Theorem 4.14 (Taylor’s theorem, n = 3). Suppose f , f , f , and f all exist
and are continuous on [a, b]. Then, for some input c in [a, b], we have
f (a) f (c)
f (b) = f (a) + f (a)(b − a) + (b − a)2 + (b − a)3 .
2 6
A proof is outlined in the exercises. Here is an application.
E XAMPLE 2. What does Taylor’s theorem say about f (x) = cos x for a = 0
and b = 1?
i i
i i
i i
i i
200 4. Derivatives
Exercises
1. Let f : R → R be a differentiable function, and suppose that f has n real
roots. Use Rolle’s theorem to show that f has at least n − 1 real roots.
Give an example to show that f may have more than n − 1 real roots.
2. (a) Use algebra to show that p(x) = x3 + x has exactly one (real) root.
(b) Use Rolle’s theorem to show (again) that p(x) = x3 + x has exactly
one root. (Hint: If there are two roots, Rolle’s theorem leads to a
contradiction.)
(c) Show that q(x) = x13 + x11 + x9 + x7 + x5 + x3 + x has exactly one
root.
(d) Show that r(x) = x13 + x11 + x9 + x7 + x5 + x3 + x + 987, 654, 321
has exactly one root.
3. Let f (x) = x3 + ax + b, where a and b are fixed real numbers.
(a) Explain why f (x) must have at least one root, regardless of the values
of a and b.
(b) Give examples (i.e., specific values of a and b) to show that f (x) can
have one, two, or three roots. No formal proofs needed, but say briefly
why your examples work.
(c) Prove that f can have no more than three roots. (Hints: (i) Take it as
given that a quadratic polynomial can have at most two roots; (ii) use
Rolle’s theorem.)
(d) Show that if a > 0, then f has exactly one root.
i i
i i
i i
i i
(a) Show that there exists x1 and x2 with a < x1 < x2 < c and f (x1 ) =
f (x2 ) = 0.
(b) Show that there exists x0 with a < x0 < c and f (x0 ) = 0.
(c) State a generalization of these hypotheses that guarantees there exists
x0 with f (42) (x0 ) = 0.
(a) Show that if f (x) > M for all x in an interval I, then f (b) − f (a) >
M (b − a) for all inputs a and b in I with b > a.
(b) Suppose f (0) = 0, f (0) = 0 and f (x) > 2 for all x > 0. Show
that f (x) > x2 for all x > 0.
10. In each part following, decide whether a value of c can be found as de-
scribed in the MVT. If so, find one. If not, say which of the MVT hypothe-
ses is not satisfied.
i i
i i
i i
i i
202 4. Derivatives
11. Suppose f (t) is the eastward velocity of a car at time t, with all quanti-
ties measured in appropriate units. What does Rolle’s theorem say in this
setting? (Hint: f (t) measures eastward acceleration.)
12. One hypothesis of the MVT is that f : [a, b] → R be continuous on all of
[a, b]. Give an example (as simple as possible) to show that this hypothesis
is necessary—i.e., find a function f : [a, b] → R, differentiable throughout
(a, b), for which the MVT fails.
13. Suppose f and g are functions continuous on [a, b] and differentiable on
(a, b).
(a) Use results in this section to show that if f (x) = g (x) for all x ∈
(a, b), then f (x) = g(x)+C for some constant C. (This is sometimes
called an identity theorem for differentiable functions.)
(b) Suppose that f (x) = g (x) + 5 for all x ∈ (a, b). What can be said
about f (x) and g(x)? Why?
14. Antiderivative
! tables in elementary calculus books are full of formulas like
Forget the C on a test and lose cos x dx = sin x + C.
a point.
(a) Why exactly is the C there? What does this have to do with the MVT?
!
(b) A very fussy professor might find fault with the formula dx x =
ln |x| + C. Explain. (Hint: Consider domains.)
15. Give a detailed proof of Step 3 in the proof of the MVT. In particular, give
an explicit formula for L(x) and use it to verify the other claims.
16. This problem is about various parts of Proposition 4.12, page 198.
(a) State (don’t prove) versions of (i) and (ii) that involve the word “de-
creasing.”
(b) Prove (ii) carefully; mimic the proof of (i).
(c) Prove (iii).
17. Let f : R → R be differentiable for all x, with f (x) < 1 for all x and
f (0) = 0.
18. Let f : R → R be differentiable for all x. Suppose that f (x) > 1 for all x.
Show that the graph of y = f (x) can intersect the graph of y = x no more
than once.
i i
i i
i i
i i
19. Let f : R → R be differentiable for all x. Suppose that f (x) < 1 for all x
and that f (0) = 0. Show that f (x) < x for all x > 0. Must f (x) < x hold
also for x < 0? Why or why not?
20. Let f : R → R be differentiable for all x. Suppose that f (x) > 1 for all x.
Show that the graph of y = f (x) can intersect the graph of y = x no more
than once.
21. A function f : R → R is called a contraction if the inequality
|f (x) − f (y)| ≤ |x − y|
holds for all real numbers x and y. (As the name suggests, a contraction
“shrinks distances.”)
i i
i i
i i
i i
204 4. Derivatives
25. Prove Taylor’s theorem (Theorem 4.14) in the general case (i.e., without
assuming a = 0 and b = 1). (Hint: In the general case, use the given
function f to define a new function h(x) = f (b(x − a)).)
Figure 4.7(b) shows one typical function, f20 . Does the sequence {fn } converge
to some limit function?
1.5 1.5
1.0 1.0
0.5 0.5
0.2 0.4 0.6 0.8 1.0 0.2 0.4 0.6 0.8 1.0
i i
i i
i i
i i
4 4
2 2
–4 –2 2 4 –4 –2 2 4
–2 –2
–4 –4
all the fn pass through the point (1, 1). On the domain interval [0, 1], therefore,
the fn appear to converge—in some sense yet to be defined—to the function
0 if 0 ≤ x < 1,
f (x) =
1 if x = 1.
We also observe that, although each fn is continuous on [0, 1], the limit function
f is discontinuous at x = 1. ♦
What the examples show. The examples illustrate that a sequence of functions
may behave quite differently on one domain than on another. On the domain
[0, 1/2], for example, the functions {fn } in Example 1 converge to the zero func-
tion. On the domain [0, 1], too, these functions appear to converge, but to a limit
i i
i i
i i
i i
206 4. Derivatives
Not shown in Figure 4.7, but function that is discontinous at x = 1. On the domain [2, 3], by contrast, the same
easily visualized. functions become larger and larger with n, and so have no sensible limit func-
tion. The functions {gn } in Example 1, on the other hand, appear to converge to
g(x) = x on every domain interval.
Two Definitions
Let f1 , f2 , f3 , . . . be a sequence of real-valued functions, all defined on a fixed
interval I. To sort out similarities and differences in the behaviors illustrated in
Examples 1 and 2, we’ll define two senses in which {fn } might converge to a
limit function f , also defined on I.
• Both sequences converge pointwise: Both {fn } and {gn } converge point-
wise to their limits, at least on the domain intervals shown. For {fn } we
have
lim fn (x) = lim xn = 0 = f (x)
n→∞ n→∞
1 sin(nx) 1
x− ≤x+ ≤x+ ,
n n n
which holds for all n and every fixed x, implies that
sin(nx)
lim gn (x) = lim x+ = x = g(x)
n→∞ n→∞ n
We could have used any for all x ∈ [−5, 5]. Thus {gn }, too, converges pointwise to a limit function
domain interval. g, this time on the domain [−5, 5].
i i
i i
i i
i i
• Only one sequence converges uniformly: Both {fn } and {gn } converge
pointwise to their limit functions; {gn } also converges uniformly. Show-
ing this is straightforward. For given > 0, the number N = 1/ works: if
n > N , then we have
sin(nx) 1
|gn (x) − g(x)| = ≤ < 1 = ,
n n N
and the inequality holds for all x in [−5, 5], as the definition requires.
The sequence {fn } does not converge uniformly to f on [0, 1]. The prob-
lem, roughly speaking, is that the limit function f “jumps” abruptly at
x = 1, while all the fn increase smoothly. We explore this idea more
carefully in the next example.
(i) |fN +1 (x)| < 0.1 if x = 1; (ii) |fN +1 (1) − 1| < 0.1.
In particular, we must have either fN +1 (x) < 0.1 or fN +1 (x) > 0.9 for all
x ∈ [0, 1]. This is clearly absurd—the continuous function fN +1 (x) = xN +1
must assume every value between zero and one. We’ve shown that uniform con-
vergence fails. ♦
E XAMPLE 4. Show that the same sequence {fn } does converge uniformly on
[0, 0.99], with limit f (x) = 0. This is the same limit function
as before, but chopped off at
x = 0.99.
S OLUTION . Let > 0 be given. Choose a number N such that 0.99N < . Any
Why can this be done? How big
such N works, because for all n > N and all x ∈ [0, 0.99], we have
is N if = 0.001?
|fn (x) − f (x)| = |xn − 0| = xn ≤ 0.99n < 0.99N < ,
as desired. ♦
i i
i i
i i
i i
208 4. Derivatives
S OLUTION . The answers are respectively yes and no. If we fix any x in I,
then {fn (x)} is a sequence of nonnegative numbers, and so its limit, f (x), is
also nonnegative, as claimed. As for continuity, we saw in Example 1 that the
And differentiable, for that continuous functions fn (x) = xn converge pointwise on [0, 1] to a discontinuous
matter. limit—the function f defined f (x) = 0 if x = 0 and f (1) = 1. ♦
i i
i i
i i
i i
The proof idea. The formal proof is clever and slightly technical, but the basic
idea is straightforward. Continuity of f at x = a means, roughly, that if x ≈ a,
then f (x) ≈ f (a). This holds in the present case because we know (i) fn (x) ≈
f (x) for large n and for all x in I; (ii) fn (x) ≈ fn (a) when x ≈ a because fn is
continuous at x = a. Putting these conditions together gives, for x ≈ a,
We make this three-step approximation precise in the formal proof. Watch for three / 3’s.
E XAMPLE 6. For each positive integer n, define fn (x) = |x|1+1/n . Figure 4.9
shows several of the fn ; the sequence appears to approach the absolute value
function. What is happening with derivatives?
i i
i i
i i
i i
210 4. Derivatives
0.5
–1 –0.5 0 0.5 1
• Each fn is differentiable at all real x. This is clear for x = 0, and not hard
See the exercises. to prove if x = 0.
• fn → f uniformly on [−1, 1]. This follows from the fact, readily shown,
that
1
|f (x) − fn (x)| <
n
Again, see the exercises. for all x ∈ [−1, 1].
The point is that, although all the fn are differentiable everywhere, their limit f is
not differentiable at the origin. Thus, differentiability—unlike continuity—is not
preserved by uniform limits. ♦
i i
i i
i i
i i
1
1
–3 –2 –1 1 2 3 –3 –2 –1 1 2 3
x x
–1
–1
f0 (x) = cos(πx)
f1 (x) = cos(x) + a cos (bπx)
f2 (x) = cos(x) + a cos (bπx) + a2 cos b2 πx
...
n
fn (x) = ak cos bk πx .
k=0
Here a is a constant with 0 < a < 1, small enough to assure that the fn converge
uniformly; b is a positive integer, large enough to create rapid oscillation in the
cosines. We omit computational details, but here are the main points:
• The fn converge uniformly on R to some function f .
Figure 4.10 shows the first few fn , with a = 0.5 and b = 13.
Exercises
1. In each part show, that the given sequence {fn } converges pointwise to the
given limit f on the given interval I. Is the convergence also uniform? Why
or why not?
i i
i i
i i
i i
212 4. Derivatives
1
(a) fn (x) = n for all n; f (x) = 0; I = R.
(b) fn (x) = n for all n; f (x) =
x
0; I = R.
sin x
(c) fn (x) = n for all n; f (x) = 0; I = R.
(a) Show that {fn } converges pointwise on R to the zero function f (x) =
0. Is the convergence also uniform?
(b) Show that {fn } converges uniformly on I = [−1000, 1000] to the
zero function f (x) = 0.
3. In the situation and notation of Proposition 4.17, page 208, show that if
fn → f and gn → g, both pointwise on I, then fn + gn → f + g pointwise
on I. Show also that the same result holds if “pointwise” is replaced with
“uniformly.”
5. This problem is about Example 6, page 209; consider the functions fn de-
fined there.
(a) Let n be any positive integer. Show that fn (x) = |x|1+1/n is dif-
ferentiable at x = 0, with fn (0) = 0. (Hint: Look at both left- and
right-hand limits of the difference quotient for fn (0).)
(b) Let n be any positive integer. Show that |f (x) − fn (x)| < n1 for all
x ∈ [−1, 1]. (Hint: It is enough to show, using elementary calculus,
that x − x1+1/n < 1/n for x in [0, 1].)
(c) Use the inequality in the preceding part to show that fn → f uni-
formly on [−1, 1].
i i
i i
i i
i i
10. In the situation of Proposition 4.17, page 208, suppose that fn → f and
gn → g, both pointwise on I. Suppose that for all x ∈ I we have g(x) = 0
and gn (x) = 0 for all n. Show that fn /gn → f /g pointwise on I.
i i
i i
i i
i i
i i
i i
i i
i i
CHAPTER 5
Integrals
are familiar from elementary calculus. In this chapter we interpret the integral, de-
fine it rigorously, and explore some of its properties—including the fundamental
theorem of calculus, which justifies calculations like the one above.
look a little different, but all four mean the same thing. The first two forms use dif-
ferent variable names, but these choices are arbitrary—all four expressions have
the same numerical value. For simplicity and economy, we’ll often drop the vari-
able name entirely, and use the last form. We’ll use the other forms when we want
to emphasize a variable name or, as in the third form, when no specific function
name is given.
Riemann’s and other integrals. In this book (and in elementary calculus) “inte-
gral” means “Riemann integral,” after the German mathematician G. F. B. Rie-
mann (1826–1866), who first defined integrability rigorously. Riemann’s mathe-
matical accomplishments, despite his short life, ranged across the discipline. One
of his conjectures in number theory, now known as the Riemann hypothesis, re-
mains after 150 years among mathematics’ most important unsolved problems.
And not for lack of trying: A $1 million prize for its solution, offered by the Clay
Mathematics Institute, lies unclaimed.
215
i i
i i
i i
i i
216 5. Integrals
The phrase “Riemann integral” honors a person, but it also distinguishes one
particular approach to integration from several others, each with its own features
and (depending on one’s viewpoint) bugs. Among important alternatives to Rie-
mann’s integral are the Lebesgue and the Henstock integrals, developed around
1900 and 1950, respectively. These integrals “agree with” the Riemann integral
for all the standard functions of calculus, but they are more general in the sense
that they handle larger classes of functions. More advanced courses in analysis
treat such integrals carefully, but we will stick with Riemann’s version.
Areas and integrals. The most familiar view of integrals from elementary calcu-
b
lus involves area: If f (x) ≥ 0 for x ∈ [a, b], then a f (x) dx measures the area
above the x-axis, below the curve y = f (x), and between the vertical lines x = a
and x = b. If f (x) < 0 for some inputs, then area below the x-axis is involved,
Draw your own pictures to and counts as negative.
illustrate the possibilities. Thinking of integrals as areas will often be helpful for us, too. This view
suggests—correctly—that
7 3 3.14
15
3 dx = 18, (1 + x) dx = , and cos(x) dx ≈ 0,
1 0 2 0
Is the last integral slightly assuming, as we do for now, that all three integrals exist. But extra care will be
positive or slightly negative? needed for other functions, whose graphs may be ragged or broken, not smooth.
Why?
Draw your own pictures for the really mean? For the first integral, the integral-as-area view is enough—9 is the
first two integrals. only reasonable answer. For the second integral, the area view suggests 2 is possi-
ble, but is it exact? Why not 2.034? Or 1.957? For the third integral, the negative
result and elementary calculus intuition suggest that f (x) is in some sense more
negative than positive for x in the interval [a, b]. But in what sense is the answer
exactly −7?
Resolving all these questions asks a lot of the integral, and so it is no surprise
that the recipe is complicated. Here, first, we assemble the ingredients:
• Integrand and interval: The definition requires an integrand—a real-valued
function f : [a, b] → R defined for all inputs x in a closed and bounded
interval [a, b]. Note, in particular, that although integral equations like
∞ 1
1 1
2
dx = 1 and √ dx = 2
1 x 0 x
i i
i i
i i
i i
are sometimes seen in elementary calculus, the integrals in question are not That’s why we call them
of the type considered here. “improper.”
i i
i i
i i
i i
218 5. Integrals
a s1 x1 s2 x2 s3 x3 s4 x4 s5 b
2
We don’t know “officially” yet E XAMPLE 1. Explore some Riemann sums for 0 sin(x) dx.
that the integral exists. But it
does.
S OLUTION . The integral involves the integrand f (x) = sin x and the interval
[0, 2]. The simplest and least interesting partition of [0, 2] involves no chopping:
P = {x0 , x1 } = {0, 2} has just one subinterval, and P = 2. Here we need
Chosen at random by just one sampling point, say, s1 = 1.3657, and the corresponding Riemann sum
Mathematica. is simply
f (s1 )Δx1 = sin(1.3657) · 2 ≈ 1.9581.
With so little work or thought invested, we can’t expect much return from the
answer.
Let’s work (just) a little harder. With
i i
i i
i i
i i
4
f (si )Δxi = sin(0) · 0.8 + sin(0.81) · 0.2 + sin(1.69) · 0.7 + sin(1.73) · 0.3
i=1
≈ 1.57.
With the same partition, but new samples S = {0.8, 0.8, 1.7, 1.7}, the Riemann
sum becomes
With right endpoint samples S = {0.01, 0.02, . . . , 2.0} from the same partition
the result is not much different; Mathematica gives about 1.421. These numbers,
and all the extra work, deserve more credibility. ♦ Rightly so. The exact value, as
we will be able to prove soon, is
1 – cos 2 ≈ 1.41615.
We are ready at last for the formal definition.
E XAMPLE 2. Let f (x) = 3 for all x and [a, b] = [1, 7]. Thinking of area
!7
suggests that 1 f = 18. Does the definition agree? Can the idea be generalized?
i i
i i
i i
i i
220 5. Integrals
n
n
n
f (si )Δxi = 3Δxi = 3 Δxi = 3 · (7 − 1) = 18,
i=1 i=1 i=1
which is exactly the desired answer. Thus, for a given > 0 we can choose any
positive δ, say δ = 42, and the definition is satisfied. ♦
There’s nothing special, of course, about the data in the preceding example.
Proposition 5.2. If f (x) = k is any constant function and [a, b] any interval, then
f is integrable on [a, b], and
b
k dx = k · (b − a).
a
!b
Proof: The idea is simple: since all Riemann sums for I = a f are nonnegative,
I itself must be nonnegative, too. The formal proof takes some care.
Let > 0 be given. Choose δ > 0 that works for this in the sense of
Definition 5.1. If we choose any Riemann sum RS (f, P, S) with P < δ, then
we must have |RS (f, P, S) − I| < . Because f (x) ≥ 0 for all x ∈ [a, b], it
is clear that RS (f, P, S) ≥ 0, too, and so we must have I ≥ −. Since this
inequality holds for all positive , we must have I ≥ 0.
Stranger integrands. In Proposition 5.3 we assumed that the integral exists. De-
ciding which integrals exist takes some work, and we start slowly. The following
integrand is discontinuous, but only at one point. Does it matter?
E XAMPLE 3. Let
1 if x = 1,
f (x) =
0 if x = 1.
2
Does f exist?
0
i i
i i
i i
i i
!2
S OLUTION . Thinking about area suggests 0 f = 0; the graph of f seems too Draw your own.
skinny to bound appreciable area above the x-axis.
Proving this is not difficult. Let > 0 be given, set δ = /2, and let P =
{x0 , x1 , . . . , xn } be any partition with P < δ. We need to show that if S =
{s1 , s2 , . . . , sn } is any set of sampling points for P, then the associated Riemann
sum satisfies
− < f (s1 )Δx1 + · · · + f (sn )Δxn < .
Since all of the f (si )Δxi are nonnegative, it is enough to prove the right-hand
inequality. The left-hand inequality is
Now f (si ) = 0 unless si = 1, in which case f (si ) = 1. Thus, each summand obvious.
f (si )Δxi is either 0 or Δxi . Because the “offender point” x = 1 can lie in at
most two subintervals, say [xi−1 , xi ] and [xi , xi+1 ], our Riemann sum can have at
most two nonzero summands. Adding everything up gives Very likely, all summands are
zero.
n
f (si )Δxi = f (si )Δxi + f (si+1 )Δxi+1
i=1
≤ Δxi + Δxi+1 < + = ,
2 2
as desired. ♦
S OLUTION . No. The problem, roughly speaking, is that for every partition P =
{x0 , x1 , x2 , . . . , xn } of [0, 1], no matter how “fine,” there are both rational and
irrational numbers inside every subinterval [xi−1 , xi ]. If all of the sample points
si are chosen to be rational, then g(si ) = 1 for all i, and the corresponding
Riemann sum works out to
n n
RS (f, P, S) = g(si )Δxi = 1 · Δxi = 1.
i=1 i=1
i i
i i
i i
i i
222 5. Integrals
1 2 3 4
This situation—widely varying Riemann sums even for “fine” partitions—is in-
compatible with Definition 5.1. ♦
We’ll tackle the left-hand inequality and leave the right-hand one as an exercise.
Because P is a partition of [0, 4], we can choose among the partition points
the first xi with xi ≥ 1 and the last xi with xi ≤ 3. If, say, these points are x42
i i
i i
i i
i i
· · · < x41 < 1 ≤ x42 < x43 < · · · < x236 < x237 ≤ 3 < x238 < . . . .
This implies that 1 ≤ si ≤ 3 for i = 43, 44, . . . , 237, and so f (si ) = 5 for all
these i. Moreover, because P < δ, we know that
= 5 Δx43 + · · · + 5 Δx237
= 5 (x237 − x42 ) the Δ xi “collapse”
> 5 (2 − 2δ) = 10 − 10δ = 10 − ,
as we aimed to show. ♦
Lessons from the examples. The examples illustrate one pleasant and one less
pleasant property of integrals. The good news is that the Riemann integral is rel-
atively forgiving of minor misbehavior, such as occasional discontinuities, in an
integrand. Less convenient is the fact that proofs and calculations using the def-
inition, even for quite simple integrands, can be messy and technical. The moral As we just saw in Example 5.
is that we’d like to have both simpler tests for integrability and more efficient
methods of calculating integrals. We’ll find some in the following sections.
i i
i i
i i
i i
224 5. Integrals
About the proof. We sketch the proof of a special case, leaving generalities
!3
to the exercises. Suppose, say, that 0 f = 42. Now let = 1. Choose
δ > 0 that works for this in the sense described in Definition 5.1, and let
P = {x0 , x1 , x2 , . . . , xn } be any partition of [1, 3] with P < δ. If we can
show that f is bounded on each of the n subintervals [xi−1 , xi ], we can conclude
that f is bounded on all of [1, 3].
t is the only variable; all the xi To see why f is bounded on, say, [x6 , x7 ], consider the expression
are constants.
S(t) = f (x1 )Δx1 + · · ·+ f (x6 )Δx6 + f (t)Δx7 + f (x8 )Δx8 + · · ·+ f (xn )Δxn .
Here is the key idea: For each t ∈ [x6 , x7 ], S(t) is a Riemann sum, based on the
!3
partition P, for the integral 0 f , and so Definition 5.1 guarantees that
which means that S(t) is bounded for t ∈ [x6 , x7 ]. This implies, as desired, that
f (t) is bounded for t ∈ [x6 , x7 ].
Exercises
!3
1. Let f (x) = x2 and consider the integral I = 0 f , (We know from elemen-
tary calculus—and we’ll prove soon—that I = 9.)
(a) Using the partition P = {0, 1, 2, 3, 4}, find a sample set S for which
RS(f, P, S) = 8.
(b) Using the partition P = {0, 1, 2, 3, 4}, find a sample set S for which
RS(f, P, S) = 9.
i i
i i
i i
i i
3. Suppose that f is integrable on [0, 2] and that f (x) ≥ 3 for all x ∈ [0, 2].
!2
Show that 0 f ≥ 6. (Mimic the proof of Proposition 5.3, page 220.)
5. Let f (x) = 0 for x = 0 and f (0) = 42. We explore the proof that f is
!1
integrable on [0, 1] and 0 f = 0.
6. Let f (x) = 0 for x = 0 and f (1) = 42. Prove as follows that f is integrable
!2
on [0, 2] and 0 f = 0.
8. What is the converse of Proposition 5.3? Is it true? If so, why? If not, give
a counterexample.
i i
i i
i i
i i
226 5. Integrals
9. Prove that the value of I in Definition 5.1 is unique. (In other words, if both
I1 and I2 satisfy the definition, then I1 = I2 .)
!b
10. Suppose that I = a f exists. Show that the following “Cauchy condi-
tion” holds: for all > 0 there exists δ > 0 such that if P1 and P2 are
two partitions of [a, b] with P1 < δ and P2 < δ, and S1 and S2 are
corresponding sample sets, then |RS(f, P1 , S1 ) − RS(f, P2 , S2 )| < .
11. Suppose that f is continuous on [a, b]. We will show later that f is also
integrable on [a, b]; here are some steps in that direction.
(a) Explain why the following condition holds: for any given > 0, there
exists some δ > 0 such that if s and t are in [0, 1] and |s − t| < δ,
then |f (s) − f (t)| < .
(b) Let and δ be as in the preceding part, let P = {x0 , x1 , x2 , . . . , xn }
be any partition with P < δ, and let S = {s1 , s2 , . . . , sn } and
T = {t1 , t2 , . . . , tn } be two different sample sets for P. Show that
i i
i i
i i
i i
Integration is linear. Before proving the theorem we observe that we can apply
it repeatedly to handle more complicated linear combinations. If, say, f , g, and
h are all integrable on [2, 5], then the following equation makes good sense—and
it’s true:
5 5 5
π π 5
3f − 7g + h = 3 f −7 g+ h.
2 4 2 2 4 2
A fancier way to state these ideas uses the language of linear algebra. The set
V of integrable functions on [a, b] is a vector space, and integration on [a, b] is a
linear transformation from V to R (another vector space!).
Proving Theorem 5.5. We’ll sketch the proof for sums and leave the rest to the
!b !b
exercises. For brevity we write If for a f and Ig for a g.
Let > 0 be given. Since If and Ig exist, there are positive numbers δf and
δg such that, for any sampling points s1 , . . . , sn ,
n
P < δf =⇒ f (si )Δxi − If < ;
i=1
2
n
P < δg =⇒ g(si )Δxi − Ig < .
i=1
2
i i
i i
i i
i i
228 5. Integrals
Now let δ = min{δf , δg }; we’ll show that this δ “works” in the sense of Def-
inition 5.1 for the sum function f + g. To do so, consider any partition P =
{x0 , x1 , x2 , . . . xn } with P < δ, and let S = {s1 , s2 , . . . sn } be any corre-
Watch for the triangle inequality. sponding choice of sampling points. Now we calculate:
n
(f (si ) + g(si )) Δxi − (If + Ig )
i=1
n
n
= f (si )Δxi − If + g(si )Δxi − Ig
i=1 i=1
n
n
≤ f (si )Δxi − If + g(si )Δxi − Ig
i=1 i=1
< + = .
2 2
This shows what we claimed: f + g is integrable on [a, b], with integral If + Ig .
Bigger integrands, bigger integrals. Theorem 5.5 has a simple and natural corol-
lary; we leave the proof to the exercises.
Corollary 5.6. Let f and g be integrable functions on [a, b].
b b
If f (x) ≤ g(x) for all x ∈ [a, b], then f≤ g.
a a
Combining ideas from Example 3, page 220, and Theorem 5.5 produces some
possible surprises.
E XAMPLE 1. Suppose
! 1000
S OLUTION . Yes, and 0 f = 0. Example 3, page 220, slightly modified,
shows that functions like f17 : [0, 1000] → R, given by
17 if x = 17,
f17 (x) =
0 otherwise
! 1000
are all integrable on [0, 1000], and that 0
f17 = 0. Our given f satisfies
f = f1 + f2 + · · · + f1000 ,
i i
i i
i i
i i
as desired. ♦
!b
E XAMPLE 2. Suppose f is integrable on [a, b], with
f = 42, and suppose
!b a
g(x) = f (x) for all but finitely many x in [a, b]. What can be said about a g?
!b
S OLUTION . In this case, a g = 42, too. To see why, consider the difference
function g − f . Since g(x) − f (x) = 0 for all but finitely many x, the method of
!b
Example 1 shows that a (g − f ) = 0. By Theorem 5.5,
b b b b
g= f + (g − f ) = f+ (g − f ) = 42 + 0 = 42.
a a a a
!b
Here is another way to express the result: If a f = I, then altering f (x) at
finitely many points in [a, b] leaves the integral unchanged. ♦
Joinery
Another way to build new integrals from old is to stick “pieces” of various func-
tions together. Interestingly, the pieces need not fit together continuously. In this
sense, the integral is more forgiving than the derivative, which requires smoother
joinery.
Justifying such calculations rigorously takes a little effort. The main idea is in the
next lemma. ♦
i i
i i
i i
i i
230 5. Integrals
1 2 3 4
!b
Lemma 5.7. Suppose that f : [a, b] → R is integrable, with a
f = I. Assume
c > b, so [a, b] ⊂ [a, c], and consider the “extended” function f¯ : [a, c] → R
defined by
f (x) if x ∈ [a, b],
f¯(x) =
0 if x > b.
Then f¯ is integrable on [a, c], and
c b
f¯ = f = I.
a a
n
f¯(si )Δxi − I < .
i=1
!b
Let’s use what we know about the original integral a f to produce such a δ.
!b
The /2 will come in handy later. First, since a f exists, we can choose δf > 0 so that
m
f (si )Δxi − I <
i=1
2
i i
i i
i i
i i
We need to show that S lies within of I. To do so, let xi0 be the largest member
of P that does not exceed b; that is, xi0 ≤ b < xi0 +1 . Now for i > i0 + 1 we
know f¯(si ) = 0, while for i ≤ i0 we have f¯(si ) = f (si ). With these facts in
mind, we can rewrite S:
S = f (s1 )Δx1 + f (s2 )Δx2 + · · · + f (si0 )Δxi0 + f¯(si0 +1 )Δxi0 +1 .
b
This form reveals that S is almost a Riemann sum for a f . Indeed, the similar
sum
S = f (s1 )Δx1 + f (s2 )Δx2 + · · · + f (si0 )Δxi0 + f (b) (b − xi0 )
b
is a Riemann sum for a f , corresponding to the new partition P = {a, x1 ,
x2 , . . . , xi0 , b}; note that P < δ. (If xi0 = b then the last summand in S
vanishes.)
To finish the proof, we observe that, by our hypothesis,
|S − I| < . (∗∗)
2
Also, S and S differ by (at most) two terms, each of which is small:
|S − S | = f¯(si0 +1 )Δxi0 +1 − f (b) (b − xi0 )
¯ i +1 )Δxi +1 + |f (b) (b − xi )|
≤ f(s 0 0 0
< M δ + M δ ≤ 2M = .
4M 2
Combining this with inequality (∗∗) gives
|S − I| ≤ |S − S | + |S − I| < + = ,
2 2
as desired.
i i
i i
i i
i i
232 5. Integrals
Note that f (x) = f1 (x) + f2 (x) for all x ∈ [a, b]. Now Lemma 5.7 says that both
f1 and f2 are integrable on [a, b], and that
b c b b
f1 = f and f2 = f.
a a a c
as claimed.
i i
i i
i i
i i
P = {x0 = a, x1 , x2 , . . . xn = b}
Adding all n of these results gives the desired Riemann sum: Watch the summands collapse.
n
n
f (si )Δxi = F (xi ) − F (xi−1 )
i=1 i=1
= F (x1 ) − F (x0 ) + F (x2 ) − F (x1 ) + · · · + F (xn ) − F (xn−1 )
= F (xn ) − F (x0 ) = F (b) − F (a).
i i
i i
i i
i i
234 5. Integrals
Good news—and some cautions. Theorem 5.9 should look familiar. It allows
many standard integral calculations of elementary calculus, like this one:
5 5
2 x3 53 13 124
x dx = = − = .
1 3 1 3 3 3
Avoiding all that fuss over partitions, norms, and Riemann sums seems—and is—
a big advantage in calculating a lot of integrals. But some sticky questions remain:
• Can we find an antiderivative? In the preceding calculation, with f (x) =
x2 , it was easy to find (or just to know) that F (x) = x3 /3 is a suitable
antiderivative. For other functions it can be much harder, or even impossi-
ble, to find antiderivative formulas. For instance, neither of the harmless-
looking functions
f (x) = cos(x2 ) and g(x) = cos(x) ln(x)
has an “elementary antiderivative”—a function built from standard function
Ask Mathematica or Maple to “elements”: polynomials, trigonometric functions, logarithms, etc. Without
antidifferentiate these functions; a suitable antiderivative F , Theorem 5.9 is useless for calculation.
notice the strange ingredients in
the answer. • Is f integrable? We assumed in the theorem—and used crucially in the
!b
proof—that a f exists. Elementary calculus courses often skirt the ques-
tion of integrability, perhaps forgivably both because the matter is subtle
and because the basic functions of elementary calculus turn to be integrable
on intervals within their domains.
Theorem 5.9 dodges the tough questions above by simply assuming, as hy-
potheses, that all is well. Doing so simplifies the proof, but it weakens the theo-
rem. In the next section, we’ll grapple more seriously with the question of which
functions are integrable. A key result (which applies to all basic functions of ele-
mentary calculus) is that every function f continuous on a closed interval [a, b] is
also integrable there.
i i
i i
i i
i i
!1
E XAMPLE 5. Show that 0
2x dx = 1; use Theorem 5.9 and Definition 5.1.
S OLUTION . The easy part is finding a value for the integral. Since the integrand
f (x) = 2x has antiderivative F (x) = x2 , and F (1) − F (0) = 1, Theorem 5.9
says that one is the only possible value. We could have thought about
The tricky bit is showing that the integral exists. We have, for now, only areas, too.
Definition 5.1 to work with, so we start as usual with a given positive . Let
δ = ; we’ll use some clever algebra and a nice collapsing sum to show that this
δ “works.”
Let P = {x0 , x1 , x2 , . . . xn } be any partition of [0, 1] with P < δ. We
claim that, for any samples S = {s1 , s2 , . . . , sn } drawn from P,
n
n
1−< f (si )Δxi = 2si Δxi < 1 + .
i=1 i=1
We will prove just the second inequality, leaving the first as an (easy) exercise.
The key observation is that, since si ≤ xi for all i,
n
n
2si Δxi ≤ 2xi Δxi .
i=1 i=1
It suffices, therefore, to show that the right-hand sum above can’t exceed 1 + .
For this we use an algebraic trick. If we write
2xi = (xi + xi−1 ) + (xi − xi−1 ) = xi + xi−1 + Δxi
for each i, then substitution and a little algebra give
n
n
2xi Δxi = ( xi + xi−1 + Δxi ) Δxi
i=1 i=1
n
= (xi + xi−1 ) Δxi + Δxi 2
i=1
n
n
= x2i − x2i−1 + Δxi 2 = S1 + S2 .
i=1 i=1
i i
i i
i i
i i
236 5. Integrals
Exercises
1. This problem is about Corollary 5.6, page 228.
(a) Consider the function h(x) = g(x) − f (x) on [a, b]. Why must h be
!b
integrable? Why is a h ≥ 0?
(b) Prove Corollary 5.6.
2. Suppose that f is integrable on [a, b] and that m ≤ f (x) ≤ M for all
x ∈ [a, b]. Explain carefully why
b
m (b − a) ≤ f ≤ M (b − a).
a
(a) Suppose that f is continuous on [a, b] and that f (x) > 0 for all x ∈
!b
[a, b]. Show that a f > 0, too. (Hint: Use the extreme value theorem
and Corollary 5.6, page 228.)
!b
(b) Suppose f is continuous on [a, b] and that a f = 0. Show that f (c) =
0 for some c ∈ [a, b]. (This fact is sometimes known as the mean value
theorem for integrals.)
i i
i i
i i
i i
(c) Give an example to show that the result in (b) need not hold if f is
discontinuous on [a, b].
6. Suppose that f is integrable on [a, b]. Show (in the spirit of the proof of
!b !b
Theorem 5.5, page 227) that 3f is also integrable and that a 3f = 3 a f .
!b !b
7. Suppose that both a
f and a
|f | exist. Prove the “triangle-like” inequality
b b
f ≤ |f | .
a a
10. We showed in and near Problem 12, page 226, that f (x) = x is integrable
!b
on [a, b], and that a x dx = (b2 − a2 )/2.
!5
(a) Use the formula above and Theorem 5.5 to find 1
(3x + 7) dx.
(b) A function g has the W-shaped graph formed by connecting the dots
at (0, 2), (1, 0), (2, 1), (3, 0), and (4, 2) in the xy-plane. Explain why
!4
the integral 0 g exists and find its value.
11. Assume (it’s true) that the integral in each part following exists. Use Theo-
rem 5.9 to find the value.
!1
(a) 0 x42 dx
!π
(b) 0 sin x dx
!b
(c) a C + Dx + Ex2 + F (x3 ) dx
!1 2
(d) 0 xex dx
i i
i i
i i
i i
238 5. Integrals
5.3 Integrability
How can we decide whether a given function f : [a, b] → R is integrable on
[a, b]? The question is obviously important: a useful integral should apply to
many functions. The question is also difficult: deciding which functions satisfy a
complicated definition naturally takes some work.
So far we’ve seen only piecemeal results:
See Example 3, page 220, and • A discontinuous function f may or may not be integrable.
Example 4, page 221.
• We’ve also said—but not proved—that every continuous function is inte-
See Example 4, page 234. grable.
In this section we approach these matters rigorously, and identify some im-
portant classes of integrable functions. Our main tool, detailed in Theorem 5.14,
is the box sum, a useful and practically usable criterion for integrability.
i i
i i
i i
i i
whenever P1 and P2 are partitions of [a, b] such that both P1 < δ and P2 <
!b
δ, and samples S1 and S2 come from P1 and P2 . Then the integral a f exists.
Proof: The idea is to concoct a certain Cauchy sequence {In } of numbers, whose
limit I will turn out to be the desired integral. Every Cauchy sequence has
To get started, for each n ∈ N we use the hypothesis to choose a positive one.
number δn such that
1
|RS(f, P1 , S1 ) − RS(f, P2 , S2 )| <
n
for all Riemann sums based on partitions P1 and P2 with both P1 < δn and
P2 < δn . For technical reasons we choose the δn to be decreasing: δ1 ≥ δ2 ≥ Convince yourself this is
δ3 ≥ . . . . possible.
Next, for each n we choose any particular partition Pn with Pn < δn A regular partition works fine.
and any particular set Sn of samples from Pn . The associated Riemann sum
RS(f, Pn , Sn ) is then a number; let’s call it In for short. This process produces
a numerical sequence {In }, which is readily shown to be Cauchy—and hence
converges to some limit I. (The proof that {In } is Cauchy uses the fact that the
δn decrease; see the exercises.)
Last, we use Definition 5.1, page 219, to show that I is the sought-after inte-
gral. For given > 0, we first choose any positive integer N for which both
1
|IN − I| < and < ,
2 N 2
and we set δ = δN as chosen above. This δ does what Definition 5.1 asks. If P
is any partition with P < δN , S is any set of samples, and RS(f, P, S) is the
corresponding Riemann sum, then the triangle inequality and our choices give
|RS(f, P, S) − I| ≤ |RS(f, P, S) − IN | + |IN − I|
≤ + = ,
2 2
as Definition 5.1 requires.
Not quite there. Lemma 5.10 will prove useful, but it has a serious practical
drawback: showing that the hypothesized inequality holds for all suitable parti-
tions P and all corresponding sample sets S seems difficult. The box-sum crite- There are infinitely many P for
rion, which turns out to be equivalent to the hypothesis of Lemma 5.10, will prove each δ, and infinitely many S for
each P .
much easier to work with.
i i
i i
i i
i i
240 5. Integrals
a x1 x2 x3 x4 b a x1 x2 x3 x4 b
a x1 x2 x3 x4 b
The picture suggests the appropriate definitions, but some extra care is needed
for discontinuous integrands. The fine print follows.
Upper and lower sums. For any given partition P of an interval [a, b], there
are infinitely many ways of choosing samples S compatible with P, and hence
infinitely many possible Riemann sums associated to P. To get upper and lower
bounds on the values of all these Riemann sums, it is helpful to consider upper
sums and lower sums.
If the integrand f is continuous on [a, b], as in Figure 5.4, then upper and lower
sums are ordinary Riemann sums, with sampling points chosen to maximize or
minimize f over each separate subinterval. (A continuous function has maximum
and minimum values on each subinterval, by the extreme value theorem.) In this
case, therefore, upper and lower sums are simply the largest and smallest possible
Riemann sums for a given partition.
A discontinuous integrand f , on the other hand, need not attain maximum and
minimum values on a given subinterval. If f is bounded on [a, b], however, then
both
i i
i i
i i
i i
exist for each i, and so the following definitions make sense. The completeness axiom
guarantees this.
Definition 5.11. Let f : [a, b] → R be a bounded function, and P = {x0 , x1 , . . . ,
xn } a partition of [a, b]. With mi and Mi as above, we define upper and lower
sums as follows:
n
US (f, P) = Mi Δxi = M1 Δx1 + M2 Δx2 + · · · + Mn Δxn ;
i=1
n
LS (f, P) = mi Δxi = m1 Δx1 + m2 Δx2 + · · · + mn Δxn .
i=1
Upper and lower sums may not be Riemann sums, but they have useful con- They are Riemann sums if f
nections to Riemann sums and to the integrals they approximate. We collect two happens to be continuous.
such facts in the following proposition, using RS, US, and LS to denote Riemann,
upper, and lower sums. Upper and lower sums don’t
depend on samples, and so
Proposition 5.12. Let f : [a, b] → R be a bounded function, and P any partition their notations don’t involve
of [a, b]. an S .
LS (f, P) ≤ I ≤ US (f, P) .
About proofs. The inequality in (i) follows immediately from the definitions of
upper and lower sums. Part (ii) is a slightly subtler; see the exercises for both
parts.
Clamping down: box sums. Proposition 5.12 suggests that it is a good thing for
integrability when upper and lower sums are close together. Box sums measure
this closeness.
Definition 5.13 (The box sum). Let f : [a, b] → R be a bounded function and
P = {x0 , x1 , . . . xn } a partition of [a, b]. The associated box sum is the difference
Box sums have a nice geometric interpretation, as seen already in Figure 5.4(c).
Figure 5.5(a) shows another box sum for the same integrand as before, but here
i i
i i
i i
i i
242 5. Integrals
a x1 x2 x n–1 b a x1 x2 x n–1 b
with a finer partition. Figure 5.5(b) shows another ten-element box sum, this time
for a discontinuous integrand.
Here is the key point: For both integrands in Figure 5.5, the total shaded
area—the box sum—can be made as small as we wish by requiring that the par-
tition have small norm. This seems clear enough for the smooth integrand in
Figure 5.5(a): For a partition with tiny norm, the shaded area becomes smaller
and smaller, approaching a skinny “tube” around the graph of f .
Less obvious, but equally important, is the fact that the total shaded are can
also be made small for the discontinuous integrand in Figure 5.5(b). Figure 5.6
suggests why. Any partition P may generate one or two tall box sum elements,
but if P has small norm, then all boxes are narrow and their areas don’t amount
to much. We formalize these ideas in a theorem.
a x1 x2 b
i i
i i
i i
i i
Many uses. We outline the rather technical proof at the end of this section; it
involves some meticulous bookkeeping. First we illustrate the theorem’s uses and
advantages—including the fact that for a given we need only one suitable par-
tition to prove integrability. Observe also that the box-sum criterion works both
ways: it detects both integrability and non-integrability. Example 1 illustrates
both of these uses.
We have shown by other methods that f is integrable on [0, 1] but g is not. What
do box sums say?
which “isolates” the jump discontinuity at x = 0.5 in the skinny interval [0.499,
0.501]. The box sum—only 0.002 in this case—can be made even smaller nar-
rowing the middle interval even further. Thus f is indeed integrable. With integral 0.5.
For g the conclusion is negative: for any partition P of [0, 1], every box ele-
ment has height one, and so the box sum is one. ♦ Draw your own picture.
The box-sum criterion is exactly what we need to prove some familiar and
important—but otherwise elusive—results.
Theorem 5.15. If f is continuous on [a, b], then f is integrable, too.
The proof idea. Continuity means that f cannot rise or fall very much over a
small domain interval. Thus, for a partition with small norm, all box sum elements
must be short. Since the total width of boxes is only (b − a), their total area must
also be small.
Proof: Let > 0 be given. Because f is continuous on [a, b], it is also uni-
formly continuous there, according to Theorem 3.22, page 166. This means we
can choose δ > 0 such that
|f (s) − f (t)| < whenever |s − t| < δ and s, t ∈ [a, b].
b−a
i i
i i
i i
i i
244 5. Integrals
A regular partition will do. Now let P be any partition with P < δ. Since f is continuous on each subin-
terval [xi−1 , xi ], it attains maximum and minimum values there, so there exist si
and ti in [xi−1 , xi ] with
Our uniform continuity condition gives Mi − mi < /(b − a) for all i, and so
n
box sum = (Mi − mi ) Δxi
i=1
n
n
< Δxi = Δxi = ,
i=1
b−a b − a i=1
as desired.
More on integrability. We can use the box-sum criterion to prove other familiar,
reasonable-seeming properties of the integral. Proposition 5.16 gives two sam-
ples.
Proposition 5.16. Suppose that f : [a, b] → R is integrable.
!c !b
(i) If a < c < b, then a f and c f exist, and
b c b
f= f+ f.
a a c
Proof (sketch): The main proof challenge for both (i) and (ii) turns out to be inte-
grability: We need to show that if f is integrable on [a, b], then it is also integrable
on the smaller intervals [a, c] and on [c, b], and that |f | is also integrable on [a, b].
Once all the integrals in question are known to exist, the rest is easy. The equa-
tion in (i) is essentially Theorem 5.8, page 232. See Problem 7, page 237, for the
inequality in (ii).
Proving our integrability claims directly from the definition of integrability
We don’t even have candidates would be difficult. With the box-sum criterion, the proof is routine.
for the values of the integrals.
!b
Let > 0 be given. By Theorem 5.14, applied to the integral a f , there exists
a partition P of [a, b] with box sum less than .
i i
i i
i i
i i
a x1 x2 x3 x4 b a x1 x2 x3 x4 b
!c !b
Let’s show first that a f and c f exist. We may as well assume that c ∈ P;
if not, we can add c to P without increasing the box sum. Thus, P has the form Sketch the situation to convince
yourself.
P = {a = x0 , x1 , . . . , xm = c, xm+1 , . . . , xn = b},
and therefore
P1 = {a = x0 , x1 , . . . , xm = c} and P2 = {c = xm , xm+1 , . . . , xn = b}
are, respectively, partitions of [a, c] and [b, c]. Because P1 and P2 are subsets of
P, and all box summands are nonnegative, the box sums for P1 and P2 are clearly
smaller than that for P. By Theorem 5.14, f is indeed integrable on each smaller
interval.
To show that |f | is also integrable on [a, b], we compare box sums for f and
|f |. Figure 5.7 illustrates the nice answer: For any partition P of [a, b],
In Figure 5.7(a), box-sum elements that “straddle” the x-axis become smaller for
|f |, as shown in Figure 5.7(b). Thus any partition for f with box sum less than
works for |f |, too.
The proof idea. Figure 5.8 illustrates the proof idea for an increasing integrand, The pictured integrand has one
with m and M as lower and upper bounds. discontinuity, but a monotone
function can have many.
If P is a regular partition with norm δ, then the box sum elements can be
“stacked” vertically as shown, to give total area less than (M − m)δ. By choosing
δ small, we can keep the box sum as small as we like.
i i
i i
i i
i i
246 5. Integrals
a x1 x2 xn– 1 b
Figure 5.8. Stack the boxes: why every monotone function is integrable.
E XAMPLE 2. What does Proposition 5.17 say about integrability of some fa-
vorite functions?
all exist, because all integrands are monotone on [0, 100]. With help from Theo-
rem 5.8, page 232, we can conclude that all of
100 100 100
cos x dx, ln(cos x + 2) dx, ecos x dx
0 0 0
also exist. Even though the integrands are not monotone on [0, 100], in each case
we can break [0, 100] up into finitely many smaller subintervals, on which each
of which the given integrand is monotone. ♦
Why the box-sum criterion is necessary. Suppose f is integrable on [a, b]; let
!b
I = a . For any given > 0, we’ll find a partition P of [a, b] with box sum less
than . Since f is integrable, we can choose δ > 0 such that
i i
i i
i i
i i
I− < RS (f, P, S) < I +
4 4
for every Riemann sum RS (f, P, S) based on a partition P with P < δ and
samples S drawn from P. Now let P be any such partition; this P will do what A regular partition will do.
we want.
To see why, note first that the upper sum US (f, P), although perhaps not a
Riemann sum itself, is the supremum of all possible Riemann sums based on P.
In particular, we can choose a set of samples S from P so that
RS (f, P, S) > US (f, P) − ,
4
and so we have
US (f, P) < RS (f, P, S) + <I+ + =I+ .
4 4 4 2
A similar argument shows that
LS (f, P) > I − ,
2
and so
box sum = US (f, P) − LS (f, P) < ,
as we wanted to show.
Why the box-sum criterion is sufficient. The plan of the proof is to use the box-
sum condition to obtain the “Cauchy criterion” of Lemma 5.10, page 238, which
in turn implies integrability. We show, in fact, that if for given > 0 we can find
some partition P0 with small box sum, then there exists some (very small!) δ > 0
such that every partition P with P < δ must also have small box sum, and this
does the trick.
One picky technical lemma will prove useful. We leave its straightforward Draw a simple picture to get
proof as an exercise. started.
In words: Adding one point to P decreases upper sums and increases lower
sums—but by no more than (M − m)δ.
i i
i i
i i
i i
248 5. Integrals
Now we can prove that the box-sum condition implies integrability. For given
> 0, we first choose any particular partition
P0 = {w0 , w1 , . . . , wN } ,
of [a, b] with N partition points and box sum less than /2; that is,
US (f, P0 ) − LS (f, P0 ) < .
2
Next we set
δ= ,
4(N − 1)(M − m)
where M and m are, respectively, upper and lower bounds for f on [a, b]. This δ
Unlikely as that may seem in will turn out to work in Lemma 5.10.
advance. Now let P be any partition of [a, b] with P < δ. Consider the new partition
P formed formed from P by adding in the N − 1 partition points w1 , w2 , . . . ,
wN −1 . (Since w0 = a and wN = b, adding them to P has no effect.)
Now Lemma 5.18(i) implies that
US (f, P ) ≤ US (f, P0 ) ,
because P “refines” P0 . Because P has at most N − 1 more points than P,
Lemma 5.18(ii) says that
US (f, P ) > US (f, P) − (N − 1) · (M − m) · δ
= US (f, P) − .
4
Putting these inequalities together gives
US (f, P) < US (f, P ) + ≤ US (f, P0 ) + .
4 4
A similar argument shows that
LS (f, P) < LS (f, P0 ) + .
4
All these inequalities boil down saying that, for any partition P with P < δ,
both the upper and lower sums LS (f, P) and US (f, P) lie in the interval
LS (f, P0 ) − , US (f, P0 ) + ,
4 4
which has length less than . In particular, every Riemann sum RS(f, P, S) is
between LS (f, P) and US (f, P), and therefore lies in the same interval.
Finally, we observe that if both P1 and P2 are partitions of [a, b] with both
P1 < δ and P2 < δ, and if samples S1 and S2 come from P1 and P2 ,
respectively, then both RS(f, P1 , S1 ) and RS(f, P2 , S2 ) lie in the same interval
of length less than , and are thus within of each other. Thus the hypothesis of
!b
Lemma 5.10 is satisfied, and the integral a f exists.
i i
i i
i i
i i
Exercises
1. Suppose f is continuous on R. Explain why the functions defined by f 2 (x),
sin(f (x)), f (sin x), and ln (sin f (x) + 2) are all integrable on every inter-
val [a, b].
! 10
2. Consider the integral 0 sin x dx. Find a partition P of [0, 10] that gives
box sum less than 0.01. (Hint: Use the fact that inequality |sin x − sin y| ≤
|x − y| holds for all x, y ∈ R.)
3. Consider the function f defined by f (n) = 0 if n ∈ Z and f (x) = π
otherwise, and let > 0. Find a partition P of [0, 10] that gives box sum
less than . (Hint: Isolate the “offender points” in small subintervals.) What
! 10
is 0 f ?
4. Use box sums to show carefully that any function of your choice is not
integrable on [0, 1].
5. Show using box sums and Theorem 5.14 that the function f (x) = x2 is
integrable on [0, 1].
6. Show using box sums and Theorem 5.14 that the function f (x) = x3 is
integrable on [0, 1].
7. Suppose that f is integrable on [0, 2]. Show using box sums and Theo-
rem 5.14 that f is integrable on [0, 1], too.
! 100
8. We said in Example 2, page 246, that 0 cos x dx can be shown to exist
using Proposition 5.17, page 245 and Theorem 5.8, page 232. Give the
details.
9. State and prove the converse of Lemma 5.10.
10. Show that the sequence {In } defined in the proof of Lemma 5.10 is Cauchy.
i i
i i
i i
i i
250 5. Integrals
!b
13. Show that if a
f = I exists, and P is any partition of [a, b], then
LS (f, P) ≤ I ≤ US (f, P) .
Note: This is (ii) of Proposition 5.12; it says that, for any partition P, the
corresponding upper and lower sums “trap” the exact value of I from above
and below.
(Hint: To show that US (f, P) overestimates I, consider the “stair-step”
function fbig defined by
⎧
⎪
⎪M1 if a ≤ x < x1
⎪
⎨M
2 if x1 ≤ x < x2
fbig (x) =
⎪
⎪... ...
⎪
⎩
Mn if xxn−1 ≤ x ≤ b
!b
Why is fbig integrable? What is its integral? How does a fbig compare to
!b
a
f ?)
14. Consider the function f given by f (1/n) = 1 if n ∈ N and f (x) = 0
!1
otherwise. Show, using box sums and Theorem 5.14, that I = 0 f exists.
(We know already—see Problem 12, page 238—that if the integral exists,
then I = 0.)
The point is to find, for any given > 0, any partition P of [0, 1] with box
sum less than . To do so, start at the left, with x0 = 0 and x1 = /2;
this box element contributes /2. Since only finitely many of the 1/n lie
to the right of /2, one can choose the remaining partition points so that
each remaining “bad point” lies in an interval small enough so that the total
length of these intervals is less than /2. Complete this sketch to give a
careful proof.
i i
i i
i i
i i
Proof: We’ve already done all the hard work. By Theorem 5.15, the integral
!b
a f exists, and Theorem 5.9 guarantees that the integral’s value is indeed F (b) −
F (a).
Having worked very hard to build the machine, we now only need to turn the
crank. ♦
!π
E XAMPLE 2. Find 0
sin(x2 ) dx.
i i
i i
i i
i i
252 5. Integrals
Proof: Note first that F (x) is defined for all x ∈ [a, b]. Part (i) of Proposi-
tion 5.16, page 244. says so, as does the fact that f is continuous on all subinter-
vals [a, x].
Fix c ∈ (a, b); we’ll show F (c) = f (c). By definition,
F (c + h) − F (c)
F (c) = lim .
h→0 h
F (c + h) − F (c)
lim = f (c);
h→0+ h
and therefore
! c+h
f
mh ≤ c
≤ Mh .
h
This means, in turn, that the middle quantity is “intermediate” between mh and
Mh for the continuous function f . Thus, by the intermediate value theorem, there
exists some input xh with c < xh < c + h and
! c+h
f
c
= f (xh ).
h
as desired.
i i
i i
i i
i i
Nice to know, but . . . . Theorem 5.20 assures us that every continuous function
f , no matter how ill-behaved, has an antiderivative F . (Being an antiderivative, F Some are very ill-behaved.
is automatically differentiable and hence also continuous.) This is nice to know in
the abstract—but not helpful for calculating integrals like the one in Example 2.
Indeed, many useful and harmless-looking calculus functions, including
sin x
cos(x2 ), exp(x2 ), and ,
x
turn out not to have elementary antiderivatives, and are said not to be “integrable Elementary functions are nice
in closed form.” combinations of the familiar
calculus-style functions.
Average values, and another mean value theorem. Integration has a natural
connection to averaging:
Definition 5.21. If f is integrable on [a, b], then the average value of f on [a, b] is
given by
!b
f
average value = a .
b−a
Embedded in the proof of Theorem 5.20 is another theorem (and its proof) of
independent interest:
Theorem 5.22 (Mean value theorem for integrals). If f is continuous on [a, b],
then there exists c in (a, b) for which
b
f = f (c) · (b − a).
a
Exercises
!b
1. Show that if a f = 0 and f is continuous on [a, b], then f (c) = 0 for some
c ∈ (a, b). Give an example to show that the conclusion need not hold if f
is not continuous.
!b !b
2. Let f and g be continuous on [a, b] and suppose a f = a g. Show that
f (c) = g(c) for some c in [a, b].
3. Suppose f has average value 3 on [a, b]. What is the average value of 5f +7
on [a, b]? Why?
i i
i i
i i
i i
254 5. Integrals
!2
4. In each part, find I = 0 f , the average value of f on [0, 2], and a value
of c at which the average value is achieved (in the sense of Theorem 5.22).
√
(a) f (x) = x.
(b) f (x) = x.
(c) f (x) = x2 .
(d) f (x) = x42 .
6. Let h : [a, b] → R be continuous on [a, b]. Suppose that h(x) ≥ 0 for all
!b
x ∈ [a, b] and that a h = 0. Use Theorem 5.20 to show that h(x) = 0 for
!x
all x ∈ [a, b]. (Hint: Use properties of the function H(x) = a h to derive
the result.)
7. Let f be continuous on [a, b]. Suppose that the average value and the maxi-
mum value of f on [a, b] are equal. Show that f is constant. Must the same
result hold if f is not continuous? Why?
11. Find an interval [a, b] such that the average value of f (x) = x2 occurs at
the midpoint.
12. We used the mean value theorem for integrals to prove Theorem 5.20. Use
Theorem 5.20 and the mean value theorem for derivatives to prove the mean
value theorem for integrals. (Assume that f is continuous, of course.)
13. (This problem refers to material in Section 4.4.) Consider the functions
fn (x) = xn for n = 1, 2, 3, . . . and the limit function f given by f (x) = 0
if x ∈ [0, 1) and f (1) = 1.
i i
i i
i i
i i
(a) We showed in Section 4.4 that the sequence {fn } converges pointwise
!1 !1
to f on [0, 1]. Does 0 fn converge to 0 f ? Explain.
! 0.9
(b) The sequence {fn } converges uniformly to f on [0, 0.9]. Does 0 fn
! 0.9
converge to 0 f ? Explain.
14. (This problem refers to material in Section 4.4.) Consider the functions hn
defined by hn (x) = n if x ∈ (0, 1/n) and hn (x) = 0 otherwise. Let h be
the constant function h(x) = 0.
(a) Show that the sequence {hn } converges pointwise to h on [0, 1]. Does
!1 !1
h converge to 0 h? Explain.
0 n
(b) Show that the sequence {hn } converges uniformly to h on [0.1, 1].
!1 !1
Does 0.1 hn converge to 0.1 h? Explain.
15. (This problem refers to material in Section 4.4.) Let {fn } be a sequence of
continuous functions on [0, 1], and suppose {fn } converges uniformly on
[0, 1] to a function f .
i i
i i
i i
i i
i i
i i
i i
i i
Solutions
257
i i
i i
i i
i i
258 Solutions
10. (a) We argue by contradiction: If x is rational, then (by Theorem 1.4) x2 is ratio-
nal, too, which contradicts our assumption.
√ √ 2
(b) Another√ proof by contradiction. If x = 2 + 3√is rational, then x =
5 + 2 6 is rational, too. This implies, in turn, that 6 is rational, which is
absurd.
√ √ √
(c) Yet another√proof√by contradiction.
√ Let’s write x = 2 + 3 + 5, then we
have x − 5 = 2 + 3, and suppose x is rational. Squaring both sides of
the last equation and simplifying gives
√ √
x2 + 10x 5 = 2 6,
which is progress, since only two square roots remain. Squaring again gives
√
x4 + 20x3 5 + 500x2 = 24,
which is even better, as only one square root is left. The last equation implies
that
√ 24 − 500x2 − x4
5 = 500x2 = .
20x3
Because x is rational, so is the right-hand side above. This absurdity com-
pletes the proof.
11. Parts (i) and (ii) follow from the fact that 1 < a/b < 2. For part (iii), note that
This shows that elements of F have multiplicative inverses in F . The rest is easier.
i i
i i
i i
i i
Solutions 259
(a) Let A be the set of all humans who have ever lived, and B the set of all women
who have ever lived. The function is not injective, because siblings have the
same mother. The function is not surjective, either, since some women are
not mothers.
(b) Let A be the set of all mothers of sons, and B the set of all male humans.
Then F IRST B ORN S ON : A → B is one-to-one but not onto.
(c) Let A be the set of all humans and B the set of all colors. Then E YE C OLOR :
A → B is neither one-to-one nor onto, since several people have blue eyes,
and nobody has silver eyes.
(d) Let A be the set of all US citizens and B = {January 1, January 2, . . . ,
December 31}. Then B IRTHDAY : A → B is onto (every day is someone’s
birthday) but not one-to-one (several people have the same birthday).
i i
i i
i i
i i
260 Solutions
6. (a) The domain is the set of states that begin with M. The range is the finite set
{3, 4, 6, 10, 11, 12, 17}. The codomain can be any set that contains the range,
such as N or even R.
(b) f is not injective; f (Maryland) = f (Minnesota).
(c) f is surjective only if the range and codomain are the same set.
(d) A better name than f for this function might be E LECTORALVOTES.
8. (a) L is one-to-one since, if L(x1 ) = ax1 + b = ax2 + b = L(x2 ), then basic
algebra gives
x−b
L( M (x) ) = aM (x) + b = a + b = x,
a
as desired. A similar calculation shows that M (L(x)) = x for all x ∈ R.
Thus, M = L−1 , as hoped for.
10. (a) Claim: If both f and g are one-to-one, then so is g ◦ f .
Proof: Suppose a1 ∈ A and a2 ∈ A, and that g(f (a1 )) = g(f (a2 )). We’re
done if we show that a1 = a2 .
Because g is one-to-one, we know
f (a1 ) = f (a2 ) =⇒ a1 = a2 ,
as desired.
i i
i i
i i
i i
Solutions 261
(c) Given: Raining implies not sunny and cloudy (true). Converse: Not sunny and
cloudy implies raining (false). Contrapositive: Sunny or not cloudy implies
not raining (true).
(d) Given: Cloudy implies not sunny (true). Converse: Not sunny implies cloudy
(false . . . it could be night). Contrapositive: Sunny implies not cloudy (true).
3. (a) Converse: If a + b is rational, then a and b are both rational. (False.) Con-
trapositive: If a + b is irrational, then at least one of a and b is irrational, too.
(True.)
(b) Converse: If 1/a is irrational, then a is irrational, too. (True.) Contrapositive:
If 1/a is rational, then a is rational. (True.)
(c) Converse: If ab is irrational, then both factors a and b are rational. (False.)
Contrapositive: If ab is rational, then at least one of a and b is rational. (False.)
(d) Converse: If limn→∞ an = 0, then an converges. (False; look at the
series 1 + 1/2 + 1/3 + . . . .) Contrapositive: If limn→∞ an = 0, then an
diverges. (True; this is known as the nth term test.)
4. (a) Negation: All of a, b, and c are negative.
(b) Negation: f (x) > 3 for some x ∈ [2, 7].
(c) Negation: sin n is rational for some positive integer n.
(d) Negation: ∀x ∈ R we have x2 = −1.
(e) Negation: ∃x ∈ R such that ∀y ∈ R we have xy = 1.
5. P : All dogs have fleas. Negation: Some dog has no fleas. Statement P is (prob-
ably) false.
Q: Several dogs have fleas. Negation: No dog has fleas. Statement Q is true.
R: My dog, Spike, is flea-free. Negation: Spike has fleas. The truth of statement
R depends on Spike.
S: 3 < 5. Negation: 3 ≥ 5. Statement S is true.
√ √
T : √n − 1 + √ n + 1 is irrational for every positive integer n. Negation:
n − 1 + n + 1 is rational for some positive integer n. Statement T is
true.
√ √
U : √n − 1 + √ n + 1 is rational for every positive integer n. Negation:
n − 1 + n + 1 is irrational for some positive integer n. Statement U
is false.
V : cos(x) < 1.001 for all x > 0. Negation: cos(x) ≥ 1.001 for some x > 0.
Statement V is false.
W : cos(x) < 0 for all x ∈ [2, 3]. Negation: cos(x) ≥ 0 for some x ∈ [2, 3].
Statement W is true.
X: Every even integer n > 2 is the sum of two (not necessarily distinct) primes.
Negation: Some even integer n > 2 is not the sum of two primes. Statement
X is Goldbach’s conjecture—an important unsolved mathematical problem.
i i
i i
i i
i i
262 Solutions
Y : Every set of ten distinct numbers has a largest and a smallest element. Nega-
tion: Some set of ten distinct numbers has either no largest or no smallest
element. Statement Y is true.
Z: Every subset of the interval [0, 1] contains a largest element. Negation: Some
subset of [0, 1] contains no largest element. Statement Z is false: (0, 1), for
example, has no largest element.
9. (a) If a function f is increasing for all x, then f (x) ≥ 0 for all x.
(b) If a function f has a maximum at x = a, then either f (a) = 0 or f (a) does
not exist.
(c) If f (x) > 0 for all x, then the graph of f is concave up.
(d) If a series an converges, then lim an = 0. (This is known as the nth term
test.)
5. Note first that P (n) is obviously true for n = 4; just check both sides.
To complete the inductive proof, we assume P (n) (for n ≥ 4) and show P (n + 1).
By P (n), we have 2n < n!. We know also that 2 < (n + 1). Multiplying these
inequalities gives
2n < n! =⇒ 2n+1 < n!(n + 1) = (n + 1)!.
This shows that P (n + 1) holds, and we’re done.
i i
i i
i i
i i
Solutions 263
7. The base case P (1) is easy, so we assume P (k) and show P (k + 1).
In P (k + 1), the left side is (1 + 2 + 3 + · · · + k + (k + 1))2 ; we’ll show that
it equals 13 + 23 + 33 + · · · + (n + 1)3 . Along the way we’ll use the result of
Example 8.
Here goes (some details left to you):
(1 + 2+ · · · + k + (k + 1))2 = ( (1 + 2 + 3 + · · · + k) + (k + 1) )2
= (1 + 2 + 3 + · · · + k)2 + 2(1 + 2 + 3 + · · · + k)(k + 1) + (k + 1)2
k(k + 1)
= 13 + 23 + · · · + k3 + 2 (k + 1) + (k + 1)2
2
= 13 + 23 + · · · + k3 + (k + 1)3 ,
as desired.
9. (a) We can simply check by direct calculation (technology helps) that 5n > n!
for n = 1, 2, 3, . . . , 11.
(b) The proof is by induction.
The base case n = 12 holds by a direct calculation. For the inductive step,
suppose 5k < k! for a positive integer k ≥ 12. Then clearly 5 < k + 1, and
so 5 · 5k < (k + 1) · k!; equivalently, 5k+1 < (k + 1)!, which completes the
inductive step. Done.
11. The base case is our assumption (i). The inductive step follows easily from the
product rule.
13. This is a standard old brain-teaser. The inductive step argument works fine for
n = 42, but it fails when n = 1.
(b) To see f is onto, let b ∈ (−2, 5). If we set a = (y + 2)/7, then a ∈ (0, 1)
and f (a) = b.
(c) f ◦ g : (0, ∞) → (−2, 5) is one-to-one and onto because this is true of both
f and g. This means that (0, ∞) and (−2, 5) have the same cardinality.
3. f can be one-to-one but g cannot. The latter holds by the pigeonhole principle,
since g tries, in effect, to put 43 pigeons into 42 holes.
i i
i i
i i
i i
264 Solutions
i i
i i
i i
i i
Solutions 265
3. (a) It is enough to prove the RTI under the assumption that |x| ≥ |y|. (If |x| < |y|
we can just reverse the roles of x and y.) In other words, we need to show
that |x − y| ≥ |x| − |y|. But this is equivalent to |x − y| + |y| ≥ |x|, which
is just a form of the ordinary triangle inequality.
(b) The distance from x to y is at least as great as the distance from |x| to |y|.
In other words, taking absolute values of numbers either shrinks distances or
leaves them alone.
(c) The RTI is an equation except when x and y have opposite signs.
5. This view of things helps explain the triangle inequality name: the length of one
side of a triangle is not greater than the sum of the other two sides.
7. Use the triangle inequality: |x − y| = |x − 7 + 7 − y| ≤ |x − 7| + |7 − y| =
|x − 7| + |y − 7| < + = 2.
8. (a) |x − 1| < 0.5 implies 1 − x < 0.5, or x > 0.5.
(b) Use the triangle inequality: |c| = |c − x + x| ≤ |c − x| + |x| < |c| 2
+ |x|.
This implies |c| < |c|
2
+ |x|, or |x| > |c|
2
.
!1
9. An integral 0 f (x) dx is a limit of approximating sums, like f (x1 )Δx1 +
!1
f (x2 )Δx1 +· · ·+f (xn )Δxn . Thus 0 f (x) dx is approximated by |f (x1 )Δx1 +
!1
f (x2 )Δx1 + . . . +f (xn )Δxn |, and the integral 0 |f (x)| dx by |f (x1 )Δx1 | +
|f (x2 )Δx1 | + · · · + |f (xn )Δxn |. The usual triangle inequality applies to these
sums.
1.8 Bounds
1. (a) The shortest English words have one letter, so 1 is a lower bound for f on EW.
It’s hard to identify the longest English word, but 1000 letters is probably a
safe upper bound.
(b) Words in this problem vary in length from 1 to 10 letters.
2. English sentences vary in length from one word (Stop!) to many, many words, but
1000 words is probably a safe upper bound. On the set SITP, values of g vary from
5 words to about 30 words, depending on how you count words in equations.
3. Suppose S is bounded above by M and below by m. Then S ⊂ [m, M ]. If we take
K to be the larger of |m| and |M |, then S ⊂ [m, M ] ⊂ [−K, K].
5. (a) The maximum value is f (0) = 1; the minimum is f (±K) = 1/(K + 1).
(b) The graph is a parabola with vertex at x = −1/3, so the maximum occurs
at the right endpoint; g(K) = 3K 2 + 2K − 7. If K ≥ 1/3, then −2/3 ∈
[−K, K], and so the minimum value is g(−1/3) = −22/3. If K < 1/3 then
the minimum occurs at x = −K, and the value is g(−K) = 3K 2 − 2K − 7.
(c) Note that h(x) = 1 + x, so the function is largest at the right endpoint
(h(K) = 1 + K) and smallest at the left (h(−K) = 1 − K).
i i
i i
i i
i i
266 Solutions
i i
i i
i i
i i
Solutions 267
9. (a) If not, then am > bn for some m and n. If n ≥ m, then we have an ≥ am >
bn , which contradicts the definition of the interval In = [an , bn ]. If m > n,
then we have am > bn ≥ bm , another contradiction.
(b) By the preceding part, bn is an upper bound for A, and so can’t be smaller
than α, the least upper bound.
(c) As in the preceding part, we have an ≤ β for all n. The outermost inequalities
restate the definitions.
2. (a) If a given N works for = 0.001, then the same N works for larger . We
could use this N in all positions in the row.
(b) Any N works in this case; we could use N = 0 in all positions, for example.
(c) The number of digits in a number changes after 9, 99, 999, etc. So the second-
row entries would be 9, 109 − 1, 1099 − 1, and 10999 − 1.
3. (a) Set = 0.1 and choose a corresponding N as in the definition. All xn with
n > N lie in the desired interval.
(b) Set = 0.001 and choose a corresponding N as in the definition. Then all
xn with n > N lie in (4.999, 5.001), and therefore exceed 4.999.
(c) If we set = 1 and choose a corresponding N , then all xn with n > N lie
in (4, 6). Thus it is possible that xn > 6 only for members of the finite set
{x1 , x2 , . . . xN }.
7. (a) Algebraic manipulation gives
2n 2 10
|an − L| = − =
3n + 5 3 9n + 15
and
10 10/ − 15
< ⇐⇒ < n.
9n + 15 9
Thus, for given > 0, the value N = (10/ − 15)/9 works in the definition.
A formal proof resembles that in Example 2.
i i
i i
i i
i i
268 Solutions
(b) The proof is like that for (a), except that now we have
899900 899900/ − 15
|bn − L| = < ⇐⇒ < n.
9n + 15 9
Thus N = (899900/ − 15)/9 works for any given > 0.
(c) We’ll show cn → 0. Observe first that
2n 2n 2
|cn − L| = < = ,
3n2 + 5 3n2 3n
and
2 2
< ⇐⇒ < n.
3n 3
2
Here’s the formal proof: Let > 0 be given; set N = 3
. This N works,
since if n > N then
2n 2 2
|cn − L| = < < = .
3n2 + 5 3n 3N
11. (a) We can check explicitly that 1.511 ≈ 86.5 < 89 = f11 , and 1.512 ≈
129.7 < 144 = f12 . For the inductive step, note that
fk+1 > 1.5k−1 + 1.5k = 1.5k−1 · 2.5 > 1.5k−1 · 1.52 = 1.5k+1 ,
as desired. (Note that the proof worked because 1 + 1.5 > 1.52 . A similar
result can be shown to hold if 1.5 is replaced by any number b with 1 + b >
b2 .)
(b) Using technology one can check that n ≥ 72 works.
13. (a) For any given > 0, we see
1 1
|xn − 0| = < ⇐⇒ n> .
n
Thus the desired inequality holds for all n except those (finitely many) for
which n ≤ 1/.
(b) Show that if xn → 0 in the sense above, then xn → 0 in the “official” sense
defined in this section. Let > 0 be given. By hypothesis, |xn − 0| ≥ holds
for only finitely many n, and we can choose N to the largest such value of n.
This N works in the ordinary definition.
(c) A sequence {xn } does not converge to 0 if, for some > 0, there are infinitely
many xn with |xn | > .
(d) A sequence {xn } does not converge to 0 if, for some > 0 and any number
N , there is some xn with n > N and |xn | > .
15. Every constant sequence has such a table.
17. If β has decimal expansion 0.d1 d2 d3 d4 d5 . . . , then the increasing sequence 0.d1 ,
0.d1 d2 , 0.d1 d2 d3 , 0.d1 d2 d3 d4 , . . . converges to β.
i i
i i
i i
i i
Solutions 269
Now for any given > 0, we can choose N so that |an − a| < /|c| for n > N .
(Why can we do this?) This N “works” for the given and the original sequence
{can }. (Assemble the pieces into an efficient proof.)
3. Suppose xn → 0. To show |xn | → 0, let > 0 be given. Because xn → 0, we can
choose N so that |xn − 0| = |xn | < whenever n > N . The same N works for
the sequence {|xn |}, because if n > N , then
as desired.
4. (a) The lemma
√ says that there exist both rational and irrational sequences that
tend to 2, and that these can be chosen to be monotone.
√
(b) One possibility is pn = 2 + 1/n for all n.
(c) One
√ possible sequence comes from the infinite decimal approximation
2 = 1.414213562 . . . ; we can use r1 = 1, r2 = 1.4, r3 = 1.414, etc.
(We need a little fix when a zero-digit comes along.) Another possibility, a
bit less concrete, is to use the fact that every interval contains rational num-
bers.
5. The n = 1 (base) case is easy: s2 = 1.5 < 2 = s1 . The inductive step is to show
that if sn − sn−1 < 0, then sn+1 − sn < 0, too. Doing so involves careful but
straightforward algebra.
7. It is clear that {hn } is increasing, and the inequality h2n ≥ hn + 12 implies that
{hn } is unbounded. Since h1 = 1, the inequality means that h2 ≥ 1.5, h4 ≥ 2.0,
h8 ≥ 2.5, h21 000 > 501, etc.
8. (a) Clearly, Tn < Sn for all n, and both sequences appear to converge.
n
(b) It is natural (and correct) to guess Tn = . The inductive proof is
n+1
straightforward.
n 1 1
(c) We can use algebraic facts: Tn = = → .
n+1 1 + 1/n 1+0
(d) Observe that
1 1 1
≥ 2 =
n2 + n n + n2 2n2
for all n, and so Sn ≤ 2Tn < 2 for all n ≥ 1. Thus {Tn } is bounded above,
and clearly increasing, so {Tn } converges.
9. (a) Let M > 0 be given. Since xn → ∞, we can choose N so xn > M
whenever n > N . But then also −xn < −M when n > N . Thus −xn →
−∞.
i i
i i
i i
i i
270 Solutions
n2 + arctan n n2 − 4
> = n − 2.
n+2 n+2
2.3 Subsequences
1. (a) The converse says (falsely) that if {xn } has a convergent subsequence, then
{xn } is bounded. Counterexamples are easy to find. The contrapositive says
that if {xn } has no convergent subsequence, then {xn } is unbounded.
(b) The BWT says that {yn } has a convergent subsequence. The BWT also ap-
plies to {zn }, but isn’t really needed, since it is easy to see that zn → 0.
Thus, every subsequence of {zn } converges to zero.
(c) If {xn } is bounded, then the BWT guarantees that a convergent subsequence
exists. If {xn } is unbounded, then Lemma 2.13 applies. Both can occur, as
they do in the sequence 1, 0, 2, 0, 3, 0, dots.
3. (a) Given a sequence that lists the rationals, we can just form the subsequence of
nonnegative rationals.
(b) Look at any two successive terms, say p1 and p2 . Between these two rational
numbers like other rationals. If the sequence were monotone, these other
rationals would lie between p1 and p2 in the sequence.
(c) We can choose n1 so that pn1 = 1. Then we choose n2 with n2 > n1 and
pn2 ≥ 2. Continuing this process completes the proof; details are left to the
reader.
5. (a) Substituting n = 2k gives x2k = 2k/(2n + 1), which converges to one as
k → ∞. Substituting n = 2k − 1 gives x2k−1 = −(2k − 1)/2k, which
converges to −1. With two different subsequence limits, {xn } must diverge.
(b) Consider any convergent subsequence xn1 , xn2 , xn3 , xn4 , . . . , with limit
L. Since this sequence has infinitely many terms, it must include either in-
finitely many even-indexed or infinitely many odd-indexed terms from the
original sequence {xn }. If there are, say, infinitely many even-indexed terms,
i i
i i
i i
i i
Solutions 271
then they form a new subsequence, which obviously tends to one. But every
subsequence of a convergent sequence tends to the same limit, so we must
have L = 1.
7. Since {xn } diverges, x0 is not the limit. Negating the definition of convergence to
x0 means that, for some > 0, no N works in the definition of convergence. We’ll
use this to construct a sequence.
Because N = 1 doesn’t work in the definition, there is some term—call it xn1 —for
which |xn1 − x0 | > . Now consider N = n1 . But this N doesn’t work either,
so there must be some term—call it xn2 —for which n2 ≥ n1 and |xn2 − x0 | > .
Continuing this process indefinitely gives the desired subsequence: n1 < n2 <
n3 < . . . and |xnk − x0 | > for all k.
9. If xn → x0 , then we know that every subsequence, and hence every monotone
subsequence, must also converge to x0 .
The other implication is that if every monotone subsequence converges to x0 , then
xn → x0 , too. We prove this by contradiction.
If xn does not converge to x0 , then for some > 0 there is a subsequence {xnk }
with |xnk − x0 | > for all k. By Proposition 2.12, there is a monotone subse-
quence {ynk } of {xnk }. Now |xnk − x0 | > holds for all the xnk , and so it
certainly holds for all the ynk , too. In particular, ynk → x0 is impossible, which
contradicts our assumption about monotone sequences.
11. Both parts follow from unraveling the –N definitions.
i i
i i
i i
i i
272 Solutions
3. For > 0 choose N that works for in the sense of Definition 2.16. This same N
works in the definition of convergence to zero. To see why, let m > N be given.
Then choose any n of the form n = 10k , with n > m. (This can certainly be done;
n = 10m is one possibility.) Then we have n > m > N , and so |xm − xn | =
|xm − 0| < , as desired.
5. (a) Any sequence of rationals tending to an irrational will do.
(b) Yes. The only Cauchy sequences of integers are eventually constant.
(c) [0, 1] is complete because if {xn } is any Cauchy sequence in [0, 1], then {xn }
tends to some limit L. Because 0 ≤ xn ≤ 1 for all n, L lies in [0, 1], too.
(0, 1] is not complete; {1/n} is a Cauchy sequence in (0, 1], but its limit,
zero, lies outside (0, 1].
7. Let > 0 be given and set = /42. Because {an } is Cauchy sequence there
is some N such that |an − am | < whenever n > N . This N works for the
sequence {xn }; details left to you.
9. Two numbers with the same first n decimal places can differ by no more than 10−n .
1 1 1 1
11. The key point is that, regardless of n, 2m+1
+ 2m+2
+ ··· + 2n
< 2m
. This fact
can be parlayed into a proof.
∞
k ∞
1
(b) diverges by comparison to the divergent series . (Con-
2k2 − 1 2k
k=1 k=1
vince yourself that the comparison works.)
∞
k ∞
2k
(c) converges by comparison to the convergent geometric series .
k=1
3k
k=1
3k
∞
k2 + 2 k2 + 2 1
(d) diverges by the nth term test: lim = = 0.
3k2 + 4 k→∞ 3k 2 + 4 3
k=1
i i
i i
i i
i i
Solutions 273
i i
i i
i i
i i
274 Solutions
∞ 2
(c) k=1 (k + k + 1)/(k3 + k2 + k + 1) diverges; one approach is limit com-
parison to ∞ 1
k=1 k .
∞
(d) k=1 (−1)k /(ln ln(k + 2)) converges by the alternating series test.
3. (a) The ratio a2k /ak = ak tends to zero (by the kth term test), and so a2k
converges.
(b) If ak = √1 ,
k
then a2k diverges. If ak = 1
k
, then a2k con-
verges.
5. If bk converges to B, then ak converges to B − K k=1 bk +
K
k=1 ak . This
is similar to a problem in the preceding section, where K = 42.
7. Note that the sum
1 1 1 1 1 n √
Sn = √ + √ + · · · + √ > √ + · · · + √ = √ = n.
1 2 n n n n
√
Since n → ∞, we must have Sn → ∞, too.
∞ k−1
9. (a) The series converges by comparison to k=1 1/2 , which converges to 2.
∞ k−1 ∞
(b) We have R10 = k=11 1/(2 + 1) < k=11 1/2k−1 = 1/29 .
(c) We have S = S10 + R10 < 1.26255 + 219 ≈ 1.26450. This means that S
lies somewhere in the interval [1.26255, 1, 26450].
11. (a) See your favorite calculus text.
(b) We need to choose n so R ! n∞< 0.001. By the given inequality, this holds if
n is !large enough so that n dx/x3 < 0.001. A calculus calculation shows
∞
that n dx/x3 = 1/2n2 , and the last quantity is less than 0.001 if n ≥ 23.
This means that S23 ≈ 1.2012 is within 0.001 of the true answer.
i i
i i
i i
i i
Solutions 275
(f) We have limx→a f (x) = limx→a |x| = |a| = f (a) for all a.
(g) Theorem 3.3, Page 138, assures that limx→a f (x) = limx→a (1+πx+ex2 +
πex3 ) = 1 + πa + ea2 + πea3 = f (a), so the condition holds for all a.
5. Suppose that limx→a f (x) = L, that xn → a, and that xn = a for all n. To see
that f (xn ) → L, let > 0 be given. Because limx→a f (x) = L, we can choose
δ > 0 so that |f (x) − L| < whenever 0 < |x − L| < δ. Because xn → a and
δ > 0, we can choose N so that |xn − a| < δ whenever n > N .
This N works to show f (xn ) → L, since if n > N , then we have |xn − a| < δ,
and so so |f (xn ) − L| < , as desired.
7. (a) We say limx→−∞ f (x) = L if for all > 0 there exists M < 0 such that
|f (x) − L| < whenever x < M .
(b) We say limx→0− g(x) = L if for all > 0 there exists δ > 0 such that
|g(x) − L| < whenever −δ < x < 0.
(c) Following is the idea of a proof that limx→−∞ f (x) = L implies that
limx→0− f (1/x) = L. The converse is proved similarly.
Let > 0 be given. We want to show that |f (1/x) − L| < for x in some
interval (δ, 0). By hypothesis, there is some M < 0 so that |f (t) − L| <
when t < M . Writing t = 1/x, this means that |f (1/x) − L| < when
1/x < M < 0, or, equivalently, when 0 > x > 1/M . (The inequality
algebra is a bit tricky because both M and x are negative.) This implies that
we can take −δ = 1/M , or, equivalently, δ = −1/M .
8. (c) To show that the squeezing inequality holds for all x > 0, use the “conjugate
trick”:
( 1 + 2/x − 1)( 1 + 2/x + 1)
1 + 2/x − 1 =
1 + 2/x + 1
2/x 2
= < .
1 + 2/x + 1 x
i i
i i
i i
i i
276 Solutions
i i
i i
i i
i i
Solutions 277
i i
i i
i i
i i
278 Solutions
(c) Values of δ that work for at c = 1, c = 10, c = 100, and c = 1000 are
δ ≈ 0.414, δ ≈ 0.05, δ ≈ 0.005, and δ ≈ 0.0005, respectively. The fact that
these δ’s decrease to zero means they can’t be chosen “uniformly” in R.
(d) The value δ = 0.1 works for g(x) = 10x + 3 and = 1 at all values of c.
(e) The value δ = 0.0005 works for = 1 on the entire interval [1, 1000].
(It doesn’t work on a larger interval.)
3. (a) Note that if a and b are in [−3, 42), then a2 + ab + b2 ≤ 3 · 422 = 5292.
The hint implies, therefore, that |f (s) − f (t)| = s3 − t3 = 5292 |s − t|.
This implies that, for any > 0, the value δ = /5292 works in the definition
of uniform convergence on [−3, 42).
(b) The function f (x) = x3 is continuous on the closed and bounded interval
[−3, 42], and is therefore also uniformly continuous on the same interval, by
Theorem 3.22. Since [−3, 42) ⊂ [−3, 42], f is also uniformly continuous on
the smaller interval.
5. (a) Mimic Example 1.
(b) For x, y ∈ [1, ∞), we have
√ √ x−y
|f (x) − f (y)| = x− y = √ √ ≤ |x − y| .
x+ y
This implies that, for any given > 0, the value δ = works.
(c) The sequence π1 , 2π
1 1
, 3π 1
, 4π , . . . is Cauchy, but applying the function h gives
the sequence 1, −1, 1, −1, . . . , which is not Cauchy.
(d) If we set k(0) = 0, then k becomes continuous on the closed interval [0, 1],
and so Theorem 3.22 applies.
7. (a) For given > 0, choose δ1 and δ2 such that, for x, y ∈ I,
|x − y| < δ1 =⇒ |f (x) − f (y)| < ;
2
|x − y| < δ2 =⇒ |g(x) − g(y)| < .
2
Then δ = min(δ1 , δ2 ) works for f + g, because if x, y ∈ I and |x − y| < δ,
then
|[f (x) + g(x)] − [f (y) + g(y)]| ≤ |f (x) − f (y)| + |g(x) − g(y)|
< + = .
2 2
i i
i i
i i
i i
Solutions 279
as desired.
9. The limit-of-difference-quotient calculation for g (2) is like that for f , but for a
factor of 4.
i i
i i
i i
i i
280 Solutions
10. The difference quotient calculation for g (−2) boils down to the same thing as the
difference quotient calculation for f (2), so both derivatives have the same value.
This makes sense geometrically, as the graph of g is obtained from the graph of f
by translating four units left and raising five units up.
11. (a) The easy one-sided limits limx→1− f (x) = 1 = limx→1+ f (x) imply
limx→1 f (x) = 1 = f (1), and so f is continuous at x = 1. The limit
that defines f (1) does not exist because the corresponding one-sided limits
are unequal:
h(x)
h (0) = lim = lim g(x) = 0,
x→0 x x→0
(d) Using first the chain rule and then the product rule gives ( f ◦ (gh) ) (a) =
f (gh(a)) · (gh) (a) = f (gh(a)) · ( gh (a) + g h(a) ), or, alternatively,
f (g(a)h(a)) · g(a)h (a) + f (g(a)h(a)) · g (a)h(a). Leaving out the ar-
guments give a more cryptic form: ( f ◦ (gh) ) = f ◦ (gh) · gh + ( f ◦
(gh) ) · g h.
i i
i i
i i
i i
Solutions 281
i i
i i
i i
i i
282 Solutions
i i
i i
i i
i i
Solutions 283
19. Suppose f (b) ≥ b for some b > 0. Then the MVT implies that
f (b) − f (0) f (b)
f (c) = = ≥1
b−0 b
for some c between 0 and b; this contradicts our assumption.
21. (a) Let > 0 be given; set δ = . If s and t are in D and |s − t| < δ, then
|f (s) − f (t)| ≤ |s − t| < δ = . Thus f is uniformly continuous on D.
(b) Let x and y be any numbers. By the MVT, we have (it’s OK to take absolute
values) |f (x) − f (y)| = |f (c)| |x − y| ≤ |x − y|.
(c) The function f (x) = sin x is a contraction, since |f (x)| = |cos x| ≤ 1. The
function g(x) is not a contraction. One reason is that g(1) − g(0) = e − 1 ≈
1.72 > 1 − 0.
i i
i i
i i
i i
284 Solutions
2x 1
fn (x) = (x + 1/n)2 = x2 + + 2.
n n
In this case fn → f pointwise, but not uniformly.
9. Let > 0 be given. Since h is uniformly continuous on R, we can choose δ > 0
such that |h(s) − h(t)| < whenever |s − t| < δ. Because fn → f uniformly on
I, we can choose N such that |fn (x) − f (x)| < δ holds for all x ∈ I whenever
n > N . By our choice of δ, this guarantees that |h (fn (x)) − h (f (x))| < for all
x ∈ I, as desired.
11. The result is just a restatement of the analogous fact for Cauchy sequences of num-
bers.
i i
i i
i i
i i
Solutions 285
7. Notice first that the inequality 0 ≤ f (x) ≤ g(x) implies that 0 ≤ RS(f, P, S) ≤
RS(g, P, S) holds for all suitable partitions P and sample sets S. To show f is
integrable on [a, b], let > 0 be given. Since g is integrable, there is some δ > 0
that works for g (and the value I = 0) in Definition 5.1. The preceding inequality
shows that the same δ > 0 works for f .
9. Let > 0 be given. Since I1 satisfies the definition, we can choose δ1 > 0 that
works for I1 and . Similarly, since I2 satisfies the definition, we can choose δ2 > 0
that works for I2 and . Let δ be the smaller of δ1 and δ2 , and calculate any Riemann
sum RS(f, P, S) for P < δ. Then both I1 and I2 are within of RS(f, P, S),
and so within 2 of each other. Since this holds for all positive , we must have
I1 = I2 .
11. (a) The condition holds by uniform continuity of f on [a, b].
(b) Note that
n
|RS(f, P, S) − RS(f, P, T )| = (f (si ) − f (ti )) Δxi
i=1
n
≤ |f (si ) − f (ti )| Δxi
i=1
n
< Δxi = (b − a).
i=1
12. (a) Look at individual summands of RS(f, P, M). For each i, we have
xi − xi−1 x2 − x2i−1
f (mi )Δxi = (xi − xi−1 ) = i .
2 2
Adding these up gives a telescoping sum, with value (x2n − x20 )/2 = 1/2.
13. All the calculations work the same as in Problem 12, except that we need δ =
/(b − a).
i i
i i
i i
i i
286 Solutions
(b) Part (a) implies that f (c) ≤ 0 must hold for some c ∈ [a, b]. For similar
reasons, f (d) ≥ 0 must hold for some d ∈ [a, b]. If either f (c) = 0 or
f (d) = 0, we’re done; otherwise, the intermediate value theorem says that
f (e) = 0 for some e between c and d.
!1
(c) Let f (x) = 1 for x ≥ 0 and f (x) = 1 for x < 0. Then −1 f = 0, but
f (c) = 0 for all c.
!b !b !b
7. The claim amounts to saying that − a |f | ≤ a f ≤ a |f |. This follows from
Corollary 5.6, and from the fact that − |f (x)| ≤ f (x) ≤ |f (x)| for all x ∈ [a, b].
9. (a) The function f is integrable on every interval [a, b] because it is built up from
integrable functions as allowed by Theorem 5.8, page 232.
!1
(b) A look at the graph shows −1 f = −1.
!n
(c) A look at the graph shows −n f = −n.
11. All parts are basic elementary calculus calculations.
13. Suppose f (x) ≤ g(x) holds except at some finite list x1 , x2 , . . . xn of points in
[a, b]. If we redefine f at these points (we could set f (xi ) = g(xi ), for instance,
without changing the integral) then f (x) ≤ g(x) holds throughout [a, b], and so
Corollary 5.6 gives the desired result.
5.3 Integrability
1. All of the concocted functions are continuous.
3. Here is one possibility: Set h = /100 and use P = {0, h, 1 − h, 1 + h, . . . ,
10 − h, 10}.
!2
7. Given any box sum for 0 f with value less than , add (if necessary) one more
point at x != 1 to get another box sum with value less than . This same box sum
1
works for 0 f ; just ignore boxes to the right of x = 1.
10. Given > 0, choose an integer N > 0 so that 1/N < . Suppose n > m > N .
Then In and Im are Riemann sums for partitions Pn and Pm such that Pn <
δn and Pm < δm . Because we chose the δk to be decreasing, we have both
δn ≤ δN and δm ≤ δN . Thus both Pn and Pm have norm less than δN , and so
|In − Im | < 1/N < , as desired.
11. Let mi and Mi be the inf and sup of f on [xi−1 , xi ]. For each i, it is clear that
mi ≤ f (si ) ≤ Mi , and hence that mi Δxi ≤ f (si )Δxi ≤ Mi Δxi . Summing
over i gives the desired result.
13. The function fbig is constant on each partition subinterval, and is therefore integrable
!b
on [a, b] by Theorem 5.8, page 232. By construction, moreover, the integral a fbig
has the same value as the upper sum US (f, P).
It is also clear that fbig (x) ≥ f (x) for all x ∈ [a, b], and so (by Corollary 5.6,
page 228) we have
b b
US (f, P) = fbig ≥ f = I,
a a
i i
i i
i i
i i
Solutions 287
i i
i i