Analysis PDF
Analysis PDF
tion to Analysis
Irena Swanson
Reed College
Fall 2019
Table of contents
Preface 7
The briefest overview, motivation, notation 9
Chapter 1: How we will do mathematics 13
Section 1.1: Statements and proof methods 13
Section 1.2: Statements with quantifiers 25
Section 1.3: More proof methods, and negation 29
Section 1.4: Summation 34
Section 1.5: Proofs by (mathematical) induction 37
Section 1.6: Pascal’s triangle 45
Chapter 2: Concepts with which we will do mathematics 48
Section 2.1: Sets 48
Section 2.2: Cartesian product 57
Section 2.3: Relations, equivalence relations 58
Section 2.4: Functions 64
Section 2.5: Binary operations 73
Section 2.6: Fields 79
Section 2.7: Order on sets, ordered fields 82
Section 2.8: What are the integers? 88
Section 2.9: Increasing and decreasing functions 91
Section 2.10: The Least upper bound property of R 93
Section 2.11: Absolute values 97
Chapter 3: The field of complex numbers, and topology 100
Section 3.1: Complex numbers 100
Section 3.2: Functions related to complex numbers 103
Section 3.3: Absolute value in C 105
Section 3.4: Polar coordinates 108
Section 3.5: Topology on the fields of real and complex numbers 113
4
These notes were written expressly for Mathematics 112 at Reed College, with first
usage in the spring of 2013. The title of the course is “Introduction to Analysis”. The
prerequisite is calculus. Recently used textbooks have been Steven R. Lay’s “Analysis,
With an Introduction to Proof ” (Prentice Hall, Inc., Englewood Cliffs, NJ, 1986, 4th
edition), and Ray Mayer’s in-house notes “Introduction to Analysis” (2006, available at
http://www.reed.edu/~mayer/math112.html/index.html).
In Math 112, students learn to write proofs while at the same time learning about bi-
nary operations, orders, fields, ordered fields, complete fields, complex numbers, sequences,
and series. We also review limits, continuity, differentiation, and integration. My aim for
these notes is to constitute a self-contained book that covers the standard topics of a course
in introductory analysis, that handles complex-valued functions, sequences, and series, that
has enough examples and exercises, that is rigorous, and is accessible to Reed College un-
dergraduates. I currently maintain two versions of these notes, one in which the natural,
rational and real numbers are constructed and the Least upper bound theorem is proved
for the ordered field of real numbers, and one version in which the Least upper bound
property is assumed for the ordered field of real numbers. You are currently reading the
shorter, latter version. See my Math 112 webpage www.reed.edu/~iswanson/112.html
for links to both versions.
Chapter 1 is about how we do mathematics: basic logic, proof methods, and Pascal’s
triangle for practicing proofs. Chapter 2 introduces foundational concepts: sets, Carte-
sian products, relations, functions, binary operations, fields, ordered fields, Archimedean
property for the set of real numbers. In particular, we assume that the set of familiar
real numbers forms an ordered field with the Least upper bound property. In Chapter 3
we construct the very useful field of complex numbers, and introduce topology which is
indispensable for the rigorous treatment of limits. I cover topology more lightly than what
is in the written notes. Subsequent chapters cover standard material for introduction to
analysis: limits, continuity, differentiation, integration, sequences, series, ending with the
P ∞ xk
development of the power series k=0 k! , the exponential and the trigonometric func-
tions. Since students have seen limits, continuity, differentiation and integration before, I
go through chapters 4 through 7 quickly. I slow down for sequences and series (chapters 8
and 9).
An effort is made throughout to use only what had been proved. When trigonometric
functions appear in earlier exercises they are accompanied with a careful listing of the
needed assumptions about them. For this reason, the chapters on differentiation and
integration do not have the usual palette of examples of other books. The final sections of
the last chapter make up for it and work out much trigonometry in great detail and depth.
8 Preface
I acknowledge and thank the support from the Dean of Faculty of Reed College
to fund exercise and proofreading support in the summer of 2012 for Maddie Brandt,
Munyo Frey-Edwards, and Kelsey Houston-Edwards. I also thank the following people
for their valuable feedback: Mark Angeles, Josie Baker, Marcus Bamberger, Anji Bodony,
Zachary Campbell, Nick Chaiyachakorn, Safia Chettih, Laura Dallago, Andrew Erlanger,
Joel Franklin, Rohr Hautala, Palak Jain, Ya Jiang, Albyn Jones, Mason Kennedy, Christo-
pher Keane, Michael Keppler, Ryan Kobler, Oleks Lushchyk, Molly Maguire, Benjamin
Morrison, Samuel Olson, Kyle Ormsby, Angélica Osorno, Shannon Pearson, David Perkin-
son, Jeremy Rachels, Ezra Schwartz, Marika Swanberg, Simon Swanson, Matyas Szabo,
Ruth Valsquier, Xingyi Wang, Emerson Webb, Livia Xu, Qiaoyu Yang, Dean Young, Eric
Zhang, and Jialun Zhao. If you have further comments or corrections, please send them to
[email protected].
The briefest overview, motivation, notation
* This statement can also be written in plain English as “One equals two.” In mathematics it is acceptable
to use symbolic notation to some extent, but keep in mind that too many symbols can make a sentence hard to
read. In general we avoid starting sentences with a symbol. In particular, do not make the following sentence.
“=” is a verb. Instead make a sentence such as the following one. Note that “=” is a verb.
14 Chapter 1: How we will do mathematics
get the cookie. On the other hand, if “Hello” were to be true or false, I would not be able
to make any further deductions about the world or my next action, so that “Hello” is not
a statement, but only a sentence.
A useful tool for manipulating statements is a truth table: it is a table in which the
first few columns may set up a situation, and the subsequent columns record truth values of
statements applying in those particular situations. Here are two examples of truth tables,
where “T ” of course stands for “true” and “F ” for “false”:
x y xy > 0 xy ≤ 0 xy < 0
x>0 y >0 T F F
x>0 y ≤0 F T F
x<0 y >0 F T T
x<0 y ≤0 F F F
Note that in the second row of the last table, in the exceptional case y = 0, the
statement xy < 0 is false, but in “the majority” of the cases in that row xy < 0 is true.
The one counterexample is enough to declare xy < 0 not true, i.e., false.
Statements can be manipulated just like numbers and variables can be manipulated,
and rather than adding or multiplying statements, we connect them (by compounding the
sentences in grammatical ways) with connectors such as “not”, “and”, “or”, and so on.
Statement connecting:
(1) Negation of a statement P is a statement whose truth values are exactly opposite
from the truth values of P (under any specific circumstance). The negation of P
is denoted “ not P ” (or sometimes “~P ” or “not P ”).
Some simple examples: the negation of “A = B” is “A 6= B”; the negation
of “A ≤ B” is “A > B”; the negation of “I am here” is “I am not here” or
“It is not the case that I am here”.
Now go back to the last truth table. Note that in the last line, the truth
values of “xy > 0” and “xy ≤ 0” are both false. But one should think that
“xy > 0” and “xy ≤ 0” are negations of each other! So what is going on,
why are the two truth values not opposites of each other? The problem is of
course that the circumstances x < 0 and y ≤ 0 are not specific enough. The
Section 1.1: Statements and proof methods 15
P Q P and Q
T T T
T F F
F T F
F F F
P Q P or Q P xor Q
T T T F
T F T T
F T T T
F F F F
16 Chapter 1: How we will do mathematics
P implies Q.
If P then Q.
P is a sufficient condition for Q.
P only if Q.
Q if P .
Q provided P .
Q given P .
Q whenever P .
Q is a necessary condition for P .
Section 1.1: Statements and proof methods 17
P Q P ⇒Q Q⇒P P ⇔Q
T T T T T
T F F x F
F T x F F
F F y y T
Since the last column above is the conjunction of the previous two, the last line
forces the value of y to be T . If x equals F , then the truth values of P ⇒ Q are the
same as the truth values of P ⇔ Q, which would say that the statements P ⇒ Q
and P ⇔ Q are logically the same. But this cannot be: “If r > 0 then r ≥ 0” is
true whereas “If r ≥ 0 then r > 0” is false. So this may convince you that the
18 Chapter 1: How we will do mathematics
truth values for the third and the fifth column have to be distinct, and this is only
possible if x is T .
One can form more elaborate truth tables if we start not with two statements P
and Q but with three or more. Examples of logically compounding P, Q, and R
are: P and Q and R, (P and Q) ⇒ Q, et cetera. For manipulating three statements,
we would fill a total of 8 rows of truth values, for four statements there would be
16 rows, and so on.
(6) Proof of P is a series of steps (in statement form) that establish beyond doubt that
P is true under all circumstances, weather conditions, political regimes, time of
day... The logical reasoning that goes into mathematical proofs is called deductive
reasoning. Whereas both guessing and intuition can help you find the next step
in your mathematical proof, only the logical parts are trusted and get written
down. Proofs are a mathematician’s most important tool; the book contains many
examples, and the next few pages give some examples and ideas of what proofs
are.
Ends of proofs are usually marked by , , //, or QED (for “quod erat demon-
strandum”, which is Latin for “that which was to be proved”). It is a good idea to
mark the completions of proofs especially when they are long or with many parts
and steps — that helps the readers know that nothing else is to be added.
The most trivial proofs simply invoke a definition or axiom, such as “An even
integer is of the form 2 times an integer,” “An odd integer is of the form 1 plus 2
times an integer,” or, “A positive integer is prime if whenever it can be written
as a product of two positive integers, one of the two factors is 1.”
Another type of proof consists of filling in a truth table. For example, P or ( not P )
is always true, no matter what the truth value of P is, and this can be easily verified
with the truth table:
P not P P or not P
T F T
F T T
Section 1.1: Statements and proof methods 19
This particular tautology is called modus ponens, and its most famous example
is the following:
Every man is mortal. (If X is a man/human, then X is mortal.)
Socrates is human.
Therefore, Socrates is mortal.
Here is a more mathematical example of modus ponens:
Every differentiable function is continuous.
f is differentiable.
Therefore, f is continuous.
Another tautology is modus tollens: ((P ⇒ Q) and ( not Q)) ⇒ ( not P ). To
prove it, one constructs a truth table as before for modus ponens. — It is a
common proof technique to invoke the similarity principle with previous work
that allows one to not carry out all the steps, as I just did. However, whenever
you invoke the proof-similarity principle, you better be convinced in your mind
that the similar proof will indeed do the job; if you have any doubts, show all work
instead! In this case, I am sure that the truth table does the job, but if you are
seeing this for the first time, you may want to do the actual truth table explicitly
to get a better grasp on these concepts.
Here is a mathematical example of modus tollens:
Every differentiable function is continuous.
f is not continuous.
Therefore, f is not differentiable.
Here is another example on more familiar ground:
If you are in Oregon, then you are in the USA.
You are not in the USA.
Therefore, you are not in Oregon.
Some proofs can be pictorial/graphical. Here we prove with this method that for
any real numbers x and y, |x| < y if and only if −y < x < y. (We will see many
20 Chapter 1: How we will do mathematics
−y 0 y
Now, by drawing, the real numbers x with |x| < y are precisely those real num-
bers x with −y < x < y. A fancier way of saying this is that |x| < y if and only if
−y < x < y.
Similarly, for all real numbers x and y, |x| ≤ y if and only if −y ≤ x ≤ y. (Here,
the word “similarly” is a clue that I am invoking the proof-similarity principle,
and a reader who wants to practice proofs or is not convinced should at this point
work through a proof by mimicking the steps in the previous one.)
Some (or actually most) proofs invoke previous results without re-doing the previ-
ous work. In this way we prove the triangle inequality, which asserts that for all
real numbers x and y, |x ± y| ≤ |x| + |y|. (By the way, we will use the triangle in-
equality intensely, so understand it well.) Proof: Note that always −|x| ≤ x ≤ |x|,
−|y| ≤ ±y ≤ |y|. Since the sum of smaller numbers is always less than or equal to
the sum of larger numbers, we then get that −|x| − |y| ≤ x ± y ≤ |x| + |y|. But
−|x| − |y| = −(|x| + |y|), so that −(|x| + |y|) ≤ x ± y ≤ |x| + |y|. But then by the
previous result, |x ± y| ≤ |x| + |y|.
Here is another pictorial proof, this one establishing the basis of trigonometry and
the definition of slope as rise over run: with the picture below, B A
= ab .
B
b
a
| {z }
A
Proof: The areas of the big and small triangles are 12 AB and 21 ab, and the area of
the difference is base times the average height, i.e., it is (A − a) b+B
2 . Thus
1 1 b+B
AB = ab + (A − a) .
2 2 2
By multiplying through by 2 we get that AB = ab + (A − a)(b + B) = ab + Ab +
AB − ab − aB, so that, after cancellations, Ab = aB. Then, after dividing through
by aA we get B
A = a.
b
the assumption that d was the greatest common divisor of a and b. Thus it
√
is not the case that 2 is rational, so it must be irrational.
1.1.9. Assume that (P and Q) ⇒ R is false. Determine with proof the truth values of
P, Q, R, or explain if there is not enough information.
1.1.10. Suppose that x is any real number such that |x+2| < 3. Prove that |x3 −3x| < 200.
1.1.11. Suppose that x is any real number such that |x−1| < 5. Find with proof a positive
constant B such that for all such x, |3x4 − x| < B.
1.1.12. (The quadratic formula) Let a, b, c be real numbers with a non-zero. Prove
(with algebra) that all solutions x of the quadratic equation ax2 + bx + c = 0 are of the
form
√
−b ± b2 − 4ac
x= .
2a
1.1.13. (Cf. Exercise 9.9.3.) Draw a unit circle and a line segment from the center to the
circle. Any real number x uniquely determines a point P on the circle at angle x radians
from the line. Draw the line from that point that is perpendicular to the first line. The
length of this perpendicular line is called sin(x), and the distance from the intersection of
the two perpendicular lines to the center of the circle is called cos(x). This is our definition
of cos and sin.
i) Consider the following picture inside the circle of radius 1:
y x
*1.1.15. (Logic circuits) Logic circuits are simple circuits which take as inputs logical
values of true and false (or 1 and 0) and give a single output. Logic circuits are composed
of logic gates. Each logic gate stands for a logical connective you are familiar with– it could
be and, or, or not (more complex logic circuits incorporate more). The shapes for logical
and, or, not are as follows:
Given inputs, each of these logic gates outputs values equal to the values in the associated
truth table. For instance, an “and” gate only outputs “on” if both of the wires leading
into it are “on”. From these three logic gates we can build many others. For example, the
following circuit is equivalent to xor.
input
output
input
Make logic circuits that complete the following tasks. (It may be helpful to make logic
tables for each one.)
i) xor in a different way than the circuit above.
ii) “P implies Q” implication.
iii) xor for three inputs.
iv) Is a 3-digit binary number greater than 2?
v) Is a 4-digit binary string a palindrome?
1.1.16. Assuming that the area of the circle of radius r is πr 2 , convince yourself with
proportionality argument that the area of the region below, where x is measured in radians,
is 21 xr 2 .
r
x
Section 1.2: Statements with quantifiers 25
†1.1.17. (Invoked in Theorem 9.9.4.) Let x be a small positive real number. Consider the
following picture with a circular segment of radius 1 and two right triangles:
i) Assert that the area of the small triangle is strictly smaller than the area of the
wedge, which in turn is strictly smaller than the area of the big triangle.
ii) Using the previous part and ratio geometry (from page 21), prove that
1
2
sin(x) cos(x) < 12 x < 12 tan x.
iii) Using the previous part, prove that 0 < cos(x) < sinx x < cos1 x .
1.1.18. (Odd-even integers)
i) Prove that the sum of two odd integers is an even integer.
ii) Prove that the product of two integers is odd if and only if the two integers are
both odd.
iii) Suppose that the product of two integers is odd. Prove that the sum of those
two integers is even.
iv) Suppose that the sum of the squares of two integers is odd. Prove that one of
the two integers is even and the other is odd.
v) Prove that the product of two consecutive integers is even. Prove that the
product of three consecutive integers is an integer multiple of 6.
vi) Prove that the sum of two consecutive integers is odd. Prove that the sum of
three consecutive integers is an integer multiple of 3.
√
1.1.19. Prove that 3 is not a rational number.
“The number x equals 1” is true for some x and false for some x. Thus “x = 1”
is not true or false universally. For determining a statement’s veracity we possibly need a
further qualification. We can use the universal quantifier “for all”, “for every”, or the
existential quantifier “there exists”, “for some”. Our example above could be modified
to one of the following:
(1) “There exists a real number x such that x = 1.”
(2) “For all real numbers x, x = 1,” which is logically the same as “For every real
number x, x = 1,” and even the same as “Every real number equals 1.”
Certainly the first statement is true and the second is false.
26 Chapter 1: How we will do mathematics
For shorthand we abbreviate “for all” with the symbol ∀, and “there exists” with
the symbol ∃. These abbreviations come in handy when we manipulate logical statements
further. The general forms of abbreviated statements with quantifiers are:
“ ∀x with a certain specification, P (x) holds” = “ ∀x P (x)”
“ ∃x with a certain specification, P (x) holds” = “ ∃x P (x)”
where P is some property that can be applied to objects x in question. The forms on the
left have an explicit specifications on the scope of the x, and in the forms on the right the
scope of the x is implicit.
Warning: For ease of readability it may be better to write out full words rather than
symbolic abbreviations.
We read the displayed statements above as “for all x, P of x [holds/is true]” and
“there exists x such that P of x [holds/is true]”, respectively. The part “such that” only
appears with the existential quantifier as a grammar filler but without any logical meaning;
it can be replaced with “for which”, and can sometimes be shortened further. For example:
“There exists a function f such that for all real numbers x, f (x) = f (−x)” can be rewritten
with equal meaning as “There exists a function f that is defined for all real numbers and
is even,” or even shorter as “There exists an even function.” (No “such that” appears in
the last two versions.)
Read the following symbolic statement (it defines the limit of the function f at a to
be L; see Definition 4.1.1):
∀ǫ > 0 ∃δ > 0 ∀x, 0 < |x − a| < δ ⇒ |f (x) − L| < ǫ.
When are the truth values and the negations of statements with quantifiers? We first
write a truth table with all the possible situations with regards to P in the first column,
and other columns give the truth values of the quantifier statements:
a possible situation ∀x P (x) ∀x not P (x) ∃x not P (x) ∃xP (x)
there are no x of specified type T vacuously T vacuously F F
A “for all” statement is true precisely when without exception all x with the given
description have the property P , and a “there exists” statement is true precisely when at
least one x with the given description satisfies property P . One proves a “for all” statement
by determining that each x with the given description has the property P , and one proves a
“there exists” statement by producing one specimen x with the given description and then
proving that that specimen has property P . If there are no x with the given specification,
then any property holds for those no-things x vacuously. For example, any positive real
number that is strictly smaller than −1 is also zero, equal to 15, greater than 20, product
of distinct prime integers, and any other fine property you can think of.
Notice that among the columns with truth values, one and three have opposite values,
and two and four have opposite values. This proves the following:
Theorem 1.2.1. The negation of “ ∀x P (x)” is “ ∃x not P (x)”. The negation of “ ∃x P (x)”
is “ ∀x not P (x).”
Thus “ ∀x P (x)” is false if there is even one tiny tiniest example to the contrary.
“Every prime number is odd” is false because 2 is an even prime number. “Every whole
number divisible by 3 is divisible by 2” is false because 3 is divisible by 3 and is not divisible
by 2.
Remark 1.2.2. The statement “For all whole numbers x between 1/3 and 2/3, x2 is
irrational” is true vacuously. Another reason why “For all whole numbers x between 1/3
and 2/3, x2 is irrational” is true is that its negation, “There exists a whole number x
between 1/3 and 2/3 for which x2 is rational”, is false because there is no whole number
between 1/3 and 2/3: since the negation is false, we get yet more motivation to declare the
original statement true.
1.2.2. Determine the truth value of the following statements, and justify your answers:
i) For all real numbers a, b, (a + b)2 = a2 + b2 .
ii) For all real numbers a, b, (a + b)2 = a2 + 2ab + b2 .
iii) For all real numbers x < 5, x2 > 16.
iv) There exists a real number x < 5 such that x2 < 25.
v) There exists a real number x such that x2 = −4.
vi) There exists a real number x such that x3 = −8.
vii) For every real number x there exists a positive integer n such that xn > 0.
viii) For every real number x and every integer n, |x| < xn .
ix) For every integer m there exists an integer n such that m + n is even.
x) There exists an integer m such that for all integers n, m + n is even.
xi) For every integer n, n2 − n is even.
xii) Every list of 5 consecutive integers has one element that is a multiple of 5.
xiii) Every odd number is a multiple of 3.
1.2.3. Explain why the following statements have the same truth values:
i) There exists x such that there exists y such that P holds for the pair (x, y).
ii) There exists y such that there exists x such that P holds for the pair (x, y).
iii) There exists a pair (x, y) such that P holds for the pair (x, y).
1.2.4. Explain why the following statements have the same truth values:
i) ∀x > 0 ∀y > 0, xy > 0.
ii) ∀y > 0 ∀x > 0, xy > 0.
iii) ∀(x, y), x, y > 0 implies xy > 0.
1.2.5. (Contrast with the switching of quantifiers in the previous two exercises.) Explain
why the following two statements do not have the same truth values:
i) For every x > 0 there exists y > 0 such that xy = 1.
ii) There exists y > 0 such that for every x > 0, xy = 1.
1.2.6. Rewrite the following statements using quantifiers:
i) 7 is prime.
ii) There are infinitely many prime numbers.
iii) Everybody loves Raymond.
iv) Spring break is always in March.
1.2.7. Let “xLy” represent the statement that x loves y. Rewrite the following statements
symbolically: “Everybody loves somebody,” “Somebody loves everybody,” “Somebody is
loved by everybody,” “Everybody is loved by somebody.” At least one statement should
be of the form “∀x ∃y, xLy”. Compare its truth value with that of “∃x ∀y, xLy”.
Section 1.3: More proof methods, and negation 29
1.2.8. Find a property P of real numbers x, y, z such that “∀y ∃x ∀z, P (x, y, z)” and
“∀z ∃x ∀y, P (x, y, z)” have different truth values.
1.2.9. Suppose that it is true that there exists x of some kind with property P . Can we
conclude that all x of that kind have property P ? (A mathematician and a few other jokers
are on a train and see a cow through the window. One of them generalizes: “All cows in
this state are brown,” but the mathematician corrects: “This state has one cow whose one
side is brown.”)
When statements are compound, they can be harder to prove. Fortunately, proofs
can be broken down into simpler statements. An essential chart of this breaking down is
in the chart on the next page.
Example 1.3.1. Prove that 2 and 3 are prime integers. (Prove that 2 is a prime integer
and that 3 is a prime integer.)
Proof. Let m and n be whole numbers strictly greater than 1. If m · n = 2, then 1 <
m, n ≤ 2, so m = n = 2, but 2 · 2 is not equal to 2. Thus 2 cannot be written as a product
of two positive numbers different from 1, so 2 is a prime number. If instead m · n = 3, then
1 < m, n ≤ 3. Then all combinations of products are 2 · 2, 2 · 3, 3 · 2, 3 · 3, none of which
is 3. Thus 3 is a prime number.
Example 1.3.2. Prove that a positive prime number is either odd or it equals 2. (One
may think of −2 as a prime number as well, that is why “positive” appears. But often the
term “prime” implicitly assumes positivity.)
Proof. Let p be a positive prime number. Suppose that p is not odd. Then p must be even.
Thus p = 2 · q for some positive whole number q. Since p is a prime, it follows that q = 1,
so that p = 2.
P ⇔ Q. Prove P ⇒ Q. Prove Q ⇒ P .
For all x of a specified type, prop- Let x be arbitrary of the specified type. Prove
erty P holds for x. that property P holds for x.
(Possibly break up into a few subcases.)
Example 1.3.5. Prove that there exists a real number x such that x3 − 3x = 2.
Proof. Observe that 2 is a real number and that 23 − 3 · 2 = 2. Thus x = 2 satisfies the
conditions.
Section 1.3: More proof methods, and negation 31
Example 1.3.6. Prove that there exists a real number x such that x3 − x = 1.
Example 1.3.7. (Mixture of methods) For every real number x strictly between 0 and 1
there exists a positive real number y such that x1 + y1 = xy
1
.
Proof. [We have to prove that for all x as specified some property holds.]
Let x be in (0, 1). [For this x we have to find y ...] Set y = 1 − x. [Was this
a lucky find? No matter how we got inspired to determine this y, we now
verify that the stated properties hold for x and y.] Since x is strictly smaller
than 1, it follows that y is positive. Thus also xy is positive, and y + x = 1. After dividing
the last equation by the positive number xy we get that x1 + y1 = xy 1
.
Furthermore, y in the previous example is unique: it has no choice but to be 1 − x.
Proof. (This proof is harder than most proofs in this book; you may want to skip it.)
Suppose for contradiction that the conclusion fails for some positive integer n. Then on
the list 2, 3, 4, . . . , n let m be the smallest integer for which the conclusion fails. If m is
a prime, take k = 1 and p1 = m, a1 = 1, and so the conclusion does not fail. Thus m
cannot be a prime number, and so m = m1 m2 for some positive integers m1 , m2 strictly
bigger than 1. Necessarily 2 ≤ m1 , m2 < m. By the choice of m, the conclusion is true
for m1 and m2 . Write m1 = pa1 1 pa2 2 · · · pakk and m2 = q1b1 q2b2 · · · qlbl for some positive prime
integers p1 < · · · < pk , q1 < · · · < qk and some positive integers a1 , . . . , ak , b1 , . . . , bl . Thus
m = pa1 1 pa2 2 · · · pakk q1b1 q2b2 · · · qlbl is a product of positive prime numbers, and after sorting
and merging the pi and qj , the conclusion follows also for m. But we assumed that the
conclusion fails for m, which yields the desired contradiction. Hence the conclusion does
not fail for any positive integer.
* Recall that this font in brackets and in red color indicates the reasoning that should go on in the
background in your head; these statements are not part of a proof.
32 Chapter 1: How we will do mathematics
Example 1.3.9. Any positive rational number can be written in the form ab , where a
and b are positive whole numbers, and in any prime factorizations of a and b as in the
previous example, the prime factors for a are distinct from the prime factors for b.
Proof. [We have to prove that for all ...] Let x be a(n arbitrary) positive rational
number. [We rewrite the meaning of the assumption next in a more concrete
and usable form.] Thus x = ab for some whole numbers a, b. If a is negative, since x
is positive necessarily b has to be negative. But then −a, −b are positive numbers, and
x = −a
−b . Thus by possibly replacing a, b with −a, −b we may assume that a, b are positive.
[A rewriting trick.] There may be many different pairs of a, b, and we choose a pair for
which a is the smallest of all possibilities. [A choosing trick. But does the smallest
a exist?] Such a does exist because in a collection of given positive integers there is always
a smallest one. Suppose that a and b have a (positive) prime factor p in common. Write
a = a0 p and b = b0 p for some positive whole numbers a0 , b0 . Then x = ab00 , and since
0 < a0 < a, this contradicts the choice of the pair a, b. Thus a and b could not have had a
prime factor in common.
For all x of a specified type, prop- There exists x of the specified type such that
erty P holds for x. P is false for x.
There exists x of a specified type For all x of the specified type, P is false for x.
such that property P holds for x.
Example 1.3.10. There are infinitely many (positive) prime numbers. Proof by contra-
diction: (Due to Euclid.) Suppose that there are only finitely many prime numbers. Then
we can enumerate them all: p1 , p2 , . . . , pn . Let a = (p1 p2 · · · pn ) + 1. Since we know
that 2, 3, 5 are primes, necessarily n ≥ 3 and so a > 1. By the Fundamental theorem of
arithmetic (Example 1.3.8), a has a prime factor p. Since p1 , p2 , . . . , pn are all the primes,
necessarily p = pi for some i. But then p = pi divides a and p1 p2 · · · pn , whence it divides
1 = a − (p1 p2 · · · pn ), which is a contradiction. So it is not the case that there are only
finitely many prime numbers, so there must be infinitely many.
Another proof by contradiction: (Due to R. Meštrović, American Mathematical
Monthly 124 (2017), page 562.) Suppose that there are only finitely many prime numbers.
Then we can enumerate them all: p1 = 2, p2 = 3, . . . , pn . The positive integer p2 p3 · · · pn −2
has no odd prime factors, and since it is odd, it must be equal to 1. Hence p2 p3 · · · pn = 3,
which is false since p2 = 3, p3 = 5, and so on.
1.4 Summation
There are many reasons for not writing out the sum of the first hundred numbers
in full length with 100 numbers and 99 plus signs: it would be too long, it would not
be any clearer, we would probably start doubting the intelligence of the writer, it would
waste paper and ink... The clear and short way of writing such a long sum is with the
summation sign Σ:
100
X 100
X
k or n.
k=1 n=1
The counters k and n above are dummy variables, they vary from 1 to 100. We could use any
other name in place of k or n. In general, if f is a function defined at m, m+1, m+2, . . . , n,
Section 1.4: Summation 35
This is one example where a good notation saves space (and it even sometimes clarifies
the concept). Typographically, when summation is displayed, the two bounds (m and n)
appear below and above the summation sign, but when the summation is in-line, the two
Pn
bounds appear to the right of the sign, like so: k=m f (k). (This prevents lines jamming
into each other.)
Now is a good time to discuss polynomials. A polynomial function is a function of
the form f (x) = a0 + a1 x + · · · + an xn for some non-negative integer n and some numbers
a0 , a1 , . . . , an . The largest d for which ad is non-zero is called the degree of the polynomial.
It is convenient to write this polynomial with the shorthand notation
n
X
n
f (x) = a0 + a1 x + · · · + an x = ak xk .
k=0
Here, of course, x0 stands for 1. When we evaluate f at 0, we get a0 = a0 +a1 ·0+· · ·+an ·0n
Pn
= k=0 ak 0k , and we deduce that notationally 00 stands for 1 here.
Remark 1.4.1. Warning: 00 could possibly be thought of also as lim+ 0x , which is surely
x→0
equal to 0. But then, is 00 equal to 0 or 1 or to something else entirely? Well, it turns
out that 00 is not equal to that zero limit – you surely know of other functions f for which
lim f (x) exists but the limit is not equal to f (c). (Consult also Exercise 7.6.9.)
x→c
Examples 1.4.2.
5
X
(1) 2 = 10.
k=1
X5
(2) k = 15.
k=1
X4
(3) k 2 = 12 + 22 + 32 + 42 = 30.
k=1
X12
(4) cos(kπ) = cos(10π) + cos(11π) + cos(12π) = 1 − 1 + 1 = 1.
k=10
X2
(5) (4k 3 ) = −4 + 0 + 4 + 4 · 8 = 32.
k=−1
Xn
(6) 3 = 3n.
k=1
36 Chapter 1: How we will do mathematics
P0
We can even deal with empty sums such as k=1 ak : here the index starts at k = 1
and keeps increasing and we stop at k = 0, but there are no such indices k. What could
possibly be the meaning of such an empty sum? Note that
4
X 2
X 4
X 1
X 4
X 0
X 4
X
ak = ak + ak = ak + ak = ak + ak ,
k=1 k=1 k=3 k=1 k=2 k=1 k=1
from which we deduce that this empty sum must be 0. Similarly, every empty sum equals 0.
So far we have learned a few proof methods. There is another type of proofs that
deserves special mention, and this is proof by (mathematical) induction, sometimes
referred to as the principle of mathematical induction. This method can be used when
one wants to prove that a property P holds for all integers n greater than or equal to an
integer n0 . Typically, n0 is either 0 or 1, but it can be any integer, even a negative one.
Induction is a two-step procedure:
(1) Base case: Prove that P holds for n0 .
(2) Inductive step: Let n > n0 . Assume that P holds for all integers n0 , n0 + 1, n0 +
2, . . . , n − 1. Prove that P holds for n.
Why does induction succeed in proving that P holds for all n ≥ n0 ? By the base
case we know that P holds for n0 . The inductive step then proves that P also holds for
n0 + 1. So then we know that the property holds for n0 and n0 + 1, whence the inductive
step implies that it also holds for n0 + 2. So then the property holds for n0 , n0 + 1 and
n0 + 2, whence the inductive step implies that it also holds for n0 + 3. This establishes that
the property holds for n0 , n0 + 1, n0 + 2, and n0 + 3, so that by inductive step it also holds
for n0 + 4. We keep going. For any integer n > n0 , in n − n0 step we similarly establish
that the inductive step holds for n0 , n0 + 1, n0 + 2, . . . , n0 + (n − n0 ) = n. Thus for any
integer n ≥ n0 , we eventually prove that P holds for it.
The same method can be phrased with a slightly different two-step process, with the
same result, and the same name:
(1) Base case: Prove that P holds for n0 .
(2) Inductive step: Let n > n0 . Assume that P holds for integer n − 1. Prove that
P holds for n.
Similar reasoning as in the previous case also shows that this induction principle
succeeds in proving that P holds for all n ≥ n0 .
Pn n(n+1)
Example 1.5.1. Prove the equality k=1 k = 2 for all n ≥ 1.
P1
Proof. Base case n = 1: The left side of the equation is k=1 k which equals 1. The right
side is 1(1+1)
2 which also equals 1. This verifies the base case.
Inductive step: Let n > 1 and we assume that the equality holds for n − 1. [We
want to prove the equality for n. We start with the expression on the
left (messier) side of the desired and not-yet-proved equation for n and
manipulate the expression until it resembles the desired right side.] Then
n n−1
!
X X
k= k +n
k=1 k=1
38 Chapter 1: How we will do mathematics
(n − 1)(n − 1 + 1)
= + n (by induction assumption for n − 1)
2
n2 − n 2n
= + (by algebra)
2 2
n2 + n
=
2
n(n + 1)
= ,
2
as was to be proved.
Pn
We can even prove the equality k=1 k = n(n+1) 2 for all n ≥ 0. Since we have already
P0
proved this equality for all n ≥ 1, it remains to prove it for n = 0. The left side k=1 k is
an empty sum and hence 0, and the right side is 0(0+1) 2 , which is also 0.
Pn n(n+1)(n+2)(n+3)(n+4)
Example 1.5.2. Prove the equality k=1 k(k + 1)(k + 2)(k + 3) = 5
for all n ≥ 1.
Example 1.5.3. Assuming that the derivative of x is 1 and the product rule for deriva-
d
tives, prove that for all n ≥ 1, dx (xn ) = nxn−1 . (We introduce derivatives formally in
Section 6.1.)
Proof. When n = 1,
(1 − x)(1 + x + x2 + x3 + · · · + xn ) = (1 − x)(1 + x) = 1 − x2 = 1 − xn+1 ,
which proves the base case. Now suppose that equality holds for some integer n − 1 ≥ 1.
Then
(1 − x)(1 + x + x2 + · · · + xn−1 + xn ) = (1 − x) (1 + x + x2 + · · · + xn−1 ) + xn
= (1 − x)(1 + x + x2 + · · · + xn−1 ) + (1 − x)xn
= 1 − xn + xn − xn+1 (by induction assumption and algebra)
= 1 − xn+1 ,
which proves the inductive step.
Example 1.5.5. (Euclidean algorithm) Let f (x) and g(x) be non-constant polynomi-
als. Then there exist polynomials q(x) and r(x) such that f (x) = q(x) · g(x) + r(x) and
such that the degree of r(x) is strictly smaller than the degree of g(x).
Proof. We keep g(x) fixed and we prove that the claim holds for all polynomials f (x).
Write f (x) = a0 + a1 x + · · · + an xn for some numbers a0 , a1 , . . . , an and with an 6= 0,
and g(x) = b0 + b1 x + · · · + bm xm for some numbers b0 , b1 , . . . , bm and with bm 6= 0.
By assumption n, m ≥ 1. We proceed by induction on the degree n of f (x). If the
40 Chapter 1: How we will do mathematics
degree n of f (x) is strictly smaller than the degree m of g(x), then set q(x) = 0 and
r(x) = f (x). If n = m, then set q(x) = abnn and (necessarily) r(x) = f (x) − abnn g(x) =
a0 + a1 x + · · · + an xn − abnn (b0 + b1 x + · · · + bn xn ) = (a0 − abnn b0 ) + (a1 − abnn b1 )x + (a2 −
an 2 an n−1
bn b2 )x + · · · + +(an−1 − bn bn−1 )x . These are the base cases.
Now suppose that n > m. Set h(x) = a1 + a2 x + a3 x2 + · · · + an xn−1 . By induction
on n, there exist polynomials q1 (x) and r1 (x) such that h(x) = q1 (x) · g(x) + r1 (x) and such
that the degree of r1 (x) is strictly smaller than m. Then xh(x) = xq1 (x)·g(x)+xr1(x), and
by induction there exist polynomials q2 (x) and r2 (x) such that xr1 (x) = q2 (x)g(x) + r2 (x)
and such that the degree of r2 (x) is strictly smaller than m. Now set q(x) = xq1 (x) + q2 (x)
and r(x) = r2 (x) + a0 . Then the degree of r(x) is strictly smaller than m, and
q(x)g(x) + r(x) = xq1 (x)g(x) + q2 (x)g(x) + r2 (x) + a0
= xq1 (x)g(x) + xr1 (x) + a0
= xh(x) + a0
= f (x).
√
Example 1.5.6. For all positive integers n, n
n < 2.
√
Proof. Base case: n = 1, so n n = 1 < 2.
√
Inductive step: Suppose that n is an integer with n ≥ 2 and that n−1 n − 1 < 2.
This means that n − 1 < 2n−1 . Hence n < 2n−1 + 1 < 2n−1 + 2n−1 = 2 · 2n−1 = 2n , so that
√
n
n < 2.
Remark 1.5.7. There are two other equivalent formulations of mathematical induction
for proving a property P for all integers n ≥ n0 :
Mathematical induction, version III:
(1) Base case: Prove that P holds for n0 .
(2) Inductive step: Let n ≥ n0 . Assume that P holds for all integers n0 , n0 +
1, n0 + 2, . . . , n. Prove that P holds for n + 1.
Exercises for Section 1.5: Prove the following properties for n ≥ 1 by induction.
Xn
n(n + 1)(2n + 1)
1.5.1. k2 = .
6
k=1
Xn 2
3 n(n + 1)
1.5.2. k = .
2
k=1
1.5.3. The sum of the first n odd integers is n2 .
Xn
1.5.4. (2k − 1) = n2 .
k=1
1.5.5. (Triangle inequality) For all real numbers a1 , . . . , an , |a1 + a2 + · · · + an | ≤ |a1 | +
|a2 | + · · · + |an |. (Hint: there may be more than one base case. Why is that?)
X n
1.5.6. (3k 2 − k) = n2 (n + 1).
k=1
1.5.7. 1 · 2 + 2 · 3 + 3 · 4 + · · · + n(n + 1) = 13 n(n + 1)(n + 2).
1.5.8. 7n + 2 is a multiple of 3.
1.5.9. 3n−1 < (n + 1)!.
1 1 1 1 √
1.5.10. √ + √ + √ + · · · + √ ≥ n.
1 2 3 n
1 1 1 1 1
1.5.11. 2 + 2 + 2 + · · · + 2 ≤ 2 − .
1 2 3 n n
1.5.12. Let a1 = 2, and for n ≥ 2, an = 3an−1 . Formulate and prove a theorem giving an
in terms of n (no dependence on other ai ).
1.5.13. 8 divides 5n + 2 · 3n−1 + 1.
1.5.14. 1(1!) + 2(2!) + 3(3!) + · · · + n(n!) = (n + 1)! − 1.
1.5.15. 2n−1 ≤ n!.
Yn
1 1
1.5.16. 1− = .
k n
k=2
Yn
1 n+1
1.5.17. 1− 2 = .
k 2n
k=2
Xn
1.5.18. 2k (k + 1) = 2n+1 n + 1.
k=0
P2 n 1 n+2
1.5.19. k=1 k ≥ 2 .
P2n −1 1
Pn 1
† 1.5.20. (This is invoked in Example 9.1.9.) k=1 k2
≤ k=0 2k .
†1.5.21. (This is invoked in the proof of Theorem 9.4.1.) For all numbers x, y, xn − y n =
P
(x − y) xn−1 + xn−2 y + xn−3 y 2 + · · · + y n−1 = (x − y) n−1
k=0 x
n−1−k k
y .
42 Chapter 1: How we will do mathematics
†1.5.22. (This is invoked in the Ratio tests Theorems 8.6.6 and 9.2.4.) Let r be a positive
real number. Suppose that for all positive integers n ≥ n0 , an+1 < ran . Prove that for
all positive integers n > n0 , an < r n−n0 an0 . (The strict relationship < between the ai can
also be replaced by ≤, >, ≥ throughout.)
1.5.23. Let An = 12 + 22 + 32 + · · · + (2n − 1)2 and Bn = 12 + 32 + 52 + · · · + (2n − 1)2 .
Find formulas for An and Bn , and prove them (by using algebra and previous problems,
and possibly not with induction).
1.5.24. (From the American Mathematical Monthly 123 (2016), page 87, by K. Gaitanas)
Pn−1 k 1
Prove that for every n ≥ 2, k=1 (k+1)! = 1 − n! .
1 1 1 1
1.5.25. Let An = 1·2 + 2·3 + 3·4 +···+ n(n+1) . Find a formula for An and prove it.
1.5.26. There are exactly n people at a gathering. Everybody shakes everybody else’s
hands exactly once. How many handshakes are there?
1.5.27. Pick a vertex V in a triangle. Draw n distinct lines from V to the opposite edge
of the triangle. If n = 1, you get the original triangle and two smaller triangles, for a total
of three triangles. Determine the number of distinct triangles obtained in this way with
arbitrary n.
1.5.28. Find with proof an integer n0 such that n2 < 2n for all integers n ≥ n0 .
1.5.29. Find with proof an integer n0 such that 2n < n! for all integers n ≥ n0 .
1.5.30. Let x be a real number. For any positive integer n define Sn = 1+x+x2 +· · ·+xn .
i) Prove that for any n ≥ 2, xSn−1 + 1 = Sn , and that Sn (1 − x) = 1 − xn+1 .
ii) Prove that if x = 1, then Sn = n + 1.
n+1
iii) Prove that if x 6= 1, then Sn = 1−x
1−x . Compare with the proof by induction in
Example 1.5.4.
1.5.31. (Fibonacci numbers) Let s1 = 1, s2 = 1, and for all n ≥ 2, let sn+1 = sn +sn−1 .
This sequence starts with 1, 1, 2, 3, 5, 8, 13, 21, 34, . . .. (Many parts below are taken from the
book Fibonacci Numbers by N. N. Vorob’ev, published by Blaisdell Publishing Company,
1961, translated from the Russian by Halina Moss.)
i) Fibonacci numbers are sometimes “motivated” as follows. You get the rare gift
of a pair of newborn Fibonacci rabbits. Fibonacci rabbits are the type of rabbits
who never die and each month starting in their second month produce another pair
of rabbits. At the beginning of months one and two you have exactly that 1 pair
of rabbits. In the second month, that pair gives you another pair of rabbits, so at
the beginning of the third month you have 2 pairs of rabbits. In the third month,
the original pair produces another pair of rabbits, so that at the beginning of the
fourth month, you have 3 pairs of rabbits. Justify why the number of rabbits at
the beginning of the nth month is sn .
Section 1.5: Proofs by (mathematical) induction 43
√ n √ n
ii) Prove that for all n ≥ 1, sn = √15 1+2 5 − √15 1−2 5 . (It may seem amaz-
ing that these expressions with square roots of 5 always yield positive integers.)
Note that the base case requires proving this for n = 1 and n = 2, and that the
inductive step uses knowing the property for the previous two integers.
iii) Prove that s1 + s3 + s5 + · · · + s2n−1 = s2n .
iv) Prove that s2 + s4 + s6 + · · · + s2n = s2n+1 − 1.
v) Prove that s1 + s2 + s3 + · · · + sn = sn+2 − 1.
vi) Prove that s1 − s2 + s3 − s4 + · · · + s2n−1 − s2n = 1 − s2n−1 .
vii) Prove that s1 − s2 + s3 − s4 + · · · + s2n−1 − s2n + s2n+1 = s2n + 1.
viii) Prove that s1 − s2 + s3 − s4 + · · · √ + (−1)n+1 sn = (−1)n+1 sn−1 + 1.
ix) Prove that for all n ≥ 3, sn > ( 1+2 5 )n−2 .
x) Prove that for all n ≥ 1, s21 + s22 + · · · + s2n = sn sn+1 .
xi) Prove that sn+1 sn−1 − s2n = (−1)n .
xii) Prove that s1 s2 + s2 s3 + · · · + s2n−1 s2n = s22n .
xiii) Prove that s1 s2 + s2 s3 + · · · + s2n s2n+1 = s22n+1 − 1.
xiv) Prove that ns1 + (n − 1)s2 + (n − 2)s3 + · · · + 2sn−1 + sn = sn+4 − (n + 3).
xv) Prove that for all n ≥ 1 and all k ≥ 2, sn+k = sk sn+1 + sk−1 sn .
xvi) Prove that for all n, k ≥ 1, skn is a multiple of sn . (Use the previous part.)
xvii) Prove that s2n+1 = s2n+1 + s2n .
xviii) Prove that s2n = s2n+1 − s2n−1 .
xix) Prove that s3n = s3n+1 + s3n − s3n−1 .
√ √ n
xx) Prove that sn+1 = 1+2 5 sn + 1−2 5 .
s3n+2 −1
xxi) Prove that s3 + s6 + s9 + · · · + s3n = 2 . (Use the previous part.)
s3n+2 +(−1)n+1 6sn−1 +5
xxii) Prove that s 31 + s32 + s33 + · · · + s3n = 10 .
√
(1 + 5)n 1
xxiii) Prove that sn − √ < .
2n 5 2
(xxiv)* If you know a bit of number theory, prove that for all positive integers m, n, the
greatest common divisor of sm and sn is sgcd(m,n) .
(xxv)* Prove that sn is even if and only if n is a multiple of 3. Prove that sn is divisible
by 3 if and only if n is a multiple of 4. Prove that sn is divisible by 4 if and only
if n is a multiple of 6. Prove that sn is divisible by 5 if and only if n is a multiple
of 5. Prove that sn is divisible by 7 if and only if n is a multiple of 8. Prove that
there are no Fibonacci numbers that have the remainder of 4 when divided by 8.
Prove that there are no odd Fibonacci numbers that arendivisible
by 17.
1 1 s sn
xxvi) If you know matrices, prove that for all n ≥ 2, = n+1 .
1 0 sn sn−1
44 Chapter 1: How we will do mathematics
1.5.32. (Via the grapevine, based on ideas of Art Benjamin, Harvey Mudd College, and
Dan Velleman, Amherst College) A tromino is a plane figure composed of three squares in
L-shape:
Prove that for every positive integer n, any 2n × 2n square grid with exactly one of the
squares removed can be tiled with trominoes.
1.5.33. (Spiral of Theodorus) Draw a triangle with vertices at (0, 0), (1, 0), (1, 1). The
√
hypotenuse has length 2.
i) One of the vertices of the hypotenuse is at (0, 0). At the other vertex of the
hypotenuse, draw an edge of length 1 at a right angle away from the first triangle.
Make a triangle from the old hypotenuse and this new edge. What is the length
of the hypotenuse of the new triangle?
ii) Repeat the previous step twice.
iii) Argue by induction that one can draw the square root of every positive integer.
1.5.34. (Tower of Hanoi) There are 3 pegs on a board. On one peg, there are n disks,
stacked from largest to smallest. The task is to move all of the disks from one peg to a
different peg, given the following constraints: you may only move one disk at a time, and
you may only place a smaller peg on a larger one (never a larger one on a smaller one).
Let Sn be the least number of moves to complete the task for n disks.
i) If n = 1, then what is the least number of moves it takes to complete the task?
What if there are 2 disks? Repeat for 3, 4, 5 disks.
ii) Make a recursive formula (defining Sn based on Sn−1 ) for this Sn . Then, make a
guess for a non-recursive formula for Sn (defining Sn based on n without invoking
Sn−1 ). Prove your guess using induction and the recursive formula that you wrote.
1.5.35. What is wrong with the following “proof by induction”? I will prove that 5n + 1
is a multiple of 4. Assume that this is true for n − 1. Then we can write 5n−1 + 1 = 4m
for some integer m. Multiply this equation through by 5 to get that
5n + 5 = 20m,
whence 5n + 1 = 4(5m − 1). As 5m − 1 is an integer, this proves that 5n + 1 is a multiple
of 4.
1.5.36. What is wrong with the following “proof by induction” besides the fact that the
conclusion is false for many n? I will prove that all horses are of the same color. This is the
same as saying that for any integer n ≥ 1 and any set of n horses, all the horses belonging
to the set have the same color. If n = 1, of course this only horse is the same color as
itself, so the base case is proved. Now let n > 1. If we remove one horse from this set, the
Section 1.6: Pascal’s triangle 45
remaining n − 1 horses in the set are all of the same color by the induction assumption.
Now bring that one horse back into the set and remove another horse. Then again all of
these horses are of the same color, so the horse that was removed first is the same color as
all the rest of them.
Pascal’s triangle is very useful, so read this section with the exercises.
The following is rows 0 through 8 of Pascal’s triangle, and the pattern is obvious
for continuation into further rows:
row 0: . . . . . . . . . 1
row 1: . . . . . . . . 1 1
row 2: . . . . . . . 1 2 1
row 3: . . . . . . 1 3 3 1
row 4: . . . . . 1 4 6 4 1
row 5: . . . . 1 5 10 10 5 1
row 6: . . . 1 6 15 20 15 6 1
row 7: . . 1 7 21 35 35 21 7 1
row 8: . 1 8 28 56 70 56 28 8 1
Note that the leftmost and rightmost numbers in each row are all 1, and each of the other
numbers is the sum of the two numbers nearest to it in the row above it. We number the
slanted columns from left to right starting from 0: the 0th slanted column consists of all 1s,
the 1st slanted column consists of consecutive numbers 1, 2, 3, 4, . . ., the 2nd slanted column
consists of consecutive numbers 1, 3, 6, 10, . . ., and so on for the subsequent columns.
Let the entry in the nth row and kth column be denoted nk . We read this as “n
choose k”. These are loaded words, however, and we will eventually justify these words.
Pascal’s triangle is defined so that for all n ≥ 1 and all k = 0, 1, . . . , n − 1,
n n n+1
+ = .
k k+1 k+1
What would it take to compute 100 5 ? It seems like we would need to write down rows
0 through 100 of Pascal’s triangle, or actually a little less, only slanted columns 0 through
5 of these 101 rows. That is too much drudgery! We will instead be smart mathematicians
and we will prove many properties of Pascal’s triangle in general, including shortcuts for
computing 100 5
. We will accomplish this through exercises, most of which can be proved
by mathematical induction.
46 Chapter 1: How we will do mathematics
1.6.3. Prove that every integer n ≥ 0 has the property that for all k = 0, 1, 2, . . . , n,
n
n!
k = k!(n−k)! .
1.6.4. Prove that nk = n(n−1)(n−2)···(n−k+1)
k! .
100 100
1.6.5. Compute 42 , 52 , 62 , 72 , 82 , 100
2 , 100
3 , 4 , 5 .
1.6.6. Prove that nk is the number of possible k-member teams in a club with exactly n
members. For this reason nk is read n choose k.
†1.6.7. (This is invoked in Theorem 2.9.2, Example 8.2.9, Theorem 6.2.3.) Prove that for
all non-negative integers n,
X n
n n k n−k
(a + b) = a b .
k
k=0
(Since a + b contains two summands, it is called a binomial, and the expansion of (a + b)n
is called the binomial expansion, with coefficients ni being called by yet another name
in this context: binomial coefficients.)
√
1.6.8. Express each of the following as a + b 2 for some integers a, b:
√ √ √ √ √
i) 2 − 1, ( 2 − 1)2 , ( 2 − 1)3 , ( 2 − 1)4 , ( 2 − 1)5 .
√ √
ii) Write each of the five expressions in the previous part in the form c − d for
some positive integers c, d.
(iii)* Do you see a relation between c and d for each expression in the previous part?
Is there a general rule? Can you prove it?
Pn Pn
1.6.9. Prove that for all positive integers n, k=0 (−1)k nk = 0. Compute k=0 (−1)k nk
in case n = 0.
1.6.10. Prove that for any non-negative integer k,
n
X n(n + 1)(n + 2) · · · (n + k + 1)
j(j + 1)(j + 2) · · · (j + k) = .
j=1
k+1
i) Note that j 2 = j(j + 1) − j. Use the simplifications from above to prove that
Pn 2 n(n+1)(2n+1)
j=1 j = 6
.
ii) From j = j(j + 1)(j + 2) − 3j 2 − 2j = j(j + 1)(j + 2) − 3j(j + 1) + j develop
3
Pn
the formula for j=1 j 3 .
Pn
iii) Mimic the previous work to develop the formula for j=1 j 4 .
k
1.6.12. Prove that for all non-negative integers n and all k = 0, 1, . . . n, nk ≤ nk! .
1.6.13. Fix a positive integer k. Prove that there exists a positive number C such that
for all sufficiently large integers n, Cnk ≤ nk .
1.6.14. Give reasons why we should have nk = 0 for n < k or if either k or n is negative.
1.6.15. Let d be a positive integer. This is about summing entries in Pascal’s triangle
along the dth northwest-southeast slanted column: Prove by induction on n ≥ 0 that
Pn d+k
d+n+1
k=0 k = n .
*1.6.16. Prove that for all non-negative integers n,
Xn !2 X 2n
n−1
!2
2n k
2 −1=2 2k
2k 2k + 1
k=0 k=0
and !2
n
X X
n−1 !2
2n + 1 k 2n + 1 k
2 +1=2 2 .
2k 2k + 1
k=0 k=0
Pen n k Pon n
k
For notation’s sake you may want to label En = k=0 2k 2 and On = k=0 2k+1 2 ,
where en , on are the largest integers such that 2en ≤ n and 2on + 1 ≤ n. The claim is then
2 2 2 2
that for all n ≥ 0, E2n − 1 = 2O2n and E2n+1 + 1 = 2O2n+1 . (Hint: use the definition
n
of k to rewrite En in terms of En−1 , On−1 . Proceed with induction.)
Chapter 2: Concepts with which we will do mathematics
2.1 Sets
What is a set? Don’t we already have an idea of what a set is? The following formal
definition is trying to make the intuitive idea precise:
Definition 2.1.1. A set is a collection of objects. These objects are called members or
elements of that set. If m is a member of a set A, we write m ∈ A, and also say that A
contains m. If m is not a member of a set A, we write m 6∈ A.
So, while perhaps the definition does not tell us much new about what we think of
as sets, it does tell us the notation and vocabulary with which we can write and talk about
sets. For example, the set of all polygons contains triangles, squares, rectangles, pentagons,
among other polygons. The set of all polygons does not contain circles or disks. The set of
all functions contains the trigonometric, logarithmic, exponential, constant functions, and
so on.
(3) We can list the elements and surround them with curly braces to define a set:
(i) {1, 2, 3} is the set consisting of precisely 1, 2 and 3.
(i) {1, 2, 3, 2} is the set consisting of precisely 1, 2 and 3. Thus {1, 2, 3, 2} =
{1, 2, 3}.
(iii) {blue, “hello”, 5} is the set consisting precisely of the color blue, of the word
“hello”, and of number 5.
(iv) {1, 2, {1, 2}} is the set consisting of precisely of numbers 1 and 2 and of the
set {1, 2}. This set has exactly three distinct elements, it is not the same as {1, 2},
and it is not the same as {{1, 2}}.
(4) The set with no elements is called the empty set and is denoted ∅ or {}.
The set {∅} is not empty because it contains the empty set.
(5) When the list of elements is not small enough for reasonable explicit listing but
the pattern of elements is clear, we can start the list and then add “, . . .” when
the pattern is clear:
(i) {1, 2, 3, . . . , 10000} is the set of all positive integers that are at most 10000.
(ii) {1, 4, 9, . . . , 169} is the set of the first 13 squares of integers.
(iii) {0, 1, 2, 3, . . .} is the set consisting of all non-negative whole numbers. This
set is often denoted by N. WARNING: in some books, N stands for the set of all
positive whole numbers. To be absolutely clear, we will write N0 for {0, 1, 2, 3, . . .}
and N+ for {1, 2, 3, . . .}.
(6) Warning: {3, 5, 7, . . .} or {3, 5, 7, . . . , 101} could stand for the set of all odd primes
(up to 101), or possibly for the set of all odd whole numbers strictly greater
than 1 (up to 101). Avoid ambiguities: write more elements, or write an explicit
description of the elements instead.
(7) The set of all whole numbers is written Z, the set of all rational numbers is writ-
ten Q, the set of all real numbers is written R, and the set of all complex numbers
is written C (complex numbers are defined in Section 3.1, and until then do not
worry when “C” appears in the text). The set of all non-negative real numbers
equals [0, ∞), and we also write it as R≥0 .
(8) We can define sets propositionally: if P is a property, then the set
{x : P (x)} or {x ∈ A : P (x)}
consists of all x (or x ∈ A) for which P holds. Here are some explicit examples:
(i) {x ∈ R : x2 = x}, and this happens to be the set {0, 1}.
(ii) {x ∈ R : x > 0 and x < 1}, and this happens to be the interval (0, 1).
(iii) Q = { ab : a, b ∈ Z, b 6= 0}.
(iv) {n ∈ N : n > 1 and if n = pq for some integers p, q then |p| = 1 or |q| = 1} is
the same as the set of all positive prime numbers.
50 Chapter 2: Concepts with which we will do mathematics
(v) A = {x : x is a positive integer that equals the sum of its proper factors}. It
is easy to verify that 1, 2, 3, 4, 5 are not in A. But 6 has factors 1, 2, 3, 6, and the
sum of the factors other than 6 equals 6. Thus 6 is an element of A. You can
verify that 28, 496, 8128 are also in A (and if you and your computer have a lot of
time, write a program to verify that no other number smaller than 33 million is in
A).
(9) Proving that a property P holds for all integers n ≥ n0 is the same as saying that
the set A = {n ∈ Z : P holds for n} contains {n0 , n0 + 1, n0 + 2, . . .}. By the
principle of mathematical induction, P holds for all integers n ≥ n0 is the same as
saying that n0 ∈ A and that n − 1 ∈ A implies that n ∈ A.
Just like numbers, functions, and logical statements, sets and their elements can also
be related and combined in meaningful ways. The list below introduces quite a few new
concepts that may be overwhelming at first, but in a few weeks you will be very comfortable
with them.
Equality: Two sets are equal if they consist of exactly the same elements. In other words,
A = B if and only if A ⊆ B and B ⊆ A.
Intersection: The intersection of sets A and B is the set of all objects that are in A
and in B:
A ∩ B = {x : x ∈ A and x ∈ B}.
Union: The union of sets A and B is the set of all objects that are either in A or in B:
A ∪ B = {x : x ∈ A or x ∈ B}.
The k in the subscripts are referred to as indices of unions or intersections. The indices can
be taken from arbitrary sets, even infinite ones. We call such sets index sets. Notationally,
if I is an index set, we write
\
Ak = {a : a ∈ Ak for all k ∈ I},
k∈I
[
Ak = {a : there exists k ∈ I such that a ∈ Ak }.
k∈I
52 Chapter 2: Concepts with which we will do mathematics
When I = {1, 2, . . . , n}, then the intersections and unioins in the two lines above are the
same as those in the previous display.
When I is the empty index set, one can argue as for empty sums and empty products
in Section 1.4 that
\
Ak = the universal set that contains all the Ak ,
k∈∅
[
Ak = ∅.
k∈∅
B \ A = {b ∈ B : b 6∈ A}.
Some authors write B − A, but that has another meaning as well: B − A : {b − a : b ∈
B, a ∈ A}. Always try to use precise and unambiguous notation.
We often have an implicit or explicit universal set that contains all elements of our
current interest. Perhaps we are talking only about real numbers, or perhaps we are
talking about all functions defined on the interval [0, 1] with values being real numbers.
In that case, for any subset A of the universal set U , the complement of A is the
complement of A in U , thus U \ A, and this is denoted as Ac .
Example 2.1.3. We prove that Z = {3m + 4n : m, n ∈ Z}. Certainly for any integers m
and n, 3m + 4n is also an integer, so that {3m + 4n : m, n ∈ Z} ⊆ Z. Now let x ∈ Z. Then
x = 1 · x = (4 − 3) · x = 3(−x) + 4x,
so that x ∈ {3m + 4n : m, n ∈ Z}, whence Z ⊆ {3m + 4n : m, n ∈ Z}. Since we already
proved the other inclusion, the proof is done.
Section 2.1: Sets 53
Example 2.1.4. We prove that A = {6m + 14n : m, n ∈ Z} equals the set B of all even
integers. Certainly for any integers m and n, 6m + 14n is an even integer, so that A ⊆ B.
Now let x ∈ B. Then x is even, so x = 2n for some integer n. Write
x = 2n = (14 − 2 · 6)n = 6(−2n) + 14n,
so that x ∈ {6m + 14n : m, n ∈ Z} = A. Thus B ⊆ A. Together with the first part this
implies that A = B.
Example 2.1.5. The complement in Z of the set of even integers is the set of odd integers.
The complement in Q of the set of even integers contains many more elements than odd
integers. For example, it contains 12 , 32 , . . ..
Example 2.1.8. For each i ∈ N+ , let Ai = [i, ∞), Bi = {i, i + 1, i + 2, . . . , ∞}, and
Ci = (−i, i). Think through the following:
\ \ \
Ak = ∅, Bk = ∅, Ck = (−1, 1),
k∈N k∈N k∈N
[ [ [
+
Ak = [1, ∞), Bk = N , Ck = R.
k∈N k∈N k∈N
54 Chapter 2: Concepts with which we will do mathematics
Example 2.1.9. For each real number r, let Ar = {r}, Br = [0, |r|]. Then
\ \ [ [
Ar = ∅, Br = {0}, Ar = R, Br = [0, ∞).
r∈R r∈R r∈R r∈R
Set operations can be represented with a Venn diagram, especially in the presence
of a universal set U . Here is an example:
A B U
On this Venn diagram, sets are represented by the geometric regions: A is the set
represented by the left circle, B is represented by the right circle, A ∩ B is the part of the
two circles that is both in A and in B, A ∪ B can be represented by the region that is
either in A or in B, A \ B is the left crescent after B is chopped out of A, etc. (There is
no reason why the regions for sets A and B are drawn as circles, but this is traditional.)
Sometimes we draw a few (or all) elements into the diagram. For example, in
b
w U
A B
b
y b
t b
u
b
x b
z
b
v
A B U
Section 2.1: Sets 55
Proof. With the Venn diagram below, B ∪ C is the region filled with either horizontal
or vertical lines, A is the region filled with the Southeast-Northwest slanted lines, and so
A ∩ (B ∪ C) is the region that has simultaneously the Southeast-Northwest slanted lines
and either horizontal or vertical lines. Also, A ∩ C is the region that has horizontal and
Southeast-Northwest slanted lines, A ∩ B is the region that has vertical and Southeast-
Northwest slanted lines, so that their union (A ∩ B) ∪ (A ∩ C) represents the total region
of Southeast-Northwest slanted lines that either have horizontal or vertical cross lines as
well, which is the same as the region for A ∩ (B ∪ C).
C U
A B
The set {a, b} is the same as the set {b, a}, as any element of either set is also the
element of the other set. Thus, the order of the listing of elements does not matter. But
sometimes we want the order to matter. We can then simply make another new notation
for ordered pairs, but in general it is not a good idea to be inventing many new notations
and concepts; it is much better if we can reuse and recycle old ones. We do this next:
Definition 2.2.1. An ordered pair (a, b) is defined as the set {{a}, {a, b}}.
So here we defined (a, b) in terms of already known constructions: (a, b) is the set one
of whose elements is the set {a} with exactly one element a, and the remaining element of
(a, b) is the set {a, b} that has exactly two elements a, b if a 6= b and has exactly one element
otherwise. Thus for example the familiar ordered pair (2, 3) really stands for {{2}, {2, 3}},
(3, 2) stands for {{3}, {2, 3}}, and (2, 2) stands for {{2}, {2, 2}} = {{2}, {2}} = {{2}}.
Definition 2.2.3. For any sets A and B, the Cartesian product A × B of A and B is
the set {(a, b) : a ∈ A, b ∈ B} of all ordered pairs where the first component varies over all
elements of A and the second component varies over all elements of B.
In general, one can think of A × B as the “rectangle” with A on the horizontal side
and B on the perpendicular side.
Say, if A has 4 elements and B has 3 elements, then A × B can be represented by
the 12 points in the rectangle with base consisting of elements of A and height consisting
of elements of B as follows:
b b b b b
B b b b b b
b b b b b
b b b b
A
If instead A and B are intervals as above, then A × B is the indicated rectangle.
When A and B extend infinitely far, then A × B is correspondingly a “large” rectangle:
The familiar real plane is the Cartesian product R × R.
(The three-dimensional space can be written as the Cartesian product R × (R ×
R) or the Cartesian product (R × R) × R. In the former case we write elements in the
form (a, (b, c)), and in the latter case we write them in the form ((a, b), c). Those extra
parentheses are there only for notation and to slow us down, they serve no better function,
so by convention we write elements simply in the form (a, b, c).)
In this section we introduce relations in a formal way. Most relations that we even-
tually analyze will be of familiar kind, such as ≤, <, is cousin, taller than, has same birth
date, et cetera, but we can get much more structure with a formal approach.
Examples 2.3.2.
(1) Some relations on R are ≤, <, =, ≥, >. We can write (1, 2) ∈ ≤, or more familiarly,
1 ≤ 2. As a subset of R × R, ≤ consists of all points on or above the line y = x.
This relation can be drawn (and read off) easily.
(2) Draw anything in R × R. That defines a relation on R (which most likely cannot
be expressed with a formula). The relation R = {(a, b) : a, b ∈ R, a2 < b + 1} is
drawn as the set of all points (x, y) above the parabola y = x2 − 1.
(3) The following are all the possible relations on A = {1, 2} and B = {a, b}:
{(1, a), (1, b), (2, a), (2, b)},
{(1, b), (2, a), (2, b)},
{(1, a), (2, a), (2, b)},
{(1, a), (1, b), (2, b)},
{(1, a), (1, b), (2, a)},
{(1, a), (1, b)},
{(1, a), (2, a)},
{(1, a), (2, b)},
{(1, b), (2, a)},
{(1, b), (2, b)},
{(2, a), (2, b)},
{(1, a)},
{(1, b)},
{(2, a)},
{(2, b)},
{}.
60 Chapter 2: Concepts with which we will do mathematics
Remark 2.3.3. Relation names such as “≤” or “cousin” are familiar, but most relations
do not have such familiar or even good names; think of relation on A and B simply as a
possibly contrived subset of A × B.
Examples 2.3.5.
(1) ≤ on R is reflexive and transitive but not symmetric.
(2) < on R is transitive but not reflexive or symmetric.
(3) = on any set A is reflexive, symmetric, and transitive.
(4) Being a cousin is symmetric but not reflexive or transitive.
(5) Being taller than is ...
Definition 2.3.6. Let R be an equivalence relation on a set A. For each a ∈ A, the set
of all elements b of A such that aRb is called the equivalence class of a. We denote the
equivalence class of a with the shorthand [a].
For example, if R is the equality relation, then the equivalence class of a is {a}. If
R = A × A, then the equivalence class of any a is A. If A is the set of all students in
Math 112 this year, and aRb if students a and b are in the same section of Math 112, then
[a] is the set of all students that are in the same section as student a.
Proof. Let a, b ∈ A, and suppose that their equivalence classes have an element in common.
Call the element c.
We now prove that the equivalence class of a is a subset of the equivalence class
of b. Let d be any element in the equivalence class of a. Then aRd, aRc and bRc imply by
symmetry that dRa and cRb, so that by transitivity dRc. Then dRc, cRb and transitivity
give dRb, so that by symmetry bRd, which says that d is in the equivalence class of b. Thus
the equivalence class of a is a subset of the equivalence class of b.
A symmetric proof shows that the equivalence class of b is a subset of the equivalence
class of a, so that the two equivalence classes are identical.
Section 2.3: Relations, equivalence relations 61
Remark 2.3.8. What this says is that whenever R is an equivalence relation on a set A,
then every element of A is in a unique equivalence class. Thus A is the disjoint union of
distinct equivalence classes. Conversely, if A = ∪i∈I Ai where the Ai are pairwise disjoint,
define R ⊆ A × A as (a, b) ∈ R precisely if a and b are elements of the same Ai . Then R is
an equivalence relation: reflexivity and symmetry are obvious, and for transitivity, suppose
that a and b are in the same Ai and b and c are in the same Aj . Since Ai and Aj have the
element b in common, by the pairwise disjoint assumption necessarily i = j, so that a and
c are both in Ai . Thus R is an equivalence relation.
Example 2.3.9. Let A = {1, 2, 3, 4, 5}. The writing of A as {1, 2} ∪ {3, 4} ∪ {5} makes
the following equivalence relation on A:
{(1, 1), (1, 2), (2, 1), (2, 2), (3, 3), (3, 4), (4, 3), (4, 4), (5, 5)}.
This means is that counting all the possible equivalence relations on A is the same
as counting all the possible writings of A as unions of pairwise disjoint subsets.
There are exactly two equivalence classes for the congruences modulo 2: one consists
of all the even integers and the other of all the odd integers. There is exactly one equivalence
class for the congruences modulo 1: all integers are congruent modulo 1 to each other. For
the congruences modulo 0, each equivalence class consists of precisely one element.
2.3.2. Let A have n elements and B have m elements. How many distinct relations on A
and B are there? Prove.
2.3.3. In each part below, find a relation with the given properties. You may find such a
relation among number or human relations, or you may contrive a relation on a contrived
set A.
i) Reflexive, but not symmetric and not transitive.
ii) Reflexive and symmetric, but not transitive.
iii) Reflexive and transitive, but not symmetric.
iv) Symmetric, but not reflexive and not transitive.
v) Transitive, but not symmetric and not reflexive.
vi) Transitive and symmetric, but not reflexive.
2.3.4. Let A be a set with 2 elements. How many possible equivalence relations are there
on A? Repeat first for A with 3 elements, then for A with 4 elements.
2.3.5. Let A be a set with n elements. Let R be an equivalence relation on A with fewest
members. How many members are in R?
2.3.6. Let R be the relation on R given by aRb if a − b is a rational number. Prove that
R is an equivalence relation. Find at least three disjoint equivalence classes.
2.3.7. Let R be the relation on R given by aRb if a − b is an integer.
i) Prove that R is an equivalence relation.
ii) Prove that for any a ∈ R there exists b ∈ [0, 1) such that [a] = [b].
2.3.8. Let R be a relation on R × R given by (a, b)R(c, d) if a − c and b − d are integers.
i) Prove that R is an equivalence relation.
ii) Prove that for any (a, b) ∈ R × R there exists (c, d) ∈ [0, 1) × [0, 1) such that
[(a, b)] = [(c, d)].
iii) Prove that the set of equivalence classes can be identified with [0, 1) × [0, 1).
iv) For fun: check out the video game Asteroids online for a demonstration of this
equivalence relation. Do not get addicted to the game.
2.3.9. Let A be the set of all lines in the plane.
i) Prove that the relation “is parallel to” is an equivalence relation. Note that the
equivalence class of a non-vertical line can be identified by the (same) slope of the
lines in that class. Note that the vertical lines are in their own equivalence class.
ii) Prove that the relation “is perpendicular to” is not an equivalence relation.
64 Chapter 2: Concepts with which we will do mathematics
2.4 Functions
Definition 2.4.1. Let A and B be sets. A function from A to B is a rule that assigns to
each element of A a unique element of B. We express this with “f : A → B is a function.”
The set A is the domain of f and B is the codomain of f . The range or image of f is
Image(f ) = Range(f ) = {b ∈ B : b = f (a) for some a ∈ A}.
But in the spirit of introducing few new notions, let’s instead define functions with
the concepts we already know. Convince yourself that the two definitions are the same:
Definition 2.4.2. Let A and B be sets. A relation f on A and B is a function if for all
a ∈ A there exists b ∈ B such that (a, b) ∈ f and if for all (a, b), (a, c) ∈ f , b = c. In this
case we say that A is the domain of f , B is the codomain of f , and we write f : A → B.
The range of f is Range(f ) = {b ∈ B : there exists a ∈ A such that (a, b) ∈ f }.
Note that this second formulation is also familiar: it gives us all elements of the
graph of the function: b = f (a) if and only if (a, b) is on the graph of f . We will freely
change between notations f (a) = b and (a, b) ∈ f .
One should be aware that if f is a function, then f (x) is an element of the range and
is not by itself a function. (But often we speak loosely of f (x) being a function.)
To specify a function one needs to present its domain and its codomain, and to
show what the function does to each element of the domain.
Examples 2.4.3.
(1) A function can be given with a formula. For example, let f : R → R be given by
1 2
f (x) = 1+x 2 . The range is (0, 1]: For all x, 1 + x ≥ 1 with equality when x = 0.
q
Thus f (x) ∈ (0, 1]. For any y ∈ (0, 1], 1/y ≥ 1, so 1/y − 1 ≥ 0, so x = y1 − 1 is
a positive real number and f (x) = y. So indeed the range of f is (0, 1].
√
(2) Here are formula definitions of two functions with domains [0, ∞): f (x) = x and
√ √
g(x) = − x. Note, however, that h(x) = ± x is NOT a function!
Section 2.4: Functions 65
(3) There may be more than one formula for a function, each of which is applied to
distinct elements of the domain. For example, define f : N+ → Z by
n−1
f (n) = 2 , if n is odd;
− n2 , if n is even.
(4) Let f : N+ → R be given by the description that f (n) equals the nth prime.
By Euclid’s theorem (proved on page 33) there are infinitely many primes so that
f is indeed defined for all positive integers. We know that f (1) = 2, f (2) = 3,
f (3) = 5, and with computer’s help I get that f (100) = 541, f (500) = 3571. There
is no algebraic formula for the nth prime.
(5) For any set A, the identity function idA : A → A takes each x to itself.
(6) The function f : R → R given by f (x) = 1 for all x is not the identity function.
(7) Let b ∈ B. A function f : A → B given by f (a) = b for all a is called a constant
function.
(8) A function may be presented in a pie chart, histogram, with words, or by a table,
such as this one:
x f (x)
1 1
2 1
3 2
(9) A function can be given by its graph:
From this particular graph we surmise that f (0) = 0, but with the precision of
the drawing and our eyesight it might be the case that f (0) = 0.000000000004.
Without any further labels on the axes we cannot estimate the numerical values
of f at other points. Typically the graph should be filled in with more information.
The arrows on the graphs indicate increasing values.
y
3 y = f (x)
2
1
x
−3 −2 −1 1 2 3 4 5
66 Chapter 2: Concepts with which we will do mathematics
×
r ×
r × ×
r ×
Remark 2.4.4. Two functions are the same if they have the same domains, the same
codomains, and if to each element of the domain they assign the same element of the
codomain.
For example, f : R → R and g : R → [0, ∞) given by f (x) = x2 and g(x) = x2 are
not the same! On the other hand, the functions f, g : R → R given by f (x) = |x| and
√
g(x) = x2 are the same.
Notation 2.4.5. It is common to not specify the domain, in which case the domain is
implicitly the largest possible subset of R (after we introduce complex numbers we will
take the largest possible subset of C) on which the function is defined. For example, the
√
domain of f (x) = x1 is the set of all non-zero real numbers, and the domain of f (x) = x
is the set of all non-negative real numbers.
and these three outcomes are distinct. For example, when plugging in x = 1, we get values
(g ◦ f )(1) = 63, (f ◦ g)(1) = 1, g(1)f (1) = 0.
In this case no functions are injective, and all non-constant ones are surjective.
Proof. Let c ∈ C. Since g is surjective, there exists b ∈ B such that g(b) = c. Since f is
surjective, there exists a ∈ A such that f (a) = b. Thus (g ◦ f )(a) = g(f (a)) = g(b) = c, so
that g ◦ f is surjective.
The last statement follows from the first part and Theorem 2.4.10.
Definition 2.4.12. We have seen polynomial functions in Section 1.4: recall that for any
subset S ⊆ R, a function f : S → R is a polynomial function if there exist a non-negative
integer n and c0 , c1 , . . . , cn ∈ R such that for all x ∈ S, f (x) = c0 + c1 x + c2 x2 + · · · + cn xn .
If cn 6= 0, we say that the degree of f is n. A function f : S → R is a rational function
if there exist polynomial functions f1 , f2 : S → R such that for all x ∈ S, f2 (x) 6= 0 and
f (x) = f1 (x)/f2 (x).
Similarly there are polynomial and rational functions if all occurrences of “R” above
are replaced by “Q” or “C” .
Polynomial and rational functions are very special, and are a workhorse of anal-
ysis. (The reader has of course encountered trigonometric, exponential, and logarithmic
functions, which are not polynomial or rational.) The following are some special properties:
Theorem 2.4.13. If a polynomial function is not constant zero, it has only finitely many
roots. In fact, the number of roots is at most the degree of the polynomial.
The domain of a rational function is the complement of a finite subset of R (or C).
−c1 ±
qc2 −4c0 c2
* If n = 2, then by the quadratic formula the roots of c0 + c1 x + c2 x2 are 1
2c2 . There
are root formulas for cases n = 3, 4, but executing them is very time-consuming, they require familiarity with
complex numbers, the solutions involve sums of cube roots with a few square roots thrown in for good measure,
and furthermore it can be hard to identify that the ensuing long expression simplifies to a nice number such as 2.
This, and the existence of computer capabilities, are the reasons that we do not teach such formulas. The formula
for solutions of cubic polynomials was discovered by Niccolò Fontana Tartaglia (1500–1557) and for quartic ones
by Lodovico Ferrari (1522–1565). Both formulas were popularized in a book by Gerolamo Cardano (1501–1576).
There are no formulas for general polynomials of degree n ≥ 5: not only do you and I do not know such a
formula, but Niels Henrik Abel (1802–1829) and Évariste Galois (1811–1832) proved that no formulas exist using
only radicals, sums, products, quotients.
Section 2.4: Functions 69
and the degree of r is strictly smaller than 1, i.e., r(x) is a constant. But if we plug x = a
into both sides, since a is a root of f , we get that r is the constant zero function, so that
2.4.12. The pigeonhole principle states that if n items (such as pigeons) are put into
m holes with n > m, then at least one hole has more than one item. Let A and B be sets
with only finitely many elements.
i) Use the pigeonhole principle to demonstrate that if A has more elements than
B, then f : A → B cannot be injective.
ii) Use the pigeonhole principle to demonstrate that if A has fewer elements than
B, then f : A → B cannot be surjective.
iii) Use the pigeonhole principle to demonstrate that if A and B do not have the
same number of elements, then f : A → B cannot be bijective.
2.4.13. Let A be a set with m elements and B a set with n elements.
i) How many possible functions are there from A to B?
ii) For which combinations of m, n are there injective functions from A to B?
iii) For m, n as in (ii), how many possible injective functions are there from A to B?
iv) For which combinations of m, n are there surjective functions from A to B?
v) For m, n as in (iv), how many possible surjective functions are there from A
to B?
vi) For which combinations of m, n are there bijective functions from A to B?
vii) For m, n as in (vi), how many possible bijective functions are there from A to B?
2.4.14. Find an injective function f : N+ → N+ that is not surjective. Find a surjective
function g : N+ → N+ that is not injective. Compare with parts (ii) and (iv) of the previous
exercise. Does the pigeonhole principle apply?
2.4.15. Let f : A → B and g : B → C be functions.
i) Suppose that g ◦ f is injective. Prove that f is injective.
ii) Suppose that g ◦ f is surjective. Prove that g is surjective.
iii) Give an example of f, g such that g ◦ f is injective but g is not injective.
iv) Give an example of f, g such that g ◦ f is surjective but f is not surjective.
2.4.16. Find functions f, g : R → R such that f is surjective but not injective, g is injective
but not surjective, and f ◦ g is bijective.
2.4.17. Prove that if f and g are both injective functions, then f ◦ g is also injective.
2.4.18. Prove that if f and g are both surjective functions, then f ◦ g is also surjective.
2.4.19. Prove that if f and g are both bijective functions, then f ◦ g is also bijective.
2.4.20. Suppose f : A → B. We introduce the notation f (S) = {f (x) : x ∈ S} for any
subset S of A. Let C be an arbitrary subset of A.
i) Prove f (A) \ f (C) ⊆ f (A \ C).
ii) With proof, what condition will make f (A) \ f (C) = f (A \ C)?
72 Chapter 2: Concepts with which we will do mathematics
2.4.21. For the following polynomial and rational functions, determine the domains
(largest sets on which the function is defined):
i) f (x) = x2 − x31−x .
4 3
ii) f (x) = x −2x
x6 +2
−1
.
1
(iii)* f (x) = x5 −17x2 +πx−4 . (Gottcha! We do not know the roots of this denominator.)
2.4.22. Prove that f : R → R given by f (x) = x3 − 1 is surjective and injective.
2.4.23. Let f : A → B be bijective. Prove that there exists g : B → A such that g◦f = idA
and f ◦ g = idB . Such g is called the inverse of f .
2.4.24. A function f : A → B is called invertible if there exists g : B → A such that
g ◦ f = idA and f ◦ g = idB . Prove that every invertible function is bijective.
2.4.25. Let f : R → R be given by f (x) = x3 − 5. Prove that f is invertible and find its
inverse.
2.4.26. (Lagrange interpolation) Let c1 , . . . , cn be distinct real (or complex) numbers.
(x−c1 )(x−c2 )···(x−cj−1 )(x−cj+1 )···(x−cn )
Set gj (x) = (cj −c1 )(cj −c2 )···(cj −cj−1 )(cj −cj+1 )···(cj −cn )
.
1, if j = i;
i) Prove that gj is a polynomial function and that gj (ci ) =
0, otherwise.
ii) Prove that for any real (or complex) numbers d1 , . . . , dn , there exists a polyno-
mial g of degree at most n − 1 such that for all j = 1, . . . , n, g(ci ) = di .
2.4.27. When defining a function, one has to pay attention that it is well-defined. Read
through the examples below showing how a definition can go wrong.
i) The codomain is not large enough: Let f : {1, 2} → {1, 2} be defined by f (x) =
x2 .
ii) The function is not defined for all elements in the specified domain: Let f : R → R
be the inverse of the squaring function. Another example: let f : R → R take x
to 1/x.
iii) The function does not give the same answer: Let f : Z/12Z → Z be defined by
f ([a]) = a. Note that f ([0]) is 0, but since [0] = [12], then 0 = f ([0]) = f ([12]) =
12, but the integer 0 is not equal to the integer 12.
2.4.28. Let A be the set of all differentiable functions f : R → R. Define a relation R on
A by f Rg if f (0) = g(0).
i) Prove that R is an equivalence relation.
(ii)* Let S be the set of all equivalence classes. Define F : S → R by F ([f ]) = f (0).
Prove that F is a well-defined function, in the sense that if [f ] = [g], then F ([f ]) =
F ([g]).
(iii)* Prove that F is bijective.
Section 2.5: Binary operations 73
(In this chapter we use “e” for the identity element; this is a symbol that is unrelated
to the base of the exponential function as in Definition 7.6.6.)
Theorem 2.5.5. Let ◦ be a binary operation on A. Suppose that e and f are both
identities for ◦. Then e = f . In other words, if an identity exists for a binary operation, it
is unique. Hence we talk about the identity for ◦.
Proof. Since for all a ∈ A, e ◦ a = a, we get in particular that e ◦ f = f . Also, for every
a ∈ A, a ◦ f = a, hence e ◦ f = e. Thus e = e ◦ f = f .
Note: we used symmetry and transitivity of the equality relation.
Definition 2.5.6. Let ◦ be a binary operation on A and suppose that e is its identity. Let
x be an element of A. An inverse of x is an element y ∈ A such that x ◦ y = e = y ◦ x.
To emphasize what the operation is, we may also say that y is a ◦-inverse of x (or see
specific terms below).
(6) Here is a new binary operation ◦ on the set S = {a, b, c, d} presented via its
multiplication table:
◦ a b c d
a a b c d
b b c d a
c c d a b
d d a b c
Note that a is the identity element, the inverse of a is a, the inverse of b is d, the
inverse of c is c, the inverse of d is b.
Definition 2.5.11. We say that x is invertible if x has an inverse. The (abstract) inverse
is usually denoted x−1 .
You may want to find specific four integers a, b, c, d for which you get 5 distinct values with
different placements of parentheses.
Notation 2.5.13. Just like for functions in Remark 2.4.7, also for arbitrary associative
binary operation ◦ we abbreviate a ◦ a with a2 , (a ◦ a) ◦ a with a3 , et cetera, and in general
for all positive integers n we write
an = an−1 ◦ a = a ◦ an−1 .
This notation is familiar also when ◦ equals multiplication: then 25 stands for 32. When
◦ is addition, then the abstract “25 ” stands for 10, but of course we prefer to not write 10
this way; instead we write it in the additive notation 2 + 2 + 2 + 2 + 2, or briefly, 5 · 2. The
empty product a0 makes sense if the set has the identity, and in that case a0 = e. (See
Exercise 1.4.6 for the first occurrence of an empty product.)
If a has a multiplicative inverse, then a−1 is that inverse, and in that case if ◦ is also
associative,
a−n = a−(n−1) ◦ a−1 .
and similarly an ◦ (a−(n−1) ◦ a−1 ) = e, which proves that a−n = a−(n−1) ◦ a−1 .
Theorem 2.5.15. If x is invertible, then its inverse is also invertible, and the inverse of
the inverse is x.
Proof. By definition of inverses of x, x−1 ◦ x = e = x ◦ x−1 , which also reads as “the inverse
of x−1 is x.”
We end this section with an important example. The reader is familiar with manip-
ulations below when n = 12 or n = 24 for hours of the day (we do not say “28 o’clock”),
when n = 7 for days of the week, when n = 3 for standard meals of the day, et cetera.
78 Chapter 2: Concepts with which we will do mathematics
Important example 2.5.19. Let n be a positive integer. Recall the definition of Z/nZ
from Example 2.3.10: elements are equivalence classes [0], [1], [2], . . . , [n − 1]. Define + on
Z/nZ as follows: [a] + [b] = [a + b]. Well, first of all, is this even a function? Namely, we
need to verify that whenever [a] = [a′ ] and [b] = [b′ ], then [a + b] = [a′ + b′ ], which says
that any choice of representatives gives the same final answer. Well, a − a′ and b − b′ are
integer multiples of n, hence (a + b) − (a′ + b′ ) = (a − a′ ) + (b − b′) is a sum of two multiples
of n and hence also a multiple of n. Thus [a + b] = [a′ + b′ ], which says that + is indeed a
binary operation on Z/nZ. It is straightforward to verify that + on Z/nZ is commutative
and associative, the identity elements is [0], and every element [a] has an additive inverse
[−a] = [n − a].
Similarly, we can define · on Z/nZ as follows: [a] · [b] = [a · b]. It is left to the
reader that this is a binary operation that is commutative and associative, and the identity
elements is [1]. The multiplication tables for n = 2, 3, 4 are below, where, for ease of
notation, we abbreviate “[a]” with “a”:
Z/2Z: · 0 1 Z/3Z: · 0 1 2 Z/4Z: · 0 1 2 3
0 0 0 0 0 0 0 0 0 0 0 0
1 0 1 1 0 1 2 1 0 1 2 3
2 0 2 1 2 0 2 0 2
3 0 3 2 1
Note that for multiplication in Z/4Z, [3] = [−1] is the multiplicative inverse of itself, and
[2] has no multiplicative inverse.
2.5.3. Find a set A with a binary operation ◦ such that for some invertible f, g ∈ A,
(g ◦ f )−1 6= g −1 ◦ f −1 . (This is sometimes called the socks-and-shoes problem. Can you
think of why?)
2.5.4. Refer to Example 2.5.19: Write addition tables for Z/2Z, Z/3Z, Z/4Z.
2.5.5. Write multiplication tables for Z/5Z, Z/6Z, Z/7Z.
2.5.6. Determine all [a] ∈ Z/12Z that have a multiplicative inverse.
*2.5.7. Determine all [a] ∈ Z/pZ that have a multiplicative inverse if p is a prime number.
2.5.8. Here is an opportunity to practice induction. Let f, g : A → A be functions, with
f invertible. Prove that (f ◦ g ◦ f −1 )n = f ◦ g n ◦ f −1 . (Notation is from Remark 2.4.7.)
2.5.9. Consider the following binary operation ◦ on {a, b, c}: ◦ a b c
a a b c
b b a a
c c a a
i) Show that ◦ is commutative and has an identity element.
ii) Show that every element has an inverse, and that inverses need not be unique.
iii) Prove that ◦ is not associative. (Hint: Theorem 2.5.10.)
*2.5.10. Let S be the set of all logical statements. We define a relation ∼ on S as follows:
P ∼ Q if P and Q have the same truth values in all conditions. For example, “1 = 1” and
“2 = 2” are related via ∼.
i) Prove that ∼ is an equivalence relation on S. Let A be the set of all equivalance
classes.
ii) Verify that and , or and xor are naturally binary operations on A.
iii) Find the identity elements, if they exist, for each of the three binary operations.
iv) For each binary operation above with identity, which elements of A have inverses?
2.5.11. Define a binary operation ⊕ on R as a ⊕ b = a + b + 2, where + is the ordinary
addition on R. Prove that ⊕ is commutative and associative. Find the identity element of
⊕, and for each x ∈ R, find its inverse.
2.5.12. Define a binary operation ⊙ on R as a⊙b = a·+2·a+2·b+2, where + and · are the
ordinary addition and multiplication on R. Prove that ⊙ is commutative and associative.
Find the identity element of ⊙, and for each x ∈ R \ {−2}, find its inverse.
2.6 Fields
The motivation for the abstract definition of fields below comes from the familiar
properties of the set of all real numbers.
80 Chapter 2: Concepts with which we will do mathematics
Definition 2.6.1. A set F is a field if it has two binary operations on it, typically denoted
+ and ·, and special elements 0, 1 ∈ F , such that the following identities hold for all
m, n, p ∈ F :
(1) (Additive identity) m + 0 = m = 0 + m.
(2) (Associativity of addition) m + (n + p) = (m + n) + p.
(3) (Commutativity of addition) m + n = n + m.
(4) (Multiplicative identity) m · 1 = m = 1 · m.
(5) (Distributivity) m · (n + p) = (m · n) + (m · p).
(6) (Associativity of multiplication) m · (n · p) = (m · n) · p.
(7) (Commutativity of multiplication) m · n = n · m.
(8) (Existence of additive inverses) There exists r ∈ F such that m+r = r+m = 0.
(9) (Existence of multiplicative inverses) If m 6= 0, there exists r ∈ F such that
m · r = r · m = 1.
(10) 1 6= 0.
0 is called the additive identity and 1 is called the multiplicative identity.
It is standard to omit “·” when no confusion arises. Note that 2 · 222 + 4 is different
from 2 222 + 4, but 2 · x + 4 is the same as 2x + 4.
The familiar N+ , N0 , Z, Q, R all have the familiar binary operations + and · on them.
Among these, N+ lacks the additive identity, but all others have the additive identity 0. In
N0 , all non-zero elements lack additive inverses, and in Z, all non-zero elements other than
1 and −1 lack a multiplicative inverse. Thus N+ , N0 and Z are not fields.
We take it for granted that Q and R are fields. In Section 3.1 we construct a new
field, the field of complex numbers. There are many other fields out there, such as the set
of all real-valued rational functions with real coefficients. A few fields are developed in the
exercises to this section.
Notation 2.6.2. By Section 2.5, we know that the additive and multiplicative identities
and inverses are unique in a field. The additive inverse of m is denoted −m, and the
multiplicative inverse of a non-zero m is denoted m−1 , or also 1/m. The sum n + (−m) of
n and −m is also written as n − m, and the product n · m−1 of n and m−1 is also written as
n/m. The latter two operations are also called subtraction and division. The functions
− and −1 are unary, with domains F and F \ {0}, respectively. By Theorem 2.5.15,
−(−m) = m, and for any non-zero m, 11 = (m−1 )−1 = m.
m
Another bit of notation: · takes precedence over addition, so that “(a · b) + c” can
be written simply as “a · b + c”. Note the omitting of the multiplication symbol and
the parentheses on the right but not on the left in the theorem below; if we skipped the
parentheses on the left the meaning would be different and the equality false in the given
generality.
Section 2.6: Fields 81
Theorem 2.6.3. (The other distributive property) If F is a field, then for all m, n, p ∈ F ,
(m + n)p = mp + np.
2.6.2. Use the set-up in Example 2.3.10. Prove that Z/2Z is a field. Note that in this field
[2] = [0], so [2] does not have a multiplicative inverse. Also note that in this field, every
number has a square and cube root.
2.6.3. Use the set-up in Example 2.3.10. Prove that Z/3Z is a field. Note that in this
field [3] = [0], so [3] does not have a multiplicative inverse. Note that in this field, [2] is
not the square of any number.
2.6.4. Use the set-up in Example 2.3.10, and let n be a positive integer strictly bigger
than 1 that is not a prime integer. Prove that Z/nZ is not a field.
*2.6.5. Use the set-up in Example 2.3.10. Prove that Z/pZ is a field for any prime inte-
ger p. Note that in Z/7Z, [2] is the square of [3] and of [4].
2.6.6. Let F be a field. Prove that (−1) · x is the additive inverse of x.
2.6.7. Let F be a field. Prove that for any x ∈ F , −(−x) = x. Prove that for any non-zero
x ∈ F , 1/(1/x) = x.
2.6.8. Let F be a field. Prove that for any x, y ∈ F , (−x) · y = −(x · y) = x · (−y). (Hint:
Use the definition of additive inverses.)
2.6.9. Let F be a field. Prove that for any x, y ∈ F , (−x) · (−y) = x · y.
2.6.10. Let x be a non-zero element of a field F . Then (−x)−1 = −x−1 .
2.6.11. (An unusual field.) Let ⊕ and ⊙ be binary operations on R as defined in Exer-
cises 2.5.11 and 2.5.12. Prove that R is a field with these two binary operations.
Examples 2.7.1.
(1) < can be the relation “is a proper subset of” on a set S of all subsets of some uni-
versal set U . In this case, ≤ means “is a subset of”, > means “properly contains”,
and ≥ means “contains”.
(2) < cannot be the relation “has strictly fewer elements” on the set S of all subsets
of the set {1, 2, 3, . . . , 100}. In this case, ≤ would mean “has fewer elements or is
the same”, rather than “has fewer or the same number of elements”.
Examples 2.7.3.
(1) The set N0 has minimum 0. It is not bounded above, for any upper bound u
would be strictly smaller than the positive integer ⌈u⌉ + 1 (the ceiling function),
thus contradicting the assumption of upper bounds.
(2) The set T = {1/n : n ∈ N+ } has maximum 1, it is bounded below, the infimum is
0, and there is no minimum.
Proof: In long form, the set equals {1, 1/2, 1/3, 1/4, 1/5, . . .}. From this re-writing
it is clear that 1 is the maximum, that 0 is a lower bound and that 0 is not in the
set, so 0 cannot be the minimum. Why is 0 the largest lower bound, i.e., why is
0 the infimum of T ? Suppose that r is a positive real number. Set n = ⌈ r1 ⌉ + 1.
Then n is a positive integer, and n > r1 . By cross multiplying we get that r > n1 ,
which proves that r is not a lower bound on T . Since r was arbitrary, this proves
that no positive number is a lower bound on T , so that 0 is the greatest lower
bound on T .
* A sentence of the form “P is Q (resp. Q′ ) if R (resp. R′ )” is shorthand for two sentences: “P is Q if R”
and “P is Q′ if R′ ”.
84 Chapter 2: Concepts with which we will do mathematics
(3) The set {1/p : p is a positive prime number} has maximum 1/2 and infimum 0.
(There are infinitely many prime numbers; see the proof on page 33.)
(4) The sets {(−1)n : n ∈ N+ } and {sin(x) : x ∈ R} both have maximum 1 and
minimum −1.
(5) The set of all positive rational numbers that are strictly smaller than π has mini-
mum 0 and supremum π, but it has no maximum.
(6) The set {ex : x ∈ R} has no upper bound, it is bounded below with infimum 0,
but there is no minimum.
(7) The empty subset obviously has no minimum nor maximum. Every element of S
is vacuously an upper and a lower bound of the empty set.
(8) The set {x ∈ R : −3 < x − 5 < 3} has no minimum and maximum, but the
infimum is 2 and the supremum is 8. The set {x ∈ R : −3 ≤ x − 5 < 3} has
minimum 2, supremum 8, and no maximum. The set {x ∈ R : −3 < x − 5 ≤ 3}
has maximum 8, infimum 2, and no minimum. The set {x ∈ R : −3 ≤ x − 5 ≤ 3}
has minimum 2 and maximum 8.
(9) If T = {{}, {1}, {2}}, then the inclusion relation on T has minimum {}, and no
upper bounds in T . If we think of T as a subset of the set S of all subsets of {1, 2}
(or of the set S of all subsets of R), then T has supremum {1, 2}.
(10) If S is the set of all subsets of the set {1, 2, 3, . . . , 100} and < is the re-
lation “has strictly fewer elements”, then the empty set is the minimum
and {1, 2, 3, . . . , 100} is the maximum. If T is the subset of S consisting
only of sets with at most 2 elements, then the minimum of T is the empty
set, and there is no maximum or supremum in T . The 1002 elements
{1, 2}, {1, 3}, . . . , {1, 100}, {2, 3}, {2, 4}, . . . , {99, 100} are each greater than or
equal to all elements of T and they are not strictly smaller than any other element
of T .
In the sequel we restrict < to relations that satisfy the trichotomy property:
Definition 2.7.4. A relation < on a set S satisfies the trichotomy if for all s, t ∈ S,
exactly one of the following relations holds:
s = t, s < t, t < s.
Examples 2.7.5.
(1) The familiar < on R satisfies the trichotomy.
(2) If S is the set of all subsets of a universal set U , then the inclusion relation on S
satisfies the trichotomy.
(3) If S = {{}, {1}, {2}}, then the inclusion relation on S does not satisfy the tri-
chotomy.
Section 2.7: Order on sets, ordered fields 85
Theorem 2.7.6. Let < on S satisfy the trichotomy. Then a supremum (resp. infimum)
of a non-empty subset T of S, if it exists, is unique.
Proof. Suppose that c, c′ are suprema of T in S. Both c and c′ are upper bounds on T , and
since c is a least upper bound, necessarily c′ ≤ c. Similarly c ≤ c′ , so that by trichotomy
c = c′ . This proves that suprema are unique, and a similar proof shows that infima are
unique.
Why did we assume that the subset T of S above be non-empty? By definition every
element of S is an upper bound for ∅, so in particular if S has no minimum, then ∅ has no
least upper bound.
Definition 2.7.7. A set S with relation ≤ is well-ordered if inf(T ) = min(T ) for every
non-empty subset T of S. The element min(T ) is called the least element of T .
Examples 2.7.8.
(1) Any finite set with relation ≤ is well-ordered (simply check the finitely many
pairings for which element is smaller).
(2) Z is not well-ordered as there is no smallest whole number.
(3) Similarly, the set of all positive rational numbers is not well-ordered.
(4) N0 is well-ordered because for any non-empty subset T of N0 , by the fact that
the set is not empty there exists an element n ∈ T , and after that one has to
check which of the finitely many numbers 0, 1 through n is the smallest one in T .
Similarly, N+ is well-ordered.
Definition 2.7.9. Let F be a set with a binary operation +, with (additive) identity
0 ∈ F , and with a relation < satisfying the trichotomy. Define F + = {x ∈ F : 0 < x}, and
F − = {x ∈ F : x < 0}. Elements of F + are called positive, and element of F − are called
negative. Elements of F \ F + are called non-positive and element of F \ F − are called
non-negative.
We define intervals in F to be sets of the following form, where a, b ∈ F with a < b:
Definition 2.7.10. We say that a field F is an ordered field if it has a relation < with
the following properties:
(1) < satisfies the trichotomy, i.e., for all x, y ∈ F , exactly one of the following is true:
x < y, x = y, y < x.
(2) (Transitivity of <) For all x, y, z ∈ F , if x < y and y < z then x < z.
(3) (Compatibility of < with addition) For all x, y, z ∈ F , if x < y then x + z <
y + z.
(4) (Compatibility of < with multiplication by positive elements) For all
x, y, z ∈ F , if x < y and 0 < z then xz < yz.
A subset of an ordered field is called an ordered set.
It follows that Q is an ordered field as well: it is a field, and the trichotomy, transitiv-
ity, and compatibilities of < hold on Q as they hold on the larger set R. These properties
of < also hold on the subsets N+ , N0 and Z, even if the latter sets are not fields.
Proof. (1) x ∈ F + if and only if 0 < x, and by compatibility of < with addition this implies
that −x = 0 − x < x − x = 0, so that −x ∈ F − . The rest of (1) is equally easy.
(2) By assumption 1 6= 0. If 1 6∈ F + , then by trichotomy 1 < 0, and by (1), 0 < −1.
Thus by compatibility of < with multiplication by positive numbers, since −1 is supposedly
positive, 0 = 0·(−1) < (−1)·(−1). By Exercise 2.6.9, (−1)·(−1) = 1, which by transitivity
says that 0 < 1. Since we also assumed that 1 < 0, we get a contradiction to the trichotomy.
So necessarily 1 ∈ F + .
(3) Suppose that x ∈ F + . By trichotomy then exactly one of the following three
inequalities holds: x−1 < 0, x = 0, x−1 > 0. Let stand for the correct inequality (or
equality). By compatibility of < with multiplication by the positive number x, we then
have 1 = x · x−1 x · 0 = 0. By (2), the relation must equal >, so that x−1 > 0.
If instead x ∈ F − , then by (1), −x ∈ F + , and by what we have proved of (3),
(−x)−1 ∈ F + . By Exercise 2.6.10 then −x−1 = (−x)−1 ∈ F + , so that x−1 ∈ F − by (1).
Section 2.7: Order on sets, ordered fields 87
Proof. (1) By assumption, 0 < x and 0 < y. Then by compatibility of < with addition,
y = 0 + y < x + y, and since 0 < y, by transitivity of <, 0 < x + y, which proves that
x + y ∈ F +.
(2) By assumption, 0 < x and 0 < y. Then by compatibility of < with multiplication
by positive numbers, 0 = 0 · y < x · y, which proves that x · y ∈ F + .
The proofs of the rest are similar.
2.7.6. Suppose that a subset T of positive elements of an ordered field has a minimum
(resp., maximum, infimum, supremum) b. What can you say about the maximum (resp.,
minimum, supremum, infimum) of the set {1/t : t ∈ T }?
† 2.7.7. (Invoked in Theorem 7.3.4.) Let S and T be subsets of an ordered field F . Let
S + T = {s + t : s ∈ S, t ∈ T }.
i) If S and T are bounded above, prove that sup(S + T ) ≤ sup S + sup T .
ii) If S and T are bounded below, prove that inf(S + T ) ≥ inf S + inf T .
2.7.8. Let F be an ordered field. Prove that 2, 3 are positive (and so not zero).
2.7.9. Let F be a field and x ∈ F . Prove that x2 = 0 if and only if x = 0.
2.7.10. Let F be an ordered field and x ∈ F . Let x, y ∈ F be non-negative (resp. non-
positive) such that x + y = 0. Prove that x = y = 0.
2.7.11. Let F be an ordered field. Suppose that x ≤ y and p ≤ q. Prove that x+p ≤ y +q.
If in addition x < y or p < q, prove that x + p < y + q.
2.7.12. Let F be an ordered field and x, y ∈ F . Prove that x < y if and only if 0 < y − x.
Prove that x ≤ y if and only if 0 ≤ y − x.
2.7.13. Let F be an ordered field, and x, y ∈ F + with x < y. Prove that 1/y < 1/x.
2.7.14. Let F be an ordered field. Suppose that x < y and that x, y are non-zero. Does
it follow that 1/y < 1/x? Prove or give a counterexample.
†2.7.15. (In-betweenness in an ordered field) Let F be an ordered field. Let x, y ∈ F with
x < y. Prove that x < (x + y)/2 < y. (Why are we allowed to divide by 2?)
2.7.16. Find an ordered set without a minimum.
2.7.17. Let F be an ordered set. Prove that any non-empty finite subset S of F has a
maximum and a minimum. Prove that for all s ∈ S, min(S) ≤ s ≤ max(S).
2.7.18. Let n > 1 be an integer and F = Z/nZ. (This was defined in Example 2.3.10.)
Prove that F is not an ordered set. In particular, using Exercise 2.6.5, for any prime
integer p, Z/pZ is a field that is not ordered.
Integers are very special real numbers, and non-negative integers are more special
still. This section contains a formal definition of N0 as a subset of R with derivations of a few
important properties. The set Z of all integers is defined as N0 ∪ {n ∈ R : −n ∈ N0 }; in this
section we derive no special properties of Z. (We all have an intuitive notion what integers
are, and in order to get to the formal power series at the end of this book in reasonable
Section 2.8: What are the integers? 89
amount of time I recommend covering this section very lightly if at all. Regardless of
whether you read this section or not, you should be able to do any exercises here.)
Proof. Suppose that m ∈ N0 is not 0 and is not equal to n + 1 for any n ∈ N0 . Let
T = N0 \ {m}. Then 0 ∈ T , and if n ∈ T , then n + 1 ∈ T , so that T is an inductive set.
But N0 is a subset of every inductive set, so that m ∈ N0 would have to be in T , which is
a contradiction. Thus every non-zero m ∈ N0 equals n + 1 for some n ∈ N0 .
Proof. Let T be the subset of N0 consisting of all n that satisfy the stated property.
Suppose that there exists m ∈ N0 strictly between 0 and 0+1 = 1. Then by Theorem 2.8.3,
m = p + 1 for some p ∈ N0 . By compatibility of order with addition, p = m − 1 < 1 − 1 = 0,
contradicting Theorem 2.8.2 which asserts that elements of N0 are non-negative. This
proves that 0 ∈ T .
Now suppose that n ∈ T . We want to prove that n+1 ∈ T . Suppose for contradiction
that there exists m ∈ N0 that is strictly between n +1 and (n +1) +1. Since m > n +1 ≥ 1,
m is not zero, so that by Theorem 2.8.3, m = p + 1 for some p ∈ N0 . Then by compatibility
of order with addition, p is strictly between n and n + 1, which contradicts the assumption
that n ∈ T . So necessarily there is no m with the stated property, so that n + 1 ∈ T .
This proves that T is an inductive subset of N0 , and since N0 is contained in every
inductive subset, the theorem is proved.
90 Chapter 2: Concepts with which we will do mathematics
2.8.2. Let F be an ordered field and let x ∈ F satisfy 0 < x < 1. Prove that for all
positive integers n, 0 < xn < 1 and xn+1 < x.
2.8.3. (Bernoulli’s inequality) Prove that for all x ∈ R≥0 and all n ∈ N0 , (1 + x)n ≥
1 + nx.
2.8.4. Does the set {2n /n : n ∈ N+ } have a lower (resp. upper bound)? Justify. Repeat
with {n/2n : n ∈ N+ }.
2.8.5. Prove that for all n ∈ Z there exist no integer strictly between n and n + 1.
(Hint: if n is negative, then the interval (n, n + 1) can be mirrored across 0 to the interval
(−n − 1, (−n − 1) + 1).)
2.8.6. Prove that for all x ∈ R, the interval (x, x + 1) can contain at most one integer.
Theorem 2.9.2. Let n be a positive integer and F an ordered field. Then the function
f : F → F defined by f (x) = xn is strictly increasing on F + ∪ {0}.
Corollary 2.9.3. Let n be a positive integer and F an ordered field. Suppose that x, y ∈
F + ∪ {0} have the property that xn < y n . Then x < y. (In other words, the nth radical
function is strictly increasing on F + ∪ {0}.)
Proof. Let y ∈ Range(f ). Then y = f (x) for some x ∈ F . If also y = f (z) for some z ∈ F ,
since f is strictly monotone, x = z. So f is injective and x is unique. Thus we define
g : Range(f ) → F by g(y) = x. Then by definition for all x ∈ F , g(f (x)) = x and for all
y ∈ Range(f ), f (g(y)) = y. If f is increasing and y1 , y2 ∈ Range(f ) such that y1 < y2 , then
g(y1 ) < g(y2 ) for otherwise by the increasing property of f , y1 = f (g(y1)) ≥ f (g(y2 )) = y2 ,
which is a contradiction. Thus if f is increasing, so is g = f −1 . Thus if g = f −1 is
increasing, so is f = (f −1 )−1 . The same reasoning goes for the decreasing property.
Proof of (3): Let x, y ∈ F with x < y. Suppose that f and g are both increas-
ing functions, so that f (x) < f (y) < 0 and g(x) < g(y) < 0. Then −f (y), −g(x)
are positive numbers, so by compatibility of < with multiplication by positive numbers,
f (x)(−g(x)) < f (y)(−g(x)) and (−f (y))g(x) < (−f (y))g(y). By Exercise 2.6.8, this
says that −(f (x)g(x)) < −(f (y)g(x)) and −(f (y)g(x)) < −(f (y))g(y)). By transitiv-
ity of < then −(f (x)g(x)) < −(f (y))g(y)). By compatibility of < with addition, by
adding f (x)g(x) + f (y)g(y) we get that f (y)g(y) < f (x)g(x). With function notation,
(f g)(y) < (f g)(x), and since x and y were arbitrary, this says that f g is strictly decreas-
ing. The proof in the case where both f and g are strictly decreasing is similar.
2.9.2. Let n be an even positive integer and F an ordered field. Prove that the function
f : F − ∪ {0} → F defined by f (x) = xn is strictly decreasing.
2.9.3. Let n be an odd positive integer and F an ordered field. Suppose that a, b ∈ F and
that an < bn . Prove that a < b.
2.9.4. Let F be an ordered field, a ∈ F + and f : F → F defined by f (x) = ax. Prove
that f is a strictly increasing function.
2.9.5. Let F be an ordered field, a ∈ F − and f : F → F defined by f (x) = ax. Prove
that f is a strictly decreasing function.
2.9.6. Prove that the composition of (strictly) increasing functions is (strictly) increasing.
Prove that the composition of (strictly) decreasing functions is (strictly) increasing.
2.9.7. Prove that the composition of a (strictly) increasing function with a (strictly) de-
creasing function, in any order, is (strictly) decreasing.
2.9.8. Suppose that f : F → G is strictly monotone.
i) Let B be a subset of F , and define g : B → G by g(x) = f (x). Prove that g is
strictly monotone.
ii) Define h : B → Range(g) by h(x) = f (x). Prove that h is bijective.
2.9.9. Give an example of a non-decreasing function f : R → R that is not injective.
In this section we formalize and analyze the important Least upper bound property
of R that we accept without proof.
Axiom 2.10.1. (Least upper/greatest lower bound property) For any non-empty
subset T of R that is bounded above, sup(T ) exists in R.
Similarly, for any non-empty subset T of R that is bounded below, inf(T ) exists in
R.
Theorem 2.10.2. The ceiling function makes sense on R, i.e., there exists a function
⌈ ⌉ : R → Z such that for all x ∈ R, ⌈x⌉ ≥ x and there exists no integer n with the property
⌈x⌉ > n ≥ x.
Similarly, there exists the floor function ⌊ ⌋ : R → Z such that for all x ∈ R, ⌊x⌋ ≤ x
and there exists no integer n with the property ⌊x⌋ < n ≤ x.
Theorem 2.10.4. Between any two distinct real numbers there is a rational number
(strictly between them).
Proof. Let x, y ∈ R with x < y. Then y − x > 0, and by the Archimedean property, there
exists a positive integer p such that 2 < p(y − x). Let r = p1 (⌈px⌉ + 1) (recall that ⌈px⌉
is the ceiling function of px). So r is a rational number. By the definition of the ceiling
function, px ≤ ⌈px⌉ < ⌈px⌉+1. Since p is positive, so is p−1 , and by compatibility of < with
multiplication by positive numbers, x < p1 (⌈px⌉+1) = r. Furthermore, px+1 < 2+px < py
by the choice of p, so that ⌈px⌉ + 1 < py and finally r = p1 (⌈px⌉ + 1) < y.
Remark 2.10.5. It is also true that between any two real numbers there is an irrational
√
number. Namely, let x < y be real numbers. It is proved on page 21 that 2 is a
positive irrational number. By compatibility of < with multiplication by positive numbers
√ √
then x 2 < y 2. By the Archimedean property, there is a rational number r such that
√ √
x 2 < r < y 2. If r = 0, again by the Archimedean property there exists a rational
√ √
number s such that x 2 < 0 < s < y 2. So by possibly replacing r by this s we
may assume that r is a non-zero rational number. Then again by compatibility and by
√ √
Theorem 2.7.12, x < r/ 2 < y. But r is non-zero, so that r/ 2 is an irrational number
strictly between the given real numbers x and y.
Theorem 2.10.6. Every positive real number is the square of a positive real number.
(s + p1 )2 = s2 + 2s 1 1
p + p2 < y. This means that s + p ∈ T , so that s is not an upper bound
on T , which is a contradiction. By trichotomy we conclude that necessarily s2 ≥ y. This
in particular implies that s > 0.
Suppose next that s2 > y. [We want to find a small positive number q such
that (s − q)2 > y. This would prove that for all r ∈ T , r 2 ≤ y < (s − q)2 . We
need to guarantee that s − q is still positive, and then by the increasing
property of the squaring function on R+ , for all r ∈ T , r ≤ s − q, which
contradicts the fact that s is the supremum of T . This q might as well be
of the form p1 for some large positive integer p.] By the Archimedean property
there exists a positive integer p1 such that 2s < p1 (s2 − y), and there exists a positive
integer p2 such that 1 < p2 s. Let p = max{p1 , p2 }. Then 2s < p(s2 − y) and 1 < ps.
The assumption 1 < ps implies that s − p1 is positive. Similarly to before, we derive that
2s − p1 < p(s2 − y) and with compatibilities we derive that y < (s − p1 )2 . Then for any
r ∈ T , r 2 < y < (s − 1p )2 . But then by Corollary 2.9.3, r < s − 1p . Hence s − p1 is an
upper bound on T , contradicting the assumption that s is the least upper bound on T .
This proves that s2 ≤ y.
Then the trichotomy on R gives that s2 = y.
In the next theorem we use the standard notation “±” when we mean that the result
should hold in place either for + or for −.
98 Chapter 2: Concepts with which we will do mathematics
Proof. (1) By the first part of the previous theorem, −|x| ≤ x ≤ |x| and −|y| ≤ y ≤ |y|.
Thus
so that by transitivity, −(|x| + |y|) ≤ x + y ≤ |x| + |y|. Thus by part (4) of the previous
theorem, |x + y| ≤ |x| + |y|. It follows that |x − y| = |x + (−y)| ≤ |x| + | − y|, and by the
second part again this is equal to |x| + |y|.
(2) By (1), |x| = |x ± y − ±y| ≤ |x ± y| + |y|, so that |x| − |y| ≤ |x ± y|. Similarly,
|y| − |x| ≤ |y ± x|. But by the second part of the previous theorem, |y − x| = | − (y − x)| =
|x − y| and |y + x| = |x + y|, so that |x ± y| ≥ |x| − |y| and |x ± y| ≥ |y| − |x| = −(|x| − |y|).
Since ||x| − |y|| is either |x| − |y| or |y| − |x|, (2) follows.
In this chapter we construct complex numbers from the real numbers. Even if we
want to measure only real numbers in the real world, the more general complex numbers
streamline many constructions, so they are an important tool. We prove the important
basic properties of complex numbers and their field C in the first two sections. As a starting
point we take it as fact that R is an ordered field with the Least upper bound property
and the Archimedean property.
The last two sections are about the Euclidean topology on R and C, which is crucial
in the subsequent chapters on limits. I cover those two sections lightly but invoke them as
needed.
Note that there is no real number x such that x2 = −1. In this section we build the
smallest possible field containing R with an element whose square is −1.
b b
(0, 1)
(−3, 1) b
(2, 0.5)
(0, 0)
b b b
(−1, 0) (1, 0)
b
(0, −1)
Section 3.1: Complex numbers 101
Definition 3.1.2. The horizontal axis, on which all complex numbers are of the form
(r, 0), is called the real axis, and the vertical axis, on which all complex numbers are of
the form (0, r), is called the imaginary axis.
The real part of (a, b) is Re(a, b) = a, and the imaginary part is Im(a, b) = b.
Note that the imaginary part of a complex number is a real number.
(a + c, b + d)
b
(c, d) b
b
(a, b)
b
However, C is not an ordered field in the sense of Definition 2.7.10, and a rigorous
proof is left for Exercise 3.1.6.
Rather than giving a formal proof that C is a field, below is a list of the necessary
easy verifications. The reader is encouraged to verify all.
(1) ·, + are associative and commutative.
(2) · distributes over +.
(3) For all x ∈ C, (0, 0) + x = x. In other words, C has the additive identity 0 = (0, 0).
(The additive identity of a field is written as “0” even when it is an ordered pair
of real numbers.)
(4) For all (a, b) ∈ C, (−a, −b)+(a, b) = (0, 0). In other words, every element (a, b) has
an additive inverse −(a, b) = (−a, −b). By Theorem 2.5.10, the additive inverse is
unique.
(5) For all x ∈ C, (1, 0) · x = x. In other words, C has a multiplicative identity
1 = (1, 0). (The multiplicative identity of a field is written as “1” even when it is
an ordered pair of real numbers.)
(6) (1, 0) 6= (0, 0). i.e., 1 6= 0.
(7) Every non-zero element has a multiplicative inverse: for all (a, b) 6= (0, 0),
a −b a −b
(a, b)−1 = ( a2 +b 2 , a2 +b2 ) ∈ C and ( a2 +b2 , a2 +b2 ) · (a, b) = (1, 0). By Theo-
rem 2.5.10, the multiplicative inverse is unique. For example, the multiplicative
3 5i
inverse of (3, 5) is 34 , − 34 .
102 Chapter 3: The field of complex numbers, and topology
Notation 3.1.4. There is another notation for elements of C that is in some ways better:
(a, b) = a + bi, with (a, 0) = a and (0, b) = bi. This notational convention does not lose any
information, but it does save a few writing strokes. Addition is easy: (a + bi) + (c + di) =
(a + b) + (c + d)i, the additive inverse of a + bi is −a − bi, the additive identity is 0. This
notation justifies the possibly strange earlier definition of multiplication in C:
(a, b) · (c, d) = (a + bi)(c + di) = ac + adi + bic + bidi = (ac − bd, ad + bc).
The multiplicative identity is 1, i = 0 + 1 · i is that number for which i2 = (−i)2 = −1, and
the multiplicative inverse of a non-zero a + bi is aa−bi
2 +b2 .
Also with this notation we apply the real-part and imaginary-part functions: the
real part of a + bi is Re(a + bi) = a, and the imaginary part is Im(a + bi) = b.
We next identify R as a subset of C: the operative word here is “identify”,
as R is not a subset of R × R, i.e., real numbers are not equal to ordered pairs of real
numbers. Nevertheless, with the natural identification of any real number r with the
complex number (r, 0) = r + i · 0 = r, we can think of R as a subset of C.
In total we have the following natural inclusions that are compatible with addition
and multiplication:
N0 ⊆ Z ⊆ Q ⊆ R ⊆ C.
These number systems progressively contain more numbers and more solutions of more
equations. For example, the equation 1 + x = 0 does not have any solutions in N0 but it
does have one in Z; the equation 1 + 2x = 0 does not have any solutions in Z, but it does
have one in Q; the equation 2 − x2 = 0 does not have any solutions in Q, but it does have
√ √
two in R (namely 2 and − 2); the equation 2 + x2 = 0 does not have any solutions in R,
√ √
but it does have two in C (namely 2i and − 2i). Furthermore, the standard quadratic
formula always yields roots of quadratic equations in C.*
* One of the excellent properties of C is the Fundamental Theorem of Algebra: every polynomial with
coefficients in C or R has roots in C. The proof of this fact is proved in a junior-level class on complex analysis or
in a senior-level class on algebra. The theorem does not say how to find those roots, only that they exist. In fact,
there is another theorem in Galois theory that says that in general it is impossible to find roots of a polynomial
by using radicals, sums, differences, products, and quotients.
Section 3.2: Functions related to complex numbers 103
√
3
3.1.2. Let x = 2 + 2i . Draw x, x2 , x3 , x4 , x5 , x6 , x7 . What do you observe?
3.1.3. Draw the following sets in C:
i) {x : the real part of x is 3}.
ii) {x : the imaginary part of x is 3}.
iii) {x : the product of the real and imaginary parts of x is 3}.
iv) {x : the product of the real and imaginary parts of x is 0}.
3.1.4. Let x ∈ C such that x2 = −1. Prove that either x = i or x = −i.
3.1.5. Prove that the only x ∈ C with x2 = 0 is x = 0.
3.1.6. Prove that C is not ordered in the sense of Definition 2.7.10. Justify any facts (such
as that 0 < 1).
x · y = (a + bi) · (c + di)
= ac − bd + (ad + bc)i
= ac − bd − (ad + bc)i
= (a − bi) · (c − di)
= x · y.
Remark 3.2.3. All functions above with domain and codomain equal to C were given
with some sort of algebraic formulation or description. How else can we represent such
a function? We certainly cannot give a tabular function formulation since the domain is
infinite. But we cannot draw such a function either: for the domain we would need to draw
the two-dimensional real plane, and the same for the codomain, so we would have to draw
the four-dimensional picture to see it all, and that is something we cannot do. So we need
to be satisfied with the algebraic descriptions of functions.
We have seen the absolute value function in ordered fields. The Pythagorean theorem
in the plane R × R motivates the natural definition of distance in C:
bi b
(a, b) = a + bi
a
Definition 3.3.1. The absolute value of a complex number (a, b) = a + bi is |a + bi| =
√
a2 + b2 ∈ R. The absolute value is also called the norm or the length. The distance
between complex numbers x and y is |x − y|.
Since the absolute value is a real number, this gives a way to partially compare com-
plex numbers, say by their lengths, or by their real components. But recall Exercise 3.1.6:
C is not an ordered field.
The absolute value of (a, 0) = a or (0, a) = ia is |a|; the absolute value of (1, 1) = 1+i
√ √ √ √ √ √
is 2; the absolute value of (1, 2) = 1+i 2 is 3; the absolute value of (1, 3) = 1+i 3
√
is 4 = 2, et cetera.
is the sum of two non-negative real numbers, and is thus non-negative. This proves (2).
Furthermore, since R is an ordered field, by Exercise 2.7.9, a2 , b2 ≥ 0, so by Exercise 2.7.10,
a2 + b2 = 0 if and only if a = b = 0. This proves (3).
√
Since b2 ≥ 0, it follows that a2 ≤ a2 + b2 , so that by Corollary 2.9.3, |a| = a2 ≤
√
a2 + b2 . This proves that | Re x| ≤ |x|. Similarly | Im x| ≤ |x|. This proves (4).
If x 6= 0, then by (3), |x| is a non-zero (real, complex) number, and by (2), x/|x|2 is
the multiplicative inverse of x. This proves (5).
We could prove (6) with straightforward but laborious algebra by using that x = a+bi
and z = c + di for some real numbers a, b, c, d, and expanding the relevant sides, but the
following proof is better:
|xy|2 = (xy)(xy) (by (3))
= xyx y (by Theorem 3.2.2)
= xxyy (by associativity and commutativity of · in C)
= |x|2 |y|2 (by (3))
= (|x||y|)2 (by associativity and commutativity of · in R).
Now (6) follows by taking square roots of both sides.
To prove the triangle inequality, we also use the squares of the desired quantities to
avoid having to write the square root:
2
|x ± y| = (x ± y)(x ± y) (by (2))
= (x ± y)(x ± y) (by Theorem 3.2.2 (2))
= xx ± xy ± yx + yy (by algebra)
= |x|2 ± xy ± xy + |y|2 (by Theorem 3.2.2 (2))
= |x|2 ± 2 Re(xy) + |y|2 (by Exercise 3.2.1 iii))
≤ |x|2 + 2| Re(xy)| + |y|2 (comparison of real numbers)
≤ |x|2 + 2|xy| + |y|2 (by (4))
= |x|2 + 2|x||y| + |y|2 (by (6))
= |x|2 + 2|x||y| + |y|2 (by (1))
= (|x| + |y|)2,
and since the squaring function is strictly increasing on the set of non-negative real numbers,
it follows that |x ± y| ≤ |x| + |y|. This proves (7), and by Theorem 2.11.3 also (8).
A consequence of part (6) of this theorem is that if x ∈ C has absolute value greater
than 1, then positive integer powers of x have increasingly larger absolute values, if |x| < 1,
then positive integer powers of x have get increasingly smaller than 1, and if |x| = 1, then
Section 3.3: Absolute value in C 107
For example, any set with only finitely many elements is bounded: if A =
{x1 , . . . , xn }, set M = max{|x1 |, . . . , |xn |} + 1, and then certainly for all x ∈ A, |x| < M .
The subset Z of C is not bounded. The infinite set {x ∈ C : |x| = 5} is bounded.
The set {in : n ∈ N+ } is bounded. The set {1/n : n ∈ N+ } is bounded. The set
{x ∈ C : the angle of x counterclockwise from the positive x-axis is π/4} is not bounded.
(Draw these sets.)
*3.3.6. (Keep in mind that the square root function on C is yet to be discussed carefully;
see Exercise 5.4.6.) Discuss correctness/incorrectness issues with the following equalities:
√ √ √ √ p √
i) −6 = ( 3i)( 12i) = −3 −12 = (−3)(−12) = 36 = 6.
ii) (R. Bombelli, 1560, when solving the equation x3 = 15x + 4.)
q q
3 √ 3 √
4 = 2 + −121 + 2 − −121.
p √ p √ √
iii) (G. Leibniz, 1675) 1 + −3 + 1 − −3 = 6.
So far we have expressed complex numbers with pairs of real numbers either in
ordered-pair notation (x, y) or in the form x + yi. But a complex number can also be
uniquely determined from its absolute value and the angle measured counterclockwise from
the positive real axis to the line connecting (0, 0) and (x, y).
Any choice of θ works for the complex number zero. The angles are measured in
radians. (While you may say degrees out loud, get into the habit of writing down radians;
later we will see how radians work better.) The angle is not unique; addition of any integer
multiple of 2π to it does not change the complex number.
√
For further examples, 1+i2 3 is on the unit circle√centered at the origin and is at angle
π/3 counterclockwise from the positive real axis, 1−i2 3 is on the √same unit circle and at
angle −π/3 counterclockwise from the positive real axis, and −1+i 2
3
is on the same circle
and at angle 2π/3 counterclockwise from the positive real axis.
We refer to the entries in the ordered pair (x, y) ∈ R × R = C as Cartesian co-
ordinates. The coordinates (r, θ) consisting of the absolute value r of a complex number
and its angle θ (measured counterclockwise from the positive real axis) are referred to as
polar coordinates.
Section 3.4: Polar coordinates 109
x = r cos θ,
y = r sin θ,
Theorem 3.4.1. (Fun fact) Let z be a complex number in polar coordinates r and θ.
Define functions M, S, R : C → C as follows:
M (x) = zx = Multiply x by z,
S(x) = rx = Stretch x by a factor of r,
R(x) = Rotate x by angle θ counterclockwise around (0, 0).
Then
M = S ◦ R = R ◦ S,
So it suffices to prove that R ◦ S(x) = M (x) for all x. We first prove this for the
special cases x = 1 and x = i, after which we prove it for general x.
The angle of M (1) = z is θ and its length is r. But (R ◦ S)(1) = R(r) also has
length r and angle θ, so that M (1) = (R ◦ S)(1).
Write z = (c, d) for some c, d ∈ R. Then M (i) = (−d, c), and we draw a few
examples:
b
(c1 , d1 )
(c2 , d2 )
(−d1 , c1 ) b b b
(−d4 , c4 )
(−d2 , c2 ) b b b
(−d3 , c3 )
(c4 , d4 )
(c3 , d3 ) b
The complex number M (i) = (−d, c) has length equal to |(c, d)| = r. The angle between
(c, d) and (−d, c) is 90◦ , or π/2 radians, and more precisely, to get from z = (c, d) to
M (i) = (−d, c) we have to rotate counterclockwise by π/2. Thus the angle formed by M (i)
counterclockwise from the positive real axis is θ + π/2. But (R ◦ S)(i) = R(ri) also has the
same angle and length as M (i), so that M (i) = (R ◦ S)(i).
Now let x be general in C. Write x = a + bi for some a, b ∈ R. By the geometry of
rotation, R(a + bi) = R(a) + R(bi) = aR(1) + bR(i). Then
Theorem 3.4.2. For any non-zero complex number x and any integer n, the angle of xn
counterclockwise away from the positive x-axis is n times the angle of x. Also, |xn | = |x|n.
Proof. If n = 1, this is trivially true. Now suppose that the theorem is true for some
positive integer n. Then the angle of xn−1 counterclockwise away from the positive x-axis
is n − 1 times the angle of x, and by Theorem 3.4.1, the angle of xn = xxn−1 is the sum
of the angles of x and xn−1 , so that it is n times the angle of x. Similarly, by part (6) of
Theorem 3.3.2, |xn | = xxn−1 = |x| xn−1 = |x||x|n−1 = |x|n .
Thus by induction the theorem is proved for all positive n.
Still keep n positive. Since 1 = x−n xn has angle 0 and xn has angle n times the
angle of x, by Theorem 3.4.1, x−n must have angle −n times the angle of x. Also, by
part (6) of Theorem 3.3.2, 1 = |x−n | |xn | = |x−n | |x|n , so that |x−n | = |x|−n . Thus the
theorem holds for all non-zero n.
Finally, if n = 0, then then angle of xn = 1 is 0, which is 0 times the angle of x, and
|x0 | = |1| = 1 = |x|0 .
√
Thus for example, −1+2 3i is on the
√
unit circle at angle 2π/3 away from the positive
−1+ 3i
x-axis, and so the second power of 2
is on the unit circle at angle 4π/3 away from
the positive
√
x-axis, and the cube power is on the unit circle at angle 2π, i.e., at angle 0, so
−1+ 3i 3
that ( 2 ) = 1.
Corollary 3.4.3. Let n be a positive integer. Let A be the set of all complex numbers
on the unit circle at angles 0, 2π 2π 2π 2π
n , 2 n , 3 n , . . . , (n − 1) n . Then A equals the set of all the
complex number solutions to the equation xn = 1.
Proof. Let a ∈ A. By the previous theorem, an has length 1 and angle an integer multiple
of 2π, so that an = 1. If b ∈ C satisfies bn = 1, then |b|n = |bn | = 1, so that the non-
negative real number |b| equals 1. Thus b is on the unit circle. If θ is its angle, then the
angle of bn = 1 is by the previous theorem equal to nθ, so that nθ must be an integer
multiple of 2π. It follows that θ is an integer multiple of 2π
n
, but all those angles appear for
the elements of A. Thus every element of A is a root, and every root is an element of A,
which proves the corollary.
Thus we can talk about nth roots of complex numbers. For non-negative real numbers
we choose its non-negative square root as the square root, but there is no natural choice
for the square root of a complex number; more on that is in the chapter on continuity in
Exercise 5.4.6.
112 Chapter 3: The field of complex numbers, and topology
b
i
3.4.5. Prove that for any non-zero z ∈ C there exist exactly two elements in C whose
square equals z. (Hint: Theorem 2.10.6 and Theorem 3.4.1.)
3.4.6. Let z be non-zero in C and n ∈ N+ with polar coordinates r and θ. For and
integer k, let zk be the complex number whose absolute value equals r 1/n and whose angle
measured counterclockwise from the positive x axis is kθ/n.
i) Prove that zk is uniquely determined.
ii) Prove that for all k, zkn = z. (Hint: Theorem 3.4.1.)
iii) Prove that there the set {zk : k ∈ N} contains exactly n elements.
Section 3.5: Topology on the fields of real and complex numbers 113
When reading this section, absorb the following main points of topology: open ball,
open set, limit point, closed set. The main object of this section is to introduce limit points
of sets so that we can in subsequent chapters talk about limits of functions, sequences, and
series.
By a topology on a set we mean that some sets are declared open, subject to the
conditions that the empty set and the whole set have to be open, that arbitrary unions of
open sets be open, and that finite intersections of open sets be open. In any topology, the
complement of an open set is called closed, but a set may be neither open nor closed. A
topology can be imposed on any set, not just R or C, but we focus on these two cases, and
in fact we work only with the “standard”, or “Euclidean” topology.
The following are both B(0, 1), but the left one is a ball in R and the right one is a
ball in C. Note that they are different: by definition the left set is an open subset of R,
but if you think of it as a subset of C, it is not open (see Exercise 3.5.1).
−1 0 1 −1 0 1
Examples 3.5.2.
(1) B(a, r) is open.
(2) F = ∪a∈F B(a, 1) is an open set.
(3) The empty set is an open set because it is vacuously a union of open sets (see
page 51).
(4) For real numbers a < b, the interval in R of the form (a, b) is an open set in R
because it is equal to B((a + b)/2, (b − a)/2). The interval (a, ∞) is open because
it equals ∪∞n=1 B(a + n, 1).
(5) The set A = {x ∈ C : 1 < Re x < 3 and 0.5 < Im x < 2} is open in C. Namely,
this set is the union ∪a∈A B(a, min{Re a − 1, 3 − Re a, Im a − 0.5, 2 − Im a}.
114 Chapter 3: The field of complex numbers, and topology
(6) The set A = {x ∈ C : Re x < 1, Im x < 2} is open in C. Namely, this set is the
union ∪a∈A B(a, min{1 − Re a, 2 − Im a}.
Proof. For each integer n ≥ 2, a + r/n ∈ B(a, r). Since r > 0, these numbers are all
distinct. Since N0 is infinite, so is the set of all integers that are at least 2.
Theorem 3.5.5. Let A be an open set and let a ∈ A. Then there exists r > 0 such that
B(a, r) ⊆ A.
Proof. Since A is open, it is a union of open balls. Thus a is an element of one such ball
B(b, s), with B(b, s) ⊆ A.
Since a ∈ B(b, s), we have that |a − b| < s, so that r =
a
s − |a − b| is a positive real number. (In the illustration, this b
claim that B(a, r) ⊆ B(b, s). To prove this, let x ∈ B(a, r). Then
|x −b| = |x −a+a−b| ≤ |x −a| +|a−b| by the triangle inequality,
and since |x − a| < r = s − |a − b|, it means that |x − b| < s, so
that x ∈ B(b, s). This proves the claim, and hence it proves that B(a, r) ⊆ A.
Proof. The empty set can be written as an empty union of open balls, so it is open
vacuously, and F = ∪a∈F B(a, 1), so that F is open. This proves (1).
Every open set is a union of open balls, and so the union of open sets is a union of
open balls, hence open. This proves (2).
Section 3.5: Topology on the fields of real and complex numbers 115
Examples 3.5.8.
(1) If A = {a}, then the set of limit points of A is the empty set.
(2) If A = Q, then the set of limit points of A is R.
(3) The set of limit points of ∅ is empty, the set of limit points of R is R, and the set
of limit points of C is C.
(4) The set of limit points of B(a, r) equals {x ∈ F : |x − a| ≤ r}.
Definition 3.5.9. A set A is a closed set if it contains all of its limit points.
Proof. Suppose that A is open. Let x ∈ A. By Theorem 3.5.5, there exists r > 0 such that
B(x, r) ⊆ A. Thus B(x, r) ∩ (F \ A) = ∅, so that x is not a limit point of F \ A. Thus
no point of A is a limit point of F \ A, which proves that any limit points of F \ A are in
F \ A. Thus F \ A is closed.
Now suppose that F \ A is closed. Let x ∈ A. Since F \ A contains all of its limit
points, then x is not a limit point of F \ A. Thus by the definition of limit points, there
exists r > 0 such that B(x, r) ∩ (F \ A) is empty. This means that B(x, r) ⊆ A. Thus
A = ∪x∈A B(x, rx ) for appropriate rx > 0, so that A is open.
The following is now almost immediate from previous results:
116 Chapter 3: The field of complex numbers, and topology
Proof. Exercise 2.1.8 proves that the union of the complements of two sets equals the
complement of the intersection and that the it was proved that the intersection of the
complements of two sets equals the complement of the union, and an equally easily proved
mathematical truth is the following generalization to possibly many more sets:
[ \ \ [
F\ Ak = (F \ Ak ), F\ Ak = (F \ Ak ).
k∈I k∈I k∈I k∈I
With this, (2) and (3) follow from the last two theorems, and (1) is trivial.
Both ∅ and F are open and closed, and these turn out to be the only sets that
are both open and closed (see Exercise 3.5.2). Some sets are neither open nor closed (see
Exercise 3.5.1).
3.5.6. Let a be a limit point of a set A. Suppose that a set B contains A. Prove that a is
a limit point of B.
3.5.7. Give examples of sets A ⊆ B ⊆ C and a ∈ C such that a is a limit point of B but
not of A.
Section 3.6: The Heine-Borel theorem 117
3.5.8. Let A be a subset of C all of whose elements are real numbers. Prove that every
limit point of A is a real number.
Closed and bounded sets in C and R have many excellent properties – we will for
example see in Section 5.3 that when a good (say continuous) real-valued function has a
closed and bounded domain, then that function achieves a maximum and minimum value,
et cetera. The concept of uniform continuity (introduced in Section 5.5) needs the fairly
technical Heine-Borel theorems proved in this section.
Construction 3.6.1. (Halving closed and bounded subsets of R and quartering closed
and bounded subsets of C) Let A be a bounded subset of of R or of C, and let P be a
property that applies to subsets of A. Boundedness of A guarantees that A fits inside
a closed bounded rectangle R0 in C. If A is a subset of R, we take the “rectangle” R0
to have height zero. This rectangle can be halved lengthwise and crosswise to get four
equal closed subrectangles. In the next iteration we pick, if possible, one of these four
closed quarter subrectangles such that its intersection with A has property P . We call this
subrectangle R1 , and note that the side lengths are half the side lengths in R0 (and so the
area of R1 is one quarter of the area of R0 ). In general, once we have Rn , we pick its closed
quarter subrectangle Rn+1 such that Rn+1 ∩ A has property P and the sides of Rn+1 are
half the lengths of the sides in Rn . Write Rn = [an , bn] × [cn , dn ] for some real numbers
an ≤ bn and cn ≤ dn . By construction, for all n, bn − an = (b0 − a0 )/2n , and
a0 ≤ a1 ≤ a2 ≤ · · · ≤ an ≤ · · · ≤ bn · · · ≤ b2 ≤ b1 ≤ b0 .
This means that {a1 , a2 , a3 , . . .} is a non-empty subset of R that is bounded above, so that
by the Least upper bound property/theorem (Axiom 2.10.1), a = sup{a1 , a2 , a3 , . . .} is a
real number. By definition, a ≤ b1 , b2 , b3 , . . .. Similarly, b = inf{b1 , b2 , b3 , . . .} is a real
number that is greater than or equal to a. Suppose that a < b. Then by Exercise 2.10.7,
there exists a positive integer N such that 1/2N < (b − a)/(b0 − a0 ). But aN ≤ a ≤ b ≤ bN ,
so that 0 ≤ b − a ≤ bN − aN = (b0 − a0 )/2N < b − a, which contradicts trichotomy. Thus
a = b, i.e., we just proved that
sup{a1 , a2 , a3 , . . .} = inf{b1 , b2 , b3 , . . .}.
Similarly,
c = sup{c1 , c2 , c3 , . . .} = inf{d1 , d2 , d3 , . . .}.
This means that the intersection of all the Rn equals the set {a + ci}, consisting of exactly
118 Chapter 3: The field of complex numbers, and topology
one complex number. By the shrinking property of the subrectangles, for every δ > 0 there
exists a positive integer N such that RN ∩ A ⊆ B(a + ci, δ).
In particular, “quartering” of the closed and bounded region (interval) A =
[a0 , b0 ] ⊆ R, means halving the rectangle (interval), and the intersection of all the chosen
closed half-rectangles is a set with exactly one element. That element is in A, so a real
number.
Theorem 3.6.2. (The Heine-Borel theorem (in R, C)) Let A be a closed and bounded
subset of R or C. For each c ∈ A let δc be a positive number. Then there exists a finite
subset S of A such that A ⊆ ∪c∈S B(c, δc ).
Proof. We declare that a subset B of A satisfies (property) P if there exists a finite subset
S of B such that B ⊆ ∪c∈S B(c, δc ). We want to prove that A has P .
Suppose for contradiction that A does not have P . Since A is closed and bounded, it
fits inside a closed rectangle R0 . With Construction 3.6.1, we construct iteratively nested
subrectangles R0 ⊇ R1 ⊇ R2 ⊇ · · ·. The quarter subrectangles are chosen so that each
Rn ∩ A does not have P . This is true if n = 0 by assumption. Suppose that Rn has been
chosen so that Rn ∩A does not have P . If the intersection with A of each of the four quarter
subrectangles of Rn has P , i.e., if each of the four subrectangles (as in Construction 3.6.1)
intersected with A is contained in the union of finitely many balls B(c, δc ), then Rn ∩ A is
covered by finitely many such balls as well, which contradicts the assumption on Rn . Thus
it is possible to choose Rn+1 so that Rn+1 ∩ A does not have P . By construction, ∩∞ n=1 Rn
contains exactly one point. Let that point be x. Since each Rn ∩ A has infinitely many
points, x is a limit point of A, and since A is closed, necessarily x ∈ A.
By the shrinking sizes of the Rn , there exists a positive integer N such that Rn ⊆
B(x, δx ). But then Rn ∩ A has P , which contradicts the construction. Thus A has P .
Theorem 3.6.3. Let A be a closed and bounded subset of R or C, and for each a ∈ A
let δa be a positive number. Then there exist a finite subset S of A and a positive real
number δ such that A ⊆ ∪c∈S B(c, δc ) and such that for all x ∈ A there exists c ∈ S such
that B(x, δ) ⊆ B(c, δc ).
Proof. By Theorem 3.6.2, there exists a finite subset S of A such that A ⊆ ∪c∈S B(c, δc /2).
Let δ = 21 min{δc : c ∈ S}. Since S is a finite set, δ is a positive real number.
Let x ∈ A. By the choice of S there exists c ∈ S such that x ∈ B(c, δc /2). Let
y ∈ B(x, δ). Then
|y − c| = |y − x + x − c| ≤ |y − x| + |x − c| < δ + δc /2 ≤ δc ,
so that y ∈ B(c, δc ). It follows that B(x, δ) ⊆ B(c, δc ).
Section 3.6: The Heine-Borel theorem 119
Any calculus class teaches about limits, but the domains there are typically intervals
in R. Here we learn a more general definition for (more interesting) domains in C.
It is important to note that we are not asking for f (a). For one thing, a may or may
not be in the domain of f , we only know that a is a limit point of the domain of f . We
are asking for the behavior of the function f at points near a.
We can give a simple geometric picture of this in case the domain and codomain
are subsets of R (refer to Remark 3.2.3 for why we cannot draw functions when domains
and codomains are subsets of C). Below are three graphs of real-valued functions defined
on a subset of R and with a being a limit point of the domain. In each, on the graph of
y = f (x) we cover the vertical line x = a, and with that information, we conclude that
limx→a f (x) = L.
L L L
a a a
The function f from the first graph above might be any of the following:
Section 4.1: Limit of a function 121
L L L
a a a
In an intuitive sense we are hoping that f (x) for x near a can predict a value of f
as we get arbitrarily close to a. For example, we may not be able to bring x to 0 Kelvin,
but if we can take measurements f (x) for x getting colder and colder, perhaps we can
theoretically predict what may happen at 0 Kelvin. But how believable is our prediction?
Perhaps for our theory to be satisfactory, we need to run experiments at temperatures x
that give us f (x) within ǫ = 10 of the predicted value. Or when instruments get better,
perhaps ǫ gets smaller, say one thousandth. Or a new material is discovered which allows us
to get ǫ even smaller. But no matter what ǫ is determined ahead of time, for the prediction
to be believable, we need to determine a range x within a δ of a but not equal to a, for
which the f -values are within the given ǫ of the prediction.
A graphical way of representing the epsilon-delta definition of limits for real-valued
functions with domains in R is as follows: For every positive ǫ there exists a positive δ such
that for all x in the domain with 0 < |x − a| < δ (the x 6= a in the vertical gray band), the
value of f (x) is within ǫ of L (in the horizontal grey band):
L+ǫ
L
L−ǫ
a−δ a a+δ
Clearly if ǫ gets smaller, δ has to get smaller too; and if ǫ gets larger, we may keep
the old δ.
While these pictures can help our intuition, they do not constitute a proof: the
definition is an algebraic formulation, and as such it requires algebraic proofs. In the rest
of the section we examine many examples algebraically, with the goal of mastering the
epsilon-delta proofs. But epsilon-delta proofs are time-consuming, so in the future we will
want to replace them with some shortcuts. We will have to prove that those shortcuts
122 Chapter 4: Limits of functions
are logically correct, and the proofs will require mastering abstract epsilon-delta proofs.
Naturally, before we can master abstract epsilon-delta proofs, we need to be comfortable
with epsilon-delta proofs on concrete examples. In short, in order to be able to avoid
epsilon-delta proofs, we have to master them. (Ha!)
The commentary in the proof above is describing the thought process behind the
proof but need not and should not be written out in homework solutions. Below is a
homework-style solution:
Section 4.1: Limit of a function 123
Proof of Example 4.1.2 without the commentary: The function that takes x to 4x − 5 is
a polynomial function, so it is defined for all complex numbers. Thus the domain of the
function is C and 3 is a limit point of the domain. Let ǫ > 0. Set δ = ǫ/4. Then δ is a
positive real number. Let x be an arbitrary complex number. Assume that 0 < |x − 3| < δ.
Then
|(4x − 5) − 7| = |4x − 12|
= 4|x − 3|
< 4δ
ǫ
=4
4
= ǫ.
The final version of the proof of lim (4x2 − 5x + 2) = 28 then looks like this:
x→−2
We repeat the same type of discovery work on the next example, with fewer com-
ments:
Proof. The function that takes x to 4/x2 is defined for all non-zero complex numbers, so
−1 is a limit point of the domain. Let ǫ > 0. Set δ = . Then δ is a positive
real number. Let x be any complex number that satisfies 0 < |x + 1| < δ. Then
4 − 4x2
2
|4/x − 4| =
x2
(1 − x)(1 + x)
= 4
x2
1 − x
= 4 2 |1 + x|[Goal #1 accomplished: something times |x − a|.]
x
[Now we want the something 4 1−x x2 to be at most some constant. Certainly
if we allow x to get close to 0, then (1 − x)/x2 will have a very large size,
so in order to find an upper bound, we need to make sure that x stays away
from 0. Since x is within δ of −1, in order to avoid 0 we need to make sure
that δ is strictly smaller than 1. For example, make sure that δ ≤ 0.4. Thus,
on the δ line write: δ = min{0.4, }.]
2 − (x + 1)
= 4 |1 + x| (by rewriting 1 − x = 2 − (x + 1))
|x|2
126 Chapter 4: Limits of functions
2 + |x + 1|
≤4 |1 + x| (by the triangle inequality)
x2
2.4
≤ 4 2 |1 + x| (since δ ≤ 0.4)
|x|
9.6
= |1 + x| (by rewriting x = x + 1 − 1)
|x + 1 − 1|2
9.6
≤ |1 + x| (by the reverse triangle inequality because
0.62
|x + 1 − 1| ≥ 1 − |x + 1| > 1 − δ ≥ 1 − 0.4 = 0.6,
so that 1/|x + 1 − 1|2 < 1/0.62)
[On the δ line now write: δ = min{0.4, 0.62ǫ/9.6}.]
9.6
< δ
0.62
9.6
≤ 2
0.62 ǫ/9.6
0.6
= ǫ.
And here is another example for good measure, with δ already filled in:
4x3 +x
Example 4.1.5. lim = −2.
x→2i 8x−i
3
Proof. The domain of 4x +x
8x−i consists of all complex numbers different from i/8, so 2i is a
limit point of the domain. Let ǫ > 0. Set δ = min{1, ǫ/9}. [It is so obvious that this
minimum of two positive numbers is positive that we skip the assertion “Thus
δ is a positive real number.” Do not omit the assertion or the checking of
its veracity for more complicated specifications of δ.] Let x be any complex
number different from i/8 such that 0 < |x − 2i| < δ. [Here we merged: “Let x be any
complex number different from i/8. Let x satisfy 0 < |x − 2i| < δ.” into one
shorter and logically equivalent statement “Let x be any complex number
different from i/8 such that 0 < |x − 2i| < δ.”] Then
3 3
4x + x 4x + x
− (−2) = + 2
8x − i 8x − i
3
4x + x + 16x − 2i
=
8x − i
3
4x + 17x − 2i
=
8x − i
(4x2 + 8ix + 1)(x − 2i)
=
8x − i
(4x2 + 8ix + 1)
= |x − 2i| (Goal #1: x − a is a factor.)
8x − i
Section 4.1: Limit of a function 127
|4x2 | + |8ix| + 1
≤ |x − 2i| (by the triangle inequality)
|8x − i|
4|(x − 2i + 2i)|2 + 8|x − 2i + 2i| + 1
≤ |x − 2i|
|8(x − 2i) + 15i|
4(|x − 2i| + 2)2 + 8(|x − 2i| + 2) + 1
≤ |x − 2i|
−8|x − 2i| + 15
(by the triangle and reverse triangle inequalities)
4(1 + 2)2 + 8(1 + 2) + 1
≤ |x − 2i| (since |x − 2i| < δ ≤ 1)
−8 + 15
61
= |x − 2i|
7
< 9δ
≤ 9ǫ/9
= ǫ.
The next example is of a limit is at a non-specific a.
Proof. Any a is a limit point of the domain of the given polynomial function. Let ǫ > 0.
Set δ = min{1, ǫ/(1 + |2a − 2|)}. Let x satisfy 0 < |x − a| < δ. Then
Remark 4.1.7. Note that δ depends on ǫ and a, which are constants in the problem; δ is
not allowed to depend on x, as the definition goes:
“for all ǫ > 0 there exists δ > 0 such that for all x, etc”
so that x depends on δ, but δ does not depend on x.
By the definition of limits, δ is supposed to be a positive real number, not a function of x.
(See also Exercise 4.1.1.)
128 Chapter 4: Limits of functions
Remark 4.1.8. In all cases of rational functions, such as in examples above, Goal #1 is
to factor x − a from f (x) − L: if x − a is not a factor, check your limit or algebra for any
√
mistakes. In the next example, x − a is not a factor, but x − a is.
√
Example 4.1.9. lim 2x − 6 = 0.
x→3
Proof. The domain here is all x ≥ 3. So 3 is a limit point of the domain. Let ǫ > 0. Set
δ = ǫ2 /2. Let x > 3 satisfy 0 < |x − 3| < δ. Then
√ √ √
2x − 6 = 2 · x − 3
√ √ √
< 2 · δ (because is an increasing function)
√ p
= 2 · ǫ2 /2
= ǫ.
Often books consider the last example as a case of a one-sided limit (see definition
below) since we can only take the x from one side of 3. Our definition handles both-sided
and one-sided and all sorts of other limits with one simple notation, but we do have a use
for one-sided limits as well, so we define them next.
4.1.2. Fill in the blanks of the following proof that limx→2 (x2 − 3x) = −2. Explain why
none of the inequalities can be changed into equalities.
Recall that limx→a f (x) = L means that a is a limit point of the domain of f , and
that for all real numbers ǫ > 0 there exists a real number δ > 0 such that for all x in the
domain of f , if 0 < |x − a| < δ then |f (x) − L| < ǫ. [Think of limx→a f (x) = L as
statement P , a being a limit point of the domain as statement Q, and the
epsilon-delta part as statement R. By definition, P is logically the same as
the statement Q and R.]
Thus if limx→a f (x) 6= L, then either a is not a limit point of the domain of f or else
it is not true that for all real numbers ǫ > 0 there exists a real number δ > 0 such that for
all x in the domain of f , if 0 < |x − a| < δ then |f (x) − L| < ǫ. [This simply says that
not P is the same as ( not Q) or ( not R).]
In particular,
lim f (x) 6= L and a is a limit point of the domain of f
x→a
means that it is not true that for all real numbers ǫ > 0 there exists a real number δ > 0
such that for all x in the domain of f , if 0 < |x − a| < δ then |f (x) − L| < ǫ. [This says
that ( not P ) and Q is the same as not R. You may want to write truth tables
for yourself.]
Negations of compound sentences, such as in the previous paragraph, are typically
hard to process and to work with in proofs. But by the usual negation rules of compound
statements (see chart on page 32), we successively rewrite this last negation into a form
that is easier to handle:
not For all real numbers ǫ > 0 there exists a real number δ > 0
such that for all x in the domain of f , if 0 < |x − a| < δ
then |f (x) − L| < ǫ.
[Negation of “For all z of some kind, property P holds” is “There is some z
of that kind for which P is false.” Hence the following rephrasing:]
132 Chapter 4: Limits of functions
= There exists a real number ǫ > 0 such that not there exists a
real number δ > 0 such that for all x in the domain of f , if
0 < |x − a| < δ then |f (x) − L| < ǫ.
[Negation of “There exists z of some kind such that property P holds” is
“For all z of that kind, P is false.” Hence the following rephrasing:]
= There exists a real number ǫ > 0 such that for all real numbers
δ > 0, not for all x in the domain of f , if 0 < |x − a| < δ
then |f (x) − L| < ǫ.
[Negation of “For all z of some kind, property P holds” is “There is some z
of that kind for which P is false.” Hence the following rephrasing:]
= There exists a real number ǫ > 0 such that for all real numbers
δ > 0, there exists x in the domain of f such that not if
0 < |x − a| < δ then |f (x) − L| < ǫ.
[Negation of “If P then Q” is “P and not Q.” Hence the following rephras-
ing:]
= There exists a real number ǫ > 0 such that for all real numbers
δ > 0, there exists x in the domain of f such that 0 <
|x − a| < δ and not |f (x) − L| < ǫ.
= There exists a real number ǫ > 0 such that for all real numbers
δ > 0, there exists x in the domain of f such that 0 <
|x − a| < δ and |f (x) − L| ≥ ǫ.
In summary, we just proved that:
Theorem 4.2.1. If a is a limit point of the domain of f , then limx→a f (x) 6= L means
that there exists a real number ǫ > 0 such that for all real numbers δ > 0, there exists x
in the domain of f such that 0 < |x − a| < δ and |f (x) − L| ≥ ǫ.
x
Example 4.2.2. The limit of |x| as x approaches 0 does not exist. In other words, for all
x
complex numbers L, limx→0 |x| 6= L.
x
The domain of the function that takes x to |x| is the set of all non-zero complex
x
numbers. For each non-zero x, |x| is a complex number of length 1 and with the same
angle as x. Thus the image of this function is the unit circle in C. Note that it is possible
to take two non-zero x very close to 0 but at different angles so that their images on the
unit circle are far apart. This is a geometric reasoning why the limit cannot exist. Next
we give an epsilon-delta proof.
x
Proof. The domain of the function that takes x to |x| is the set of all non-zero complex
numbers, so that 0 is a limit point of the domain. [Thus if the limit is not L, then
Section 4.2: When a number is not a limit 133
i
Example 4.2.3. For all L ∈ C, limx→2 x−2 6= L.
A geometric reason for the non-existence of this limit is that as x gets closer to 2
i
(but not equal to 2), the size of x−2 gets larger and larger.
Proof. Set ǫ = 1. Let δ > 0 be an arbitrary positive number. Set δ ′ = min{δ, 1/(|L| + 1)}.
Let x = 2 + δ ′ /2. Then 0 < |x − 2| < δ ′ ≤ δ, and
i 2i
− L = − L
x − 2 δ′
2i
≥ ′ − |L| (by the reverse triangle inequality)
δ
≥ 2(|L| + 1) − |L| (since δ ′ ≤ 1/(|L| + 1))
≥1
= ǫ.
Example 4.2.4. For f : R → R given by the graph below, lim f (x) does not exist because
x→2
of the jump in the function at 2.
1 2 3
134 Chapter 4: Limits of functions
Here is an epsilon-delta proof. Say that the limit exists. Call it L. Set ǫ = 41 . Let δ
be an arbitrary positive number. If L ≥ 32 , set x = 2 + min 14 , 2δ , and if L < 32 , set
x = 2 − min{ 14 , 2δ }. In either case,
1 δ δ
0 < |x − 2| = min , ≤ < δ.
4 2 2
If L ≥ 23 , by our choice x = 2 + min{ 41 , δ2 }, so that f (x) = 1 + min{ 41 , δ2 } ≤ 1 + 41 ,
whence |f (x) − L| ≥ 41 = ǫ. Similarly, if L < 23 , by our choice x = 2 − min{ 41 , δ2 }, so that
f (x) = 2 − min{ 41 , 2δ } ≥ 2 − 14 = 1 + 34 , whence |f (x) − L| ≥ 41 = ǫ. Thus no L works, so
the limit of f (x) as x approaches 2 does not exist.
While epsilon-delta proofs are a reliable method for proving limits, they do not help
in deciding what a limit may be. In this section we prove theorems that will efficiently
establish the limits for many functions. The proofs of these theorems require the epsilon-
delta machinery – as this is the definition of limits, but subsequent applications of these
theorems allow us to omit the time-consuming epsilon-delta proofs.
every ǫ > 0 there exists δ > 0 such that for all x in the domain of f , if 0 < |x − a| < δ then
|f (x) − L| < ǫ. Thus, we need a proof that will use these definitions.
Real proof: Suppose that L1 and L2 are both limits. Let ǫ be an arbitrary positive
number. Then ǫ/2 is also positive, and by the definition of limits, for each i = 1, 2, there
exists δi > 0 such that for all x in the domain of f , if 0 < |x−a| < δi , then |f (x)−Li| < ǫ/2.
Set δ = min{δ1 , δ2 }. Then δ is a positive real number. Let x in the domain of f satisfy
0 < |x − a| < δ. Since a is a limit point of the domain, such x exists. Then
|L1 − L2 | = |L1 − f (x) + f (x) − L2 | (by adding a clever 0)
≤ |L1 − f (x)| + |f (x) − L2 | (by the triangle inequality)
< 2ǫ/2 (since δ ≤ δ1 , δ2 )
= ǫ,
which says that |L1 − L2 | < ǫ. Since ǫ was arbitrary, an application of Theorem 2.11.4
gives that |L1 − L2 | = 0, so that L1 − L2 = 0, and hence that L1 = L2 .
(If in the definition of limx→a f (x) we did not require that a be a limit point of the
domain of f , then x as in the proof above would not exist for small δ, so any any complex
number L would vacuously satisfy the definition of limits. We would thus not be able
to guarantee that limits are unique. Perhaps the definition of limits is technical, but the
technicalities are there for a good reason.)
Theorem 4.3.2. Let a be a limit point of the domain of a function f with limx→a f (x) =
L. Suppose that L 6= 0. Then there exists δ > 0 such that for all x in the domain of f , if
0 < |x − a| < δ, then |f (x)| > |L|/2.
In particular, there exists δ > 0 such that for all x in the domain of f , if 0 < |x −a| <
δ, then f (x) 6= 0.
Proof. Set |L|/2 > 0, there exists δ > 0 such that for all x in the domain of f , if
0 < |x − a| < δ, then |f (x) − L| < |L|/2. Hence by the reverse triangle inequality, for the
same x, |L|/2 > |f (x) − L| ≥ |L| − |f (x)| = |L| − |f (x)|, which proves that |f (x)| > |L|/2.
In particular f (x) 6= 0.
The following theorem is very important, so study it carefully.
Theorem 4.3.3. Let A be the domain of f and g, and let a be a limit point of A, and let
c ∈ C. Suppose that limx→a f (x) and limx→a g(x) both exist. Then
(1) (Constant rule) lim c = c.
x→a
(2) (Linear rule) lim x = a.
x→a
(3) (Scalar rule) lim cf (x) = c lim f (x).
x→a x→a
(4) (Sum/difference rule) lim (f (x) ± g(x)) = lim f (x) ± lim g(x).
x→a x→a x→a
136 Chapter 4: Limits of functions
(5) (Product rule) lim (f (x) · g(x)) = lim f (x) · lim g(x).
x→a x→a x→a
f (x) lim f (x)
(6) (Quotient rule) If lim g(x) 6= 0, then lim = x→a .
x→a x→a g(x) lim g(x)
x→a
(5) Let ǫ > 0. Then min{ǫ/(2|L| + 2), 1}, min{ǫ/(2|K| + 1), 1} are positive numbers.
Since L = limx→a f (x), there exists δ1 > 0 such that for all x ∈ A, if 0 < |x − a| < δ1 ,
then |f (x) − L| < min{ǫ/(2|K| + 1), 1}. Similarly, since K = limx→a g(x), there exists
δ2 > 0 such that for all x ∈ A, if 0 < |x − a| < δ2 , then |g(x) − L| < ǫ/(2|L| + 2). Set
δ = min{δ1 , δ2 }. Then δ is a positive number. Let x ∈ A satisfy 0 < |x − a| < δ. Then by
the triangle inequality,
(6) Let ǫ > 0. Since K 6= 0, by Theorem 4.3.2, there exists δ0 > 0 such that for all
x ∈ A, if 0 < |x − a| < δ0 , then |g(x)| > |K|/2.
The numbers |K|ǫ/4, |K|2 ǫ/(4|L| + 1) are positive numbers. Since L = limx→a f (x),
there exists δ1 > 0 such that for all x ∈ A, if 0 < |x − a| < δ1 , then |f (x) − L| < |K|ǫ/4.
Similarly, since K = limx→a g(x), there exists δ2 > 0 such that for all x ∈ A, if 0 < |x−a| <
δ2 , then |g(x) −L| < |K|2 ǫ/(4|L| +1). Set δ = min{δ0 , δ1 , δ2 }. Then δ is a positive number.
Let x ∈ A satisfy 0 < |x − a| < δ. Then
f (x) L f (x)K − Lg(x)
g(x) − K = Kg(x) (by algebra)
f (x)K − LK + LK − Lg(x)
= (by adding a clever zero)
Kg(x)
f (x)K − LK LK − Lg(x)
≤
Kg(x) + Kg(x) (by the triangle inequality)
f (x) − L |L| K − g(x)
= + (by factoring)
g(x) |K| g(x)
|K|ǫ 2 |L| |K|2 ǫ 2
< · + · (since δ ≤ δ0 , δ1 , δ2 )
4 |K| |K| 4|L| + 1 |K|
< ǫ/2 + ǫ/2
= ǫ.
This proves (6) and thus the theorem.
Theorem 4.3.4. (Power rule for limits) Let n be a positive integer. If limx→a f (x) = L,
then limx→a f (x)n = Ln .
Proof. The case n = 1 is the assumption. Suppose that we know the result for n − 1. Then
lim f (x)n = lim f (x)n−1 · f (x) (by algebra)
x→a x→a
= lim f (x)n−1 · lim (f (x)) (by the product rule)
x→a x→a
n−1
=L · L (by induction assumption)
= Ln .
Theorem 4.3.5. (Polynomial function rule for limits) Let f be a polynomial func-
tion. Then for all complex (or real) a, limx→a f (x) = f (a).
for some non-negative integer n and some constants c0 , c1 , . . . , cn . By the linear rule,
limx→a x = a. Hence by the power rule, for all i = 1, . . . , n, limx→a xi = ai . By the
constant rule, limx→a ci = ci , so that by the product rule limx→a ci xi = ci ai . Hence by
repeating the sum rule,
lim f (x) = lim c0 + c1 x + c2 x2 + · · · + cn xn = c0 + c1 a + c2 a2 + · · · + cn an = f (a).
x→a x→a
Theorem 4.3.6. (Rational function rule for limits) Let f be a rational function.
Then for all complex (or real) a in the domain of f , limx→a f (x) = f (a).
Proof. Let a be in the domain of f . Write f (x) = g(x)/h(x) for some polynomial functions
g, h such that h(a) 6= 0. By Theorem 2.4.13, the domain of f is the set of all except finitely
many numbers, so that in particular a is a limit point of the domain. By the polynomial
function rule for limits, limx→a g(x) = g(a) and limx→a h(x) = h(a) 6= 0. Thus by the
quotient rule, limx→a f (x) = g(a)/h(a) = f (a).
Theorem 4.3.7. (Absolute value rule for limits) For all a ∈ C, limx→a |x| = |a|.
Proof. This function is defined for all complex numbers, and so every a ∈ C is a limit point
of the domain. Let ǫ > 0. Set δ = ǫ. Then for all x ∈ C, by the reverse triangle inequality,
|x| − |a| ≤ |x − a| < δ = ǫ.
Proof. First suppose that limx→a f (x) = L. Let ǫ > 0. By assumption there exists δ > 0
such that for all x ∈ A, 0 < |x − a| < δ implies that |f (x) − L| < ǫ. Then for the same x,
Proof. Let ǫ > 0. Since lim g(x) = g(L), there exists δ1 > 0 such that for all x in the
x→L
domain of g, if 0 < |x−a| < δ1 then |g(x)−g(L)| < ǫ. Since lim f (x) = L, there exists δ > 0
x→a
such that for all x in the domain of f , if 0 < |x − a| < δ then |f (x) − L| < δ1 . Thus for the
same δ, if x is in the domain of h and 0 < |x−a| < δ, then |h(x)−g(L)| = |g(f (x))−g(L)| < ǫ
because |f (x) − L| < δ1 .
Perhaps the hypotheses on g in the theorem above seem overly restrictive, and you
think that the limit of g(x) as x approaches L need not be g(L) but an arbitrary K?
Consider the following example which shows that limx→a g(f (x)) then need not be K. Let
3, if x 6= 5;
f (x) = 5 and g(x) = . Then
7, otherwise.
lim f (x) = 5, lim g(x) = 3, and lim g(f (x)) = 7.
x→a x→5 x→a
Theorem 4.3.10. Suppose that f, g : A → R, that a is a limit point of A, that limx→a f (x)
and limx→a g(x) both exist, and that for all x ∈ A, f (x) ≤ g(x). Then
lim f (x) ≤ lim g(x).
x→a x→a
Proof. Let L = lim f (x), K = lim g(x). Let ǫ > 0. By assumptions there exists δ > 0
x→a x→a
such that for all x ∈ A, if 0 < |x − a| < δ, then |f (x) − L|, |g(x) − K| < ǫ/2. Then for the
same x,
Proof. [If we knew that limx→a g(x) existed, then by the previous theorem,
limx→a f (x) ≤ limx→a g(x) ≤ limx→a h(x) = limx→a f (x) would give that the three
limits are equal. But we have yet to prove that limx→a g(x) exists.]
140 Chapter 4: Limits of functions
Let L = limx→a f (x) = limx→a h(x). Let ǫ > 0. Since limx→a f (x) = L, there
exists δ1 > 0 such that for all x, if 0 < |x − a| < δ1 then |f (x) − L| < ǫ. Similarly,
since limx→a h(x) = L, there exists δ2 > 0 such that for all x, if 0 < |x − a| < δ2 then
|h(x) − L| < ǫ. Now set δ = min{δ1 , δ2 }. Let x satisfy 0 < |x − a| < δ. Then
−ǫ < f (x) − L ≤ g(x) − L ≤ h(x) − L < ǫ,
where the first inequality holds because δ ≤ δ1 , and the last inequality holds because δ ≤ δ2 .
Hence −ǫ < g(x) − L < ǫ, which says that |g(x) − L| < ǫ, so that limx→a g(x) = L.
For each part below provide the limit if there is enough information, and justify. (Careful,
the answers to the last two parts are different.)
i) lim (f (x) − g(x)).
x→0
ii) lim (f (x) + g(x)).
x→4
iii) lim (f (x) · g(x)).
x→3
f (x)
iv) lim .
x→2 g(x)
v) lim g(x) .
x→4 f (x)
vi) lim (g ◦ f )(x).
x→1
vii) lim (g ◦ f )(x).
x→4
4.3.12. Let A ⊆ C, let f, g : A → C, and let a be a limit point of A. Suppose that for all
x ∈ A \ {a}, f (x) = g(x). Prove that limx→a f (x) exists if and only if limx→a g(x) exists,
and if they both exist, then the two limits are equal.
4.3.13. Let f, g : R → R be defined by
x, if x ∈ Q; 1, if x 6= 0;
f (x) = g(x) =
0, otherwise, 0, otherwise.
i) Prove that lim f (x) = 0.
x→0
ii) Prove that lim g(x) = 1.
x→0
iii) Prove that lim (g ◦ f )(x) does not exist.
x→0
iv) Comment on Theorem 4.3.9.
*4.3.14. Let a, L, M be arbitrary real numbers. Construct functions F, G : R → R such
that limx→a F (x) = L, limx→L G(x) = M , but limx→a (G ◦ F )(x) 6= M . Comment on
Theorem 4.3.9. (Hint: modify f and g from the previous exercise.)
142 Chapter 4: Limits of functions
4.3.15. (Due to Jonathan Hoseana, “On zero-over-zero form limits of special type”, The
College Mathematics Journal 49 (2018), page 219.) ) Let f : [a, b] → R be a continuous
function. Let A be a subset of C, let a ∈ C be a limit point of A, and let f1 , . . . , fn , g be
complex-valued functions defined on A such that for all k = 1, . . . , n, limx→a fk (x) = 1 and
limx→a fkg(x)
(x)−1
exists. Prove that
n
f1 (x)f2 (x) · · · fk (x) − 1 X fk (x) − 1
lim = lim .
x→a g(x) x→a g(x)
k=1
When the codomain of a function is a subset of an ordered field such as R, the values
of a function may grow larger and larger with no upper bound, or more and more negative
with no lower bound. In that case we may want to declare limit to be ∞ or −∞. Naturally
both the definition and how we operate with infinite limits requires different handling.
Note that we cannot use epsilon-delta proofs: no real numbers are within ǫ of infinity.
So instead we approximate infinity with huge numbers. In fact, infinity stands for that thing
which is larger than any real number. Thus for all M we can find x near a with f (x) > M
is simply saying that we can take f (x) arbitrarily large, which is more succinctly expressed
as saying that f (x) goes to ∞. (As far as many applications are concerned, a real number
larger than the number of atoms in the universe is as close to infinity as realistically possible,
but for proofs, the number of atoms in the universe is not large enough.)
Section 4.4: Infinite limits (for real-valued functions) 143
1
Example 4.4.2. limx→0 |x|2 = ∞.
Proof. 0 is a limit point of the domain (in the field of real or complex numbers) of the
√
function that takes x to 1/|x|2 . Let M be a positive real number. Set δ = 1/ M . Let x
satisfy 0 < |x − 0| < δ, i.e., let x satisfy 0 < |x| < δ. Then
1 1
> (because 0 < |x| < δ)
|x|2 δ2
= M.
x+2
Example 4.4.3. limx→5+ x2 −25 = ∞.
Proof. Certainly 5 is the limit point of the domain of the given function. Let M > 0. Set
7
δ = min{1, 11M }. Let x satisfy 0 < x − 5 < δ. Then
x+2 5+2
2
> 2 (because x > 5 and x2 − 25 > 0)
x − 25 x − 25
7 1
= · (by algebra)
(x + 5) x − 5
7 1
> · (because 0 < x − 5 < δ ≤ 1, so 0 < x + 5 < 11, and x − 5 > 0)
11 x − 5
7 1
> · (because 0 < x − 5 < δ)
11 δ
7 1 7 7
≥ · 7 (because δ ≤ 11M , so 1/δ ≥ 1/( 11M ))
11 11M
= M.
1
Example 4.4.4. limx→0+ x = ∞.
1
Proof. Let M > 0. Set δ = 1/M . Then for all x with 0 < x − 0 < δ, x > 1/δ = M .
1
Example 4.4.5. limx→0− x = −∞.
Proof. Let M < 0. Set δ = −1/M . Then δ is a positive number. Then for all x with
0 < 0 − x < δ,
1
< −1/δ = M.
x
Example 4.4.6. We conclude that limx→0 x1 cannot be a real number, and it cannot be
either ∞ or −∞. Thus limx→0 x1 does not exist.
The following theorem is straightforward to prove, and so it is left for the exercises.
144 Chapter 4: Limits of functions
but we do not have enough information to determine limx→a (g(x) + h(x)) or even whether
it exists.
(3) (Product rule)
∞, if L > 0;
lim (f (x) · g(x)) =
x→a −∞, if L < 0;
−∞, if L > 0;
lim (f (x) · h(x)) =
x→a ∞, if L < 0;
lim (g(x) · h(x)) = −∞.
x→a
We do not have enough information to determine the existence (or value) of limx→a (f (x) ·
g(x)) and of limx→a (f (x) · h(x)) in case L = 0.
(4) (Quotient rule)
f (x)
lim = 0,
x→a g(x)
f (x)
lim = 0,
x→a h(x)
g(x) ∞, if L > 0;
lim =
x→a f (x) −∞, if L < 0;
h(x) −∞, if L > 0;
lim =
x→a f (x) ∞, if L < 0.
limx→a (g(x)
We do not have enough information to determine the existence (or value) of f (x))
limx→a (h(x)
and of f (x))
in case L = 0. We also do not have enough information to determine
limx→a (g(x)
the existence (or value) of h(x)) .
Section 4.4: Infinite limits (for real-valued functions) 145
Proof. Let M > 0. Set N = max{17, M 1/4}. Then for all x > N ,
x5 − 16x4 = x4 (x − 16)
≥ x4 (because x > N ≥ 17)
> N 4 (because x > N )
≥ (M 1/4 )4 (because N ≥ M 1/4 )
= M.
x5 −16x4
Example 4.5.3. limx→∞ x5 +4x2
= 1.
Proof. Let ǫ > 0. Set N = max{1, 20/ǫ}. Then for all x > N ,
5 5
x − 16x4 x − 16x4 − x5 − 4x2
x5 + 4x2 − 1 = x5 + 4x2
−16x4 − 4x2
=
x5 + 4x2
16x4 + 4x2
= 5
x + 4x2
16x4 + 4x2
= (because x > N ≥ 0)
x5 + 4x2
16x4 + 4x2
≤ (because x5 + 4x2 ≥ x5 > 0)
x5
16x4 + 4x4
≤ 5
(because x > N ≥ 1 so that x2 < x4 )
x
Section 4.5: Limits at infinity 147
20x4
=
x5
20
=
x
20
< (because x > N )
N
20
≤ (because N ≥ 20/ǫ)
20/ǫ
= ǫ.
Continuous functions from an interval in R to R are the ones that we can graph with-
out any holes or jumps, i.e., without lifting the pencil from the paper, so the range of such
functions is an interval in R as well. We make this more formal below, and not just for func-
tions with domains and codomains in R. The formal definition involves limits of functions.
All the hard work for that was already done in Chapter 4, so this chapter, after absorbing
the definition, is really straightforward. The big new results are the Intermediate value
theorem and the Extreme value theorem for real-valued functions (Section 5.3), existence
of radical functions (Section 5.4), and the new notion of uniform continuity (Section 5.5).
Proof. In the first case, there exists δ > 0 such that B(a, δ) ∩ A = {a}. Thus by definition,
the only x ∈ A with |x − a| < δ is x = a, whence |f (x) − f (a)| = 0 is strictly smaller than
an arbitrary positive ǫ. Thus f : A → B is continuous at a.
Now assume that a is a limit point of A. Suppose that f is continuous at a. We need
to prove that limx→a f (x) = f (a). Let ǫ > 0. Since f is continuous at a, there exists δ > 0
such that for all x ∈ A, if |x − a| < δ, then |f (x) − f (a)| < ǫ. Hence for all 0 < |x − a| < δ,
|f (x) − f (a)| < ǫ, and since a is a limit point of A, this proves that limx→a f (x) = f (a).
Finally suppose that limx→a f (x) = f (a). We need to prove that f is continuous at
a. Let ǫ > 0. By assumption there exists δ > 0 such that for all x ∈ A, if 0 < |x − a| < δ
then |f (x) − f (a)| < ǫ. If x = a, then |f (x) − f (a)| = 0 < ǫ, so that for all x ∈ A, if
|x − a| < δ, then |f (x) − f (a)| < ǫ. Thus f is continuous at a.
Section 5.1: Continuous functions 149
The next theorem is an easy application of Theorems 4.3.3, 4.3.4, 4.3.5, 4.3.6, 4.3.7,
4.3.8, and 4.3.9, at least when the points in question are limit points of the domain. When
the points in question are not limit points of the domain, the results below need somewhat
different but still easy proofs.
The theorem covers many continuous functions, but the following function for exam-
ple has to be verified differently.
150 Chapter 5: Continuity
Example 5.1.5. When we restrict the function in the previous examples to R, we get
g : R → R defined by
x2 − 4, if x > 1;
g(x) =
−3x3 , if x ≤ 1.
As before, g is continuous at 1. Explicitly, by the polynomial rules,
lim g(x) = lim (x2 − 4) = 12 − 4 = −3,
x→1+ x→1+
lim g(x) = lim− −3x3 = −3 · 13 = −3,
x→1− x→1
5.1.9. Assume that the trigonometric function sine is continuous everywhere. (We will
prove this in Theorem 9.9.4.) Define a function f : R → R as
sin(1/x), if x 6= 0;
f (x) =
0, if x = 0.
i) Is f continuous at 0? Prove or disprove.
ii) Prove that f is continuous at all other points.
x, if x is rational;
5.1.10. Let f : R → R be given by f (x) =
0, otherwise.
i) Prove that f is continuous at 0.
ii) Prove that f is not continuous anywhere else.
*5.1.11. (The Thomae function, also called the popcorn function, the raindrop function,
and more) Let f : R → R be defined as
(
1
, if x = pq , where p ∈ Z and q ∈ N+ have only 1 as a common factor;
f (x) = q
0, if x is irrational.
i) Prove that f is not continuous at any rational number.
ii) Prove that f is continuous at all irrational numbers.
The exercises below modify the definition of continuity to get very different types of func-
tions. – The moral is that the order of quantifiers and implications is very important!
5.1.12. (This is from page 1177 of the Edward Nelson’s article “Internal set theory: a new
approach to nonstandard analysis.” Bull. Amer. Math. Soc. 83 (1977), no. 6, 1165–1198.)
A function f : A → B is suounitnoc at a ∈ A if for all real numbers ǫ > 0 there exists a
real number δ > 0 such that for all x ∈ A, |x − a| < ǫ implies that |f (x) − f (a)| < δ.
i) Prove that if f is suounitnoc at some a ∈ A, it is suounitnoc at every b ∈ A.
ii) Let f : R+ → R be given by f (x) = 1/x. Prove that at every a ∈ R+ , f is
continuous but not suounitnoc.
iii) Let f : R → R be given by f (x) = 1 if x is irrational and f (x) = 0 if x is rational.
Prove that at every a ∈ R, f is suounitnoc but not continuous.
5.1.13. A function f : A → B is ticonnuous at a ∈ A if there exists a real number
δ > 0 such that for all real numbers ǫ > 0 and for all x ∈ A, |x − a| < δ implies that
|f (x) − f (a)| < ǫ.
i) Suppose that f is ticonnuous at some a ∈ A. Prove that there exist a real number
δ > 0 and b ∈ B such that for all x ∈ A, |x − a| < δ implies that f (x) = b.
ii) Give an example of a continuous function that is not ticonnuous at every a in
the domain.
iii) Prove that every function that is ticonnuous at every point in the domain is
continuous.
Section 5.2: Topology and the Extreme value theorem 153
Topology and continuity go hand in hand (see Exercise 5.2.5), but not in the obvious
way, as the next two examples show.
(1) If f : A → B is continuous and A is open, it need not be true that the range of f
is open in B, even if A is bounded. For example, let f : R → R or f : (−1, 1) → R
be the squaring function. Certainly f is continuous and R is an open set, but the
image of f is [0, ∞) or [0, 1), which is not open.
(2) If f : A → B is continuous and A is closed, it need not be true that the range of
1
f is closed in B. For example, let f : R → R be given by f (x) = 1+x 2 . This f is
Proof. We first prove that the range is closed. Let b be a limit point of the range. We want
to prove that b is in the range. Since b is a limit point, by definition for every positive real
number r, B(b, r) contains an element of the range (even an element of the range that is
different from b). In particular, for every positive integer m there exists xm ∈ A such that
f (xm ) ∈ B(b, 1/m). If for some m we have f (xm ) = b, then we are done, so we may assume
that for all m, f (xm ) 6= b. Thus there are infinitely many xm . As in Construction 3.6.1,
we can construct nested quarter subrectangles Rn that contain infinitely many xm . There
is a unique complex number c that is contained in all the Rn . By construction, c is the
limit point of the set of the xm , hence of A. As A is closed, c ∈ A. But f is continuous
at c, so that for all ǫ > 0 there exists δ > 0 such that for all x ∈ A, if |x − c| < δ then
154 Chapter 5: Continuity
|f (x) − f (c)| < ǫ/2. In particular, for infinitely many large m, |xm − c| < δ, so that for
these same m, |f (xm ) − f (c)| < ǫ/2. But for all large m we also have |f (xm ) − b| < ǫ/2,
so that by the triangle inequality, for |f (c) − b| < ǫ. Since this is true for all positive ǫ, it
follows that f (c) = b. Thus any limit point of the range is in the range, so that the range
is closed.
Next we prove that the range is bounded. If not, then for every positive integer
m there exists xm ∈ A such that |f (xm )| > m. Again we use Construction 3.6.1, and
this time we construct nested quarter subrectangles Rn that contain infinitely many of
these xm . As before, there is a unique complex number c that is contained in all the Rn
and in A, and as before (with ǫ = 2), we get that for infinitely many m, |f (xm ) − f (c)| < 1.
But |f (xm )| > m, so that by the reverse triangle inequality,
|f (c)| ≥ |f (xm) − (f (xm ) − f (c))| ≥ |f (xm )| − |f (xm ) − f (c)| > m − 1
for infinitely many positive integers m. Since |f (c)| is a fixed real number, it cannot be
larger than all positive integers. Thus we get a contradiction to the assumption that the
range is not bounded, which means that the range must be bounded.
Theorem 5.2.2. (Extreme value theorem) Let A be a closed and bounded subset of C,
and let f : A → R be a continuous function. Then there exist l, u ∈ A such that for all
x ∈ A,
f (l) ≤ f (x) ≤ f (u).
In other words, f achieves its maximum value at u and its minimum value at l.
Proof. By Theorem 5.2.1, the range {f (x) : x ∈ A} of f is a closed and bounded subset
of R, so that its infimum L and supremum U are real numbers which are by closedness in
the range. Thus there exist u, l ∈ A such that L = f (l) and U = f (u).
Proof. We need to prove that f −1 is continuous at every b ∈ B. Let ǫ > 0. Set a = f −1 (b).
The set B(a, ǫ) is open, so its complement is closed. Therefore C = A \ B(a, ǫ) = A ∩
(F \ B(a, ǫ)) is closed. As C ⊆ A, then C is also bounded. Thus by Theorem 5.2.1,
{f (x) : x ∈ C} is a closed and bounded subset of F . By injectivity of f , this set does not
contain b = f (a). The complement of this set contains b and is open, so that there exists
δ > 0 such that B(b, δ) ⊆ F \ {f (x) : x ∈ C). Now let y ∈ B with |y − b| < δ. Since f
is invertible, there exists x ∈ A such that y = f (x). By the choice of δ, x 6∈ C, so that
f −1 (y) = x ∈ B(a, ǫ) = B(f −1 (b), ǫ). In short, for every ǫ > 0 there exists δ > 0 such that
for all y ∈ B, if |y − b| < δ, then |f −1 (y) − f −1 (a)| < ǫ. This proves that f −1 is continuous
at b.
In this section, all functions are real-valued. The reason is that we can only make
comparisons in an ordered field, and R is an ordered field (Axiom 2.7.11), and C is not
(Exercise 3.1.6).
Theorem 5.3.1. (Intermediate value theorem) Let a, b ∈ R with b > a, and let
f : [a, b] → R be continuous. Let k be a real number strictly between f (a) and f (b). Then
there exists c ∈ (a, b) such that f (c) = k.
Here is a picture that illustrates the Intermediate value theorem: for value k on the y-
axis between f (a) and f (b) there happen to be two c for which f (c) = k. The Intermediate
value theorem guarantees that one such c exists but does not say how many such c exist.
f (b) b
a c1 c2 b x
b
f (a)
c2 −2
Example 5.3.2. There exists a real number c such that c5 − 4 = c2 +2 .
2
Proof. Let f : R → R be defined by f (x) = x5 − 4 − xx2 −2 +2
. This function is a rational
function and defined for all real numbers, so that by Theorem 5.1.3, f is continuous. Note
that f (0) = −3 < 0 < f (2), so that by Theorem 5.3.1 there exists c in (0, 2) such that
2
f (c) = 0. In other words, c5 − 4 = cc2 −2
+2 .
Proof. For any c and d in the image of f , by the Intermediate value theorem (The-
orem 5.3.1), any real number between c and d is in the image of f , which proves the
theorem.
However, if f : A → B is continuous and injective and A is open, then the range of
f is open in B. We prove this first for A and B subsets of R, and then for subsets of C.
Compare the next theorem to Example 5.1.6.
Proof. Let a < b be in I. Since f has an inverse, f (a) 6= f (b), so that by trichotomy, either
f (a) < f (b) or f (a) > f (b).
For now we assume that f (a) < f (b). With that we prove that f is an increasing
function, i.e., that for any x, y ∈ I, if x < y then f (x) < f (y). First suppose that x < y < z
are in I. By invertibility, f (x), f (y), f (z) are distinct. If f (x) is between f (y) and f (z), then
an application of the Intermediate value theorem gives c ∈ (y, z) such that f (c) = f (x).
But x < y < c, so x and c are distinct, and f (c) = f (x) contradicts invertibility of f . So
f (x) is not between f (y) and f (z), and similarly f (z) is not between f (x) and f (y). Thus
necessarily f (x) < f (y) < f (z) or f (x) > f (y) > f (z). By setting x = a and z = b we
get that f is increasing on [a, b], by setting y = a and z = b we get that f is increasing on
Section 5.3: Intermediate value theorem 159
I ∩ (−∞, a], and by setting x = a and y = b we get that f is increasing on I ∩ [b, ∞). Thus
f is increasing on I.
By Theorem 5.3.3 we know that B is an interval. By definition of inverses, f −1 is
strictly increasing.
If I is in addition open, let c ∈ B and a = f −1 (c). Since I is open and f is
increasing, there exist b1 , b2 ∈ A such that b1 < a < b2 . Thus f (b1 ) < f (a) = c < f (b2 ),
and by Theorem 5.3.3 we know that (f (b1 ), f (b2)) is an open subset of B that contains c.
Thus B is open.
Now we prove that f −1 is a continuous function at an arbitrary y be in the domain
of f −1 . Let ǫ > 0. Let c = f −1 (y). Let z ∈ (c, c + ǫ) ∩ I. (Of course, if c is the right
endpoint of I, there is no such z.) Since f is increasing, y = f (c) < f (z) and we set
δ1 = f (z) − y. Then for any x ∈ (y, y + δ1 ) = (f (c), f (z)), by the Intermediate value
theorem x is in the range of f , i.e., x is in the domain of f −1 , and since f −1 is increasing,
c = f −1 (y) < f −1 (x) < f −1 (f (z)) = z < c + ǫ. Thus |f −1 (x) − f −1 (y)| < ǫ. This
proves that for the given ǫ > 0 there exists δ1 > 0 such that for any x ∈ (y, y + δ1 ) ∩ I,
|f −1 (x) − f −1 (y)| < ǫ. Similarly, there exists δ2 > 0 such that for all x ∈ (y − δ2 , y) ∩ I,
|f −1 (y) − f −1 (x)| < ǫ. Now set δ = min{δ1 , δ2 }. By what we just proved, for all x in the
domain of f −1 , if |x − y| < δ, then |f −1 (x) − f −1 (y)| < ǫ. Thus f −1 is continuous at y,
and since y was arbitrary, f −1 is continuous.
Finally, suppose that f (a) > f (b) for some a < b in I. Set g = −f . Then g is
invertible and continuous, g(a) < g(b), and by the work so far we know that g is a strictly
increasing function with a continuous strictly increasing inverse g −1 . Thus f = −g is a
strictly decreasing function, and f −1 = −g −1 is a continuous strictly decreasing function.
In addition, if I is open, so is B.
5.3.5. Find real numbers a < b and a continuous function f : [a, b] → [a, b] such that
f (c) 6= c for all c ∈ (a, b).
5.3.6. Find real numbers a < b and a continuous function f : (a, b) → (a, b) such that
f (c) 6= c for all c ∈ (a, b).
5.3.7. The goal of this exercise is to prove that every polynomial of odd degree has a real
root. Write f (X) = a0 + a1 X + a2 X 2 + · · · + an X n for some real numbers a0 , a1 , a2 , . . . , an
such that n is odd and an 6= 0. Set b = |ann | max{|a0 |, |a1 |, . . . , |an−1 |, |an |}.
i) Prove that b is a positive real number. If f (b) = 0 or if f (−b) = 0, we have found
the root. So we may assume that f (b) and f (−b) are not zero.
ii) Justify all steps below:
|a0 + a1 (±b) + a2 (±b)2 + · · · + an−1 (±b)n−1 |
≤ |a0 | + |a1 b| + |a2 b2 | + · · · + |an−1 bn−1 | (by the triangle inequality)
|an |b |an |b2 |an |b3 |an |bn
≤ + + +···+ (by the choice of b)
n n n n
|an |b
≤ 1 + b + b2 + · · · + bn−1
n
|an |b n−1
≤ b + bn−1 + bn−1 + · · · + bn−1 (because b ≥ 1)
n
0 1 2 n−1 (place markers)
|an |b n−1
≤ nb
n
= |an |bn
= |an bn |.
iv) Prove that f (b) has the same sign (positive or negative) as an bn and that f (−b)
has the same sign as an (−b)n .
v) Prove that f (b) and f (−b) have opposite signs.
vi) Prove that f has a real root in (−b, b).
Section 5.4: Radical functions 161
Let n be a positive integer. Define the function f (x) = xn with domain R if n is odd
and domain R≥0 otherwise.
Theorem 5.4.3. (Radical rule for limits) For any positive integer n and any a in the
√
domain of n ,
√ √
lim n x = n a.
x→a
Raising a non-negative real number to an integer power mth power and then taking
the nth radical of the result yields the same things as first taking the nth radical of the
original non-negative real number and then raising the result to the mth power. We record
√
this function as n/m = ( )m/n , and call it exponentiation by m/n. Exponentiation by
1/n is the same as taking the nth radical.
162 Chapter 5: Continuity
Proof. Write r = m/n, where n and m are integers and n 6= 0. Since m/n = (−m)/(−n),
by possibly multiplying by −1 we may assume that n > 0. Then f is a composition of
exponentiation by m with exponentiation by 1/n, in either order. Exponentiation by non-
negative m is continuous by the constant or power rule, exponentiation by negative m is
continuous by the quotient rule, and exponentiation by 1/n is continuous by Theorem 5.4.3.
Thus f is continuous by the composite rule.
If r > 0, then m, n > 0, and then f is the composition of two strictly increasing
functions, hence strictly increasing. If r < 0, then m < 0 and n > 0, so f is the compo-
sition of a strictly increasing and strictly decreasing function, hence strictly decreasing by
Exercise 2.9.7. Monotonicity of inverses follows from Theorem 5.3.4.
The last part is obvious but has to be said.
Theorem 7.6.4 shows more generally that exponentiation by arbitrary real numbers
(not just by rational numbers) is continuous.
5.4.6. Recall from Exercise 3.4.5 that for every non-zero complex number a there exist
exactly two complex numbers whose squares are a. Let’s try to create a continuous square
root function f : C → C. (We will fail.)
i) Say that for all a in the first quadrant we choose f (a) in the first quadrant.
Where are then f (a) for a in the remaining quadrants?
ii) Is it possible to extend this square root function to a function f on all of C
164 Chapter 5: Continuity
(the positive and negative real and imaginary axes) in such a way as to make
limx→a f (x) = f (a) for all a ∈ C?
√ √ p √
iii) Explain away the problematic claims −4 · −9 = (−4)(−9) = 36 = 6,
√ √
−4 · −9 = 2i · 3i = −6 from page 9.
iv) Let D be the set of all complex numbers that are not on the negative real axis.
Prove that we can define a continuous square root function f : D → C.
(v)* Let θ be any real number, and let D be the set of all complex numbers whose
counterclockwise angle from the positive real axis is θ. Prove that we can define a
continuous square root function f : D → C.
5.4.7. (The goal of this exercise and the next one is to develop exponential functions
without derivatives and integrals. You will see in Section 7.4 that derivatives and integrals
give a more elegant approach.) Let c ∈ (1, ∞) and let f : Q → R+ be the function
f (x) = cx .
i) Why is f a function? (Is it well-defined, i.e., are we allowed to raise positive real
numbers to rational exponents?)
ii) Prove that f is strictly increasing. (Hint: Theorem 5.4.4.)
iii) Let ǫ > 0. Justify the following:
n+1
X n+1
X n+1
X
n+1 i i−1
i−1
(ǫ + 1) −1= (ǫ + 1) − (ǫ + 1) = ǫ(ǫ + 1) ≥ ǫ = (n + 1)ǫ.
i=1 i=1 i=1
Use the Archimedean property of R (Theorem 2.10.3) to prove that the set {(ǫ +
1)n : n ∈ N0 } is not bounded above.
iv) Prove that there exists a positive integer n such that c1/n < ǫ + 1.
v) Prove that there exists δ1 > 0 such that for all x ∈ (0, δ1 ) ∩ Q, |cx − 1| < ǫ.
vi) Prove that there exists δ2 > 0 such that for all x ∈ (−δ2 , 0) ∩ Q, |cx − 1| < ǫ.
vii) Prove that limx→0,x∈Q cx = 1.
viii) Prove that for any r ∈ R, limx→r,x∈Q cx exists and is a real number.
5.4.8. (Related to the previous exercise.) Let c ∈ R+ .
i) Prove that for any r ∈ R, limx→r,x∈Q cx exists and is a real number. (Hint: Case
c = 1 is special; case c > 1 done; relate the case c < 1 to the case c > 1 and the
quotient rule for limits.)
ii) We denote the limit in the previous part with cr . Prove that for all real numbers
c, c1 , c2 , r, r1 , r2 , with c, c1 , c2 > 0,
1
c−r = r
, (c1 c2 )r = cr1 cr2 , cr1 +r2 = cr1 cr2 , cr1 r2 = (cr1 )r2 .
c
iii) Prove that the function g : R → R given by g(x) = cx is continuous. (This is
easy.)
Section 5.5: Uniform continuity 165
Definition 5.5.1. A function f is uniformly continuous if for all real numbers ǫ > 0
there exists a real number δ > 0 such that for all x and y in the domain, if |x − y| < δ,
then |f (x) − f (y)| < ǫ.
Proof. Let ǫ > 0. Since f is continuous, for each a ∈ A there exists δa > 0 such that for
all x ∈ A, |x − a| < δa implies that |f (x) − f (a)| < ǫ/2. Note that A ⊆ ∪a∈A B(a, δa ).
By Theorem 3.6.3 there exists δ > 0 such that for all x ∈ A there exists a ∈ A such that
B(x, δ) ⊆ B(a, δa ). Let x, y ∈ A with |x − y| < δ. Since x, y ∈ B(x, δ) ⊆ B(a, δa ), it follows
that |x − a|, |y − a| < δa . Thus
Proof. Let ǫ > 0. Since f is uniformly continuous, there exists δ > 0 such that for all
x, y ∈ A, if |x − y| < δ then |f (x) − f (y)| < ǫ. But then for any x, y ∈ C, if |x − y| < δ,
then |g(x) − g(y)| = |f (x) − f (y)| < ǫ.
Example 5.5.7. By Example 5.5.3 the squaring function is not uniformly continuous on
C or R, but when the domain is restricted to any bounded subset of C, that domain is a
subset of a closed and bounded subset of C, and so since squaring is continuous, it follows
by the previous theorem that squaring is uniformly continuous on the closed and bounded
set and hence on any subset of that.
Section 5.5: Uniform continuity 167
The geometric motivation for differentiation comes from lines tangent to a graph of
a function f at a point (a, f (a)). For example, on the graph below are two secant lines
through (a, f (a)):
f (a)
a x
It appears that the line through (a, f (a)) and (x, f (x)) is closer to the tangent line to the
graph of f at (a, f (a)) if x is closer to a. Intuitively, the slope of the tangent line is the
limit of the slopes of the secant lines.
Example 6.1.2. Let f (x) = mx + l, where m and l are complex numbers. Then for any
a ∈ C, Then
f (x) − f (a) (mx + l) − (ma + l) m(x − a)
f ′ (a) = lim = lim = lim = m.
x→a x−a x→a x−a x→a x−a
Alternatively,
f (a + h) − f (a) (m(a + h) + l) − (ma + l) mh
f ′ (a) = lim = lim = lim = m.
h→0 h h→0 h h→0 h
From now on, we will mostly use the alternative way of computing derivatives.
Example 6.1.6. Let f (x) = x3/2 . The domain of f is R≥0 , and for all a ≥ 0,
f (a + h) − f (a)
f ′ (a) = lim
h→0 h
(a + h) − a3/2
3/2
= lim
h→0 h
(a + h) − a3/2 (a + h)3/2 + a3/2
3/2
= lim ·
h→0 h (a + h)3/2 + a3/2
(a + h)3 − a3
= lim (since (x − y)(x + y) = x2 − y 2 )
h→0 h((a + h)3/2 + a3/2 )
Section 6.1: Definition of derivatives 171
a3 + 3a2 h + 3ah2 + h3 − a3
= lim
h→0 h((a + h)3/2 + a3/2 )
(3a2 + 3ah + h2 )h
= lim
h→0 h((a + h)3/2 + a3/2 )
3a2 + 3ah + h2
= lim
h→0 (a + h)3/2 + a3/2
2
a3/23a+a3/2
, if a > 0;
= 2
lim h = lim h1/2 = 0, if a = 0;
h→0 h3/2 h→0
3
= a1/2
2
by the linear, radical, composite, and quotient rules for limits. (Note that this f is differen-
tiable even at 0, whereas the square root function (previous example) is not differentiable
at 0.)
Note that in all these examples, f ′ is a function from some subset of the domain of
f to a subset of C, and we can compute f ′ at a number labeled x rather than a:
df (x) f (x + h) − f (x) f (z) − f (x)
f ′ (x) = = lim = lim .
dx h→0 h z→x z−x
The h-limit is perhaps preferable to the last limit, where it is z that varies and gets closer
and closer to x.
Proof. This function is not differentiable whether the domain is C or R. The reason is
that the limit of |h|−|0|
h
as h goes to 0 does not exist. Namely, if h varies over positive real
numbers, this limit is 1, and if h varies over negative real numbers, the limit is −1, so that
the limit indeed does not exist, and hence the derivative does not exist.
This gives an example of a continuous function that is not differentiable. (Any
continuous function with a jagged graph is not differentiable.)
Proof. Parts (1) and (2) were already proved in part (1) of Example 6.1.2.
(3) follows from
(cf )(a + h) − (cf )(h) cf (a + h) − cf (h) f (a + h) − f (h)
lim = lim = c lim = cf ′ (a),
h→0 h h→0 h h→0 h
and (4) follows from the sum rule for limits and from
(f + g)(a + h) − (f + g)(h) f (a + h) + g(a + h) − f (h) − g(h)
lim = lim
h→0 h h→0 h
f (a + h) − f (h) + g(a + h) − g(h)
= lim
h→0 h
f (a + h) − f (h) g(a + h) − g(h)
= lim +
h→0 h h
′ ′
= f (a) + g (a).
The proof of the quotient rule (6) is similar. It is written out next without a com-
mentary; the reader is encouraged to supply justification for each step:
f f (a+h) f (a)
g (a + h) − fg (a) g(a+h) − g(a)
lim = lim
h→0 h h→0 h
f (a + h)g(a) − f (a)g(a + h)
= lim
h→0 hg(a + h)g(a)
f (a + h)g(a) − f (a)g(a) + f (a)g(a) − f (a)g(a + h)
= lim
h→0 hg(a + h)g(a)
f (a + h) · g(a + h) − f (a) · g(a + h) + f (a) · g(a) − f (a) · g(a + h)
= lim
h→0 hg(a + h)g(a)
f (a + h) · g(a + h) − f (a) · g(a + h) f (a) · g(a + h) − f (a) · g(a)
= lim −
h→0 hg(a + h)g(a) hg(a + h)g(a)
f (a + h) − f (a) g(a + h) f (a) g(a + h) − g(a)
= lim · − ·
h→0 h g(a + h)g(a) g(a + h)g(a) h
′ ′
f (a)g(a) − f (a)g (a)
= .
(g(a))2
Theorem 6.2.3. (Power rule) If n is a positive integer, then (xn )′ = nxn−1 .
Proof #1: Part (1) of Example 6.1.2 with m = 1 and l = 0 proves that (x1 )′ = 1, so that
the theorem is true when n = 1. Now suppose that the theorem holds for some positive
integer n. Then
so that the theorem holds also for n, and so by induction also for all positive n.
Proof #2: The second proof uses binomial expansions as in Exercise 1.6.7:
(x + h)n − xn
(xn )′ = lim
h→0 h
Pn
n k n−k
k=0 k x h − xn
= lim
h→0 h
Pn−1 n k n−k
x h
= lim k=0 k
h→0 h
Pn−1 n k n−k−1
h k=0 k x h
= lim
h→0 h
Section 6.2: Basic properties of derivatives 175
X
n−1
n k n−k−1
= lim x h
h→0 k
k=0
n−1
X
n k n−k−1
= x 0 (by the polynomial rule for limits)
k
k=0
n
= xn−1
n−1
= nxn−1 .
Theorem 6.2.4. (Polynomial, rational function rule for derivatives) Polynomial functions
are differentiable at all real/complex numbers and rational functions are differentiable at
all points in the domain.
Proof. The proof is an application of the sum, scalar, and power rules from Theorems 6.2.2
and 6.2.3.
Theorem 6.2.5. (The composite function rule for derivatives, aka the chain rule)
Suppose that f is differentiable at a, that g is differentiable at f (a), and that a is a limit
point of the domain of g ◦ f . (If f : A → B, g : B → C, and f is differentiable at a, then
automatically a is a limit point of A and hence of the domain of g ◦ f .) Then g ◦ f is
differentiable at a, and (g ◦ f )′ (a) = g ′ (f (a)) · f ′ (a).
Proof. Let ǫ > 0. Since f is differentiable at a, there exists δ1 > 0 such that for all a + h
in the domain of f , if 0 < |h| < δ1 then | f (a+h)−f h
(a)
− f ′ (a)| < min{1, ǫ/(2|g ′(f (a))| + 2)}.
For all such h, by the triangle inequality, | f (a+h)−f h
(a)
| < |f ′ (a)| + 1. By assumption g is
differentiable at f (a), so that there exists δ2 > 0 such that for all x in the domain of g, if
0 < |x − f (a)| < δ2 , then | g(x)−g(f
x−f (a)
(a))
− g ′ (f (a))| < ǫ/(2|f ′ (a)| + 2). Since f is differentiable
and hence continuous at a, there exists δ3 > 0 such that for all x in the domain of f , if
|x − a| < δ3 , then |f (x) − f (a)| < δ1 . Set δ = min{δ1 , δ2 , δ3 }. Let a + h be arbitrary in
the domain of g ◦ f such that 0 < |h| < δ. In particular a + h is in the domain of f . If
f (a + h) 6= f (a), then
(g ◦ f )(a + h) − (g ◦ f )(a) g(f (a + h)) − g(f (a))
− g ′
(f (a)) · f ′
(a) = − g ′
(f (a)) · f ′
(a)
h h
g(f (a + h)) − g(f (a)) f (a + h) − f (a)
= · − g ′ (f (a)) · f ′ (a)
f (a + h) − f (a) h
g(f (a + h)) − g(f (a)) f (a + h) − f (a)
= ′
− g (f (a)) ·
f (a + h) − f (a) h
f (a + h) − f (a)
′
+ g (f (a)) · − g (f (a)) · f (a)
′ ′
h
176 Chapter 6: Differentiation
g(f (a + h)) − g(f (a)) f (a + h) − f (a)
≤ ′
− g (f (a)) ·
f (a + h) − f (a) h
f (a + h) − f (a)
+ |g (f (a))|
′
− f (a)
′
h
ǫ ǫ
≤ · (|f ′ (a)| + 1) + |g ′ (f (a))| ′
2|f ′ (a)| + 2 2|g (f (a))| + 2
ǫ ǫ
< +
2 2
= ǫ.
Thus if there exists δ as above but possibly smaller such that f (a + h) 6= f (a) for all a + h
in the domain with 0 < |h| < δ, the above proves the theorem.
Now suppose that for all δ > 0 there exists h such that a + h is in the domain of f ,
0 < |h| < δ, and f (a + h) = f (a). Then in particular when h varies over those infinitely
many h, f ′ (a) = limh→0 f (a+h)−fh
(a)
= limh→0 h0 = 0. Also, for such h, (g ◦ f )(a + h) − (g ◦
f )(a) = g(f (a + h)) − g(f (a)) = 0, so that
(g ◦ f )(a + h) − (g ◦ f )(a)
− g (f (a)) · f (a) = 0 < ǫ.
′ ′
h
This analyzes all the cases and finishes the proof of the theorem.
Theorem 6.2.6. (Real and imaginary parts) Let A ⊆ R, and let a ∈ A be a limit
point of A. Let f : A → C. Then f is differentiable at a if and only if Re f and Im f are
differentiable at a, and in that case, f ′ = (Re f )′ + i(Im f )′ .
−1
y ∈ D, if |y − b| < γ then |g (y) − a| = |g −1 (y) −1
− g (b)| < δ. In particular, for all
g(g (y))−b
−1
such y, g−1y−b ′ ′
(y)−a − f (a) = g −1 (y)−a − f (a) < ǫ. This says that for all h ∈ C, if
−1
h
|h| < γ and b + h ∈ D, then g−1 (b+h)−a − f ′ (a) = g(g (b+h))−b
g −1 (b+h)−a − f ′
(a) < ǫ. Thus
h
limh→0 g −1 (b+h)−a = f ′ (a), and by the quotient rule for limits,
g −1 (b + h) − g −1 (b) g −1 (b + h) − a 1 1
lim = lim = ′ = ′ −1 .
h→0 h h→0 h f (a) f (f (b))
But this holds for every C (and g which is f restricted to C), so that in particular,
f −1 (b + h) − f −1 (b) 1
(f −1 )′ (b) = lim = ′ −1 .
h→0 h f (f (b))
It should be noted that if we know that f −1 is differentiable, the proof of the last
part of the theorem above goes as follows. For all x ∈ B, (f ◦ f −1 )(x) = x, so that
(f ◦ f −1 )′ (x) = 1, and by the chain rule, f ′ (f −1 (x)) · (f −1 )′ (x) = 1. Then if f ′ is never 0,
1
we get that (f −1 )′ (x) = f ′ (f −1 (x)) .
Example 6.2.8. Let f : [0, ∞) → [0, ∞) be the function f (x) = x2 . We know that f
is differentiable at all points in the domain and that f ′ (x) = 2x. By Example 6.1.5 and
Exercise 6.1.4, the inverse of f , namely the square root function, is differentiable at all
positive x, but not at 0. The theorem above applies to positive x (but not to x = 0):
√ 1 1 1
( x)′ = (f −1 )′ (x) = = = √ .
f ′ (f −1 (x)) 2f −1 (x) 2 x
178 Chapter 6: Differentiation
√
Theorem 6.2.9. Let n be a positive integer. Then for all non-zero x in the domain of n
,
√ 1
( n x)′ = x1/n−1 .
n
Proof. Let A = R+ if n is even and let A = R \ {0} otherwise. Define f : A → A to
be f (x) = xn . We have proved that f is invertible and differentiable. The derivative is
√
f ′ (x) = nxn−1 , which is never 0. Thus by the previous theorem, f −1 = n is differentiable
with
√ 1 1 1 1 1
( n x)′ = ′ √ = √ n−1
= (n−1)/n
= x−(n−1)/n = x1/n−1 .
f ( x)
n
n( x)
n
nx n n
Proof. The power rule and quotient rules prove this in case r an integer, and the previous
theorem proves it in case r is one over a positive integer. Now suppose that r = m/n for
some integers m, n with n 6= 0. Since m/n = (−m)/(−n) is also a quotient of two integers,
we may write r = m/n so that m ∈ Z and n is a positive integer. Thus f is the composition
of exponentiation by m and by 1/n. By the chain rule,
1 1/n−1 m (m−1)/n+1/n−1
f ′ (x) = m(x1/n)m−1 ·
x = x = rxm/n−1/n+1/n−1 = rxr−1 .
n n
This proves the theorem for all rational r.
The theorem also holds for all real r. But to prove it for all real r one first needs to
define exponentiation by non-rational numbers. Such exponentiation was worked through
laboriously in Exercises 5.4.7 and 5.4.8, and if we were to continue that kind of labori-
ous treatment, the proof of the form of the derivative of such exponentiation would also
be laborious. So we postpone the definition of such exponentiation and the proof of its
derivative to Theorem 7.6.4, where with the help of integrals the definition and proofs write
themselves elegantly.
6.2.5. (Compare with Theorem 6.2.6.) Prove that the absolute value function on R is
differentiable at all non-zero a ∈ R. Prove that the absolute value function on C is not
differentiable at any non-zero a ∈ C. (Hint: Let h = (r − 1)a for r near 1.)
6.2.6. The following information is known: c f (c) f ′ (c) g(c) g ′ (c)
0 1 2 6 4
1 −1 0 5 3
2 2 −3 6 −6
3 4 2 3 5
4 0 1 4 7
For each of the following, either provide the derivative or argue that there is not enough
information. In any case, justify every answer.
i) (f − g)′ (1) =
ii) (f · g)′ (2) =
′
iii) fg (3) =
′
iv) (g ◦ f ) (4) =
6.2.7. A function f is differentiable on (−2, 5) and f (3) = 4, f ′ (3) = −1. Let g(x) = 3x.
For each of the statements below determine whether it is true, false, or if there is not
enough information. Explain your reasoning.
i) f is constant.
ii) The slope of the tangent line to the graph of f at 3 is 4.
iii) f is continuous on (−2, 5).
iv) The derivative of (f ◦ g) at 1 is −3.
v) (f + g)′ (3) = 2.
x−1
6.2.8. Let f (x) = x−2
.
i) Find all a in the domain of f such that the tangent line to the graph of f at a
has slope −1.
ii) Find all a in the domain of f such that the tangent line to the graph of f at a
has slope 2. (Solutions need not be real.)
6.2.9. We assume the following familiar properties of the trigonometric functions: sin is
differentiable on R, sin′ = cos, and when restricted to [−π, π], sin has an inverse. Use
Theorem 6.2.7, the fact that (sin(x))2 + (cos(x))2 = 1, and that on [−π, π] cosine is non-
negative to prove that (sin−1 )′ (x) = √1−x
1
2
.
180 Chapter 6: Differentiation
6.2.10. Make the requisite assumptions about the trigonometric functions to prove the
following:
−1
i) (cos−1 )′ (x) = √1−x 2
.
1
ii) (tan−1 )′ (x) = 1+x 2.
−1 −1 1
π
iii) tan (x) + tan x = 2.
In this section the domains and codomains of all functions are subsets of R.
Theorem 6.3.1. Let f : [a, b] → R, and let c ∈ [a, b] such that f achieves an extreme
value at c (i.e., either for all x ∈ [a, b], f (c) ≤ f (x) or for all x ∈ [a, b], f (c) ≥ f (x)). Then
at least one of the following holds:
(1) c = a;
(2) c = b;
(3) f is not continuous at c;
(4) f is not differentiable at c;
(5) f is differentiable at c and f ′ (c) = 0.
Proof. It suffices to prove that if the first four conditions do not hold, then the fifth one
has to hold. So we assume that c 6= a, c 6= b, and that f is differentiable at c.
Suppose that f ′ (c) > 0. By the definition of derivative, f ′ (c) = limx→c f (x)−f
x−c
(c)
.
Thus for all x very near c but larger than c, f (x)−f x−c
(c)
> 0, so that f (x) − f (c) > 0, so
that f does not achieve its maximum at c. Also, for all x very near c but smaller than c,
f (x)−f (c)
x−c > 0, so that f (x) − f (c) < 0, so that f does not achieve its minimum at c. This
is a contradiction, so that f ′ (c) cannot be positive. Similarly, f ′ (c) cannot be negative.
Thus f ′ (c) = 0.
Thus to find extreme values of a function, one only has to check if extreme values
occur at the endpoints of the domain, at points where the function is not continuous or
non-differentiable, or where it is differentiable and the derivative is 0. One should be aware
that just because any of the five conditions is satisfied, we need not have an extreme value
of the function. Here are some examples:
(1) The function f : [−1, 1] → R given by f (x) = x3 − x has neither the maximum
nor the minimum at the endpoints.
x, if x > 0;
(2) Let f : [−1, 1] → R be given by f (x) = Then f is not continuous
1/2, if x ≤ 0.
at 0 but f does not have a minimum or maximum at 0.
Section 6.3: The Mean value theorem 181
x, if x > 0;
(3) Let f : [−1, 1] → R be given by f (x) = Then f is continuous
2x, if x ≤ 0.
and not differentiable at 0, yet f does not have a minimum or maximum at 0.
(4) Let f : [−1, 1] → R be given by f (x) = x3 . Then f is differentiable, f ′ (0) = 0, but
f does not have a minimum or maximum at 0.
Theorem 6.3.2. (Darboux’s theorem) Let a < b be real numbers, and let f : [a, b] →
R be differentiable. Then f ′ has the intermediate value property, i.e., for all k between
f ′ (a) and f ′ (b) there exists c ∈ [a, b] such that f ′ (c) = k.
Theorem 6.3.3. (Rolle’s theorem) Let a, b ∈ R with a < b, and let f : [a, b] → R be a
continuous function such that f is differentiable on (a, b). If f (a) = f (b), then there exists
c ∈ (a, b) such that f ′ (c) = 0.
Proof. By the Extreme value theorem (Theorem 5.2.2) there exist l, u ∈ [a, b] such that
f achieves its minimum at l and its maximum at u. If f (l) = f (u), then the minimum
value of f is the same as the maximum value of f , so that f is a constant function, and so
f ′ (c) = 0 for all c ∈ (a, b).
Thus we may assume that f (l) 6= f (u). It may be that f achieves its minimum at
the two endpoints, in which case u must be strictly between a and b. Similarly, it may be
that f achieves its maximum at the two endpoints, in which case l must be strictly between
a and b. In all cases of f (l) 6= f (u), either l or u is not the endpoint.
Say that l is not the endpoint. Then a < l < b. For all x ∈ [a, b], f (x) ≥ f (l),
so that in particular for all x ∈ (a, l), f (x)−f
x−l
(l)
≤ 0 and for all x ∈ (l, b), f (x)−f
x−l
(l)
≥ 0.
Since f ′ (l) = limx→l f (x)−f
x−l
(l)
exists, it must be both non-negative and non-positive, so
necessarily it has to be 0.
If instead u is not the endpoint, then a < u < b and for all x ∈ [a, b], f (x) ≤ f (u).
Thus in particular for all x ∈ (a, u), f (x)−fx−u
(u)
≥ 0 and for all x ∈ (u, b), f (x)−f
x−u
(u)
≤ 0.
182 Chapter 6: Differentiation
Theorem 6.3.4. (Mean value theorem) Let a, b ∈ R with a < b, and let f : [a, b] → R
be a continuous function such that f is differentiable on (a, b). Then there exists c ∈ (a, b)
such that f ′ (c) = f (b)−f
b−a
(a)
.
a b x
Theorem 6.3.5. Let a, b ∈ R with a < b, and let f : [a, b] → R be a continuous function
such that f is differentiable on (a, b).
(1) If f ′ (c) ≥ 0 for all c ∈ (a, b), then f is non-decreasing on [a, b].
(2) If f ′ (c) > 0 for all c ∈ (a, b), then f is strictly increasing on [a, b].
(3) If f ′ (c) ≤ 0 for all c ∈ (a, b), then f is non-increasing on [a, b].
(4) If f ′ (c) < 0 for all c ∈ (a, b), then f is strictly decreasing on [a, b].
(5) If f ′ (c) = 0 for all c ∈ (a, b), then f is a constant function.
Proof of part (2): Let x, y ∈ [a, b] with x < y. By Theorem 6.3.4 there exists c ∈ (x, y)
such that f ′ (c) = f (x)−f
x−y
(y)
. Since f ′ (c) > 0 and x < y, necessarily f (x) < f (y). Since x
and y were arbitrary with x < y, then f is strictly increasing on [a, b].
Section 6.3: The Mean value theorem 183
Example 6.3.6. Assuming that sin′ (x) ≤ 1 for all x ∈ R (this is proved in Section 9.9),
we have that sin(x) ≤ x for all x ≥ 0.
Proof. Let f (x) = x − sin(x). Then f is differentiable on R, and f ′ (x) = 1 − sin′ (x) ≥ 0.
By the previous theorem, f is non-decreasing, so that for all x ≥ 0, x − sin(x) = f (x) ≥
f (0) = 0, whence x ≥ sin(x).
f (b)−f (a)
Proof. The equation of the line is y = b−a (x − a) + f (a).
f (b)−f (a)
(i) Let x ∈ (a, b). We need to prove that f (x) ≤ b−a (x − a) + f (a). By
f (x)−f (a)
Theorem 6.3.4 there exists c ∈ (a, x) such that f ′ (c) = x−a
, and there exists d ∈ (a, x)
such that f ′ (d) = f (b)−f
b−x
(x)
. Since f ′′ > 0 and c < x < d, necessarily f (x)−fx−a
(a)
≤ f (b)−f
b−x
(x)
.
By cross-multiplying by positive (x − a)(b − x) we get that
(f (x) − f (a))(b − x) ≤ (f (b) − f (x))(x − a),
Theorem 6.3.8. (Cauchy’s mean value theorem) Let a < b be real numbers and let
f, g : [a, b] → R be continuous functions that are differentiable on (a, b). Then there exists
c ∈ (a, b) such that
f ′ (c)(g(b) − g(a)) = g ′ (c)(f (b) − f (a)).
f ′ (c) f (b)−f (a)
In particular, if g ′ (c) 6= 0 and g(b) 6= g(a), this says that g ′ (c) = g(b)−g(a) .
Proof. Define h : [a, b] → R by h(x) = f (x)(g(b) − g(a)) − g(x)(f (b) − f (a)). Then h is con-
tinuous on [a, b] and differentiable on (a, b). Note that h(a) = f (a)(g(b)−g(a))−g(a)(f (b)−
f (a)) = f (a)g(b) − g(a)f (b) = h(b). Then by the Mean value theorem (Theorem 6.3.4)
there exists c ∈ (a, b) such that h′ (c) = 0, i.e., 0 = f ′ (c)(g(b) − g(a)) − g ′ (c)(f (b) − f (a)).
184 Chapter 6: Differentiation
Theorem 6.3.9. (Cauchy’s mean value theorem, II) Let a < b be real numbers and
let f, g : [a, b] → R be continuous functions that are differentiable on (a, b) and such that
g ′ is non-zero on (a, b). Then g(b) 6= g(a), and there exists c ∈ (a, b) such that
f ′ (c) f (b) − f (a)
′
= .
g (c) g(b) − g(a)
Proof. By the Mean value theorem (Theorem 6.3.4) there exists c ∈ (a, b) such that
g ′ (c) = g(b)−g(a)
b−a
. By assumption, g ′ (c) 6= 0, so that g(b) 6= g(a). The rest follows by
Cauchy’s mean value theorem (Theorem 6.3.8).
The domains and codomains of all functions in this section are subsets of R.
f ′ (x)
Proof. Let ǫ > 0. Since lim ′ = L, there exists δ > 0 such that for all x in the domain, if
x→a g (x)
′
0 < |x−a| < δ then | fg′ (x)
(x)
−L| < ǫ. Let x be one such number. By Theorem 6.3.9 there exists
′
a number c strictly between a and x such that fg′ (c) (c)
= fg(x)−g(a)
(x)−f (a)
. Since f (a) = g(a) = 0,
′
this says that fg′ (c)
(c)
= fg(x)
(x)
. Since 0 < |x − a| < δ and c is between a and x, it follows that
0 < |c − a| < δ. Hence
′
f (x) f (c)
− L = − L < ǫ.
g(x) g ′ (c)
186 Chapter 6: Differentiation
With our definition of derivatives, this last version includes the one-sided cases where
the domains for f and g are of the form [a, b), or of the form (b, a].
I should note that many books omit hypothesis (3). A counterexample if we omit
that hypothesis is given in Exercise 9.11.5.
The versions of L’Hôpital’s rule so far deal with limits of the form “zero over zero”.
There are similarly three versions for the form “infinity over infinity”. I write and prove
only the right-sided version:
Theorem 6.4.3. (L’Hôpital’s rule) Let a < b be real numbers. Let f, g : (a, b) → R be
differentiable with the following properties:
(1) lim− f (x) = lim− g(x) = ∞.
x→b x→b
(2) For all x ∈ (a, b), g ′ (x) 6= 0.
f ′ (x)
(3) lim− ′ = L.
x→b g (x)
f (x)
Then lim = L.
x→b g(x)
−
Proof. Let ǫ > 0. By ′ assumption there exists δ1 > 0 such that for all x ∈ (a, b), if
f (x)
0 < b − x < δ1 , then g′ (x) − L < ǫ/4. By possibly replacing δ1 by min{δ1 , (b − a)/2} we
may assume that b − δ1 > a.
Set a0 = b − δ1 . Fix x such that 0 < b − x < δ1 . Then x ∈ (a0 , b) ⊆ (a, b). By
′
Theorem 6.3.9 there exists c ∈ (a0 , x) such that fg′ (c) (c)
= fg(x)−g(a
(x)−f (a0 )
0)
, and so
′
f (x) − f (a0 ) f (c)
− L = − L < ǫ/4.
g(x) − g(a0 ) g ′ (c)
Since lim f (x) = lim g(x) = ∞, there exists δ2 > 0 such that for all x with
x→b− x→b−
0 < b − x < δ2 , f (x) and g(x) are non-zero, and so we can define h : (b − δ2 , b) → R as
f (a0 )
1− f (x)
h(x) = g(a0 )
.
1− g(x)
By Theorem 4.4.7, limx→b− h(x) = 1. Thus there exists δ3 > 0 such that for all x, if
0 < b − x < δ3 , then |h(x) − 1| < min{ǫ/4(|L| + 1), 12 }. The ( 21 )-restriction in particular
means that h(x) > 21 . Set δ = min{δ1 , δ2 , δ3 }. Then for all x with 0 < b − x < δ,
f (x) f (x) 1
− L = h(x) − Lh(x)
g(x) g(x) |h(x)|
f (x) − f (a0 ) 1
= − Lh(x)
g(x) − g(a0 ) |h(x)|
f (x) − f (a0 )
≤ 2 − Lh(x) (since |h(x)| > 1/2)
g(x) − g(a0 )
Section 6.4: L’Hôpital’s rule 187
f (x) − f (a0 )
≤2
− L + |L − Lh(x)| (by the triangle inequality)
g(x) − g(a0 )
′
f (c)
= 2 ′ − L + |L| |1 − h(x)|
g (c)
ǫ ǫ
<2 +
4 4
= ǫ.
x2 −1
Example 6.4.4. Compute lim x 3 −1 .
x→1
x2 −1 (x−1)(x+1)
Proof #1: By Example 1.5.4, x3 −1 = (x−1)(x2 +x+1) , so that by Exercise 4.3.10 and Theo-
2
x −1
rem 4.3.6, lim 3 = lim 2x+1 = 1+1 2
12 +1+1 = 3 .
x→1 x −1 x→1 x +x+1
Proof #2: By Theorem 4.3.5, lim (x2 − 1) = 0 = lim (x3 − 1), lim (x2 − 1)′ = lim 2x = 2,
x→1 x→1 x→1 x→1
3 ′ 2 x2 −1
and lim (x − 1) = lim 3x = 3. Thus by L’Hôpital’s rule (Theorem 6.4.3), lim x 3 −1
x→1 x→1 x→1
equals 23 .
More forms of L’Hôpital’s rule are in the exercises below, as well as in Section 9.11
after the exponential and trigonometric functions have been covered.
T0,f,0(x) = −10,
T1,f,0(x) = −10 + 7x,
T2,f,0(x) = −10 + 7x + 4x2 ,
T3,f,0(x) = −10 + 7x + 4x2 − 3x3 ,
Tn,f,0 (x) = −10 + 7x + 4x2 − 3x3 + x4 for all n ≥ 4,
and for a = 1,
T0,f,1 (x) = −1,
T1,f,1 (x) = −1 + 10(x − 1),
T2,f,1 (x) = −1 + 10(x − 1) + (x − 1)2 ,
T3,f,1 (x) = −1 + 10(x − 1) + (x − 1)2 + (x − 1)3 ,
Tn,f,1 (x) = −1 + 10(x − 1) + (x − 1)2 + (x − 1)3 + (x − 1)4 for all n ≥ 4.
Note that for all n ≥ 4, Tn,f,0 (x) = Tn,f,1 (x) = f (x).
The following is a generalization of this observation:
Theorem 6.5.4. If f is a polynomial of degree at most d, then for any a ∈ C and any
integer n ≥ d, the nth-order Taylor polynomial of f centered at a equals f .
Proof. Write f (x) = c0 +c1 x+· · ·+cd xd for some c0 , c1 , . . . , cd ∈ C. By elementary algebra,
it is possible to rewrite f in the form f (x) = e0 + e1 (x − a) + e2 (x − a)2 + · · · + ed (x − a)d
for some e0 , e1 , . . . , ed ∈ C. Now observe that
f (a) = e0 ,
f ′ (a) = e1 ,
f ′′ (a) = 2e2 ,
f ′′′ (a) = 6e3 = 3!e3 ,
f (4) (a) = 24e4 = 4!e4 ,
..
.
f (k) (a) = k!ek if k ≤ d,
f (k) (a) = 0 if k > d.
But then for n ≥ d,
n
X d
X d
X
f (k) (a) k k!ek k
Tn,f,a (x) = (x − a) = (x − a) = ek (x − a)k = f (x).
k! k!
k=0 k=0 k=0
190 Chapter 6: Differentiation
Proof. Let ǫ > 0. Let M = 1 + max{|f (a)|, |f ′(a)|, . . . , |f (n) (a)|}. Since f is differentiable
at a, it is continuous at a, so there exists δ1 > 0 such that for all qx ∈ B(a, r), ifq|x − a| < δ1 ,
ǫ ǫ
then |f (x)−f (a)| < ǫ/(n+1). Set δ = min{r, δ1 , ǫ/(M (n+1)), 2 (M (n+1)) , . . . n (M (n+1)) }.
Let x satisfy |x − a| < δ. Then x is in the domain of f and Tn,f,a , and
′′
f (a) f (n)
(a)
|f (x) − Tn,f,a (x)| = f (x) − f (a) − f (a)(x − a) −
′ 2
(x − a) − · · · − (x − a)
n
2! n!
′′ (n)
f (a)
≤ |f (x) − f (a)| + |f ′ (a)| |x − a| + |x − a|2 + · · · + f (a) |x − a|n
2! n!
ǫ ǫ ǫ ǫ
< +M +M +···+M
n+1 M (n + 1) M (n + 1) M (n + 1)
= ǫ.
More on Taylor polynomials and Taylor series is in the exercises in this section, in
Exercise 7.4.9, and in Section 9.3.
6.5.4. (Generalized quotient rule.) Prove the following generalization of the product rule:
Suppose that f and g have derivatives of orders 1, . . . , n at a and that g(a) 6= 0. Find and
prove a formula for the nth derivative of the function f /g.
√
6.5.5. Compute the Taylor polynomial of f (x) = 1 + x of degree 5 centered at a = 0.
Justify your work.
√
6.5.6. Compute the Taylor polynomial of f (x) = 1 − x of degree 10 centered at a = 0.
Justify your work.
192 Chapter 6: Differentiation
The basic motivation for integration is computing areas of regions bounded by graphs
of functions. In this chapter we develop the theory of integration for functions whose
domains are subsets of R. The first two sections handle only codomains in R, and at the
end of Section 7.4 we extend integration to functions with codomains in C. We do not
extend to domains being subsets of C as that would require multi-variable methods and
complex analysis, which are not the subject of this course.
In this section, domains and codomains of all functions are subsets of R. Thus we
can draw the regions and build the geometric intuition together with the formalism.
Let f : [a, b] → R. The basic aim is to compute the signed area of the region
bounded by the x-axis, the graph of y = f (x), and the lines x = a and x = b. By “signed”
area we mean that we add up the areas of the regions above the x-axis and subtract the
areas of the regions below the x-axis. Thus a signed area may be positive, negative or zero.
y = f (x)
y
a b x
In the plot above, there are many (eight) regions whose boundaries are some of the
listed curves, but only the shaded region (comprising of two of the eight regions in the
count) is bounded as a subset of the plane.
The simplest case of an area is when f is a constant function with constant value c.
Then the signed area is c · (b − a), which is positive if c > 0 and non-positive if c ≤ 0.
For a general f , we can try to approximate the area by rectangles, such as the
following:
194 Chapter 7: Integration
y = f (x)
y
a b x
It may be hard to decide how close the approximation is to the true value. But we
can approximate the region more systematically, by having heights of the rectangles be
either the least possible height or the largest possible height, as below:
a b a b
Then clearly the true area is larger than the sum of the areas of the darker rectangles
on the left and smaller than the sum of the areas of the darker rectangles on the right.
We establish some notation for all this.
Remark 7.1.2. If f is a bounded function with codomain R, then by the Least upper
bound property/theorem (Axiom 2.10.1), for any subset B of the domain, sup{f (x) : x ∈
B} and inf{f (x) : x ∈ B} are real numbers.
Section 7.1: Approximating areas 195
Definition 7.1.3. A partition of [a, b] is a finite subset of [a, b] that contains a and b.
We typically write a partition in the form P = {x0 , x1 , . . . , xn}, where x0 = a < x1 < x2 <
· · · < xn−1 < xn = b. (For example, in the figures above, n = 10.)
The sub-intervals of the partition P are [x0 , x1 ], [x1 , x2 ], . . ., [xn−1 , xn ]. (When
n ≥ 5, the sub-interval [x1 , x5 ] of the interval [a, b] is not a sub-interval of the partition!)
In particular, if U (f, P ) − L(f, P ) < ǫ, then either U (f, P ) or L(f, P ) serves as an approx-
imation of the true signed area within ǫ of its true value. For most functions a numerical
approximation is the best we can hope for.
Theorem 7.1.6. If f (x) = c for all x ∈ [a, b], then for any partition P of [a, b], L(f, P ) =
U (f, P ) = c(b − a).
so that
n
X n
X
L(f, P ) = U (f, P ) = c(xk − xk−1 ) = c (xk − xk−1 ) = c(xn − x0 ) = c(b − a).
k=1 k=1
196 Chapter 7: Integration
Example 7.1.7. Approximate the area under the curve y = f (x) = 30x4 + 2x between
x = 1 and x = 4. We first establish a partition Pn = {x0 , . . . , xn } of [1, 4] into n equal
sub-intervals. The length of each sub-interval is (4 − 1)/n, and x0 = 1, so that x1 =
x0 + 3/n = 1 + 3/n, x2 = x1 + 3/n = 1 + 2 · 3/n, and in general, xk = 1 + k · 3/n.
Note that xn = 1 + n · 3/n = 4, as needed. Since f ′ (x) = 12x3 + 2 is positive on [1, 4],
it follows that f is increasing on [1, 4]. Thus necessarily for each i, the infimum of all
values of f on the ith sub-interval is achieved at the left endpoint, and the supremum at
the right endpoint. In symbols, this says that inf{f (x) : x ∈ [xk−1 , xk ]} = f (xk−1 ) and
sup{f (x) : x ∈ [xk−1 , xk ]} = f (xk ). For example, with n = 1, L(f, P1 ) = f (1) · 3 = 96 and
U (f, P1) = f (4) · 3 = 3 · (30 · 44 + 2 · 4) = 23064. Thus the true area is some number between
96 and 23064. Admittedly, this is not much information. The problem is that our partition
is too rough. A computer program produced the following better numerical approximations
for lower and upper sums with respect to partitions Pn into n equal sub-intervals:
n L(f, Pn) U (f, Pn)
10 5061.2757 7358.0757
100 6038.727 6268.407
1000 6141.5217 6164.48967
10000 6151.8517 6154.148
100000 6152.885 6153.1148
1000000 6152.988 6153.011
Notice how the lower sums get larger and the upper sums get smaller as we take finer
partitions. We would like to conclude that the true area is between 6152.988 and 6153.011.
This is getting closer but may still be insufficient precision. For more precision, partitions
would have to get even finer, but the calculations slow down too.
The observed monotonicity is not a coincidence:
Theorem 7.1.10. For any partitions P and Q of [a, b], and for any bounded function
f : [a, b] → R,
L(f, P ) ≤ U (f, Q).
We say that f is integrable over [a, b] when L(f ) = U (f ). We call this common
value the integral of f over [a, b], and we write it as
Z b Z b Z b
f= f (x) dx = f (t) dt.
a a a
198 Chapter 7: Integration
Theorem 7.1.10 shows that always L(f ) ≤ U (f ). Example 7.1.9 shows that some-
times strict inequality holds. Note that we have not yet proved that the function in Ex-
ample 7.1.7 is integrable, but in Section 7.3 we prove more generally that every continuous
function is integrable over a closed bounded interval.
By Exercise 7.1.3, for non-constant functions the upper and lower sums with respect
to a partition are never equal. In this case for every partition P , L(f, P ) < U (f, P ), yet
for good, i.e., integrable, functions it can happen that L(f ) = U (f ).
The simplest examples of integrable functions are constant functions:
Theorem 7.1.12. (Constant rule for integrals.) If f (x) = c for all x ∈ [a, b], then for
Rb
any partition P of [a, b], a f = L(f ) = U (f ) = c(b − a).
Theorem 7.1.13. Let f : [a, b] → R be bounded. Then f is integrable over [a, b] if and
only if for all ǫ > 0 there exists a partition Pǫ of [a, b] such that U (f, Pǫ) − L(f, Pǫ) < ǫ.
Proof. Suppose that f is integrable over [a, b]. Then L(f ) = U (f ). Let ǫ > 0. Since L(f )
is the supremum of all lower sums L(f, P ) as P varies over partitions of [a, b], there exists
a partition P1 of [a, b] such that L(f ) − L(f, P1) < ǫ/2. Similarly, there exists a partition
P2 of [a, b] such that U (f, P2) − U (f ) < ǫ/2. Let P = P1 ∪ P2 . Then P is a partition of
[a, b], and by Equation (7.1.5) and by Theorem 7.1.8,
L(f, P1) ≤ L(f, P ) ≤ U (f, P ) ≤ U (f, P2).
Now suppose that for every ǫ > 0 there exists a partition Pǫ of [a, b] such that
U (f, Pǫ)−L(f, Pǫ) < ǫ. By the supremum/infimum definitions of lower and upper integrals,
0 ≤ U (f ) − L(f ) ≤ U (f, Pǫ) − L(f, Pǫ) < ǫ.
Since the non-negative constant U (f )−L(f ) is strictly smaller than every positive number ǫ,
it means, by Theorem 2.11.4, that U (f ) − L(f ) = 0, so that f is integrable.
partition P , L(f, P ) = 0. So by Theorem 7.1.13 it suffices to prove that for every ǫ > 0
there exists a partition P of [0, 1] such that U (f, P ) < ǫ. So let ǫ > 0. We will partition
[0, 1] so that some sub-intervals are very small and the other sub-intervals have very small
(zero) supremum of f . By Theorem 2.10.3, there exists a positive integer p such that
1 < pǫ. Thus p1 < ǫ. Set d = 2p(p+2) 1
. Let x0 = 0, x2p+1 = 1 − d, x2p+2 = 1, and for
1 1
k = 1, . . . , p, set x2k−1 = p−k+2 − d and x2k = p−k+2 + d. Clearly x2k−1 < x2k < 1,
1 1 1
x2p = 2+d < 1 − d = x2p+1 < x2p = 1, and x2k < x2k+1 because p−k+2 − p−k+1 =
1 1 1
(p−k+2)(p−k+1)
< (p−1)p < p(p+2) = 2d. Thus P = {x0 , x1 , . . . , x2p+1 } is a partition of
1 1
[0, 1]. For k = 1, . . . , p, the sub-interval [x2k−1 , x2k ] = [ p−k+2 − d, p−k+1 + d] is centered
1
on p−k+2 . Thus these p sub-intervals contain the p numbers 1/2, 1/3, . . . , 1/(p + 1). The
1
interval [x0 , x1 ] = [0, p+1 1
− d] = [0, p+1 1
− 2p(p+1 ] = [0, 2p−1 1
p+1 ] contains all n for n ≥ p + 2
1
(because p+2 < 2p−1
p+1 ), and the subinterval [x2p , x2p+1 ] contains 1/1. Consequently, the
1 1
p−1 sub-intervals [x2k , x2k+1 ] = [ p−k+2 +d, p−k+1 −d] for k = 1, . . . , p contain no elements
of the form 1/n for a positive integer n. Thus U (f, P ) equals
p+1 p−1
1 X 1 X
= · (x1 − x0 ) + · (x2k − x2k−1 ) + 0 · (x2k+1 − x2k ) + (x2p+1 − x2p )
p+2 p−k+2
k=1 k=1
p+1
!
X
≤d+ 2d + d
k=1
= (p + 2)(2d)
1
=
p
< ǫ.
Notation 7.1.15. In the definition of integral there is no need to write “dx” when we
Rb
are simply integrating a function f , as in “ a f ”: we seek the signed area determined by
f over the domain from a to b. For this it does not matter if we like to plug x or t or
anything else into f . But when we write “f (x)” rather than “f ”, then we need to write
“dx”, and the reason is that f (x) is an element of the codomain and is not a function.
Why do we have to be pedantic? If x and t are non-dependent variables, by the constant
rule (Theorem 7.1.12) we then have
Z b
f (x) dt = f (x)(b − a),
a
and specifically, by geometric reasoning,
Z 4 Z 4
x dx = 8, x dt = 4x.
0 0
Thus writing “dx” versus “dt” is important, and omitting it can lead to confusion: is
200 Chapter 7: Integration
Theorem 7.1.16. Let f : [a, b] → R be bounded and integrable. For each real number
(r) (r) (r)
r > 0 let Pr = {x0 , x1 , . . . , xnr } be a partition of [a, b] such that each sub-interval
(r) (r)
[xk−1 , xk ] has length at most r. Then
Z b
lim L(f, Pr ) = lim U (f, Pr ) = f.
r→0+ r→0+ a
(r)
Furthermore, if for each r > 0 and each k = 1, 2, . . . , nr , ck is arbitrary in
(r) (r)
[xk−1 , xk ], then
Xnr Z b
(r) (r) (r)
lim f (ck )(xk − xk−1 ) = f.
r→0+ a
k=1
Proof. Let ǫ > 0. By Theorem 7.1.13, there exists a partition P of [a, b] such that
U (f, P ) − L(f, P ) < ǫ/2. Let P = {y0 , y1 , . . . , yn }. Since f is bounded, there exists a
positive real number M such that for all x ∈ [a, b], |f (x)| < M . Let r be any positive real
number such that
1 n ǫ o
r < min , y1 − y0 , y2 − y1 , . . . , yn − yn−1 ,
2 4M n
and let Pr = {x0 , x1 , . . . , xmr } (omitting the superscript (r)). By the definition of r,
each sub-interval [xk−1 , xk ] contains at most one element of P . When it does contain an
element of P , we call such k special and we denote its point of P as yj(k) . Thus [xk−1 , xk ] =
[xk−1 , yj(k) ] ∪ [yj(k) , xk ]. The elements y0 and yn are each in exactly one sub-interval of
Pr , whereas the n − 1 points y1 , . . . , yn−1 may each be contained in two sub-intervals of Pr
(when it is also in Pr ), so that there are at most 2 + 2 · (n − 1) = 2n special integers. For
non-special k there exists a unique i(k) ∈ {1, . . . , n} such that [xk−1 , xk ] ⊆ [yi(k)−1 , yi(k) ].
Then
Xmr
L(f, Pr ) = inf{f (x) : x ∈ [xk−1 , xk ]}(xk − xk−1 )
k=1
Section 7.1: Approximating areas 201
mr
X
= inf{f (x) : x ∈ [xk−1 , xk ]}(xk − xk−1 )
special k=1
mr
X
+ inf{f (x) : x ∈ [xk−1 , xk ]}(xk − xk−1 )
non-special k=1
which is not quite equal to L(f, P ) because for each i ∈ {1, . . . , n}, the union of the sub-
intervals [xk−1 , xk ] contained in [yi−1 , yi ] need not be all of [yi−1 , yi ]. In fact, L(f, P ) equals
the summand in the last row plus
mr
X
inf{f (x) : x ∈ [yj(k)−1 , yj(k) ]}(yj(k) − xk−1 )
special k=1
mr
X
+ inf{f (x) : x ∈ [yj(k) , yj(k)+1 ]}(xk − yj(k) ).
special k=1
Thus
mr
X
L(f, Pr ) ≥ inf{f (x) : x ∈ [xk−1 , xk ]}(xk − xk−1 ) + L(f, P )
special k=1
mr
X
− inf{f (x) : x ∈ [yj(k)−1 , yj(k) ]}(yj(k) − xk−1 )
special k=1
mr
X
− inf{f (x) : x ∈ [yj(k) , yj(k)+1 ]}(xk − yj(k) ).
special k=1
m
X r
7.1.5. Use geometry to compute the following integrals (t and x do not depend on each
other). Justify all work.
Z rp
i) r 2 − x2 dt =
Z0 5
ii) (4x − 10) dt =
3
Z 5 5, if t < −7;
2, if −7 ≤ t < 1;
iii) f , where f (t) =
−1 3t,
if 1 ≤ t < 3;
9 − x, if 3 ≤ t.
7.1.6. Let Pn be a partition of [−1, 1] into n equal parts. Let f (x) = 1 if x = 0 and
f (x) = 0 otherwise.
i) Graph f and conclude that f is not continuous at 0.
ii) Compute L(f, Pn) and U (f, Pn).
7.1.7. EasyLanders define Eantegrals as follows: they divide the interval [a, b] into n equal
sub-intervals, so each has length b−a n . By Exercise 7.1.1, the kth sub-interval given in this
b−a b−a
way is a + (k − 1) n , a + k n . Rather than finding the minimum and maximum of
f on this sub-interval, they simply Eapproximate f on the sub-interval by plugging in the
right endpoint a+k b−a n
, so that the signed area over the kth sub-interval is Eapproximately
b−a b−a
f a+k n n . Thus the Eapproximate signed area of f over [a, b] via this partition is
Pn b−a b−a
k=1 f a + k n n . If this sum has a limit as n goes to infinity, then EasyLanders
declare the Eantegral of f over [a, b] to be
b Xn
f = lim b − a b−a
f a+k .
a n→∞ n n
k=1
b
Suppose that f : [a, b] → R is integrable. Prove that the Eantegral f exists and equals
Rb a
the integral a f .
1, if x is rational;
7.1.8. Use Eantegrability from the previous exercise. Let f (x) =
0, if x is irrational.
By Example 7.1.9 we know that f is not integrable over [0, 2].
2
i) Prove that f is Eantegrable over [0, 2] and find its Eantegral f .
0
√2 2 √2 2 2
ii) Compute f, √ f , and prove that f + √ f 6= f .
0 2 0 2 0
204 Chapter 7: Integration
The definition of integrals appears daunting: we seem to need to compute all the
possible lower sums to get at the lower integral, all the possible upper sums to get at the
upper integral, and only if the lower and upper integrals are the same do we have the precise
integral. In Example 7.1.7 in the previous section we have already seen that numerically
we can often compute the integral to within desired precision by taking finer and finer
partitions. In this section we compute some precise numerical values of integrals, and
without computing all the possible upper and lower sums. Admittedly, the computations
are time-consuming, but the reader is encouraged to read through them to get an idea of
what calculations are needed to follow the definition of integrals. In Section 7.4 we will see
very efficient shortcuts for computing integrals, but only for easy/good functions.
Example 7.2.1. Let f (x) = x on [2, 6]. We know that the area under the curve between
Z 6
x = 2 and x = 6 is 16. Here we compute that indeed f = 16. For any positive integer n
2
let Pn = {x0 , . . . , xn } be the partition of [2, 6] into n equal parts. By Exercise 7.1.1,
xk = 2 + k n4 . Since f is increasing, on each sub-interval [xk−1 , xk ] the minimum is xk−1
and the maximum is xk . Thus
n
X
U (f, Pn) = xk (xk − xk−1 )
k=1
Xn
4 4
= 2+k
n n
k=1
Xn n 2
4 X 4
= 2 + k
n n
k=1 k=1
2
4 n(n + 1) 4
=2 n+
n 2 n
8(n + 1)
=8+ .
n
It follows that for all n,
8(n + 1)
U (f ) = inf{U (f, P ) : P varies over partitions of [2, 6]} ≤ U (f, Pn) = 8 + ,
n
so that U (f ) ≤ 8 + 8 = 16. Similarly,
n
X
L(f, Pn) = xk−1 (xk − xk−1 )
k=1
Section 7.2: Computing integrals from upper and lower sums 205
Xn
4 4
= 2 + (k − 1)
n n
k=1
Xn n 2
4 X 4
= 2 + (k − 1)
n n
k=1 k=1
2
4 (n − 1)n 4
=2 n+
n 2 n
8(n − 1)
=8+ ,
n
and
L(f ) = sup{L(f, P ) : P varies over partitions of [2, 6]} ≥ sup{L(f, Pn) : n ∈ N>0 } = 16.
16 ≤ L(f ) ≤ U (f ) ≤ 16,
R6
so that L(f ) = U (f ) = 16, and finally that 2
f = 16.
Note that we did not compute all the possible lower and upper sums, but we com-
puted enough of them. We knew that we computed enough of them because as n goes
large, sup{L(f, Pn) : n} = inf{U (f, Pn) : n}.
Example 7.2.2. We compute the integral for f (x) = x2 over [1, 7]. For any positive inte-
ger n let Pn = {x0 , . . . , xn } be the partition of [1, 7] into n equal parts. By Exercise 7.1.1,
xk = 1 + k n6 . Since f is increasing on [1, 7], on each sub-interval [xk−1 , xk ] the minimum
is x2k−1 and the maximum is x2k . Thus, by using Exercise 1.5.1 in one of the steps below:
n
X
U (f, Pn) = x2k (xk − xk−1 )
k=1
Xn 2
6 6
= 1+k
n n
k=1
Xn
12 2 36 6
= 1+k +k 2
n n n
k=1
Xn n n 3
6 X 12 6 X 2 6
= + k + k
n n n n
k=1 k=1 k=1
3
6 n(n + 1) 12 6 n(n + 1)(2n + 1) 6
= n+ +
n 2 n n 6 n
36(n + 1) 36(n + 1)(2n + 1)
=6+ + ,
n n2
206 Chapter 7: Integration
Proof. Let ǫ > 0. Since f is bounded, there exists a positive real number M such that
for all x ∈ [a, b], |f (x)| < M . Let e = 13 min{s1 − s0 , s2 − s1 , . . . , sm − sm−1 } and d =
min{e, ǫ/(4M (m + 1)(2m + 1))}. By assumption, for each k = 1, . . . , m − 1, f is integrable
on the interval [sk−1 + d, sk − d]. Thus by Theorem 7.1.13, there exists a partition Pk of
[sk−1 + d, sk − d] such that U (f, Pk ) − L(f, Pk ) < ǫ/(2m + 1). Now let P = {a} ∪ P1 ∪ P2 ∪
· · · ∪ Pm−1 ∪ {b}. Then P is a partition of [a, b], and
m
X
U (f, P ) − L(f, P ) = (U (f, P ∩ [sk−1 + d, sk − d]) − L(f, P ∩ [sk−1 + d, sk − d]))
k=1
+ (U (f, P ∩ [a, a + d]) − L(f, P ∩ [a, a + d]))
m−1
X
+ (U (f, P ∩ [sk − d, sk + d]) − L(f, P ∩ [sk − d, sk + d]))
k=1
+ (U (f, P ∩ [b − d, b]) − L(f, P ∩ [b − d, b]))
m
X m−1
X
≤ (U (f, Pk ) − L(f, Pk )) + 2M · 2d + 2M · 2d + 2M · 2d
k=1 k=1
Xm
ǫ
< + 4M (m + 1)d
2m + 1
k=1
< ǫ.
Rb Pm R sk
Thus by Theorem 7.3.1, f is integrable. Furthermore, a f − k=1 sk−1 f is bounded
Pm Pm
above by U (f, P ) − k=1 L(f, Pk ) and below by L(f, P ) − k=1 U (f, Pk ), and the upper
Rb Pm R sk
and lower bounds are within 2ǫ of 0, so that a f − k=1 sk−1 f is within 2ǫ of 0. Since ǫ
Rb Pm R sk
is arbitrary, it follows by Theorem 2.11.4 that a f = k=1 sk−1 f .
Section 7.3: What functions are integrable? 209
Ra
Notation 7.3.3. What could possibly be the meaning of f if a < b? In our definition
b Rb
of integrals, all partitions started from a smaller a to a larger b to get a f . If we did
reverse b and a, then the widths of the sub-intervals in each partition would be negative
(xk − xk−1 = −(xk−1 − xk )), so that all the partial sums and both the lower and the upper
integrals would get the negative value. Thus it seems reasonable to declare
Z a Z b
f =− f.
b a
In fact, this is exactly what makes Theorem 7.3.2 work without any order assumptions
Rb Rc Rb
on the sk . For example, if a < c < b, by Theorem 7.3.2, a f = a f + c f , whence
Rc Rb Rb Rb Rc
a
f = a
f − c
f = a
f + b
f.
Theorem 7.3.4. Suppose that f and g are integrable over [a, b], and that c ∈ R. Then
Rb Rb Rb
f + cg is integrable over [a, b] and a (f + cg) = a f + c a g.
Here is a picture that illustrates this theorem: the values of g are at each point in
the domain greater than or equal to the values of f , and the area under the graph of g is
larger than the area under the graph of f :
y = g(x)
y = f (x)
a b x
Proof. By assumption on every sub-interval I of [a, b], inf{f (x) : x ∈ I} ≤ inf{g(x) : x ∈ I}.
Thus for all partitions P of [a, b], L(f, P ) ≤ L(g, P ). Hence L(f ) ≤ L(g), and since f and
Rb Rb
g are integrable, this says that a f ≤ a g.
Section 7.4: The Fundamental theorem of calculus 211
Despite first appearances, it turns out that integration and differentiation are related.
For this we have two versions of the Fundamental theorem of calculus.
Proof. Let P = {x0 , x1 , . . . , xn } be a partition of [a, b]. Since g is differentiable on [a, b], it
is continuous on each [xk−1 , xk ] and differentiable on each (xk−1 , xk ). Thus by the Mean
value theorem (Theorem 6.3.4), there exists ck ∈ (xk−1 , xk ) such that f (ck ) = g ′ (ck ) =
g(xk )−g(xk−1 )
xk −xk−1 . By the definition of lower and upper sums,
n
X
L(f, P ) ≤ f (ck )(xk − xk−1 ) ≤ U (f, P ).
k=1
212 Chapter 7: Integration
But
n
X n
X g(xk ) − g(xk−1 )
f (ck )(xk − xk−1 ) = (xk − xk−1 )
xk − xk−1
k=1 k=1
Xn
= (g(xk ) − g(xk−1 ))
k=1
= g(xn ) − g(x0 )
= g(b) − g(a),
Since f is integrable over [a, b], by definition L(f ) = U (f ), and so all inequalities above
Rb
have to be equalities, so that necessarily a f = g(b) − g(a).
The general notation for applying Theorem 7.4.1 is as follows: if g ′ = f , then
Z b b
f = g(x) = g(b) − g(a).
a a
′
For example, assuming that cos (x) = − sin(x) (this is proved in Section 9.9), we have that
Z π π
sin x dx = − cos(x) = − cos(π) − (− cos(0)) = −(−1) + 1 = 2.
0 0
If we instead had to compute this integral with upper and lower sums, it would take us a
lot longer and a lot more effort to come up with the answer 2.
In general, upper and lower sums and integrals are time-consuming and we want to
avoid them if possible. The fundamental theorem of calculus that we just proved enables
us to do that for many functions: to integrate f over [a, b] one needs to find g with g ′ = f .
Such g is called an antiderivative of f . For example, if r is a rational number different
r+1
from −1, then by the power rule (Theorem 6.2.10), an antiderivative of xr is xr+1 . By the
r+1
scalar rule for derivatives, for any constant C, xr+1 + C is also an antiderivative. It does
not matter which antiderivative we choose to compute the integral:
Z b r+1 r+1
r b a br+1 ar+1
x dx = +C − +C = − ,
a r+1 r+1 r+1 r+1
so that the choice of the antiderivative is irrelevant.
Section 7.4: The Fundamental theorem of calculus 213
Proof. Since f is continuous over [a, b], it is continuous over [a, x], so that by Theorem 7.3.1,
f is integrable over [a, x]. Thus g is a well-defined function. Let c ∈ (a, b). We will prove
that g is differentiable at c.
214 Chapter 7: Integration
Let ǫ > 0. By continuity of f at c, there exists δ > 0 such that for all x ∈ [a, b], if
|x − c| < δ then |f (x) − f (c)| < ǫ. Thus on [c − δ, c + δ] ∩ [a, b], f (c) − ǫ < f (x) < f (c) + ǫ,
so that by Theorem 7.3.5,
Z max{x,c} Z max{x,c} Z max{x,c}
(f (c) − ǫ) ≤ f≤ (f (c) + ǫ).
min{x,c} min{x,c} min{x,c}
Thus Z max{x,c}
|x − c|(f (c) − ǫ) ≤ f ≤ |x − c|(f (c) + ǫ).
min{x,c}
then
R x R
g(x) − g(c) a f − ac f
− f (c) = − f (c)
x−c x−c
Rx
c f
= − f (c) (by Theorem 7.3.2 and Notation 7.3.3)
x−c
< ǫ.
g(x) − g(c)
Thus lim exists and equals f (c), i.e., g ′ (c) = f (c).
x→c x−c
Rx
It is probably a good idea to review the notation again. The integral a f can also
be written as Z x Z x Z x
f= f (t) dt = f (z) dz.
a a a
This is a function of x because x appears in the bound of the domain of integration. Note
Rx
similarly that a f (t) dz are functions of t and x but not of z. Thus by the Fundamental
theorem of calculus, II,
Z x Z x
d d
f = f (x), and f (t) dz = f (t).
dx a dx a
Rx
Do not write “ a f (x) dx”: this is trying to say that x varies from a to x, so
one occurrence of the letter x is constant and the other occurrence varies from a to that
constant, which mixes up the symbols too much!
Section 7.4: The Fundamental theorem of calculus 215
d
= (g(h(x)) − g(k(x)))
dx
d ′
= (g (h(x))h′ (x) − g(k(x))k ′(x)) (by the chain rule)
dx
= f (h(x))h′(x) − f (k(x))k ′(x).
7.4.4. Suppose that f : [a, b] → R+ is continuous and that f (c) > 0 for some c ∈ [a, b].
Rb
Prove that a f > 0.
7.4.5. (Integration by substitution) By the chain rule for differentiation, (f ◦ g)′ (x) =
f ′ (g(x))g ′ (x).
Rb
i) Prove that a f ′ (g(x))g ′ (x) dx = f (g(b)) − f (g(a)).
R
ii) Prove that f ′ (g(x))g ′(x) dx = f (g(x)) + C.
iii) Compute the following integrals applying this rule explicitly stating f, g:
Z 3
(2x − 4)10 dx =
Z2 3
4x + 3
p dx =
1 2x2 + 3x)9
Z 3 p3
(8x + 6) 2x2 + 3x dx =
1
7.4.6. (Integration by parts) By the product rule for differentiation, (f · g)′ (x) =
f ′ (x)g(x) + f (x)g ′ (x).
Rb Rb
i) Prove that a f ′ (x)g(x) dx = f (b)g(b) − f (a)g(a) − a f (x)g ′ (x) dx.
R R
ii) Prove that f ′ (x)g(x) dx = f (x)g(x) − f (x)g ′ (x) dx.
iii) Compute the following integrals applying this rule explicitly stating f, g:
Z 1
(4x + 3)(5x + 1)10 dx =
Z−1
1
4x + 3
√ dx =
−1 2x + 4
7.4.7. Compute the following derivatives. (Hint: the Fundamental theorem of calculus
and the chain rule.)
Z 3x q
d √
i) t4 + 5 t dt.
dx 2 √
Z x √
d t+5 t
ii) dt.
dx −x2 t1 00 − 2t5 0 + t7 − 2
Z −h(x)
d
iii) f (t) dt.
dx h(x)
7.4.8. (Mean value theorem for integrals) Let f : [a, b] → R be continuous. Prove
that there exists c ∈ (a, b) such that
Z b
1
f (c) = f.
b−a a
Section 7.4: The Fundamental theorem of calculus 217
ii) Integrate the integral above by parts, and rewrite, to get that
Z x
′
f (x) = f (a) + (x − a)f (a) + (x − t)f ′′ (t) dt.
a
7.4.13. Let f : R → R over R. This exercise is meant to show that integrability of f over
RN
R cannot be simply defined as the existence of the limit limN →∞ −N f . (See also the next
1, if ⌊x⌋ (the floor of x) is even;
exercise.) Namely, let f (x) =
−1, otherwise.
i) Sketch the graph of this function.
RN
ii) Prove that for every positive real number N , −N f = 0.
iii) Prove that f is not integrable over [0, ∞) or over (−∞, 0) in the sense of Exer-
cise 7.4.10.
7.4.14. Assume the relevant properties of the sin function.
RN
(1) Compute limN →∞ −N sin(x) dx.
R 2N π+π/2
(2) Compute limN →∞ −2N π sin(x) dx.
R 2N π
(3) Compute limN →∞ −2N π+π/2 sin(x) dx.
(4) Conclude that sin is not integrable over (−∞, ∞) in the sense of Exercise 7.4.10.
7.4.15. (Improper integral, unbounded function) Let f : (a, b] → R be continuous.
i) Discuss how our construction/definition of integrals fails when the domain does
not include the boundaries of the domain.
Rb
ii) Prove that for all N ∈ (a, b), N f exists.
Rb
iii) If limN →a+ N f exists, we call this limit the (improper) integral of f over
Rb Rb
[a, b], and we denote it a f . Similarly formulate a f if the domain of f is [a, b)
or (a, b).
7.4.16. Use Exercise 7.4.15.
R1
i) Compute 0 √1x dx.
R1
ii) For any rational number p > −1, compute 0 xp dx. (The same is true for real
p > −1, but we have not developed enough properties for such functions.)
Rb
iii) Let f : (a, b) → R be given by f (x) = 1. Prove that a f = b − a.
Definition 7.5.1. Let f : [a, b] → C be a function such that Re f and Im f are integrable
over [a, b]. The integral of f over [a, b] is
Z b Z b Z b
f= Re f + i Im f.
a a a
The following are then immediate generalizations of the two versions of the funda-
mental theorem of calculus Theorems 7.4.1 and 7.4.3:
The function that takes a non-zero x to 1/x is continuous everywhere on its domain
since it is a rational function. Thus by Theorem 7.3.1 and Notation 7.3.3, for all x > 0,
Rx 1
1 x
dx is well-defined. This function has a familiar name:
Remark 7.6.2.
R1
(1) ln 1 = 1 1t dt = 0.
Rx Rx
(2) By geometry, for x > 1, ln x = 1 1t dt > 0, and for x ∈ (0, 1), ln x = 1 1t dt =
R1
− x 1t dt < 0.
(3) By the Fundamental theorem of calculus (Theorem 7.4.3), for all b ∈ R+ , ln is
differentiable on (0, b), so that ln is differentiable on R+ . Furthermore, ln′ (x) = x1 .
(4) ln is continuous (since it is differentiable) on R+ .
(5) The derivative of ln is always positive. Thus by Theorem 6.3.5, ln is everywhere
increasing.
(6) Let c ∈ R+ , and set g(x) = ln(cx). By the chain rule, g is differentiable, and
1
g ′ (x) = cx c = x1 = ln′ (x). Thus the function g − ln has constant derivative 0. It
follows by Theorem 6.3.5 that g − ln is a constant function. Hence for all x ∈ R+ ,
Proof. By definition, f (x) = ln−1 (r ln(x)), which is differentiable by the chain and scalar
rules and the fact that ln and its inverse are differentiable. Furthermore, the derivative is
−1
f ′ (x) = ln−1 (r ln(x)) · xr = r lnln−1(r(ln(x))
ln(x))
= r ln−1 (r ln(x) − ln(x)) = r ln−1 ((r − 1) ln(x)) =
rxr−1 . The monotone properties then follow from Theorem 6.3.5.
Proof. By definition, f (x) = ln−1 (x ln(c)), which is differentiable by the chain and scalar
rules and the fact that ln−1 is differentiable. Furthermore, the derivative is f ′ (x) =
ln−1 (x ln(c)) · ln(c) = f (x) · ln(c) = (ln(c))cx . The monotone properties then follow from
Theorem 6.3.5.
We next give a more concrete form to ln−1 .
222 Chapter 7: Integration
Definition 7.6.6. Let e = ln−1 (1) (so that ln(e) = 1). The constant e is called Euler’s
constant.
Since ln(e) = 1 > 0 = ln(1), by the increasing property of ln it follows that e > 1.
Now let f (x) = 1/x. This function is non-negative on [1, ∞). If P is a partition
of [1, 3] into 5 equal parts, then L(f, P ) ∼ = 0.976934, if P is a partition of [1, 3] into 6
∼
equal parts, then L(f, P ) = 0.995635, and if P is a partition of [1, 3] into 7 equal parts,
then L(f, P ) ∼= 1.00937. This proves that L(f ) > 1 over the interval [1, 3]. On [1, 3], the
R3
function f is continuous and thus integrable, so that ln 3 = 1 f > 1 = ln e. Since ln is an
increasing function, this means that e < 3. By geometry ln(2) < U (f, {1, 2}) = 1 = ln e,
so that similarly e > 2. We conclude that e is a number strictly between 2 and 3.
1 1 1
Note that U (f, {1, 1.25, 1.5, 1.75, 2, 2.25, 2.5}) = 0.25(1+ 1.25 + 1.5 + 1.75 + 21 + 2.25
1
)=
2509
R 2.5
2520 < 1, so that ln 2.5 = 1 f is strictly smaller than this upper sum. It follows that
ln 2.5 < 1 = ln e and 2.5 < e. If P is a partition of [1, 2.71828] into a million pieces of equal
length, a computer gives that U (f, P ) is just barely smaller than 1, so that 2.71828 < e.
If P is a partition of [1, 2.718285] into a million pieces of equal length, then L(f, P ) is just
barely bigger than 1, so that e < 2.718285. Thus e ∼ = 2.71828.
A reader may want to run further computer calculations for greater precision. A dif-
ferent and perhaps easier computation is in Exercise 7.6.14.
Proof. By definitions,
ex = ln−1 (x · ln(e)) = ln−1 (x · ln(ln−1 (1))) = ln−1 (x · 1) = ln−1 (x).
We have already proved on page 221 that the derivative of ln−1 is ln−1 :
Whether this is an approximation of the true length depends on the partition, but geomet-
rically it makes sense that the true length of the curve equals
n
X p
lim (xk − xk−1 )2 + (f (xk ) − f (xk−1 ))2 ,
k=1
as the partitions {x0 , x1 , . . . , xn } get finer and finer. But this is not yet in form of The-
orem 7.1.16. For that we need to furthermore assume that f is differentiable on (a, b).
Then by the Mean value theorem (Theorem 6.3.4) for each k = 1, . . . , n there exists
ck ∈ (xk−1 , xk ) such that f (xk ) − f (xk−1 ) = f ′ (ck )(xk − xk−1 ). If in addition we as-
sume that f ′ is continuous, then it is integrable by Theorem 7.3.1, and by Theorem 7.1.16
226 Chapter 7: Integration
We just proved:
Theorem 7.7.2. If f : [a, b] → R is continuous, then the volume of the solid of revolution
obtained by rotating around the x-axis the region between x = a and x = b and bounded
by the x-axis and the graph of f is
Z b
π (f (x))2 dx.
a
Section 7.7: Applications of integration 227
Theorem 7.7.3. If 0 ≤ a ≤ b and f, g : [a, b] → R are continuous, then the volume of the
solid of revolution obtained by rotating around the x-axis the region between y = a and
y = b and bounded by the graphs of x = f (y) and x = g(y), is
Z b
2π y(g(y) − f (y)) dy.
a
Proof. We rotate the upper-half circle of radius r centered at the origin around the x-
axis. The circle of radius r centered at the origin consists of all points (x, y) such that
p p
x2 + y 2 = r 2 , so we have g(y) = r 2 − y 2 and f (y) = − r 2 − y 2 . Thus the volume is
Z r p r
4
4π 2
y r 2 − y 2 dy = − π(r − y ) 2 3/2 = 4 π(r 2)3/2 = 4 πr 3 .
3 3 3
0 0
228 Chapter 7: Integration
In this way we obtain a right circular cone of height b and base radius |m|b. The perimeter
of that base circle is of course 2π|m|b. If we cut the cone in a straight line from a side to
p
the vertex, we cut along an edge of length b2 + (mb)2 , and we get the wedge as follows:
perimeter 2π|m|b
radius
p
b2 + (mb)2
p
Without the clip in the disc, the perimeter would be 2π b2 + (mb)2 , but our perime-
ter is only 2π|m|b. Thus the angle subtended by the wedge is by proportionality equal to
√2π|m|b 2π = √2π|m| . The area of the full circle is radius squared times one half of
2π 2 2
b +(mb) 1+m2
the full angle, and so proportionally the area of our wedge is radius squared times one half
p 2π|m|
of our angle, i.e., the surface area of this surface of revolution is ( b2 + (mb)2 )2 2√1+m2
√
= π|m|b2 1 + m2 . Note that even if b < 0, the surface area is the absolute value of
√
πmb2 1 + m2 .
Thus if m is not zero and 0 ≤ a < b or a < b ≤ 0, then the surface area of revolution
obtained by rotating the line y = mx from x = a to x = b equals the absolute value of
√
πm(b2 − a2 ) 1 + m2 . Note the geometric requirement that at a and b the line is on the
same side of the x-axis.
Section 7.7: Applications of integration 229
Now suppose that we rotate the line y = mx + l around the x-axis, with m 6= 0
and a < b and both on the same side of the intersection of the line with the x-axis. This
intersection is at x = −l/m. By shifting the graph by l/m to the right, this is the same as
rotating the line y = mx from x = a + l/m to x = b + l/m, and by the previous case the
surface area of this is the absolute value of
p
πm((b + l/m)2 − (a + l/m)2 ) 1 + m2
p
= πm b2 + 2bl/m + l2 /m2 − (a2 + 2al/m + l2 /m2 ) 1 + m2
p
= πm b2 − a2 + 2(b − a)l/m 1 + m2
p
= πm(b − a)(b + a + 2l/m) 1 + m2
p
= π(b − a)(m(b + a) + 2l) 1 + m2 .
If instead we rotate the line y = l (with m = 0) around the x-axis, we get a ring whose
√
surface area is (b − a)2π|l|, which is the absolute value of π(b − a)(m(b + a) + 2l) 1 + m2 .
Thus for all m, the surface area of the surface of revolution obtained by rotating the line
y = mx + l from x = a to x = b around the x-axis is the absolute value of
p
π(b − a)(m(b + a) + 2l) 1 + m2 ,
with the further restriction in case m 6= 0 that a and b are both on the same side of the
x-intercept.
Now let f : [a, b] → R≥0 be a differentiable (and not necessarily linear) function. Let
P = {x0 , x1 , . . . , xn } be a partition of [a, b]; on each sub-interval [xk−1 , xk ] we approximate
the curve with the line from (xk−1 , f (xk−1)) to (xk , f (xk )). By the assumption that f
takes on only non-negative values we have that both xk−1 , xk are both on the same side of
f (x )−f (x )
the x-intercept of that line. The equation of the line is y = xkk −xk−1k−1 (x − xk ) + f (xk ),
so that m = f (xxkk)−f (xk−1 )
−xk−1
and l = − f (xxkk)−f (xk−1 )
−xk−1
xk + f (xk ). Since f is differentiable, by
the Mean value theorem (Theorem 6.3.4) there exists ck ∈ (xk−1 , xk ) such that f ′ (ck ) =
f (xk )−f (xk−1 )
xk −xk−1 . Thus m = f ′ (ck ) and l = f (xk ) − f ′ (ck )xk .
We rotate that line segment around the x-axis, compute its volume of that solid of
revolution, and add up the volumes for all the subparts:
X n p
π(xk − xk−1 ) (f ′ (ck )(xk + xk−1 ) + 2 (f (xk ) − f ′ (ck )xk )) 1 + (f ′ (ck ))2
k=1
n
X p
= π |(f ′ (ck )(−xk + xk−1 ) + 2f (xk ))| 1 + (f ′ (ck ))2 (xk − xk−1 ).
k=1
Theorem 7.7.5. If f : [a, b] → R≥0 is differentiable with continuous derivative, then the
surface area of the solid of revolution obtained by rotating around the x-axis the curve
y = f (x) between x = a and x = b is
Z b p Z b p
′ ′
π 2
|f (x)(−x + x) + 2f (x)| 1 + (f (x)) dx = 2π f (x) 1 + (f ′ (x))2 dx.
a a
In this chapter, Sections 8.5 and 8.4 contain identical results in identical order, but
the proofs are different. You may want to learn both perspectives, or you may choose to
omit one of the two sections.
The nth element sn = s(n) in the ordered list is called the nth term of the sequence.
The notation {s1 , s2 , s3 , . . .} usually stands for the set consisting of the elements
s1 , s2 , s3 , . . ., and the order of a listing of elements in a set is irrelevant. Here, however,
{s1 , s2 , s3 , . . .} stands for the sequence, and the order matters. When the usage is not
clear from the context, we add the word “sequence” or “set” as appropriate.
The first term of the sequence {2n − 1}n≥4 is 7, the second term is 9, et cetera. The
point is that even though the notating of a sequence can start with an arbitrary integer,
the counting of the terms always starts with 1.
Note that sn is the nth term of the sequence s, whereas {sn } = {sn }n≥1 is the
sequence in which n plays a dummy variable. Thus
s = {sn } =
6 sn .
to the second row as we never finish the first row. So we need a cleverer way of
counting, and that is done as follows. We start counting at (1, 1), which stands
for 1/1 = 1. We then proceed through all the other integer points in the positive
quadrant of the plane via diagonals as in Plot 8.1.2. The given instructions would
enumerate positive rational numbers as 1/1, 2/1, 1/2, 1/3, 2/2. Ah, but 2/2 has
already been counted as 1/1, so we do not count 2/2. Thus, the proper counting
of positive rational numbers in this scheme starts with:
1/1, 2/1, 1/2, 1/3, 2/2, 3/1, 4/1, 3/2, 2/3, 1/4, 1/5, 2/4, 3/3, 4/2, 5/1, 6/1, 5/2, 4/3,
et cetera, where the crossed out numbers are not part of the sequence because they
had been counted earlier. For example, the fifth term is 3.
b b b b b b
b b b b b b
b b b b b b
b b b b b b
b b b b b b
1 b b b b b b
1 2 3 4 5 6
It is important to note that every positive rational number appears on this list,
and because we are skipping any repetitions, it follows that every positive rational
number appears on this list exactly once. Thus this gives an enumeration of
positive rational numbers. *
A different enumeration of Q+ is given with an algebraic formulation in Exer-
cise 2.4.29.
(13) If {sn } is a sequence of positive rational numbers in which every positive rational
number appears exactly (or at least) once, we can construct from it a sequence in
* Here is a fun exercise: look at the ordered list of positive rational numbers above, including the crossed-
(n+m−2)2 3n+m−4
out fractions. Verify for a few of them that n/m is in position 2 + 2 + 1 on the list. Namely, it is
(x+y−2)2 3x+y−4 + 2 +
a fact that f (x, y) = 2 + 2 + 1 gives a bijection of (N ) with N . This was first proved by Rudolf
Fueter and George Pólya, but the proof is surprisingly hard, using transcendence of er for algebraic numbers r,
so do not attempt to prove this without much more number theory background.
234 Chapter 8: Sequences
which every rational number appears exactly (or at least) once as follows:
0, if n = 1;
qn = sn/2 , if n is even;
s , if n ≥ 3 is odd.
(n−1)/2
This sequence starts with 0, s1 , −s1 , s2 , −s2 , s3 , −s3 , . . .. Since every positive ratio-
nal number is one of the sn (exactly once/at least once), so every rational number
is on this new list (exactly once/at least once).
Incidentally, it is impossible to scramble R or C into a sequence. This can be proved
with a so-called Cantor’s diagonal argument, which we are not presenting here,
but an interested reader can consult other sources.
(14) Sequences are functions, and if all terms of the sequence are real numbers, we can
plot sequences in the usual manner for plotting functions. The following is part of
a plot of the sequence {1/n}.
sn
1 b
b
b
b b
n
b b b b b b b b b b
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Plot 8.1.2 sn = 1/n
(15) Another way to plot a sequence is to simply plot and label each sn in the complex
plane or on the real line. We plot three examples below.
s1 , s3 , s5 , . . . s2 , s4 , s6 , . . . s3 s2 s1
−1 1 0 1
s1
b
i/2
s3 s4 s2 b
b
b
b b
b b
b bbb b b
b bbb b b
−1 1
Plot 8.1.2 Plots of the image sets of {(−1)n}, {1/n} and {(−1)n/n + 0.5i/n}.
One has to make sure to add/multiply/divide equally numbered terms of the two
sequences, such as in the following:
{n}n≥3 + {n}n≥2 = {n + 1}n≥2 + {n}n≥2 = {2n + 1}n≥2 .
Here are a few further examples of arithmetic on sequences, with + and · binary
operations on the set of sequences:
and, to save vertical space, just like for limits of functions, we also use a variation on the
last three: limn→∞ sn = L, limn→∞ {sn } = L, limn→∞ (sn ) = L.
We say that a sequence is convergent it it has a limit.
For example, the constant sequence s = {c} converges to L = c because for all n,
|sn − L| = |c − c| = 0 is strictly smaller than any positive real number ǫ.
The sequence s = {300, −5, π, 4, 0.5, 106, 2, 2, 2, 2, 2, . . .} converges to L = 2 because
for all n ≥ 7, |sn − L| = |2 − 2| = 0 is strictly smaller than any positive real number ǫ.
In conceptual terms, a sequence {sn } converges if the tail end of the sequence gets
closer and closer to L; you can make all sn with n > N get arbitrarily close to L by simply
increasing N a sufficient amount.
We work out examples of epsilon-N proofs; they are similar to the epsilon-delta
proofs, and we go through them slowly at first. Depending on the point of view of your
class, the reader may wish to skip the rest of this section for an alternative treatment
in Section 8.5 in terms of limits of functions. More epsilon-N proofs are in Section 8.4.
Be aware that this section is more concrete; the next section assumes greater ease with
abstraction.
Example 8.2.2. Consider the sequence s = {1/n}. Plot 8.1.2 gives a hunch that lim sn =
0, and now we prove it. [(Recall that any text between square brackets in this
font and in red color is what should approximately be going through your
thoughts, but it is not something to write down in a final solution.) By the
definition of convergence, we have to show that for all ǫ > 0 some property
holds. All proofs of this form start with:] Let ǫ be an arbitrary positive number.
[Now we have to show that there exists an N for which some other property
holds. Thus we have to construct an N . Usually this is done in retrospect,
one cannot simply guess an N , but in the final write-up, readers see simply
that educated guess – more about how to guess educatedly later:] Set N = 1ǫ .
Then N is a positive real number. [Now we have to show that for all integers
Section 8.2: Convergence of infinite sequences 237
n > N , |sn − 0| < ǫ. All proofs of statements of the form “for all integers
n > N ” start with:] Let n be an (arbitrary) integer with n > N . [Finally, we have to
prove the inequality |sn − 0| < ǫ. We do that by algebraically manipulating
the left side until we get the desired final < ǫ:]
|sn − 0| = |1/n − 0|
= |1/n|
= 1/n (because n is positive)
< 1/N (because n > N > 0)
1
= (because N = 1/ǫ) [Ah, what a clever guess that was!]
(1/ǫ)
= ǫ.
So we conclude that |sn − 0| < ǫ, which proves that lim sn = 0.
Just as in the epsilon-delta proofs where one has to find a δ, similarly how does one
divine an N ? In the following two examples we indicate this step-by-step, not as a book
or your final homework solution would have it recorded.
Example 8.2.3. Let sn = { n1 ((−1)n + i(−1)n+1 )}. If we write out the first few terms, we
find that {sn } = {−1 + i, 1/2 − i/2, −1/3 + i/3, . . .}, and we may speculate that lim sn = 0.
Here is plot of the image set of this sequence in the complex plane:
s1
b
i/2
s3
b
b
b b
b bbb
b
bbb b b
b b s4
−1
b
b
b
s2 1
Thus a polished version of the example just worked out looks like this:
√
We prove that lim n1 ((−1)n + i(−1)n+1 ) − 0 = 0. Let ǫ > 0. Set N = 2/ǫ. Then
N is a positive real number. Let n be an integer strictly bigger than N . Then
1
n
|sn − 0| = ((−1) + i(−1) n+1
) − 0
n
1
= · |(−1)n + i(−1)n+1 | (because |ab| = |a||b|)
n
1
= · |(−1)n + i(−1)n+1 | (because n is positive)
n
1 p
= · ((−1)n )2 + ((−1)n+1 )2
n
1 √
= · 2
n
1 √
< · 2 (because n > N )
N√
2 √
= √ (because N = 2/ǫ)
2/ǫ
= ǫ,
√
which proves that for all n > 2/ǫ, |sn − 0| < ǫ. Since ǫ is arbitrary, this proves that
lim sn = 0.
Section 8.2: Convergence of infinite sequences 239
2
2n+3n
Example 8.2.4. Claim: lim 3+4n+n 2 = 3. Proof: Let ǫ > 0. Set N = . Let n be
an integer strictly bigger than N . Then
2n + 3n2 2n + 3n2 3(3 + 4n + n2 )
3 + 4n + n2 − 3 = 3 + 4n + n2 − 3 + 4n + n2
−9 − 10n
=
3 + 4n + n2
9 + 10n
= (because n > 0) [Assuming that N > 0.]
3 + 4n + n2
n + 10n
≤ (because n ≥ 9) [Assuming that N ≥ 8.]
3 + 4n + n2
11n
=
3 + 4n + n2
11n
≤ 2 (because 3 + 4n + n2 > n2 , so 1/(3 + 4n + n2 ) < 1/n2 )
n
11
=
n
11
< (because n > N )
N
11
≤ (because N ≥ 11/ǫ so 1/N ≤ 1/(11/ǫ)) [Assuming this.]
11/ǫ
= ǫ,
which was desired. Now (on scratch paper) we gather all the information we used about N :
N > 0, N ≥ 8, N ≥ 11/ǫ, and that is it. Thus on the first line we fill in the blank part:
Set N = max{8, 11/ǫ}, which says that N is either 8 or 11/ǫ, whichever is greater, so that
N ≥ 8 and N ≥ 11/ǫ.
The polished version of this proof would go as follows:
2
2n+3n
Example 8.2.5. Claim: lim 3+4n+n 2 = 3. Proof: Let ǫ > 0. Set N = max{8, 11/ǫ}. Then
11n
≤ (because 3 + 4n + n2 > n2 , so 1/(3 + 4n + n2 ) < 1/n2 )
n2
11
=
n
11
< (because n > N )
N
11
≤ (because N ≥ 11/ǫ so 1/N ≤ 1/(11/ǫ))
11/ǫ
= ǫ,
which proves that for all n > N , |sn − 3| < ǫ. Since ǫ is arbitrary, this proves that the limit
of this sequence is 3.
Below is a polished proof of a very similar problem.
2
Example 8.2.6. Claim: lim −2n+3n 9−4n+n2 = 3. Proof: Let ǫ > 0. Set N = max{2, 20/ǫ}. Then
N is a positive real number. Let n be an integer strictly bigger than N . Then
−2n + 3n2 −2n + 3n2 3(9 − 4n + n2 )
9 − 4n + n2 − 3 = 9 − 4n + n2 − 9 − 4n + n2
−27 + 10n
=
9 − 4n + n2
−27 + 10n
= (because n > N ≥ 2, so n ≥ 3, so 10n − 27 > 0,
9 − 4n + n2
and n2 − 4n + 9 = (n − 3)2 + 2n > 0)
10n
< (because 10n − 27 < 10n)
9 − 4n + n2
10n
= √ √
9 − 4n + (1/ 2)n2 + (1 − 1/ 2)n2
10n √
< √ (because 0 < (n − 4)2 + 2 = 2(9 − 4n + (1/ 2)n2 ))
(1 − 1/ 2)n2
10 √ 1√ 1
< (because 1 − 1/ 2 > 0.5, so 1−1/ 2
< 0.5 )
0.5n
20
=
n
20
< (because n > N )
N
20
≤ (because N ≥ 20/ǫ so 1/N ≤ 1/(20/ǫ))
20/ǫ
= ǫ,
which proves that for all n > N , |sn − 3| < ǫ. Since ǫ is arbitrary, this proves that the limit
of this sequence is 3.
Section 8.2: Convergence of infinite sequences 241
Proof. If r = 0, the sequence {r n } is the constant zero sequence so certainly the limit is 0.
So we may assume without loss of generality that r 6= 0. Let ǫ > 0. Set N =
ln(min{ǫ,0.5})
ln |r| .
Since ln of numbers between 0 and 1 is negative, we have that N is a positive
number. Let n be an integer with n > N . Then
|r n − 0| = |r|n
= |r n−N | |r|N
< 1n−N |r|N (by Theorem 7.6.5)
= min{ǫ, 0.5}
≤ ǫ.
1 n
Example 8.2.8. lim 1+ n = e.
Proof. All the hard work for this has been done already in Exercise 7.6.10. Let ǫ > 0. By
x
Exercise 7.6.10, limx→∞ 1 + x1 = e. Thus there exists N > 0 such that for all x > N ,
1 + 1 x − e < ǫ. In particular, for any integer n > N , 1 + 1 n − e < ǫ.
x n
Each of the summands is non-negative, and if we only use the summands with k = 0 and
k = 2, we then get that
1
n ≥ 1 + n(n − 1)(n1/n − 1)2 .
2
By subtracting 1√we get that n−1 ≥ 21 n(n−1)(n1/n −1)2 , so that for n ≥ 2, n2 ≥ (n1/n −1)2 ,
and hence that √n2 ≥ n1/n − 1. Certainly n1/n − 1 ≥ 0 for all n ≥ 1. It follows that for all
√
n ≥ 2, and even for all n ≥ 1, 0 ≤ n1/n − 1 ≤ √2 . Now let ǫ > 0. Set N = max{2, 2/ǫ2}.
n √
Then N is a positive real number. Let n > N be an integer. Then 0 ≤ n1/n − 1 ≤ √2 <
√ n
√2 = ǫ, which proves that |n1/n − 1| < ǫ, and hence proves this limit.
N
242 Chapter 8: Sequences
Proof. First suppose that M ≥ 1. Then certainly for all integers n ≥ M , we have that
1 ≤ M 1/n ≤ n1/n . Let ǫ > 0. By the previous example, there exists N > 0 such
that for all integers n > N , 0 < n1/n − 1 < ǫ. Then for all integers n > max{M, N },
0 ≤ M 1/n − 1 ≤ n1/n − 1 < ǫ, which implies that |M 1/n − 1| < ǫ. This proves the example
in case M ≥ 1.
Now suppose that M < 1. By assumption, 1/M > 1, so by the previous case
(and by using that (1/M )1/n = 1/M 1/n ), there exists N > 0 such that for all integers
n > N , 0 ≤ 1/M 1/n − 1 < ǫ. By adding 1 to all three parts in this inequality we get that
1 ≤ 1/M 1/n < ǫ+1, so that by compatibility of < with multiplication by positive numbers,
1
ǫ+1
< M 1/n ≤ 1. Hence by compatibility of < with addition,
1 ǫ
0 ≤ 1 − M 1/n < 1 − = < ǫ,
ǫ+1 ǫ+1
since ǫ + 1 > 1. Thus |1 − M 1/n | < ǫ, which proves that lim M 1/n = 1.
The sequence {(−1)n} alternates in value between −1 and 1, and does not seem to
converge to a single number. The following definition addresses this situation.
244 Chapter 8: Sequences
Definition 8.3.1. A sequence diverges if it does not converge. In other words, {sn }
diverges if for all complex numbers L, lim{sn } =
6 L.
not For all real numbers ǫ > 0 there exists a positive real number
N such that for all integers n > N , |sn − L| < ǫ.
= There exists a real number ǫ > 0 such that not there exists
a positive real number N such that for all integers n > N ,
|sn − L| < ǫ.
= There exists a real number ǫ > 0 such that for all positive real
numbers N , not for all integers n > N , |sn − L| < ǫ.
= There exists a real number ǫ > 0 such that for all positive real
numbers N there exists an integer n > N such that not
|sn − L| < ǫ.
= There exists a real number ǫ > 0 such that for all positive
real numbers N there exists an integer n > N such that
|sn − L| ≥ ǫ.
Example 8.3.2. {(−1)n } is divergent. Namely, for all complex numbers L, lim sn 6= L.
Proof. Set ǫ = 1 (half the distance between the two values of the sequence). Let N be
an arbitrary positive number. If Re(L) > 0, let n be an odd integer greater than N ,
and if Re(L) ≤ 0, let n be an even integer greater than N . In either case, |sn − L| ≥
| Re(sn ) − Re(L)| ≥ 1 = ǫ.
The sequence in the previous example has no limit, whereas the sequence in the next
example has no finite limit:
6 L.
Example 8.3.3. For all complex numbers L, lim{n} =
Proof. Set ǫ = 53 (any positive number will work). Let N be a positive real number. Let n
be any integer that is strictly bigger than N and strictly bigger than |L| + 53 (say strictly
bigger than N + |L| + 53). Such an integer exists. Then by the reverse triangle inequality,
|n − L| ≥ |n| − |L| ≥ 53 = ǫ.
The last two examples are different: the first one has no limit at all since the terms
oscillate wildly, but for the second example we have a sense that its limit is infinity. We
formalize this:
Section 8.3: Divergence of infinite sequences and infinite limits 245
Definition 8.3.4. A real-valued sequence {sn } diverges to ∞ if for every positive real
number M there exists a positive number N such that for all integers n > N , sn > M . We
write this as lim sn = ∞.
A real-valued sequence {sn } diverges to −∞ if for every negative real number M
there exists a positive real number N such that for all integers n > N , sn < M . We write
this as lim sn = −∞.
Proof. Let M > 0. Set N = M . (As in epsilon-delta or epsilon-N proofs, we must figure
out what to set N to. In this case, N = M works). Let n ∈ N+ with n > N . Since N = M ,
we conclude that n > M , and the proof is complete.
√
n
Example 8.3.6. lim n! = ∞.
Proof. Let M > 0. Let M0 be an integer that is strictly greater than M . By Example 8.2.10
there exists N1 > 0 such that for all integers n > N1 ,
s
M0 ! M +1−M
n 0
M
− 1 < .
(M0 + 1) 0 M0 + 1
M0 !
n! = n(n − 1) · · · (M0 + 1) · M0 ! ≥ (M0 + 1)n−M0 · M0 ! = (M0 + 1)n ,
(M0 + 1)M0
so that s
√
n M0 ! M
n! ≥ (M0 + 1) n M
> (M0 + 1) = M.
(M0 + 1) 0 M0 + 1
Theorem 8.3.7. (Comparison theorem (for sequences with infinite limits)) Let
{sn }, {tn} be real-valued sequences such that for all sufficiently large n (say for n ≥ N for
some fixed N ), sn ≤ tn .
(1) If lim sn = ∞, then lim tn = ∞.
(2) If lim tn = −∞, then lim sn = −∞.
Proof. (1) By assumption lim sn = ∞ for every positive M there exists a positive N ′ such
that for all integers n > N ′ , sn > M . Hence by assumption tn ≥ sn for all n ≥ N we get
246 Chapter 8: Sequences
that for every positive M and for all integers n > max{N, N ′ }, tn > M . Thus by definition
lim tn = ∞.
Part (2) has an analogous proof.
2
Example 8.3.8. lim n n+1 = ∞.
2
Proof. Note that for all n ∈ N+ , n n+1 = n + n1 ≥ n, and since we already know that
2
lim n = ∞, it follows by the comparison theorem above that lim n n+1 = ∞.
2
Example 8.3.9. lim n n−1 = ∞.
2
Proof. Note that for all integers n > 2, n n−1 = n − n1 ≥ n2 . We already know that
lim n = ∞, and it is straightforward to prove that lim n2 = ∞. Hence by the comparison
2
theorem, lim n n−1 = ∞.
Or, we can give an M − N proof. Let M > 0. Set N = max{2, 2M }. Let n be an
integer strictly bigger than N . Then
n2 − 1 1 n N
=n− ≥ > ≥ M.
n n 2 2
Theorem 8.3.10. Let {sn } be a sequence of positive numbers. Then lim sn = ∞ if and
only if lim s1n = 0.
Proof. Suppose that lim sn = ∞. Let ǫ > 0. By the definition of infinite limits, there
exists a positive number N such that for all integers n > N , sn > 1/ǫ. Then for the same
n, 0 < s1n < ǫ, so that | s1n | < ǫ. This proves that lim s1n = 0.
Now suppose that lim s1n = 0. Let M be a positive number. By assumption lim s1n =
0 there exists a positive number N such that for all integers n > N , | s1n − 0| < 1/M . Since
each sn is positive, it follows that for the same n, s1n < 1/M , so that sn > M . This proves
that lim sn = ∞.
8.3.4. Give an example of two divergent sequences {sn }, {tn } such that {sn +tn } converges.
8.3.5. Let {sn } be a sequence of negative numbers. Prove that lim sn = −∞ if and only
if lim s1n = 0.
8.3.6. Given the following sequences, find and prove the limits, finite or infinite, if they
exist. Otherwise, prove divergence:
i) { nn+5
3 −5 }.
2
−n
ii) { 2n
3n2 −5 }.
n
iii) { (−1)
n−3
}.
n
iv) { (−1)
n+1
n
}.
3
v) { nn2 −8n
+8n }.
2
vi) { 1−nn }.
n
vii) { 2n! }.
n!
viii) { (n+1)! }.
8.3.7. Prove or give a counterexample:
i) If {sn } and {tn } both diverge, then {sn + tn } diverges.
ii) If {sn } converges and {tn } diverges, then {sn + tn } diverges.
iii) If {sn } and {tn } both diverge, then {sn · tn } diverges.
iv) If {sn } converges and {tn } diverges, then {sn · tn } diverges.
8.3.8. Find examples of the following:
sn
i) A sequence {sn } of non-zero terms such that lim{ sn+1 } = 0.
sn+1
ii) A sequence {sn } of non-zero terms such that lim{ sn } = 1.
iii) A sequence {sn } of non-zero terms such that lim{ sn+1
sn
} = ∞.
iv) A sequence {sn } such that lim{sn+1 − sn } = 0.
v) A sequence {sn } such that lim{sn+1 − sn } = ∞.
8.3.9. Suppose that the sequence {sn }n diverges to ∞ (or to −∞). Prove that {sn }n
diverges. (The point of this exercise is to parse the definitions correctly.)
All of the theorems in this section are also proved in Section 8.5 with a different
method; here we use the epsilon-N formulation for proofs without explicitly resorting to
functions whose domains have a limit point. I recommend reading this section and omitting
Section 8.5.
248 Chapter 8: Sequences
Proof. Let {sn } be a convergent sequence. Suppose that {sn } converges to both L and L′ .
Then for any ǫ > 0, there exists an N such that |sn − L| < ǫ/2 for all n > N . Likewise, for
any ǫ > 0, there exists an N ′ such that |sn − L′ | < ǫ/2 for all n > N ′ . Then by the triangle
inequality, |L − L′ | = |L − sn + sn − L′ | ≤ |L − sn | + |sn − L′ | < ǫ/2 + ǫ/2 = ǫ. Since ǫ is
arbitrary, by Theorem 2.11.4 it must be the case that |L − L′ | = 0, i.e., that L = L′ .
Theorem 8.4.2. Suppose that lim{sn } = L and that L 6= 0. Then there exists a positive
number N such that for all integers n > N , |sn | > |L|/2. In particular, there exists a
positive number N such that for all integers n > N , sn 6= 0.
Proof. Note that p = |L|/2 is a positive real number. Since lim{sn } = L, it follows that
there exists a real number N such that for all integers n > N , |sn − L| < |L|/2. Then by
the reverse triangle inequality (proved in Theorem 2.11.3),
|sn | = |sn − L + L| = |(sn − L) + L| ≥ |L| − |sn − L| > |L| − |L|/2 = |L|/2.
Proof. Part (1) was proved immediately after Definition 8.2.1. Part (2) was Example 8.2.2.
Part (3): Let ǫ > 0. Since lim sn = L, there exists a positive real number N1 such
that for all integers n > N1 , |sn − L| < ǫ/2. Since lim tn = K, there exists a positive real
number N2 such that for all integers n > N2 , |tn − K| < ǫ/2. Let N = max{N1 , N2 }. Then
for all integers n > N ,
|(sn ± tn ) − (L ± K)| = |(sn − L) ± (tn − K)|
≤ |sn − L| + |tn − K| (by the triangle inequality)
< ǫ/2 + ǫ/2 (since n > N ≥ N1 , N2 )
= ǫ.
This proves (3).
Part (4): Let ǫ > 0. Note that ǫ/(|c| + 1) is a positive number. Since lim sn = L,
there exists N such that for all integers n > N , |sn − L| < ǫ/(|c| + 1). Then for the same
Section 8.4: Convergence theorems via epsilon-N proofs 249
|c|
n, |csn − cL| = |c| · |sn − L| ≤ |c|ǫ/(|c| + 1) = |c|+1 ǫ < ǫ. Since ǫ is any positive number,
we conclude that csn converges to cL.
Part (5): Let ǫ > 0. Since lim{sn } = L, there exists N1 such that for all integers
n > N1 , |sn −L| < 1. Thus for all such n, |sn | = |sn −L+L| ≤ |sn −L|+|L| < 1+|L|. There
also exists N2 such that for all integers n > N2 , |sn − L| < ǫ/(2|K| + 1). By assumption
lim{tn } = K there exists N3 such that for all integers n > N3 , |tn − K| < ǫ/(2|L| + 2). Let
N = max{N1 , N2 , N3 }. Then for all integers n > N ,
|sn tn − LK| = |sn tn − sn K + sn K − LK| (by adding a clever 0)
= |(sn tn − sn K) + (sn K − LK)|
≤ |sn tn − sn K| + |sn K − LK| (by the triangle inequality)
= |sn (tn − K)| + |(sn − L)K|
= |sn | · |tn − K| + |sn − L| · |K|
ǫ ǫ
< (|L| + 1) · + · |K|
2|L| + 2 2|K| + 1
ǫ ǫ
< +
2 2
= ǫ,
which proves (5).
Part (6): Let ǫ > 0. Since lim{sn } = L, there exists N1 such that for all integers
n > N1 , |sn − L| < 1. Thus for all such n, |sn | = |sn − L + L| ≤ |sn − L| + |L| < 1 + |L|.
There also exists N2 such that for all integers n > N2 , |sn − L| < |K|ǫ2 . By assumption
2
|K| ǫ
lim{tn } = L there exists N3 such that for all integers n > N3 , |tn − K| < 4(1+|L|) . Since
K 6= 0, by Theorem 8.4.2 there exists a positive number N4 such that for all integers
n > N4 , |tn | > |K|/2. Let N = max{N1 , N2 , N3 , N4 }. Then for all integers n > N ,
sn L K · s n − L · tn
− =
tn K K · tn
K · s n − tn s n + tn s n − L · tn
= (by adding a clever 0)
K · tn
K · s n − tn s n tn s n − L · tn
≤ +
(by the triangle inequality)
K · tn K · tn
1 1 1
= |K − tn ||sn | + |L − sn |
|K| |tn | K
|K|2 ǫ 1 2 |K|ǫ 1
< (1 + |L|) +
4(1 + |L|) |K| |K| 2 |K|
ǫ ǫ
= +
2 2
= ǫ,
which proves (6).
250 Chapter 8: Sequences
Part (7): The proof is by induction on m, the base case being the assumption. If
limn→∞ {1/nm−1 } = 0, then by the product rule, limn→∞ {1/nm } = limn→∞ {1/nm−1 ·
1/n} = limn→∞ {1/nm−1 } · limn→∞ {1/n} = 0. This proves (7).
5n−2
Example 8.4.4. Suppose sn = 3n+4 . To prove that lim sn = 5/3, we note that sn =
5n−2 1/n 5−2/n
3n+4 1/n = 3+4/n .By the linear rule, lim(1/n) = 0, so by the scalar rule, lim(2/n) =
lim(4/n) = 0. Thus by the constant, sum, and difference rules, lim{5 − 2/n} = 5 and
lim{3 + 4/n} = 3, so that by the quotient rule, lim sn = 5/3.
2 2
3n+2 1/n 3/n+2/n
Example 8.4.5. Let sn = 3n+2 n2 −3 . Note that sn = n2 −3 · 1/n2 = 1−3/n2 . By the linear
rule, lim 1/n = 0, so that by the scalar rule, lim 3/n = 0, and by the product and scalar
rules, lim 2/n2 = lim 3/n2 = 0. Thus by the sum and difference rules, lim{3/n + 2/n2 } = 0
and lim{1 − 3/n2 } = 1. Finally, by the quotient rule, lim sn = 0/1 = 0.
Theorem 8.4.6. (Power, polynomial, rational rules for sequences) For any positive
integer m, limn→∞ {1/nm } = 0. If f is a polynomial function, then lim{f (1/n)} = f (0). If
f is a rational function that is defined at 0, then lim{f (1/n)} = f (0).
Proof. By the linear rule (in Theorem 8.4.3), limn→∞ {1/n} = 0, and by the power rule,
for all positive integers m, limn→∞ {1/nm } = 0.
Now write f (x) = a0 + a1 x + · · · + ak xk for some non-negative integer k and some
complex numbers a0 , a1 , . . . , ak . By the constant, power and repeated sum rules,
lim f (1/n) = lim a0 + a1 (1/n) + a2 (1/n)2 + · · · + ak (1/n)k
n→∞ n→∞
Theorem 8.4.7. (The composite rule for sequences) Suppose that lim sn = L. Let
g be a function whose domain contains L and all terms sn . Suppose that g is continuous
at L. Then lim g(sn ) = g(L).
Proof. Let ǫ > 0. Since g is continuous at L, there exists a positive number δ > 0 such
that for all x in the domain of g, if |x − L| < δ then |g(x) − g(L)| < ǫ. Since lim sn = L,
Section 8.4: Convergence theorems via epsilon-N proofs 251
there exists a positive number N such that for all integers n > N , |sn − L| < δ. Hence for
the same n, |g(sn) − g(L)| < ǫ.
In particular, since the absolute value function, the real part, and the imaginary part
functions are continuous everywhere, we immediately conclude the following:
Furthermore, since the real and imaginary parts determine a complex number, we
moreover get:
Theorem 8.4.9. A sequence {sn } of complex numbers converges if and only if the se-
quences {Re sn } and {Im sn } of real numbers converge.
Proof. Let L = lim sn , K = lim tn . By Theorem 8.4.8, lim |sn | = |L|, lim |tn | = |K|.
Suppose that |L| > |K|. Set ǫ = (|L| − |K|)/2|. By the definition of convergence,
there exist N1 , N2 > 0 such that if n is an integer, n > N1 implies that −ǫ < |sn | − |L| < ǫ,
and n > N2 implies that −ǫ < |tn | − |K| < ǫ. Let N3 be a positive number such that for all
integers n > N3 , |sn | ≤ |tn |. If we let N = max{N1 , N2 , N3 }, then for integers n > N we
have that |tn | < |K| + ǫ = (|L| + |K|)/2 = |L| − ǫ < |sn |. This contradicts the assumption
|sn | ≤ |tn |, so that necessarily |L| ≤ |K|.
The proof of the second part is very similar and is left to the exercises.
252 Chapter 8: Sequences
Theorem 8.4.11. (The squeeze theorem for sequences) Suppose that s, t, u are se-
quences of real numbers and that for all n ∈ N+ , sn ≤ tn ≤ un . If lim s and lim u both
exist and are equal, then lim t exists as well and
lim s = lim t = lim u.
Proof. Set L = lim s = lim u. Let ǫ > 0. Since lim s = L, there exists a positive N1 such
that for all integers n > N1 , |sn − L| < ǫ. Since lim u = L, there exists a positive N2 such
that for all integers n > N2 , |un − L| < ǫ. Set N − max{N1 , N2 }. Let n be an integer
strictly greater than N . Then −ǫ < sn − L ≤ tn − L ≤ un − L < ǫ, so that |tn − L| < ǫ.
Since ǫ was arbitrary, this proves that lim t = L.
8.4.2. Give an example of a sequence {sn } and a number L such that lim |sn | = |L| but
{sn } does not converge. Justify your example.
n o
(−1)n
8.4.3. Prove that lim n = 0.
†8.4.4. Let {sn } be a convergent sequence of positive real numbers. Prove that lim sn ≥ 0.
m
8.4.5. Prove that for all integers m, limn→∞ n+1n = 1.
8.4.6. Prove that limn→∞ {3 − n2 } = 3.
√ √
8.4.7. Prove that lim 3 n + 1 − 3 n = 0.
Section 8.5: Convergence theorems via functions 253
1 n
8.4.8. By Example 8.2.8, lim 1+ n = e. Determine the following limits:
n
i) n+1 .
n n
o
1 2n
ii) 1 + 2n .
n o
2n
iii) 1 + n1 .
1
n
iv) 1 + 2n .
n o
n+1
v) 1 + n1 .
√
8.4.9. Let s1 be a positive real number. For each n ≥ 1, let sn+1 = sn . Prove that
lim sn = 1. (Hint: Prove that lim sn = lim s2n .)
The results in this section are the same as those in Section 8.4, but here they are
proved with theorems about limits of functions that were proved in Chapter 4. So, a
connection is made between limits of functions and limits of sequences. The reader may
omit this section (or the previous one). This section is more abstract; one has to keep
in mind connections with functions as well as theorems about limits of functions to get
at theorems about limits of sequences. Exercises for this section appear at the end of
Section 8.4.
For any sequence s we can define a function f : {1/n : n ∈ N+ } → C with f (1/n) =
sn . Conversely, for every function f : {1/n : n ∈ N+ } → C we can define a sequence s with
sn = f (1/n).
The domain of f has exactly one limit point, namely 0. With this we have the usual
notion of limx→0 f (x) with standard theorems from Section 4.3,
Theorem 8.5.1. Let s, f be as above. Then lim sn = L if and only if limx→0 f (x) = L.
Proof. (⇒) Suppose that lim sn = L. We have to prove that limx→0 f (x) = L. Let ǫ > 0.
By assumption lim sn = L, there exists a positive real number N such that for all integers
n > N , |sn − L| < ǫ. Let δ = 1/N . Then δ is a positive real number. Let x be in the
domain of f such that 0 < |x − 0| < δ. Necessarily x = 1/n for some positive integer
n. Thus 0 < |x − 0| < δ simply says that 1/n < δ = 1/N , so that N < n. But then by
assumption |f (1/n) − L| = |sn − L| < ǫ, which proves that limx→0 f (x) = L.
(⇐) Now suppose that limx→0 f (x) = L. We have to prove that lim sn = L. Let
ǫ > 0. By assumption limx→0 f (x) = L there exists a positive real number δ such that for
all x in the domain of f , if 0 < |x − 0| < δ then |f (x) − L| < ǫ. Set N = 1/δ. Then N
is a positive real number. Let n be an integer greater than N . Then 0 < 1/n < 1/N = δ,
254 Chapter 8: Sequences
so that by assumption |f (1/n) − L| < ǫ. Hence |sn − L| = |f (1/n) − L| < ǫ, which proves
that lim sn = L.
Example 8.5.2. (Compare the reasoning in this example with the epsilon-N proofs of
5n−2 1/n 5−2/n
Section 8.2.) Let sn = 5n−2
3n+4 . We note that sn = 3n+4 · 1/n = 3+4/n . The corresponding
function f : {1/n : n ∈ N+ } is f (x) = 5−2x 3+4x , and by the scalar, sum, difference, and
quotient rules for limits of functions, limx→0 f (x) = 5−0
3+0 = 5/3, so that by Theorem 8.5.1,
lim sn = 5/3.
Proof. Let {sn } be a convergent sequence. Suppose that {sn } converges to both L
and L′ . Let f : {1/n : n ∈ N+ } be the function corresponding to s. By Theorem 8.5.1,
limx→0 f (x) = L and limx→0 f (x) = L′ . By Theorem 4.3.1, L = L′ . This proves uniqueness
of limits for sequences.
Theorem 8.5.5. Suppose that lim{sn } = L and that L 6= 0. Then there exists a positive
number N such that for all integers n > N , |sn | > |L|/2. In particular, there exists a
positive number N such that for all integers n > N , sn 6= 0.
Proof. Let f be the function corresponding to s. Then limx→0 f (x) = L, by Theorem 4.3.2
there exists δ > 0 such that for all x in the domain of f , if x < δ then |f (x)| > |L|/2.
Set N = 1/δ. Let n be an integer strictly greater than N . Then 1/n < 1/N = δ, so
|sn | = |f (1/n)| > |L|/2.
Theorem 8.5.8. (The composite rule for sequences) Suppose that lim sn = L. Let
g be a function whose domain contains L and all terms sn . Suppose that g is continuous
at L. Then lim g(sn ) = g(L).
Since the real and imaginary parts determine a complex number, we also have:
Theorem 8.5.10. A sequence {sn } of complex numbers converges if and only if the se-
quences {Re sn } and {Im sn } of real numbers converge.
Proof. Let A be the set of those 1/n for which |sn | ≤ |tn | in the first case and for which
sn ≤ tn in the second case. Let f, g : A → R be the functions f (1/n) = |sn |, g(1/n) = |tn |
in the first case, and f (1/n) = sn , g(1/n) = tn in the second case. By assumption
for all x in the domain, f (x) ≤ g(x). Since 0 is a limit point of the domain (despite
omitting finitely many 1/n) and since by Theorem 8.5.1, limx→0 f (x) and limx→0 g(x)
both exist, by Theorem 4.3.10, limx→0 f (x) < limx→0 g(x). In the first case, this translates
to | lim sn | ≤ | lim tn |, and in the second case it translates to lim sn ≤ lim tn .
Theorem 8.5.12. (The squeeze theorem for sequences) Suppose that s, t, u are se-
quences of real numbers and that for all n ∈ N+ , sn ≤ tn ≤ un . If lim s and lim u both
exist and are equal, then lim t exists as well and
lim s = lim t = lim u.
Proof. Let {sn } be a convergent sequence with limit L. Thus there exists a positive integer
N such that for all integers n > N , |sn −L| < 1. Set B = max{|s1 |, |s2|, |s3|, . . . , |sN +1 |, |L|+
1}. Then for all positive integers n ≤ N , |sn | ≤ B by definition of B, and for n > N ,
|sn | = |sn − L + L| ≤ |sn − L| + |L| < 1 + |L| ≤ B.
Another proof of the theorem above is given in the next section via Cauchy sequences.
Definition 8.6.3. A sequence {sn } of real numbers is called non-decreasing (resp. non-
increasing, strictly increasing, strictly decreasing) if for all n, sn ≤ sn+1 (resp.
sn ≥ sn+1 , sn < sn+1 , sn > sn+1 ). Any such sequence is called monotone.
2
Sequences {1/n}, {−n} are strictly decreasing, { n n+1 } is strictly increasing,
2
{(−1)n n} is neither increasing nor decreasing, { n n+5 }n≥1 is neither increasing nor
2
decreasing, but { n n+5 }n≥2 is strictly increasing.
Proof. Suppose that for all n ≥ N , sn ≤ sn+1 . By the Least upper theorem (Axiom 2.10.1),
the least upper bound of the set {sN , sN +1 , sN +2 , . . .} exists. Call it L.
Let ǫ > 0. Since L is the least upper bound, there exists a positive integer N ′ ≥ N
such that 0 ≤ L − sN ′ < ǫ. Hence for all integers n > N ′ , sN ′ ≤ sn , so that
0 ≤ L − sn ≤ L − sN ′ < ǫ,
which proves that for all n > N ′ , |sn − L| < ǫ. Thus lim sn = L.
258 Chapter 8: Sequences
Theorem 8.6.5. (Ratio test for sequences) Let r ∈ C with |r| < 1. Then lim r n = 0.
Proof. If r = 0, the sequence is the constant zero sequence, so of course its limit is 0. Now
suppose that r 6= 0. By Exercise 2.8.2, for all positive integers n, 0 < |r|n+1 < |r|n . Thus
the sequence {|r|n} is a non-increasing sequence that is bounded below by 0 and above
by 1. By Theorem 8.6.4, L = lim |r|n = inf{|r|n : n ∈ N+ }. Since 0 is a lower bound and
L is the greatest of lower bounds of {|r|n : n ∈ N+ }, necessarily 0 ≤ L.
Suppose that L > 0. Then L(1 − |r|)/(2|r|) is a positive number. Since L is the
infimum of the set {|r|, |r|2, |r|3, . . .}, there exists a positive integer N > N1 such that
0 ≤ |r|N − L < L 1−|r|
2|r| . By multiplying by |r| we get that
N +1 1 − |r| L(1 − |r|) (1 + |r|) (1 + 1)
|r| < |r|L + L = L |r| + =L <L = L,
2 2 2 2
and since L is the infimum of all powers of |r|, we get that L ≤ |r|N +1 < L, which is a
contradiction. So necessarily L = 0. Hence for every ǫ > 0 there exists N ∈ R+ such that
for all integers n > N , ||r n | − 0| < ǫ. But this says that |r n − 0| < ǫ, so that lim r n = 0 as
well.
Theorem 8.6.6. (Ratio test for sequences) Let {sn } be a sequence of non-zero complex
sn+1
numbers and let L be a real number in the interval [0, 1). Assume that lim sn = L or
sn+1
that there exists a positive integer K such that for any integer n ≥ K, sn ≤ L.
Then lim sn = 0.
Proof. Let r be a real number strictly between L and 1. Then r and r − L are positive
numbers.
Under thefirst
(limit)
condition, there exists a positive number K such that for all
sn+1
integers n > K, sn − L < r − L. Then for all n > K,
sn+1 sn+1 sn+1
= − L + L ≤ − L + L ≤ r − L + L = r.
sn sn sn
Thus
both
conditions say that there exists a positive K such that for all integers
sn+1
n > K, sn ≤ r. We may replace this K by any larger number, and the conclusion still
holds. So from now on we assume that K is a positive integer.
Let ǫ > 0. By Theorem 8.6.5, lim r n = 0. Thus there exists M ≥ 0 such that for all
ǫr K
integers n > M , |r n − 0| < |sK|
. Set N = max{M, K}. Let n be an integer strictly greater
Section 8.6: Bounded sequences, monotone sequences, ratio test 259
than N . Then
sn s n−1 s n−2 s K+1
|sn − 0| = · · ···· · sK
sn−1 sn−2 sn−3 sK
sn sn−1 sn−2 sK+1
= · · ····
sK · |sK |
sn−1 sn−2 sn−3
≤ r n−K |sK |
= r n |sK |r −K
< ǫ.
8.6.11. Let {sn } be a non-decreasing sequence. Prove that the set {s1 , s2 , s3 , . . .} is
bounded below.
8.6.12. (Monotone sequences) Let {sn } be a monotone sequence of real numbers.
i) Suppose that {sn } is not bounded above. Prove that {sn } is non-decreasing and
that lim sn = ∞.
ii) Suppose that {sn } is not bounded below. Prove that {sn } is non-increasing and
that lim sn = −∞.
iii) Prove that lim sn is a real number if and only if {sn } is bounded.
Definition 8.7.1. A sequence {sn } is Cauchy if for all ǫ > 0 there exists a positive real
number N such that for all integers m, n > N , |sn − sm | < ǫ.
Proof. Let {sn } be a Cauchy sequence. Thus for ǫ = 1 there exists a positive integer N
such that for all integers m, n > N , |sn − sm | < 1. Then the set {|s1 |, |s2|, . . . , |sN |, |sN +1 |}
is a finite and hence a bounded subset of R. Let M ′ an upper bound of this set, and let
M = M ′ + 1. It follows that for all n = 1, . . . , N , |sn | < M , and for n > N , |sn | =
|sn − sN +1 + sN +1 | ≤ |sn − sN +1 | + |sN +1 | < 1 + M ′ = M . Thus {sn } is bounded by M .
Proof. Let {sn } be a convergent sequence. Let L be the limit. Let ǫ > 0. Since lim sn = L,
there exists a positive real number N such that for all n > N , |sn − L| < ǫ/2. Thus for all
integers m, n > N ,
Remark 8.7.4. It follows that every convergent sequence is bounded (this was already
proved in Theorem 8.6.2).
The converse of Theorem 8.7.3 is not true if the field in which we are working is Q.
√
For example, let sn be the decimal approximation of 2 to n digits after the decimal point.
Then {sn } is a Cauchy sequence of rational numbers: for every ǫ > 0, let N be a positive
integer such that 1/10N < ǫ. Then for all integers n, m > N , sn and sm differ at most in
digits N + 1, N + 2, . . . beyond the decimal point, so that |sn − sm | ≤ 1/10N < ǫ. But {sn }
does not have a limit in Q, so that {sn } is a Cauchy but not a convergent sequence.
But over R and C, all Cauchy sequences are convergent, as we prove next.
Proof. First let {sn } be a Cauchy sequence in R (as opposed to in C). By Theorem 8.7.2,
{sn } is bounded. It follows that all subsets {s1 , s2 , s3 , . . .} are bounded too. In particular,
by the Least upper bound property/theorem (Axiom 2.10.1), un = sup{sn , sn+1 , sn+2 , . . .}
is a real number. For all n, un ≥ un+1 because un is the supremum of a larger set.
Any lower bound on {s1 , s2 , s3 , . . .} is also a lower bound on {u1 , u2 , u3 , . . .}. Thus by
Theorem 8.6.4, the monotone sequence {un } has a limit L = inf{u1 , u2 , u3 , . . .}.
We claim that L = lim{sn }. Let ǫ > 0. Since {sn } is Cauchy, there exists N1 > 0
such that for all integers m ≥ n > N1 , |sn − sm | < ǫ/2. Thus if we fix n > N1 , then for
all m ≥ n, we have that sm < sn + ǫ/2. But un is the least upper bound on all sm for
m ≥ n, so that sm ≤ un < sn + ǫ/2, and in particular, sn ≤ un < sn + ǫ/2. It follows
that |sn − un | < ǫ/2 for all integers n > N1 . Since L = inf{u1 , u2 , u3 , . . .}, there exists an
integer N2 such that 0 ≤ uN2 − L < ǫ/2. Set N = max{N1 , N2 }. Let n > N be an integer.
By the definition of the un , L ≤ un ≤ uN ≤ uN2 , so that 0 ≤ un − L ≤ uN2 − L < ǫ/2.
Hence
The center of mass of the top two books is clearly at 34 from the right-hand edge of the
bottom book, so that the third book from the top down should protrude from underneath
the second one 14 .
2·1+1· 21
The center of mass of this system, measured from the rightmost edge, is 3 = 56 ,
so that the fourth book has to protrude out 16 .
3·1+1· 21
The center of mass of this system, measured from the rightmost edge, is 4 = 78 ,
so that the fifth book has to protrude out 18 units.
(n−1)·1+1· 1
In general, the center of mass of the top n books is at n
2
= 2n−1
2n measured
1
from the rightmost edge, so that the (n + 1)st book should protrude out by 2n units.
Section 8.7: Cauchy sequences, completeness of R, C 263
8.8 Subsequences
Definition 8.8.1. A subsequence of an infinite sequence {sn } is an infinite sequence
{sk1 , sk2 , sk3 , . . .} where 1 ≤ k1 < k2 < k3 < · · · are integers. Notations for such a
subsequence are:
{skn }, {skn }n , {skn }∞
n≥1 , {skn }n≥1 , {skn }n∈N+ .
Proof. Let {sn } be a convergent sequence, with limit L, and let {skn } be a subsequence.
Let ǫ > 0. By assumption there exists a positive number N such that for all integers
n > N , |sn − L| < ǫ. Since n ≤ kn , it follows that |skn − L| < ǫ. Thus {skn } converges.
The proof of the second part is similar.
Proof. This proof uses the halving construction already encountered in Construction 3.6.1,
and here the property P is that the subset contains infinitely many elements of the sequence.
Let {sn } be a bounded sequence (of real or complex numbers). Let M be a positive
real number such that for all n, |sn | ≤ M . Let a0 = c0 = −M and b0 = d0 = M . The
sequence {sn } has infinitely many (all) terms in the rectangle R0 = [a0 , b0 ] × [c0 , d0 ]. Set
l0 = 0. (If all sn are real, we may take c0 = d0 = 0, or perhaps better, ignore the second
coordinates.)
We prove below that for all m ∈ N+ there exists a subsequence {skn } all of whose
terms are in the rectangle Rm = [am , bm ] × [cm , dm ], where bm − am = 2−m (b0 − a0 ),
[am , bm ] ⊆ [am−1 , bm−1 ]. dm − cm = 2−m (d0 − c0 ), [cm , dm ] ⊆ [cm−1 , dm−1 ]. Furthermore,
we prove that there exists lm > lm−1 such that slm ∈ Rm .
Namely, given the (m − 1)st rectangle Rm−1 , integer lm−1 such that slm−1 ∈ Rm−1 ,
and a subsequence {skn } all of whose terms are in Rm−1 , divide Rm−1 into four equal-sized
subrectangles. Necessarily at least one of these four subrectangles contains infinitely many
Section 8.8: Subsequences 265
elements of {skn }, so pick one such subrectangle, and call it Rm . Therefore there exists
a subsequence of {skn } that is contained in Rm , and that subsequence of {skn } is also a
subsequence of {sn }. We call it {skn′ }. Since we have infinitely many kn′ , in particular
there exists kn′ > lm−1 , and we set lm = kn′ . Thus slm ∈ Rm .
By construction, {sln }n is a subsequence of {sn }n . We next prove that {sln }n is
a Cauchy sequence. Let ǫ > 0. Since the either side length of the mth subrectangle Rm
equals the corresponding side length of R0 divided by 2m , by Exercise 2.10.7 there exists
a positive integer N such that any side length of RN is strictly smaller than the constant
ǫ/2. Let m, n > N be integers. Then slm , sln are in RN , so that
p
|slm − sln | ≤ (one side length of Rn )2 + (other side length of Rn )2 < ǫ.
The following is now an immediate consequence of Theorem 8.7.5:
Example 8.8.6. We work out the construction of a subsequence as in the proof on the
bounded sequence {(−1)n − 1}. For example, all terms lie on the interval [a0 , b0 ] = [−4, 4].
Infinitely many terms lie on [a1 , b1 ] = [−4, 0], and on this sub-interval I arbitrarily choose
the second term, which equals 0. Infinitely many terms lie on [a2 , b2 ] = [−4, −2], in
particular, I choose the third term −2. After this all terms of the sequence in [a2 , b2 ] are
−2, so that we have built the Cauchy subsequence {0, −2, −2, −2, . . .} (and subsequent
[an , bn ] all have bn = −2). We could have built the Cauchy subsequence {−2, −2, . . .},
or, if we started with the interval [−8, 8], we could have built the Cauchy subsequences
{0, 0, −2, −2, . . .} or {−2, 0, 0, −2, −2, . . .}, and so on.
Theorem 8.8.8. Every unbounded sequence of real numbers has a subsequence that has
limit −∞ or ∞.
Proof. If {sn } is not bounded, choose k1 ∈ N+ such that |sk1 | ≥ 1, and once kn−1 has been
chosen, choose an integer kn > kn−1 such that |skn | ≥ n. Now {skn }n is a subsequence
of {sn }. Either infinitely many among the skn are positive or else infinitely many among
the skn are negative. Choose a subsequence {sln }n of {skn }n such that all terms in {sln }
have the same sign. If they are all positive, then since sln ≥ n for all n, it follows that
limn→∞ sln = ∞, and if they are all negative, then since sln ≤ −n for all n, it follows that
limn→∞ sln = −∞.
Recall that by Axiom 2.10.1 every non-empty subset T of R bounded above has a
least upper bound sup T = lub T in R, and that every non-empty subset T bounded below
has a greatest lower bound inf T = inf T in R. We extend this definition by declaring
sup T = ∞ if T is not bounded above,
inf T = −∞ if T is not bounded below.
The same definitions apply to sequences thought of as sets: sup{1/n}n = 1, inf{1/n}n = 0,
sup{n}n = ∞, inf{n}n = 1, sup{(−1)n}n = 1, inf{(−1)n }n = −1, et cetera.
Much analysis of sequences has to do with their long-term behavior rather than with
their first three, first hundred, or first million terms — think convergence or the Cauchy
property of sequences. We will see further usage of such tail-end analysis in the next
chapter (for convergence criteria for series). Partly with this goal in mind, we apply infima
and suprema to sequences of tail ends of sequences:
Definition 8.9.1. Let {sn } be a real-valued sequence. The limit superior lim sup and
limit inferior lim inf of {sn } are:
lim sup sn = inf{sup{sn : n ≥ m} : m ≥ 1},
lim inf sn = sup{inf{sn : n ≥ m} : m ≥ 1}.
b
b b
b
b
b
b b b
b b
b b b b b
b b b b b b
b b b b b b b b b
b b b b b b
b b b
b b b b b b b b b b b b
b b b b b b
b b b b b b b b
b b b b b b b
b b b b b b
b b b b
b b
b b
b
b
b
b b
b b
For lim inf sn to be a real number it is not enough for the sequence to be bounded
below: for example, {n} is bounded below but lim inf{n} = sup{inf{n : n ≥ m} : m ≥
1} = sup{m : m ≥ 1} = ∞. Similarly, for lim sup sn to be a real number it is not enough
for the sequence to be bounded above.
Proof. Let ǫ > 0. Then there exists N > 0 such that for all integers n > N , |sn − L| < ǫ.
Thus for all m ≥ N , sup{sn : n ≥ m} ≥ L + ǫ, so that L − ǫ ≤ lim sup sn ≤ L + ǫ. Since
this is true for all ǫ > 0, it follows by Theorem 2.11.4 that L = lim sup sn . The other part
is left to the reader.
Remark 8.9.3. (Ratio test for sequences) With the new language, Theorem 8.6.6
can be rephrased as follows: If {sn } is a sequence of non-zero complex numbers such that
lim sup{|sn+1 /sn |} < 1, then lim sn = 0. The proof there already accomplishes this. On the
other hand, the ratio test for divergence in Exercise 8.6.6 is not phrased in the most general
form. One generalization is that if lim sup{|sn+1 /sn |} > 1, then {sn } diverges. The proof
is simple. Let r ∈ (1, lim inf{|sn+1 /sn |}). By definition of liminf as supremum of some
infima, this means that there exists an integer m such that inf{|sn+1 /sn | : n ≥ m} > r.
Thus by an easy induction, for all n > m, |sn | > r n−m |sm |, and then by the Comparison
test (Theorem 8.3.7), {|sn |} diverges to infinity, hence {sn } does not converge to a complex
number.
It turns out that there is an important connection between limsup, liminf, and sub-
sequential limits:
Section 8.9: Liminf, limsup for real-valued sequences 269
Theorem 8.9.4. Let {sn } be a bounded sequence of real numbers. Then the supremum
of the set of all subsequential limits equals lim sup sn , and the infimum of the set of all
subsequential limits equals lim inf sn .
Proof. Proof of the limsup part only: Let A = lim sup{sn }, let S be the set of all subse-
quential limits of {sn }, and let U = sup(S). Since the sequence is bounded, A and U are
real numbers.
Let ǫ > 0. Since A = inf{sup{sn : n ≥ m} : m ≥ 1}, there exists m0 ≥ 1 such that
sup{sn : n ≥ m0 } − A < ǫ. Thus for all n ≥ m0 , sn − A < ǫ. But then any subsequential
limit of {sn } is a subsequential limit of {sn }n≥m0 , so that this limit must be at most A + ǫ.
Thus A + ǫ is an upper bound on all subsequential limits of {sn }, so that U ≤ A + ǫ. Since
ǫ is an arbitrary positive number, by Theorem 2.11.4 this means that U ≤ A.
By definition of U , there exists a convergent subsequence {skn } such that U −
lim{skn }n < ǫ/2. Let L = lim{skn }n . So U − L < ǫ/2, and there exists a positive
real number N such that for all integers n > N , |skn − L| < ǫ/2. Thus for all n > N ,
Theorem 8.9.5. Let {sn }, {tn} be bounded sequences in R. Then lim sup sn +lim sup tn ≥
lim sup(sn + tn ) and lim inf sn + lim inf tn ≤ lim inf(sn + tn ).
Theorem 8.9.6. Let {sn } and {tn } be sequences of non-negative real numbers such that
lim sn is a positive real number L. Then lim sup(sn tn ) = L lim sup tn and lim inf(sn tn ) =
L lim inf tn .
Proof. Let ǫ > 0. Set ǫ′ = min{L/2, ǫ}. By assumption there exists N > 0 such that for all
integers n > N , |sn − L| < ǫ′ . Then L − ǫ′ < sn < L + ǫ′ . Thus each sn is positive, and in
fact |sn | > L/2. It follows that (L − ǫ′ )tn ≤ sn tn ≤ (L + ǫ′ )tn . But then since L ± ǫ′ ≥ 0,
(L−ǫ′ ) lim sup tn = lim sup(L−ǫ′ )tn ≤ lim sup sn tn ≤ lim sup(L+ǫ′ )tn = (L+ǫ′ ) lim sup tn .
In this section we will handle (some) infinite sums, and in particular functions that
arise as infinite sums of higher and higher powers of a variable x. The culmination of
the chapter and the course are the exponential and trigonometric function, with their
properties.
Warning: Finite sums are possible by the field axioms, but infinite sums need not
make any sense at all. For example,
Definition 9.1.1. For an infinite sequence {an } of complex numbers, define the corre-
sponding sequence of partial sums
{a1 , a1 + a2 , a1 + a2 + a3 , a1 + a2 + a3 + a4 , . . .}.
Pn
We denote the nth term of this sequence sn = k=1 ak . The (infinite) series corre-
P∞
sponding to the sequence {an } is k=1 ak (whether this “infinite sum” makes sense or
not).
P P
When the range of indices is clear, we write simply k ak or ak .
Section 9.1: Infinite series 273
Example 9.1.2. For the sequence {1}, the sequence of partial sums is {n}. If a 6= 1, by
Pn n+1
Example 1.5.4 the sequence of partial sums of {an } is { k=1 ak }n = { a a−1−a }n . In par-
n
ticular, the sequence of partial sums of {(−1)n} is {{ (−1)2 −1 }n = {−1, 0, −1, 0, −1, 0, . . .}.
We have encountered shifted sequences, such as {an }n≥m , and similarly there are
P∞
shifted series: k=m ak stands for the limit of the sequence of partials sums, but in this
case, the nth partial sum is sn = am + am+1 + am+2 + · · · + am+n−1 .
P∞
Definition 9.1.3. (Most of the time and by default we take m = 1.) The series k=m ak
Pn−m+1
converges to L ∈ C if the sequence { k=m ak }n converges to L. We say then that L
P∞
is the sum of the series and we write k=m ak = L.
If the series does not converge, it diverges.
Just like for sequences, when a series diverges, it may diverge to ∞ or to −∞, or it
may simply have no limit.
Since a sequence {sn } converges if and only if {sn + c} converges (where c is any
P∞ P∞
constant), it follows that k=1 ak converges if and only if k=m ak converges, and then
∞
X ∞
X
ak = a1 + a2 + · · · + am−1 + ak .
k=1 k=m
The following follows immediately from the corresponding results for sequences:
P∞ P∞
Theorem 9.1.4. Let A = k=1 ak , B = k=1 bk , and c ∈ C.
(1) If A, B ∈ C, then
X∞
(ak + cbk ) = A + cB.
k=1
Remark 9.1.5. This theorem justifies the binary operation of addition on the set of of
convergent infinite series:
∞
! ∞
! ∞
X X X
ak + bk = (ak + bk ).
k=1 k=1 k=1
Theorem 9.1.11. Let {an } be a sequence of non-negative real numbers. If the sequence
P
{a1 + a2 + · · · + an } of partial sums is bounded above, then an converges.
Proof. The sequence {a1 + a2 + · · · + an } of partial sums is monotone and bounded above,
so it converges by Theorem 8.6.4.
Theorem 9.1.12. Let {an } be a sequence of complex numbers, and let m be a positive
P∞ P∞
integer. Then k=1 an converges if and only if k=m an converges. Furthermore in this
P∞ P∞
case, k=1 an = (a1 + a2 + · · · + am−1 ) + k=m an .
a rational number.
P∞ P∞ P∞
9.1.6. Prove that k=1 ak converges if and only if k=1 Re ak and k=1 Im ak converge.
P∞ P∞ P∞
Furthermore, k=1 ak = k=1 Re ak + i k=1 Im ak .
P∞
9.1.7. Suppose that lim an 6= 0. Prove that k=1 ak diverges.
9.1.8. Determine with proof which series converge.
P∞
i) k=1 k1k .
P∞
ii) k=1 k13 + ik .
P
iii) ∞ 1
k=1 k! .
9.1.9. Let {an } and {bn } be complex sequences, and let m ∈ N+ such that for all n ≥ 1,
P P∞
an = bn+m . Prove that ∞ k=1 ak converges if and only if k=1 bk converges.
ǫ > 0 there exists N > 0 such that for all integers m, n > N , |sn − sm | < ǫ. In particular
for n ≥ m > N , |am+1 + am+2 + · · · + an | = |sn − sm | < ǫ.
Now suppose that for all real numbers ǫ > 0 there exists a real number N > 0 such
that for all integers n ≥ m > N , |am+1 + am+2 + · · · + an | < ǫ. This means that the
sequence {sn } of partial sums is Cauchy. By Theorem 8.7.5, {sn } is convergent. Then by
P
the definition of series, k ak converges.
Theorem 9.2.2. (Comparison test (for series)) Let {an } be a real and {bn } a complex
P P
sequence. If ak converges and if for all n, an ≥ |bn |, then bk converges.
Proof. Note that all an are non-negative, and for all integers n ≥ m,
|bm+1 + bm+2 + · · · + bn | ≤ |bm+1 | + |bm+2 | + · · · + |bn |
≤ am+1 + am+2 + · · · + an
= |am+1 + am+2 + · · · + an |.
P
Since ak converges, by Theorem 9.2.1, for every ǫ > 0 there exists N > 0 such that for all
integers n > m > N , |am+1 + am+2 + · · · + an | < ǫ, and hence |bm+1 + bm+2 + · · · + bn | < ǫ.
P
Thus again by Theorem 9.2.1, bk converges.
Theorem 9.2.3. (Comparison test (for series)) Let {an } be a complex and {bn } a
P P
real sequence. If ak diverges and if for all n, bn ≥ |an |, then bk diverges.
Theorem 9.2.4. (Ratio test) (Compare to Remark 8.9.3.) Let {an } be a sequence of
non-zero complex numbers.
an+1 P P
(1) If lim sup an < 1, then |ak | and ak converge.
P P
(2) If lim inf aan+1
n
> 1, then |ak | and ak diverge.
Theorem 9.2.5. (Root test for series) Let {an } be a sequence of complex numbers.
Let L = lim sup |an |1/n .
P P
(1) If L < 1, then k |ak |, k ak converge.
P P
(2) If L > 1, then k |ak |, k ak diverge.
Proof. If L < 1, choose r ∈ (L, 1). Since L = inf{sup{|an |1/n : n ≥ m} : m ≥ 1} and r > L,
there exists m ≥ 1 such that r > sup{|an |1/n : n ≥ m}. Thus for all n ≥ m, r n ≥ |an |.
P k
Thus by the Comparison test (Theorem 9.2.2), since the geometric series r converges,
P P
we have that ak and |ak | converge. The proof of (2) is similar, and is omitted here.
Theorem 9.2.6. (Alternating series test) If {an } is a sequence of positive real numbers
P∞
such that lim an = 0 and a1 ≥ a2 ≥ a3 ≥ · · ·, then k=1 (−1)k ak converges.
since all the finitely many indices in K are strictly bigger than N0 .
Theorem 9.2.10. (Integral test for series convergence) Let f : [1, ∞) → [0, ∞) be a
Rn P∞
decreasing function. Suppose that for all n ∈ N+ , 1 f exists. Then k=1 f (k) converges
Rn
if and only if limn→∞ 1 f exists and is a real number.
P∞ Rn
(It is not necessarily the case that k=1 f (k) equals limn→∞ 1 f .)
Proof. Since f is decreasing, for all x ∈ [n, n + 1], f (n) ≥ f (x) ≥ f (n + 1). Thus
Z n+1 Z n+1 Z n+1
f (n + 1) = f (n + 1)dx ≤ f (x)dx ≤ f (n)dx = f (n).
n n n
P
Suppose that k f (k) converges. Then byR the definition limn→∞ (f (1) + f (2) +
n+1 R2 R3 R n+1
· · · + f (n)) exists. By the displayed inequalities, 1 f = 1 f + 2 f + ··· + n f ≤
280 Chapter 9: Infinite series and power series
R n+1
f (1)+f (2)+· · ·+f (n), so that { 1 f }n is a bounded increasing sequence of real numbers,
R n+1 Rn
so that limn→∞ 1 f exists, and hence that limn→∞ 1 f exists.
Rn
Conversely, suppose that limn→∞ 1 f exists. Let L ∈ R be this limit. By the
R3 R n+1 R n+1
displayed inequalities, f (2) + f (3) + · · · + f (n + 1) ≤ 2 f + · · · + n f = 2 f . Since
f takes on only non-negative values, this says that f (2) + f (3) + · · · + f (n + 1) ≤ L. Thus
{f (2) + · · · + f (n + 1)}n is a non-decreasing sequence that is bounded above by L. Thus
by Theorem 8.6.4, this sequence converges. By adding the constant f (1), the sequence
P
{f (1) + · · · + f (n + 1)}n converges, so that by the definition of series, k f (k) converges.
Theorem 9.2.11. (The p-series convergence test) Let p be a real number. The series
P p
k k converges if p < −1 and diverges if p ≥ −1.
Proof. If p = −1, then the series is the harmonic series and hence diverges. If p ≥ −1,
then np ≥ n−1 for all n by Theorem 7.6.5. Thus by the comparison test (Theorem 9.2.3),
P p
k k diverges.
Now suppose that p < −1. The function f : [1, ∞) → R given by f (x) = xp is
differentiable, continuous, and decreasing. Since f is continuous, for all positive integers n,
Rn Rn Rn p p+1
1
f exists. By the Fundamental theorem of calculus, 1
f = 1
x dx = n p+1−1 . By the
composite rule for sequences (either Theorem 8.5.8 or Theorem 8.4.7), since the function
that exponentiates by the positive −(p +1) is continuous at all real numbers and lim n1 = 0,
−(p+1) Rn
it follows that lim np+1 = lim n1 = 0−(p+1) = 0, so that lim 1 f exists and equals
−1
P p
p+1 . Thus by the Integral test (Theorem 9.2.10), k k converges.
9.2.3. For each of the following series, determine with proof whether they converge or
diverge. You may need to use Examples 8.2.9 and 8.3.6.
X∞
3i
i) √ .
k 2 + k4
k=1
X∞
1
ii) √ .
k=1
k
X∞
1
iii) .
k3
k=1
∞
X 2k
iv) .
k!
k=1
X∞
2k
v) .
k3
k=1
X∞
1
vi) √ .
k=1
k 2
P P
9.2.4. Find a convergent series k ak and a divergent series k bk with lim sup |an |1/n =
lim sup |bn |1/n = 1.
9.2.5. Make a list of all encountered criteria of convergence for series.
9.2.6. The goal of this exercise is to show that if the ratio test (Theorem 9.2.4) determines
the convergence/divergence of a series, then the root test (Theorem 9.2.5) determines it as
well. Let {an } be a sequence of non-zero complex numbers.
i) Suppose that lim sup | aan+1
n
| < 1. Prove that lim sup |an |1/n < 1.
ii) Suppose that lim inf | aan+1
n
| > 1. Prove that lim sup |an |1/n > 1.
P 5k
9.2.7. Apply the ratio test (Theorem 9.2.4) and the root test (Theorem 9.2.5) to ∞ k=1 k! .
P∞
Was one test easier? Repeat for k=1 k1k .
P∞
9.2.8. Let {an } be a complex sequence, and let c ∈ C. Is it true that k=1 ak converges
P∞
if and only if k=1 cak converges? If true, prove; if false, give a counterexample.
P∞
9.2.9. Let an = (−1)n /n, bn = 2(−1)n . Prove that k=1 ak converges, that for all n,
P
|bn | = 2, and that ∞ ak
k=1 bk diverges.
P∞
9.2.10. (Compare with Exercise 9.2.9.) Suppose that k=1 |ak | converges. Let {bn } be a
P∞
sequence of complex numbers such that for all n, |bn | > 1. Prove that k=1 abkk converges.
282 Chapter 9: Infinite series and power series
9.2.11. (Summation by parts) Let {an }, {bn} be complex sequences. Prove that
n
X n
X n
X k
X
ak bk = an bk − (ak+1 − ak ) bj .
k=1 k=1 k=1 j=1
9.2.17. (Raabe’s test) Let a1 , a2 , . . . be positive real numbers such that for some α > 1
P
and for some N ∈ N, aan+1 n
≤ 1− α n for all n ≥ N . Prove that n an converges. (Hint:
Let f (x) = 1 − x . Use the Mean value theorem to get c ∈ (x, 1) such that f ′ (c)(1 − x) =
α
P −α
f (1) − f (x). Conclude that 1 − xα ≤ (1 − x)α. Apply this to x = 1 − n1 . Use that n
converges.)
In this section we deal with sums where the index varies through N0 , and furthermore,
the terms of the sequence are special functions rather than constants:
where a0 , a1 , a2 , . . . are fixed complex numbers, and x is a variable that can be replaced by
any complex number. (By convention as on page 35, 00 = 1.)
power series an
X∞
xk an = 1
k=0
X∞
2k+1 3 5 7 1, if n is odd;
x = x+x +x + x +··· an =
0, if n is even.
k=0
(
X∞ 0, if n is odd;
x2k+12 = x12 + x14 + x16 + x18 + · · · an = 0, if n is even and n < 12;
k=0 1, if n ≥ 12 is even.
X∞
kxk an = n
k=0
X∞
xk 1
an = n!
k!
k=0
X∞
(kx)k an = nn
k=0
The partial sums of power series are polynomials, so a power series is a limit of
polynomials.
284 Chapter 9: Infinite series and power series
P∞
Example 9.3.2. Let f (x) = k=0 xk . By Theorem 9.1.6, the domain of f contains all
complex numbers with absolute value strictly smaller than 1, and by Theorem 9.1.10, the
domain of f contains no other numbers, so that the domain equals {x ∈ C : |x| < 1}.
P∞ 1
Moreover, for all x in the domain of f , by Theorem 9.1.6, k=0 xk = 1−x . Note that the
1
domain of 1−x is strictly larger than the domain of f .
Whereas for general power series it is impossible to get a true numerical infinite sum,
P P
for geometric series this is easy: f ( 21 ) = k≥0 21k = 1−1 1 = 2, f ( 31 ) = k≥0 31k = 1−1 1 = 32 ,
P 1
2 3
f (0.6) = k≥0 0.6k = 1−0.6 = 2.5.
P
Theorem 9.3.3. (Root test for the convergence of power series) Let ak xk be a
power series, and let α = lim sup |an |1/n. Define R by
1/α, if 0 < α < ∞;
R = 0, if α = ∞;
∞, if α = 0.
P P
Then for all x ∈ C with |x| < R, |ak ||x|k and ak xk converge in C, and for all x ∈ C
P P
with |x| > R, |ak ||x|k and ak xk diverge.
Definition 9.3.4. The R from Theorem 9.3.3 is called the radius of convergence of
P
the series ak xk .
This is really a radius of convergence because inside the circle B(0, R) the series
converges and outside of the circle the series diverges. Whether the power series converges
at points on the circle depends on the series; see Example 9.3.6.
P P P P P
Theorem 9.3.5. The series ak xk , |ak |xk , |ak ||x|k , kak |x|k , kak xk−1 ,
P 2 P
k ak xk , k(k − 1)ak xk , all have the same radius of convergence.
p √ √
Proof. By Example 8.2.9, lim n |n| = 1. For any integer n ≥ 2, 1 ≤ n n − 1 ≤ n n, so that
√ p
by the squeeze theorem, lim n n − 1 = 1. Thus by Theorem 8.9.6, lim sup n |n(n − 1)an | =
p p p
lim n n(n − 1)·lim sup n |an | = lim sup n |an |. This proves that the α as in Theorem 9.3.3
P P
for ak xk is the same as the α for k(k − 1)ak xk , which proves that these two power
series have the same radius of convergence. The proofs of the other parts are similar.
P
Example 9.3.6. We have seen that xk has radius of convergence 1. By Theorem 9.1.10,
this series does not converge at any point on the unit circle. By the previous theorem,
P∞ P∞
the radius of convergence of k=1 k1 xk and of k=1 k12 xk is also 1. By the p-series test
P∞
(Theorem 9.2.11) or by the harmonic series fact, k=1 k1 xk diverges at x = 1, and by the
P∞
alternating series test (Theorem 9.2.6), k=1 k1 xk converges at x = −1. By the p-series
P∞
test (Theorem 9.2.11), k=1 k12 converges, so that by the comparison test Theorem 9.2.2,
P∞ 1 k
k=1 k2 x converges on the unit circle.
P
Theorem 9.3.7. Let the radius of convergence for ak xk be R. Then the radius of
P √
convergence for ak x2k is ∞ if R = ∞ and it is R otherwise.
p
Proof. Let α = lim sup n |an |. In the second power series, the nth coefficient is 0 if n is
odd, and it is an/2 xn if n is even. Then applying the root test to this power series gives
n√ p √ p √ p √ p o
1 2 3 4 5 6 7 8
lim sup 0, |a1 |, 0, |a2 |, 0, |a3 |, 0, |a4 |, . . .
np p p p o
= lim sup 2 |a1 |, 4 |a2 |, 6 |a3 |, 8 |a4 |, . . .
(0s do not contribute to limsup of non-negative numbers)
q qp qp qp
p
1 2 3 4
= lim sup |a1 |, |a2 |, |a3 |, |a4 |, . . .
r np o
1
p
2
p3
p4
= lim sup |a1 |, |a2 |, |a3 |, |a4 |, . . .
√
= α,
Theorem 9.3.9. (Ratio test for the convergence of power series) Suppose that all
an are non-zero complex numbers.
a P P
n
(1) If |x| < lim inf an+1 , then |ak ||x|k and ak xk converge.
a P P
(2) If |x| > lim sup an+1n
, then |ak ||x|k and ak xk diverge.
a P
n
Thus if lim an+1 exists, it equals the radius of convergence of ak xk .
Warning: Compare with the Ratio test for convergence of series (Theorem 9.2.4)
where fractions are different. Explain to yourself why that is necessarily so, possibly after
going through the proof below.
Proof. The two series converge in case x = 0, so that we may assume that x 6= 0. We may
then apply the Ratio test for convergence of series (Theorem 9.2.4):
an+1 xn+1 an+1
lim sup = |x| lim sup
an xn an
an+1
= |x| inf{sup : n ≥ m : m ≥ 1}
an
( )
1
= |x| inf :m≥1
n
inf{ aan+1 : n ≥ m}
|x|
= n a o
n
sup inf{ an+1 : n ≥ m} : m ≥ 1
|x|
= .
n
lim inf aan+1
If this is strictly smaller than 1, then the two series converge, which proves (1). Similarly,
an+1 xn+1 |x|
lim inf = ,
an x n lim sup aan
n+1
and if this is strictly larger than 1, then the two series diverge. The last part is then
immediate by the definition of radius of convergence.
Examples 9.3.10.
P 2k+1
(1) In Example 9.3.8 we established via the root test that x has radius of
convergence 1. The ratio test is inapplicable for this power series. However, note
P 2k+1 P
that x = x (x2 )k , and by the ratio test for series (not power series), this
series converges for non-zero x if lim sup |(x2 )k+1 /(x2 )k | < 1, i.e., if |x2 | < 1, i.e.,
if |x| < 1, and it diverges if |x| > 1.
Section 9.3: Power series 287
P∞
x k
(2) The radius of convergence of k=1 k is ∞. For this we apply the root test:
1/n
α = lim sup 1n
n = lim sup 1
n = 0.
P∞ xk
1
(3) By the ratio test, the radius of convergence of is lim n!
1
= lim (n+1)! =
k=1 k! n!
(n+1)!
lim(n + 1) = ∞. The root test gives α = lim sup |1/n!|1/n| = lim sup(1/n!)1/n, and
by Example 8.3.6 this is 0. Thus the radius of convergence is ∞ also by the root
test.
9.3.4. Compute and justify the radius of convergence for the following series:
P k
i) 3x .
P
ii) (3x)k .
P
iii) 3kxk .
P
iv) k(3x)k .
P xk
v) k3
.
P 3x k
vi) k3 .
P (3x)k
vii) k3 .
9.3.5. Compute and justify the radius of convergence for the following series:
P xk
i) k.
P kxk
ii) 2k .
P k xk
iii) (2k)k
.
288 Chapter 9: Infinite series and power series
P∞ P∞
9.3.6. Let k=0 ak xk and k=0 bk xk be convergent power series with radii of convergence
P∞ P∞
R1 and R2 , respectively. Let R = min{R1 , R2 }. Prove that k=0 ak xk ± k=0 bk xk =
P∞ k
k=0 (ak ±bk )x is convergent with radius of convergence at least R. (Hint: Theorem 9.1.4.)
P∞
9.3.7. Let R be the radius of convergence of k=0 ak xk . Let p be a positive integer.
P
i) Determine the radius of convergence of ∞ k
k=p ak x .
P∞
ii) Determine the radius of convergence of k=0 ak xpk .
P∞
9.3.8. What would be a sensible definition for generalized power series k=0 ak (x−a)k ?
P∞
What would be a sensible definition of the radius of convergence of k=0 ak (x −a)k ? Draw
a relevant picture in C.
Power series are functions. In this section we prove that they are differentiable at all
x inside the circle of convergence. Since a differentiable function is continuous, it follows
that a power series is continuous inside the circle of convergence.
Recall that for any differentiable function f , f ′ (x) = limh→0 f (x+h)−f (x)
h P , and any
P∞ P ∞ n
power series k=0 ak xk is actually the limit of a sequence: k=0 ak xk = lim{ k=0 ak xk }n .
Thus Pn Pn
X∞
k ′ lim{ k=0 ak (x + h)k }n − lim{ k=0 ak xk }n
( ak x ) = lim .
h→0 h
k=0
Pn Pn
Certainly by the sum rule for convergent series, lim{ k=0 ak (x+h)k }n −lim{ k=0 ak xk }n =
Pn
lim{ k=0 ak ((x + h)k − xk )}n , and by the constant rule we get that
∞
X n
X
k ′ (x + h)k − xk
( ak x ) = lim lim ak .
h→0 n→∞ h
k=0 k=0
If we could change the order of limits, then we would get by the polynomial rule for
derivatives that ∞ n
X X
k ′
( ak x ) = lim lim kak xk−1 .
n→∞ h→0
k=0 k=0
In fact, it turns out that this is the correct derivative, but our reasoning above was based
on an unproven (and generally false) switch of the two limits.
We give a correct proof of derivatives in the rest of the section. By Theorem 9.3.5
P∞ P∞ P∞
we already know that the series k=0 ak xk and k=0 kak xk−1 = k=1 kak xk−1 have the
same radius of convergence.
The following theorem is not necessarily interesting in its own right, but it is a
stepping stone in the proof of derivatives of power series.
Section 9.4: Differentiation of power series 289
P
Theorem 9.4.1. Let k ak xk have radius convergence R. Let c ∈ C satisfy |c| < R. Then
P∞
the function g(x) = k=1 ak (xk−1 + cxk−2 + c2 xk−3 + · · · + ck−1 ) is defined on B(0, R)
and is continuous at c.
which is the function g from the previous theorem. In that theorem we proved that g is
continuous at c, so that
X∞
′ f (x) − f (c)
f (c) = lim = lim g(x) = g(c) = kak ck−1 .
x→c x−c x→c
k=1
are identical, their nth derivatives agree on Br (0) as well. By an n-fold application of the
derivative,
X∞
(n)
f (x) = ak k(k − 1)(k − 2) · · · (k − n + 1)xk−n,
k=n
Differentiation of power series is a powerful tool. For all complex numbers x ∈ B(0, 1)
P∞ 1 1
the geometric series k=0 xk converges to 1−x . Certainly it is much easier to compute 1−x
than the infinite sum. We can exploit geometric series and derivatives of power series to
compute many other infinite sums. Below we provide a few illustrations of the method.
292 Chapter 9: Infinite series and power series
P∞ k
Example 9.5.1. k=1 2k−1 = 4.
P∞
Proof. Let f (x) = k=0 xk . This is the geometric series with radius of convergence 1 that
1
P∞ P∞
converges to 1−x (Example 9.3.2). By Theorem 9.4.2, f ′ (x) = k=0 kxk−1 = k=1 kxk−1 ,
and by Theorem 9.3.5, the radius of convergence of f ′ is also 1. Thus 12 is in the domain
of f ′ . Since we have two ways of expressing f (as power series and as a rational function),
there is similarly also a second form for f ′ :
′
′ 1 1
f (x) = = .
1−x (1 − x)2
P∞ k
P∞ k−1
From the two forms we deduce that k=0 2k−1 = k=0 k 21 1
= f ′ (1/2) = (1−1/2) 2 = 4.
P∞ k2
P∞ k2
Example 9.5.2. k=0 2k = 6, and k=0 2k−1 = 12.
P∞ k
Proof. As in the previous example we start with the geometric series f (x) = k=0 x
′
P∞ k−1 1
that converges on B(0, 1). Its derivative f (x) = k=0 kx = (1−x)2 also converges
P ∞ P∞ 2 k−1
on B(0, 1). Then xf ′ (x) = k=0 kx k
and its derivative (xf ′
(x)) ′
= k=0 k x also
converge on B(0, 1). From
X∞ ′
2 k−1 ′ ′ x 1+x
k x = (xf (x)) = 2
=
(1 − x) (1 − x)3
k=0
P∞ k2 P∞ k 2
1+ 21
we deduce that k=0 2k−1 = (1−1/2) 3 = 3/2
1/8 = 12, and k=0 2k = 6.
P∞ 1+x
Example 9.5.3. From the previous example we know that k=0 k 2 xk−1 = (1−x)3 . Mul-
P∞ x+x2
tiplying both sides by x gives k=0 k 2 xk = (1−x) 3 , and differentiation gives
X∞
3 k−1 d x + x2 1 + 4x + x2
k x = = .
dx (1 − x)3 (1 − x)4
k=0
P∞ k3 1+4·0.5+0.52
P∞ k3
It follows that k=0 2k−1 = (1−0.5)4 = 52 and k=0 2k = 26.
P∞ 1
P ∞ k
P∞ k 2 P∞ k3
Summary: k=0 2k−1 = 2, k=0 2k−1 = 4, k=0 2k−1 = 12, k=0 2k−1 = 26. Is it
P ∞ k 4
possible to predict k=0 2k−1 ?
P∞ 1
Example 9.5.4. k=1 k2k = ln 2.
P∞ k
Proof. Let f (x) = k=1 xk . The radius of convergence of f is 1, so 1/2 is in its domain.
P∞ 1
Also, f ′ (x) = k=1 xk−1 = 1−x , so that f (x) = − ln(1 − x) + C for some constant C. In
P∞ P∞ k
particular, C = −0 + C = − ln(1 − 0) + C = f (0) = 0, so that k=1 k21k = k=1 k1 12 =
f ( 21 ) = − ln(1 − 21 ) = − ln( 21 ) = ln(2).
Section 9.6: Some technical aspects of power series 293
terms is a rational number whose numerator and denominator take several screen pages,
so this sum as a rational number is hard to comprehend. So instead I computed curtailed
decimal expansions for this and for a few other sums: according to my computer, the
partial sum of the first 10 terms is about 0.719474635555091, the partial sum of the first
100 terms is about 0.719487336054311, the partial sum of the first 1000 terms is about
0.719487336054311. What can you suspect? How would you go about proving it?
This section is meant as a reference, and should probably be skipped in a first class
on power series.
The result below seems obvious, but the proof is nevertheless a bit involved.
P∞ P∞
Theorem 9.6.1. Let k=0 ak xk and k=0 bk xk be convergent power series with radii
of convergence R1 and R2 , respectively. Let R = min{R1 , R2 }. Then on B(0, R)
Pn Pn
the product sequence {( k=0 ak xk ) · ( k=0 bk xk )}n converges to the power series
P∞ Pk k
k=0 ( j=0 aj bk−j )x .
P∞ P∞ P∞ Pk
We write this as ( k=0 ak xk ) · ( k=0 bk xk ) = k=0 ( j=0 aj bk−j )xk on B(0, R).
X k
n X n X
X n
k
= am bk−m x + am bn+k−m xn+k
k=0 m=0 k=1 m=k
Xn n
X n
X
= ck x k + am bn+k−m xn+k .
k=0 k=1 m=k
294 Chapter 9: Infinite series and power series
P∞ P∞ e K,
e respec-
Since |x| < R ≤ R1 , R2 , the series k=0 |ak xk | and k=0 |bk xk | converge, to L,
tively. Thus there exists N2 > 0 such that for all integers n > N2 ,
∞
X∞ X Xn ǫ
k k k
|ak x | = |ak x | − |ak x | < ,
4K e +1
k=n+1 k=0 k=0
P∞ ǫ
and similarly there exists N3 > 0 such that for all integers n > N3 , k=n+1 |bk xk | < .
e+1
4L
Now let n > max{2N1 , N2 , N3 }. Then, with possibly adding more non-negative terms in
the third line below,
n X
X n
am bn+k−m xn+k
k=1 m=k
n ⌊n/2⌋
X X n n
X X
= m
am x bn+k−m x n+k−m
+ am xm bn+k−m xn+k−m
k=1 m=k k=1 m=max{k,⌊n/2⌋+1}
⌊n/2⌋ n n ⌊n/2⌋
X X X X
≤ m
|am x | bk x k
+ |am xm | bk xk
m=1 k=⌊n/2⌋ m=⌊n/2⌋ k=1
e ǫ ǫ e
≤L + K
e+1
4L e +1
4K
ǫ
< .
2
Thus
Xn X n
ck xk − LK = ck xk − sn tn + sn tn − LK
k=0 k=0
n
X
k
≤ ck x − sn tn + |sn tn − LK|
k=0
Xn X n
n+k
< am bn+k−m x + ǫ/2
k=1 m=k
< ǫ/2 + ǫ/2 = ǫ.
P∞
Theorem 9.6.2. Let f (x) = k=0 ck xk have radius of convergence a positive real num-
P∞
ber R. Let a ∈ C with |a| = R such that k=0 ck ak converges. Let B be an open ball
centered at a, and let g : B → C be continuous. If f (x) = g(x) for all x ∈ B(0, R) ∩ B,
then f (a) = g(a).
Proof. Let ǫ > 0. We want to show that |f (a) − g(a)| < ǫ, which will via Theorem 2.11.4
then prove that f (a) = g(a). It suffices to prove the inequality |f (a) − g(a)| < ǫ under the
additional assumption that ǫ < 1.
P∞
Since k=0 ck ak converges, by Cauchy’s criterion Theorem 9.2.1, there exists a posi-
Section 9.6: Some technical aspects of power series 295
Pn PN +m
tive integer N such that for all integers n ≥ N , | k=N ck ak | < ǫ/4. Let sm = k=N ck ak .
By assumption, for all m ≥ 1, |sm | < ǫ/4 < 1. Furthermore, cN = s0 /aN , and for n > N ,
cN +n = (sn − sn−1 )/aN +n .
Let r be a positive real number strictly smaller than 1. First we do a simple expan-
sion:
r N s0 +(s1 − s0 )r N +1 + (s2 − s1 )r N +2 + · · · + (sn − sn−1 )r N +n
= r N cN aN + cN +1 aN +1 r N +1 + cN +2 aN +2 r N +2 + · · · + cN +n aN +n r N +n
N
X +n
= ck (ra)k .
k=N
P
N +n
Thus by more rewriting and by the triangle inequality, k=N ck (ra)k equals
= r N s0 + (s1 − s0 )r N +1 + (s2 − s1 )r N +2 + · · · + (sn − sn−1 )r N +n
= s0 (r N − r N +1 ) + s1 (r N +1 − r N +2 ) + · · · + sn−1 (r N +n−1 − r N +n ) + sn r N +n
= r N (1 − r) s0 + s1 r + · · · + sn−1 r n−1 + sn r n
≤ r N (1 − r) |s0 | + |s1 |r + · · · + |sn−1 |r n−1 + |sn |r n
ǫ
≤ r N (1 − r) 1 + r + · · · + r n−1 + r n (since |sm | < ǫ/4 for sufficiently large m)
4
ǫ
= r N (1 − r n + r n ) (by Example 1.5.4)
4
ǫ
= rN
4
ǫ
< .
4
P∞
In particular, k=N ck (ra)k ≤ ǫ . 4
Since polynomial
P functions are continuous,
there exists δ1 > 0 such that for all
N −1 k
PN −1 k
x ∈ B(a, δ1 ), k=0 ck x − k=0 ck a < ǫ/4.
Since g is continuous at a, there exists δ2 > 0 such that for all x ∈ B(a, δ2 ), |g(x) −
g(a)| < ǫ/4. Let r ∈ (0, 1) such that 1 − r < R1 min{δ1 , δ2 }. Then |a − ra| < δ1 , δ2 , so that
NX −1 NX−1
k k
|g(a) − f (a)| = g(a) − g(ra) + g(ra) − f (ra) + f (ra) − ck a + ck a − f (a)
k=0 k=0
N
X −1 NX −1
≤ |g(a) − g(ra)| + |g(ra) − f (ra)| + f (ra) − ck ak + ck ak − f (a)
k=0 k=0
∞
X N
X −1 N
X −1 X ∞
k k k k
= |g(a) − g(ra)| + 0 + ck (ra) + ck (ra) − ck a + ck a
k=N k=0 k=0 k=N
296 Chapter 9: Infinite series and power series
∞ N −1 ∞
ǫ X X X
N
X −1
< + ck (ra)k + ck (ra)k − ck ak + ck ak
4
k=N k=0 k=0 k=N
ǫ ǫ ǫ ǫ
< + + + = ǫ.
4 4 4 4
Since ǫ is arbitrary, by Theorem 2.11.4, f (a) = g(a).
Definition 9.7.1. Let a be in the domain of a function f , and assume that f has derivatives
P∞ (k)
of all orders at a. The Taylor series of f (centered) at a is the series k=0 f k!(a) (x−a)k .
If a = 0, a Taylor series is a power series (as defined in this chapter), and for other
a this is also a power series, but of a more general kind.
Remark 9.7.2. Let f : A → C have derivatives of all orders at a. We shift the domain
and the function as follows: Let B = {x − a : x ∈ A}, and let g : B → C be defined by
P
g(x) = f (x + a). By straightforward calculus, k ak (x − a)k is a Taylor series for f at a
P
if and only if k ak xk is a Taylor series for g at 0. Thus any analysis of Taylor series can
by a shift be transformed into a Taylor series that is a power series.
Theorems 6.5.5 and 6.5.6 say that some Taylor series are convergent power series at
each x near 0 and that they converge to the value of the original function. We analyze one
such example below, and a few examples are left for the exercises. One of the Taylor series
in the exercises does not converge to its function at any point other than at a.
Example 9.7.3. Let f (x) = ex , where the domain of f is R. It is easy to compute the
Taylor series for f :
X∞
xk
.
k!
k=0
By the ratio test or the root test, this series converges for all x ∈ C, not only for x ∈ R.
(More on this series is in Sections 9.8 and 9.9, where we learn more about exponentiation
by complex numbers.) Let x ∈ R. By Theorem 6.5.5, for every positive integer n there
exists dn between 0 and x such that
n
X
x xk edn
e − = xn+1 .
k! (n + 1)!
k=0
298 Chapter 9: Infinite series and power series
Thus
n
X k e|x|
x x edn n+1
e − = x ≤ x n+1 .
k! (n + 1)! (n + 1)!
k=0
n o
e|x|
The sequence (n+1)! xn+1 converges to 0 by the ratio test for sequences. This proves
that for each x ∈ R, the Taylor polynomials for ex approximate ex arbitrarily closely, and
that the Taylor series at each x equals ex :
∞
X
x xk
e = .
k!
k=0
In practice, the justification above is precisely how one (a human or a computer) com-
putes values ex to arbitrary precision. For example, to compute e0.1 to within 0.0001,
– following the machinery above – we take M = 1 > 0.1, and the smallest integer N
P16 0.1k
for which 21N ≤ 0.0001 22M −1M(3M
!
)M
is 16. Thus to within 0.0001, e0.1 is k=0 k! =
21021144462931669584965107651 ∼ −0.1
19020718080000000000000000000 = 1.10517091807565. To compute e , the same N works
P 16 (−0.1) k
7011749326061779176954720883 ∼
for desired precision, giving e−0.1 to be k=0 k! = 7749181440000000000000000000 =
π
0.90483741803596. To compute e to within 0.0001, we need bigger M , say M = 4,
P31 k
and then N = 31, giving eπ to be k=0 πk! = 23.1406926327793 ± 0.0001.
Example 9.7.4. Let f (x) = ln(x + 1), where the domain of f is (−1, ∞). It is straight-
forward to compute the Taylor series for f centered at 0:
∞
X (−1)k−1 xk
.
k
k=1
By the Ratio test for series, Theorem 9.2.4, the radius of convergence for this series is 1.
It is worth noting that the domain of the function f is all real numbers strictly bigger
than −1, whereas the computed Taylor series converges at all complex numbers in B(0, 1)
and diverges at all complex (including real) numbers whose absolute value is strictly bigger
than 1. By Example 9.1.7, the series diverges at x = −1, and by Theorem 9.2.6, it converges
at x = 1. You should test and invoke Theorem 6.5.5 to show that for all x ∈ (−1, 1),
P∞ k−1 k
ln(x + 1) = k=1 (−1) k x .
Incidentally, since ln(x + 1) is continuous on its domain and since its Taylor series
converges at x = 1 by the Alternating series test (Theorem 9.2.6), it follows from Theo-
rem 9.6.2 that
X∞
(−1)k−1
= ln 2.
k
k=1
With the help of Taylor series we can similarly get finite-term expressions for other
infinite sums. Below is another, harder example, and the reader may wish to skip it.
Section 9.7: Taylor series 299
√
Example 9.7.5. Let f (x) = 1 − x. The domain of f is the interval (−∞, 1]. On the
sub-interval (−∞, 1) the function has derivatives of all orders:
1 1 1 1 1 3
f ′ (x) = − (1 − x)−1/2 , f ′′ (x) = − · (1 − x)−3/2 , f ′′′ (x) = − · · (1 − x)−5/2 , . . . ,
2 2 2 2 2 2
1 1 3 2n − 3
f (n) (x) = − · · · · · · · (1 − x)−(2n−1)/2.
2 2 2 2
Thus the Taylor series for f centered at 0 is
∞
X 1 · 3 · 5 · · · (2k − 3)
1
1− x− k
xk .
2 k!2
k=2
For large n, the quotient of the (n + 1)st coefficient divided by the nth coefficient equals
2n−1
2(n+1) , whose limsup equals 1. Thus by the Ratio test for power series (Theorem 9.3.9),
the Taylor series converges absolutely on B(0, 1), and in particular it converges absolutely
on (−1, 1). Furthermore, the quotient 2(n+1)2n−1
= 2(n+1)−3 4/3
2(n+1) above is at most 1 − n for all
n ≥ 4. Thus by Raabe’s test (Exercise 9.2.17), this Taylor series converges at x = 1, and
so it converges absolutely on [−1, 1]. But what does it converge to? Consider x ∈ (−1, 1).
We use the integral form of the Taylor’s remainder theorem (Exercise 7.4.9): the difference
between Tn,f,0 (x) − f (x) is
Z x Z x n
(x − t)n 1 1 3 2n − 1 −(2n+1)/2 x−t 1 · 3 · 5 · · · (2n − 1)
· · · ··· (1 − t) dt = √ dt.
0 n! 2 2 2 2 0 1−t n!2n+1 1 − t
As the integrand goes to 0 with n, and as |x| < 1, the integral goes to 0 with n, so that
the Taylor series converges to f on (−1, 1). (Incidentally, an application of Exercise 9.6.2
shows that the Taylor series is continuous on [−1, 1], and as f is also continuous there,
necessarily the Taylor series converges to f on [−1, 1].)
9.7.2. Let f (x) = ln(x + 1), where the domain of f is (−1, ∞) as in Example 9.7.4.
Compute f (0.001) from one of its Taylor polynomials to four digits of precision. Show all
work, and in particular invoke Theorem 6.5.5.
9.7.3. Let f : R → R be given by
2
f (x) = e−1/x , if x 6= 0;
0, if x = 0
as in Exercise 7.6.16.
i) Compute and justify the Taylor series for f centered at 0.
ii) Compute the radius of convergence for the series.
iii) Is it possible to compute f (0.001) from this series? Discuss.
*9.7.4. In introductory analysis courses we typically handle long, even infinite, sums but
not so much long products. In Example 9.7.5 we proved that the Taylor series for f (x) =
√
1 − x centered at 0 converges on [−1, 1]. This in particular means that the sequence
1·3·5···(2n−3)
{ n!2n }n converges to 0. Can you prove this directly without involving Raabe’s
test?
Remarks 9.8.1.
P∞ k−1 P∞ xk−1 P∞ k
(1) E ′ (x) = k=1 kxk! = k=1 (k−1)! = k=0 xk! = E(x).
(2) E(0) = 1.
(3) Let a ∈ C. Define g : C → C by g(x) = E(x + a) · E(−x). Then g is a product of
two differentiable functions, hence differentiable, and
g ′ (x) = E ′ (x + a) · E(−x) + E(x + a) · E ′ (−x) · (−1)
= E(x + a) · E(−x) − E(x + a) · E(−x)
= 0,
so that g is a constant function. This constant has to equal E(a) · E(−0) = E(a).
We conclude that for all a and x in C, E(x + a)E(−x) = E(a).
(4) Thus for all c, d ∈ C, E(c + d) = E(c)E(d) (set c = x + a, d = −x).
Section 9.8: A special function 301
(5) By induction on n and by the previous part, it follows that for all positive integers
n and all a ∈ C, E(na) = (E(a))n .
(6) Part (3) applied to a = 0 gives that 1 = E(0) = E(x)E(−x). We conclude that
1
E(x) is never 0, and that E(−x) = E(x) .
n
(7) By parts (5) and (6), E(na) = (E(a)) for all integers n and all a ∈ C.
(8) Let a, b ∈ R. By part (4), E(a + bi) = E(a) · E(bi). Thus to understand the
function E : C → C, it suffices to understand E restricted to real numbers and E
restricted to i times real numbers.
Theorem 9.8.2. For all x ∈ R, E(x) = ln−1 (x) = ex , the exponential function from Sec-
tion 7.6. In particular, E(1) equals the Euler’s constant e.
E(x)
Proof. Define f : R → R by f (x) = ex . Then f is differentiable and
E ′ (x)ex − E(x)(ex )′ E(x)ex − E(x)ex
f ′ (x) = = = 0.
(ex )2 (ex )2
Thus f is a constant function, so that for all x ∈ R, f (x) = f (0) = E(0) 1
e0 = 1 = 1. Thus
E(x) = ex . By Theorem 7.6.7, this is the same as ln−1 (x). In particular, E(1) = e1 = e.
The following is now immediate:
In this section we restrict E from the previous section to the imaginary axis. Thus
we look at E(ix) for x being real. Note that
∞
X (ix)k
E(ix) =
k!
k=0
ix (ix)2 (ix)3 (ix)4 (ix)5 (ix)6 (ix)7 (ix)8 (ix)9
=1+ + + + + + + + + + ···
1! 2! 3! 4! 5! 6! 7! 8! 9!
x x2 x3 x4 x5 x6 x7 x8 x9
=1+i − −i + +i − −i + + i + ···.
1! 2! 3! 4! 5! 6! 7! 8! 9!
We define two new functions (their names may be purely coincidental, but pronounce them
for the time being as “cause” and “sin”):
x2 x4 x6 x8
COS (x) = Re E(ix) = 1 − + − + + ···,
2! 4! 6! 8!
x x3 x5 x7 x9
SIN (x) = Im E(ix) = − + − + + ···.
1! 3! 5! 7! 9!
Since E(ix) converges for all x, so do its real and imaginary parts. This means that COS
and SIN are defined for all x (even for complex x; but in this section all x are real!).
Section 9.9: A special function, continued 303
Remarks 9.9.1.
(1) E(ix) = COS (x) + i SIN (x). This writing is not a random rewriting of the sum-
mands in E(ix), but it is the sum of the real and of the imaginary parts.
(2) COS (0) = Re E(i · 0) = Re 1 = 1, SIN (0) = Im E(i · 0) = Im 1 = 0.
(3) By the powers appearing in the power series for the two functions, for all x ∈ R,
(COS (x))2 + (SIN (x))2 = (COS (x) + i SIN (x)) · (COS (x) − i SIN (x))
= E(ix)E(−ix)
= E(ix − ix)
= E(0)
= 1.
(E(ix))′ = E ′ (ix) i = E(ix) i = (COS (x) + i SIN (x)) i = i COS (x) − SIN (x).
It follows by Theorem 6.2.6 that
Proof. The function t − SIN (t) is differentiable and its derivative is 1 − COS (t), which is
always non-negative. Thus t − SIN (t) is non-decreasing for all real t, so that for all t ≥ 0,
2
t −SIN (t) ≥ 0 −SIN (0) = 0. Hence the function t2 +COS (t) has a non-negative derivative
2 2
on [0, ∞), so that t2 + COS (t) is non-decreasing on [0, ∞). Thus for all t ≥ 0, t2 + COS (t)
2 3
≥ 02 +COS (0) = 1. It follows that the function t6 −t +SIN (t) is non-decreasing on [0, ∞).
3
[How long will we keep going like this???] Thus for all t ≥ 0, t6 − t + SIN (t)
3
t4 2
≥ 06 − 0 + SIN (0) = 0. Thus 24 − t2 − COS (t) is non-decreasing on [0, ∞), so that for all
t4 2
04 2
t ≥ 0, 24 − t2 − COS (t) ≥ 24 − 02 − COS (0) = −1. We conclude that for all t ≥ 0,
t4 t2
COS (t) ≤ − + 1.
24 2
√ √ 4 √ 2
In particular, COS ( 3) ≤ 243 − 23 + 1 = − 18 < 0. We also know that COS (0) =
1 > 0. Since COS is differentiable, it is continuous, so by the Intermediate value theorem
√
(Theorem 5.3.1) there exists s ∈ (0, 3) such that COS (s) = 0. Since (COS (s))2 +
3
(SIN (s))2 = 1, we have that SIN (s) = ±1. We proved that for all t ≥ 0, t6 −t+SIN (t) ≥ 0,
3 √
so that SIN (t) ≥ t − t6 = 6t (6 − t2 ). If t ∈ (0, 3], then SIN (t) ≥ 6t (6 − t2 ) > 0. Hence
SIN (s) = 1. This proves that E(is) = i.
Remark 9.9.3. The proof above establishes the following properties for all t ≥ 0:
t2 t2 t4
COS (t) ≤ 1, COS (t) ≥ 1 − , COS (t) ≤ 1 − + ,
2 2 24
t3
SIN (t) ≤ t, SIN (t) ≥ t − .
6
The pattern may be obvious at this point: Taylor polynomials of COS and SIN alternate
between over- and under-estimating. The limits of the Taylor polynomials, namely the
Taylor series, are precisely the given power series of COS and SIN .
Finally, we connect COS and SIN to trigonometric functions. First we need to
specify the trigonometric functions: For any real number t,
cos(t) + i sin(t)
is the unique complex number on the unit circle centered at the origin that is on the half-
ray from the origin at angle t radians measured counterclockwise from the positive x-axis.
In terms of ratio geometry (see page 21), this says that in a right triangle with one angle t
radians, cos(t) is the ratio of the length of the adjacent edge divided by the length of the
hypotenuse, and sin(t) is the ratio of the length of the opposite edge divided by the length
of the hypotenuse. Geometrically it is clear, and we do assume this fact, that cos and sin
Section 9.9: A special function, continued 305
are continuous functions. We will use continuity in proving that the two functions are also
differentiable.
Theorem 9.9.4. The trigonometric functions cos and sin are differentiable. Furthermore,
COS and SIN are the functions cos and sin, s = π/2, and for any real number x, E(ix)
is the point on the unit circle centered at 0 at angle x radians measured counterclockwise
from the positive real axis.
Proof. We know that E(ix) is a point on the unit circle with coordinates (COS (x), SIN (x)).
What we do not yet know is whether the angle of this point counterclockwise from the
positive real axis equals x radians.
Let s be as in Theorem 9.9.2. The angle of E(is) = 0 + i · 1 = i measured in radians
counterclockwise from the positive real axis is π/2. The proof of Theorem 9.9.2 showed that
for t ∈ (0, 1], the imaginary part SIN (st) of E(ist) is positive, and the real part COS (st)
of E(ist) is strictly decreasing from 1 to 0. Thus E(ist) is in the first quadrant.
Let n be an integer strictly greater than 1. We will be analyzing s of the form 1/n.
Let α be the angle of E(is/n) counterclockwise from the positive real axis. I claim that
π
α = 2n . For every integer j, (E(ijs/n)) = E(is)j , so by Theorem 3.4.2, (E(ijs/n)) has
angle j · α counterclockwise from the positive real axis. By the previous paragraph, for
j = 1, . . . , n, since j/n ∈ (0, 1], E(ijs/n)) is in the first quadrant. Thus α, 2α, 3α, . . . nα
are in (0, π/2]. When j = n, the angle nα coincides with π/2. The angle π2 coincides with
π π
2 + 2πk for all integers k, so that α = 2n (1 + 4k) for some integer k. We know that for all
j = 1, . . . , n,
π π
0 < jα = j (1 + 4k) ≤ .
2n 2
The first inequality says that k is not negative, and the second one says that k is not
π
positive. Thus k = 0 and α = 2n .
For all positive integers n and all integers j, by Theorem 3.4.2, the angle of
E(isj/n) = (E(is/n))j is jα = π2 · nj . Since j and n are arbitrary integers with n ≥ 1, this
says that for all rational numbers r,
π π
COS (sr) + i SIN (sr) = E(isr) = cos r + i sin r .
2 2
Now let x be any real number. Then x is a limit point of Q, and since COS and cos
are continuous, by comparing the real parts above we get that
π π
COS (sx) = lim COS (sr) = lim cos r = cos x .
r∈Q,r→x r∈Q,r→x 2 2
Similarly, SIN (sx) = sin π2 x . In other words, for all x ∈ R,
2s 2s
cos(x) = COS x , sin(x) = SIN x .
π π
306 Chapter 9: Infinite series and power series
Since COS and SIN are differentiable, these equalities and the chain rule say that cos and
sin are differentiable as well and that
′ 2s 2s 2s ′ 2s 2s 2s
cos (t) = − SIN t = − sin(t), sin (t) = COS t = cos(t).
π π π π π π
By geometry (see Exercise 1.1.17), for small positive real x, 0 < cos(x) < sinx x < cos1 x .
Since cos is differentiable, it is continuous. Since cos(0) = COS (0) = 1, by the Squeeze
theorem (Theorem 4.3.11), limx→0+ sinx x = 1. Hence
2s 2s sin x − sin 0 sin x
= cos(0) = sin′ (0) = lim = lim+ = 1,
π π x→0 x x→0 x
whence s = π/2.
Theorem 9.9.5. Every complex number x can be written in the form rE(iθ), where
r = |x| is the length and θ the angle of x counterclockwise from the positive real axis.
Proof. Let r = |x|. Then x lies on the circle centered at 0 and of radius x. If r = 0, then
x = 0, and the angle is irrelevant. If instead r is non-zero, it is necessarily positive, and
x/r is a complex number of length |x|/r = 1. By Theorem 3.4.1, x/r and x have the same
angle. Let θ be that angle. Then x/r = E(iθ), so that x = rE(iθ).
Notation 9.9.6. It is common to write E(x) = ex for any complex number x. We have
seen that equality does hold if x is real, but we adopt this notation also for other numbers.
With this, if x, y ∈ R, then
ex+iy = ex eiy ,
and ex is the length and y is the angle of ex+iy counterclockwise from the positive x axis.
9.9.5. Express the following complex numbers in the form ex+iy : i, −i, 1, −1, e, 2 + 2i.
Can 0 be expressed in this way? Justify.
9.9.6. Express (3 + 4i)5 in the form ea+bi for some a, b ∈ R. (Do not give numeric
approximations of a and b.)
9.9.7. Prove that for any integer m, the sequence {E(2πimn)}n converges. Prove that
√
the sequence {E( 2πin)}n does not converge. Determine all real numbers α for which the
sequence {E(inα)}n converges. Prove your conclusion.
9.9.8. For which real numbers α and β does the sequence {E(n(α + iβ))}n converge?
Prove your conclusion.
9.9.9. Determine a power series whose derivative is sin(x2 ). Repeat for cos(x2 ). (It turns
out that there are no simpler, finite-term antiderivatives of the functions sin(x2 ), cos(x2 ).)
9.9.10. (This is from the Reviews section edited by P. J. Campbell, page 159 in Mathe-
matics Magazine 91 (2018).) Let P be a polynomial function and m a non-zero constant.
′ ′′
P ′′′
i) Prove that P + Pm + P
m2 + m3 + · · · is a polynomial function.
ii) Compute the derivative with respect to x of
e−mx P ′ (x) P ′′ (x) P ′′′ (x)
− P (x) + + + + ··· .
m m m2 m3
Z
iii) Integrate e−mx P (x)dx.
*9.9.11. For the moment pretend that we do not know that COS = cos and SIN = sin.
√
Let f : [0, 1] → R be given by f (x) = 1 − x2 . Then the graph of f is a quarter of the
circle of radius 1 in the first quadrant.
i) Justify that s
Z 1 2
π −2x
= 1+ √ dx.
2 0 2 1 − x2
(Hint: This is an improper integral; use lengths of curves; π is the perimeter of
half the circle of radius 1.)
ii) Compute the improper integral via substitution u = COS (x) and further other
steps. The integral should evaluate to s from Theorem 9.9.2.
9.10 Trigonometry
Definition 9.10.1. For any x, eix is the complex number that is on the unit circle at
angle x radians counterclockwise from the positive horizontal axis.
(1) sin(x) is the imaginary part of eix .
(2) cos(x) is the real part of eix .
sin(x)
(3) tan(x) = cos(x) , cot(x) = cos(x) 1 1
sin(x) , sec(x) = cos(x) , csc(x) = sin(x) .
Remarks 9.10.2. The following follow easily from the previous section:
(1) sin and cos are differentiable and hence continuous functions whose domain is R.
(2) For all x ∈ R, sin(x + 2π) = sin(x) and cos(x + 2π) = cos(x). This is not obvious
from the power series definition of E(ix), but if follows from Theorem 9.9.5.
(3) The functions sin and cos are continuous, i.e., for all a ∈ R, lim sin(x) = sin(a),
x→a
lim cos(x) = cos(a). (In the proof of Theorem 9.9.4 we assumed that cos is
x→a
continuous, but we did not assume that sin is continuous.)
(4) For all a ∈ R in the domain of tan (resp. cot, sec, csc), tan (resp. cot, sec, csc) is
continuous and differentiable at a.
ix −ix
(5) sin(x) = e −e 2i
.
eix +e−ix
(6) cos(x) = 2 .
(7) (sin(x)) + (cos(x))2 = 1. (Recall from Remark 2.4.7 that for trigonometric func-
2
tions we also write this as sin2 (x) + cos2 (x) = 1, but for an arbitrary function f ,
f 2 (x) refers to f (f (x)) rather than for (f (x))2.)
(8) (tan(x))2 + 1 = (sec(x))2 .
(9) (cot(x))2 + 1 = (csc(x))2 .
(10) sin′ (x) = cos(x).
(11) cos′ (x) = − sin(x).
(12) For all x ∈ R, sin(x) = − sin(−x) and cos(x) = cos(−x).
(13) sin and cos take on non-negative values on [0, π/2]. By the previous part, cos takes
on non-negative values on [−π/2, π/2].
(14) sin is increasing on [−π/2, π/2].
(15) sin, when restricted to [−π/2, π/2], has an inverse. The inverse is called arcsin.
The domain of arcsin is [−1, 1].
(16) Geometrically, sin takes on non-negative values on [0, π], so that cos, when re-
stricted to [0, π], has an inverse, called arccos. The domain of arccos is [−1, 1].
(17) Verify the details in the following. The derivative of tan is always non-negative, so
that on (−π/2, π/2), tan is invertible. Its inverse is called arctan, and the domain
of arctan is (−∞, ∞).
Section 9.10: Trigonometry 309
Proof.
1
arcsin′ (x) = ′
sin (arcsin(x))
1
=
cos(arcsin(x))
1
= p (because cos is non-negative on [−π/2, π/2])
(cos(arcsin(x)))2
1
= p
1 − (sin(arcsin(x)))2
1
= √ .
1 − x2
The proof of the second part is similar:
1
arctan′ (x) = ′
tan (arctan(x))
1
=
(sec(arctan(x)))2
1
=
1 + (tan(arctan(x)))2
1
= .
1 + x2
iii)
Z π
0, if j 6= k or jk 6= 0,
cos(kt) cos(jt) dt =
−π π, otherwise.
i) Compute the Fourier series for f (x) = sin(3x). (Hint: Exercise 9.10.8.)
ii) Compute the Fourier series for f (x) = (sin(x))2 . (Hint: Exercises 9.10.6 and
9.10.8.)
iii) Compute a0 , a1 , a2 , b1 , b2 for f (x) = x. (Hint: Exercise 9.10.9.)
9.10.12. (Fourier analysis, II) Let f : [−π, π] → C be a differentiable function (or
possibly not quite differentiable, but that would take us too far). For n ∈ Z define
Rπ
an = −π f (x)einx dx. The Fourier series of f is
∞
X
an e−inx .
n=−∞
Compute the Fourier series in this sense for the functions in the previous exercise.
9.10.13. Use Exercise 9.9.10 to elaborate on the two types of Fourier series (from the
previous two exercises) for any polynomial function.
L’Hôpital’s rule was proved in many versions in Section 6.4. Now that we have all
the necessary facts about trigonometric functions we can show more interesting examples,
including counterexamples if some hypothesis is omitted. All work in this section is in the
exercises.
All work in this section is in the exercises. As the title suggests, these uses are not
covered in a standard first analysis course.
vii) Use the inequality x ≤ (π/2) sin(x) for x ∈ [0, π/2] (see Exercise 9.10.5) to
estimate
Z
π 2 π/2 π2 π2 1
0 ≤ JN ≤ (sin(x))2 (cos(x))2N dx = (IN − IN +1 ) = · IN .
4 0 4 4 2N + 2
viii) Prove that
X∞
1 π2
= .
n=1
n2 6
314 Chapter 9: Infinite series and power series
*9.12.2. (This exercise is used in Exercise 9.12.3.) Use de Moivre’s formula (see Exer-
cise 9.9.4) to prove that for all x ∈ R and all positive integers n,
Xn
n n n n k
cos(nx) + i sin(nx) = (sin(x)) (cot(x) + i) = (sin(x)) i (cot(x))n−k .
k
k=0
9.12.4. Fill in the explanations and any missing steps in the two double improper inte-
grals. (While integrating with respect to x, think of y as a constant, and while integrating
with respect to y, think of x as a constant.)
Z ∞ Z ∞ Z ∞ Z ∞
1 1 1 1
· dx dy = dx dy
0 0 1 + y 1 + x2 y 0 1+y 0 1 + x2 y
Z ∞ Z N !
1 1
= lim dx dy
0 1 + y N →∞ 0 1 + x2 y
Z ∞ √ !
1 arctan( yx) N
= lim √ dy
0 1 + y N →∞ y x=0
Z
π ∞ 1
= √ dy
2 0 y(1 + y)
Z
π ∞ 2u
= du (by substitution y = u2 )
2 0 u(1 + u2 )
π2
= ,
2
Z ∞ Z ∞ Z ∞ Z ∞
1 1 1 1 x2
· dy dx = − dy dx
0 0 1 + y 1 + x2 y 0 0 1 − x2 1 + y 1 + x2 y
Z ∞
1 1
= ln dx
0 1 − x2 x2
Z ∞
ln x
=2 2
dx
0 x −1
Z 1 Z ∞
ln x ln x
=2 2
dx + dx
0 x −1 1 x2 − 1
Z 1 Z 1
ln x ln u
=2 2
dx + 2
du
0 x −1 0 u −1
Z 1
ln x
=4 2
dx. (Stop here.)
0 x −1
2
*9.12.5. (This is from the article D. Ritelli, Another proof of ζ(2) = π6 , American Mathe-
matical Monthly 120 (2013), 642–645.) We proved in Section 9.4 that derivatives and (def-
inite) integrals commute with infinite sums for power series. There are other cases where
integrals commute with infinite sums, but the proofs in greater generality are harder. Ac-
R 1 ln x R1 P∞ 2k P∞ R 1
cept that 0 − 1−x 2 dx = 0
(− ln x) k=0 x dx = 2k
k=0 0 (− ln x)x dx. Also accept that
the two integrals in Exercise 9.12.4 are the same (order of integration matters sometimes).
P∞ 2
Use Exercises 7.6.7 and 9.2.1 to prove that k=1 k12 = π6 .
Appendi
es
Appendix A. Advice on writing mathematics
Process is important
Perhaps the final answer to the question is 42. It is not sufficient to simply write “42”,
“The answer is 42,” or similar, without the process that led to that answer. While it is
extremely beneficial to have the intuition, the smarts, the mental calculating and reason-
ing capacity, the inspiration, or what-not, to conclude “42”, a huge part of learning and
understanding is to be able to explain clearly the reasoning that lead to your answer.
I encourage you to discuss the homework with others before, during or after com-
pleting it: the explanations back-and-forth will make you a better thinker and expositor.
Write your solutions in your own words on your own, and for full disclosure write
the names of all of your collaborators on the work that you turn in for credit. I do not
take points off, but you should practice full honesty.
Sometimes you may want to consult a book or the internet. Again, on the work that
you turn in disclose the help that you got from outside sources.
Keep in mind that the more you have to consult outside sources, the more fragile
your stand-alone knowledge is, the less well you understand the material, and the less likely
you are to be able to do satisfactory work on closed-book or limited-time projects.
Do not divide by 0
Never write “1/0”, “0/0”, “02 /0”, “∞/0”. (Erase from your mind that you ever saw
this in print! It cannot exist.)
320 Appendix A: Advice on writing mathematics
Sometimes division by zero creeps in in subtler ways. For example, to find solutions
2
to x = 3x, it is wrong to simply cancel the x on both sides to get only one solution x = 3.
Yes, x = 3 is one of the solutions, but x = 0 is another one. Cancellation of x in x2 = 3x
amounts to dividing by 0 in case the solution is x = 0.
Never plug numbers into a function that are not in the domain of the function
By design, the only numbers you can plug into a function are those that are in the
domain of the function. What else is there to say?
I will say more, by way of examples. Never plug 0 into the function f (x) = x1 (see
previous admonition). Even never plug 0 into the function f (x) = xx : the latter function
is undefined at x = 0 and is constant 1 at all other x.
√
Never plug −1 into or into ln.
3x − 4, if x > 3;
Do not plug x = 0 or x = 1.12 into f that is defined by f (x) =
2x + 1, if x < −1.
Write parentheses
·− is not a recognized binary operator. Do not write “5·−2”; instead write “5·(−2)”.
lim 4 − 3x = 4 − 3x, whereas lim (4 − 3x) = 7.
x→−1 x→−1
R R
“ 4 − 3x dx” is terrible grammar; instead write “ (4 − 3x) dx”.
Appendix A: Advice on writing mathematics 321
ON THE LEFT!
WRITE AS
DO NOT
1
X 1(1 + 1)(2 · 1 + 1)
k2 =
6
k=1
1·2·3
12 =
6
1=1
The reasoning above is wrong-headed because in the first line you are asserting the equality
that you are expected to prove, and in subsequent lines you are simply repeating your
assumptions more succinctly. If you add question marks over the three equal sums and a
check mark on the last line, then you are at least acknowledging that you are not yet sure
of the equality. However, even writing with question marks over equal signs is inelegant
and long-winded. That kind of writing is what we do on scratch paper to get our bearings
on how to tackle the problem. But a cleaned-up version of the proof would be better as
follows:
X 1
1·2·3 1(1 + 1)(2 · 1 + 1)
k 2 = 12 = 1 = = .
6 6
k=1
Do you see how this is shorter and proves succinctly the desired equality by transitivity of
equality, with each step on the way sure-footed?
Another reason why the three-line reasoning above is bad is because it can lead to
the following nonsense:
?
1=0
?
add 1 to both sides: 2=1
? √
multiply both sides by 0: 0=0
Logic
You should remember the basic truth tables, correct usage of “or” and of implications,
how to justify/prove a statement, and how to negate a statement.
If A implies B and if A is true, we may conclude B.
If A implies B and if B is false, we may conclude that A is false.
If A implies B and if A is false, we may not conclude anything.
If A implies B and if B is true, we may not conclude anything.
Truth table:
Statement Negation
not P P
For all x of a specified type, prop- There exists x of the specified type such that
erty P holds for x. P is false for x.
There exists x of a specified type For all x of the specified type, P is false for x.
such that property P holds for x.
324 Appendix B: What you should never forget
P ⇔ Q. Prove P ⇒ Q. Prove Q ⇒ P .
For all x of a specified type, prop- Let x be arbitrary of the specified type. Prove
erty P holds for x. that property P holds for x.
(Possibly break up into a few subcases.)
Mathematical induction
The goal is to prove a property for all integers n ≥ n0 . First prove the base case,
namely that the property holds for n0 . For the inductive step, assume that for some
n − 1 ≥ n0 , the property holds for n − 1 (alternatively, for n0 , n0 + 1, . . . , n − 1), and then
prove the property for n.
II: Let f : [a, b] → R be continuous. Then for all x ∈ [a, b], f is integrable over [a, x], and
Rx
the function g : [a, b] → R given by g(x) = a f is differentiable on (a, x) with
Z x
d
f = f (x).
dx a
Geometric series
P∞ k r
r diverges if |r| ≥ 1 and converges to if |r| < 1.
Pk=1
∞ k
1−r
1
k=0 r diverges if |r| ≥ 1 and converges to 1−r
if |r| < 1.
Pn n+1
For all r ∈ C \ {1}, k=0 r k = r r−1−1 .
Never divide by 0
It bears repeating. Similarly do not plug 0 or negative numbers into ln, do not plug
negative numbers into the square root function, do not ascribe a function (or a person) a
task that makes no sense.
Index
SYMBOLS N 49
◦ abstract binary operation 73 ± 97
n
Y
C 49, 100 Qn
n
k=1 , product 36, 76
k , n choose k 45 k=1
Ac complement of A 52 Q 49
\ complement of sets 52 // end of proof 18
◦ composition of functions 66 QED end of proof 18
cos 23 end of proof 18
e (identity element for binary operation) 74 end of proof 18
e: Euler’s constant 222 R 49
{} empty set 49 R≥0 49
∅ empty set 49 Range: range of a function 64
√
∃ there exists 26
n
161, 162
∀ for all 26 sin 23, 25
f n function composed with itself 66 ⊆ subset of a set 50
n
X
Pn
sinn power of trigonometric function (not
k=1 , 34, 76
composition) 66 k=1
sup: supremum 83, 267
> (strictly) greater than 82
∪ union 51
≥ greater than or equal to 82
U (f, P ): upper sum 195
e (identity element for binary operation) 74
Z 49
id (identity function) 65
00 35
⇔ if and only if 17
⇒ implies 16
A
∈ in a set 48
Abel’s lemma 296
inf: infimum 83
absolute value 20, 97
∩ intersection 51
absolutely convergent 279
< (strictly) smaller than 82, 84, 86
advice on writing proofs 319
≤ less than or equal to 82
alternating test for series 278
lim of sequence 236
and (logical) 15
lim inf 267
antecedent 16
lim sup 267
antiderivative 212, 213
ln: natural logarithm 219
arcsin, arccos, arctan 308
¬ logical not 14
area (signed or usual) 193
∨ logical or 15
associative 75, 80
∧ logical and 15
L(f, P ): lower sum 195
328 Index
exponentiation 162 E
image of interval 158 e vs. π 224
power series 297 Eantegral 203
properties 149 element 48
suounitnoc 152 empty product 36, 76
ticonnuous 152 empty set 49
uniformly continuous 165, 184 empty sum 36
convergent sequence 236 enumeration of Q+ 233
convergent epsilon-delta definition 120, 128
absolutely 279 epsilon-N definition 146
convexity 183 equivalence (logical) 17
cos: trigonometric function 23, 304, 305 equivalence class 60
COS 302 equivalence relation 60
Euclidean algorithm 39
D Euclid 33
Darboux’s theorem 181 Euler’s constant (e) 222, 301
de Moivre’s formula 306, 314 even function, its integral 70
definition: beware 17 even integer 25
degree (of polynomial) 35, 68 definition 18
derivative 168 exclusive or (xor) 15
and monotonicity 182 existential quantifier ∃ 25, 26
complex-valued functions 176 exponential function 221
inverse 177 continuity 165
Leibniz’s notation 168 without derivatives and integrals 164
Newton’s notation 168 exponentiation 161, 162
power rule for rational exponents 178 by real exponents 221
properties 173, 174, 175, 176, 177, 178 continuity 162
differentiable 168 exponent 161, 221
hence continuous 172 Extreme value theorem 154
Dirichlet’s test 282
disjunction 15 F
distributivity 80 Ferguson, S. J. 156
division 80 Fibonacci numbers 42, 232
do not divide by zero 81 field 80, 101
domain (of a function) 64 axioms 80
implicit 66 unusual 82
fixed point theorem 159
floor function 69
330 Index
M ordered set 86
Matsuoka, Y. 313 field 86
mean value theorem for integrals 216 order 82
mean value theorem 182
member (of a set) 48 P
Meštrović, R. 33 p-test for series 280
modulo n 61 Papadimitriou, I. 314
modus ponens 19 partial sum (of a sequence) 272, 273
monotone function 91 partition (of an interval) 195
and derivative 182 refinement 196
monotone sequence 257, 260 partition
multiplication table 75 sub-interval 195
Pascal’s triangle 45
N π vs. e 224
π2
N 49 6
313, 315
natural logarithm, ln 219 pigeonhole principle 71
negation 14, 32 polar coordinates 108
chart 32, 323 polynomial function 35, 68, 69, 103, 137,
negative 85 188, 189, 250, 255
Nelson, E. 152 degree 35, 68
non-negative 85 Taylor polynomial 188
non-positive 85 popcorn function 152
not: see negation positive 85
notation power function 91, 92, 93, 137, 161, 250,
integral 212, 214 255
set vs. sequence 231 generalized 162, 221
number of elements in Q+ 73 power notation 35, 66, 76
00 35
O for functions 66, 79
odd function, its integral 70 on sets with binary operation 76
odd integer 25 special in trigonometry 66
definition 18 power rule for derivatives 174
one-to-one 67 power rule
onto 67 generalized 178
open ball 113 power series—generalized 288
open set 113 power series 283, 288
or (logical) 15 continuous 297
ordered pair 57 derivative 290
Index 333
inverse 296 R
numerical evaluation 291 R 49
product of two 293 Archimedean property 94
radius of convergence 285 Raabe’s test 283
ratio test 286 radical function 91, 161
root test 284 radius of convergence (of power series) 285
Taylor series 297 range (of a function) 64
uniqueness 290 ratio test
prime 13, 29, 31, 33 for power series 286
definition 17, 18 for sequences 258, 268
principle of mathematical induction 37 for series 277
Qn
product k=1 36, 76 rational function 103
product (not composition) of functions 92 rational numbers between real numbers 95
product rule for derivatives 173 rational number 21
product rule for higher derivatives 191 real axis 101
proof 18, 29 real part of a complex number 101, 102
by contradiction 21 recursive 232
by induction 37 refinement (of a partition) 196
deductive reasoning 18 relation on sets 59
how-to-prove chart 30, 324 equivalence 60
pigeonhole principle 71 reflexive 60
√
2 is not rational 21 symmetric 60
proper subset 50 transitive 60
Pythagoras 21 restriction of a function 149
Pólya, G. 233 reverse triangle inequality 98, 105
Ritelli, D. 315
Q Rolle’s theorem 181
Q 49 root of a number 161, 162
QED (quod erat demonstrandum) 18 root test for power series 284
quadratic formula 23, 68 root test for series 278
quantifier
existential 25 S
universal 25 Sagher, Y. 73
quartering subsets 117 second derivative test 191
quotient rule for derivatives 173 sequence vs. set notation 231
quotient rule for higher derivatives 191 sequence 231
arithmetic on sequences 234
bounded (below/above) 257
334 Index
U
uniform continuity 165
uniformly continuity 184
universal quantifier ∀ 25, 26
universal set 52
unusual field 82
upper bound of set 83
upper integral 197
upper sum (integrals) 195
V
vacuously true 27
Velleman, D. 44, 313
Venn diagram 54