MAT313
Real Analysis Notes
(2024)
Dr Andrew L. Pinchuck
Department of Mathematics
Rhodes University
Contents
1
Logic and Methods of Proof
1.1 Logic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.2 Tautologies, Contradictions and Equivalences . . . . . . . . . . . . . . . .
1.3 Open Sentences and Quantifiers . . . . . . . . . . . . . . . . . . . . . . . .
1.4 Methods of Proof in Mathematics . . . . . . . . . . . . . . . . . . . . . . .
1.4.1 Direct Method . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1.4.2 Contrapositive Method . . . . . . . . . . . . . . . . . . . . . . . .
1.4.3 Contradiction Method . . . . . . . . . . . . . . . . . . . . . . . . .
3
3
11
14
18
18
19
19
2 Sets and Functions
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Operations on Sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Indexed families of sets . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5 Cardinality: the size of a set . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5.1 The Cantor-Schröder-Bernstein Theorem . . . . . . . . . . . . . .
21
21
24
28
30
33
40
3 Real Numbers and their Properties
3.1 Real Numbers as a Complete Ordered Field . . . . . . . . . . . . . . . . .
3.1.1 The Archimedean Property of the Real Numbers . . . . . . . . . .
3.2 Topology of the Real Numbers . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Compactness . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
43
43
47
49
56
4 Sequences of Real Numbers
4.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Algebra of Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.1 Monotone Sequences . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.2 Subsequences . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.3 Cauchy Sequences . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2.4 Limit Superior and Limit Inferior . . . . . . . . . . . . . . . . . . .
4.2.5 Sequential Characterization of Closed Sets . . . . . . . . . . . . . .
4.2.6 Sequential Compactness . . . . . . . . . . . . . . . . . . . . . . . .
61
61
71
73
77
78
82
85
86
i
MAT313
Real Analysis
5 Limits and Continuity
87
5.1 Limits of Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.1.1 Algebra of Limits . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
5.2 Continuous Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.2.1 Uniform Continuity . . . . . . . . . . . . . . . . . . . . . . . . . . 101
5.2.2 Continuous Functions and Compact Sets . . . . . . . . . . . . . . . 105
6 Riemann integration
109
6.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.2 Basic definitions and theorems . . . . . . . . . . . . . . . . . . . . . . . . 109
6.3 Fundamental theorem of calculus . . . . . . . . . . . . . . . . . . . . . . . 119
7 Introduction to Metric Spaces
123
7.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
7.2 Open Sets, Closed Sets, and Bounded Sets . . . . . . . . . . . . . . . . . . 128
7.3 Convergence of Sequences in Metric Spaces . . . . . . . . . . . . . . . . . 133
7.3.1 Sequential Characterization of closed sets . . . . . . . . . . . . . . 134
7.3.2 Completeness in Metric Spaces . . . . . . . . . . . . . . . . . . . . 134
7.4 Compactness in Metric Spaces . . . . . . . . . . . . . . . . . . . . . . . . 135
7.4.1 Sequential Compactness . . . . . . . . . . . . . . . . . . . . . . . . 137
7.5 Equivalent Metrics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
ii
Chapter 1
Logic and Methods of Proof
1.1 Logic
In this course you will be expected to read, understand and construct proofs. The
purpose of these notes is to teach you the language of Mathematics. Once you have
understood the language of Mathematics, you will be able to communicate your ideas in
a clear, coherent and comprehensible manner.
Definition 1.1.1 A proposition (or statement) is a sentence that is either true or
false (not both).
Examples 1.1.2
1. South Africa was beaten by New Zealand in the 2003 cricket world cup.
2. February 17, 2003 was on a Tuesday.
3. 3 + 6 = 11.
√
4. 2 is irrational.
Examples 1.1.3 (Examples of non-propositions).
1. Jonty is handsome.
2. What is the date?
3. This statement is true.
There are two types of propositions: atomic and compound propositions.
• An atomic proposition is a proposition that cannot be divided into smaller propositions.
1
MAT313
Real Analysis
• A compound proposition is a proposition that has parts that are propositions.
Compound propositions are built by using connectives.
Examples 1.1.4 (Examples of atomic propositions).
1. John’s leg is broken.
2. Our universe is infinite.
3. 2 is a prime number.
4. There are infinitely many primes.
Examples 1.1.5 (Examples of compound propositions).
1. Jim and Anne went to the movies.
2. 3 ≤ 7.
3. n2 is odd whenever n is an odd integer.
4. If a function is differentiable, then it is continuous.
5. If f ′ > 0, then f is increasing.
6. If f is increasing and f ′ exists, then f ′ > 0.
Let us look at some of the most commonly used connectives:
Name
English name
Symbol
Conjunction
Disjunction
Implication
Biconditional
Negation
and
or
If . . . then
if and only if
not
∧
∨
⇒
⇔
¬
One has to be careful when using everyday English words in Mathematics as they may
not carry the same meaning in Mathematics as they do in everyday non-mathematical
usage. One such word is or. In everyday parlance, the word or means that you have a
choice of one thing or the other but not both - exclusive disjunction. In Mathematics,
on the other hand, the word or stands for an inclusive disjunction, i.e., you have a choice
of one thing or the other or both.
We shall use the capital letters P, Q, R, . . . to denote atomic propositions.
Examples 1.1.6 (Using symbols to represent compound statements).
1. If Lucille has credit for MAT 1E1 and MAT1E2, then she cannot get credit for MAT101.
2
MAT313
Real Analysis
Let P stand for the statement “Lucille has credit for MAT 1E1”, Q stand for the
statement “Lucille has credit for MAT 1E2”, and R stand for the statement “Lucille
can get credit for MAT 101.” Then the above statement can represented symbolically
as (P ∧ Q) ⇒ ¬R.
2. If Lucille has credit for MAM100W or has credit for MAM105H and MAM106H, then
she do MAM200W.
Let P stand for the statement “Lucille has credit for MAM100W”, Q stand for the
statement “Lucille has credit for MAM105H”, R stand for the statement “Lucille has
credit for MAM106H”, and S stand for the statement “Lucille can do MAM200W.”
Then the above statement can represented symbolically as [P ∨ (Q ∧ R)] ⇒ S.
3. Either you pay your rent or I will kick you out of the apartment.
Let P stand for the statement “You pay your rent”, and Q stand for the statement
“I will kick you out of the apartment.” Then the above statement can represented
symbolically as P ∨ Q.
4. Joe will leave home and not come back again.
Let P stand for the statement “Joe will leave home”, and Q stand for the statement
“Joe will come back again.” Then the above statement can represented symbolically
as P ∧ ¬Q.
5. The lights are on if and only if either John or Mary is at home.
Let P stand for the statement “The lights are on”, Q stand for the statement “John
is at home”, and S stand for the statement “Mary is at home.” Then the above
statement can represented symbolically as P ⇔ (Q ∨ S).
A truth table is a convenient device to specify all of the possible truth values of a
given atomic or compound proposition. We use truth tables to determine the truth or
falsity of a compound proposition based on the truth or falsity of its constituent atomic
propositions.
When we evaluate the truth or falsity of a statement, we assign to it one of the labels
T for “true” and F for “false”. We also use 1 for “true” and 0 for “false”.
Let us construct truth tables for the above connectives.
1. Conjunction: Let P and Q be two propositions. The proposition P ∧ Q is called
the conjunction of P and Q. The proposition P ∧ Q is true if and only if both
atomic propositions P and Q are true. In other words, if either or both atomic
propositions P and Q are false, then the conjunction P ∧ Q is false.
3
MAT313
Real Analysis
P
Q
P ∧Q
1
1
0
0
1
0
1
0
1
0
0
0
Examples 1.1.7
√
P: Cape Town is in the Western Cape and 3 is irrational.
√
Q: 5 < 3 and f (x) = |x| is differentiable at x = 0.
R: Harare is the capital of Botswana and f (x) = x2 is continuous on the set of real
numbers.
S: −2 < −10 and 8 is an odd number.
Only P is true; all the others are false.
2. Disjunction: Let P and Q be two propositions. The proposition P ∨ Q is called
the disjunction of P and Q. The proposition P ∨ Q is true if and only if at least
one of the atomic propositions P or Q is true.
P
Q
P ∨Q
1
1
0
0
1
0
1
0
1
1
1
0
It is clear from this truth table that the proposition P ∨ Q will be false only when
both P and Q are false.
Examples 1.1.8
(a) π > 2 or π is an irrational number.
(b) π > 2 or π is a rational number.
(c) π < 2 or π is an irrational number.
(d) π < 2 or π is a rational number.
All these propositions, except (d), are true.
3. Implication: Let P and Q be two propositions. The proposition P ⇒ Q is
referred to as a conditional proposition. It simply means that P implies Q. In the
statement P ⇒ Q, P is called the hypothesis (or antecedent or condition) and Q is
called the conclusion (or consequent).
There are various ways of stating that P implies Q:
4
MAT313
Real Analysis
• If P , then Q.
• Q if P .
• P is sufficient for Q.
• Q is necessary for P .
• P only if Q.
• Q whenever P .
P
Q
P ⇒Q
1
1
0
0
1
0
1
0
1
0
1
1
It is clear from this truth table that the proposition P ⇒ Q will be false only when
P is true and Q is false.
In order to have some appreciation of why the above truth table is reasonable,
consider the following: If you pass MAM200W exam, I will buy you a cell-phone.
Let P : You pass MAM200W exam.
Let Q: I will buy you a cell-phone.
At the end of MAM200W exam, there are various scenarios that may arise.
(a) You have passed MAM200W exam and then I buy you a cell-phone. You will
be happy and feel that I was telling the truth . Therefore P ⇒ Q is true.
(b) You have passed MAM200W exam but I refuse to buy you a cell-phone. You
will feel cheated and lied to. Therefore P ⇒ Q is false.
(c) You have failed MAM200W, but I still buy you a cell-phone. You are unlikely
to question that, are you? We did not cover this contingency in my conditional
statement.
(d) You have failed MAM200W and, consequently I do not buy you a cell-phone.
You will not feel that I have been unfair to you and that I have not kept my
promise.
Examples 1.1.9
(a) If π > 2, then π is an irrational number.
(b) If π > 2, then π is a rational number.
(c) If π < 2, then π is an irrational number.
(d) If π < 2, then π is a rational number.
All these propositions, except (b), are true.
5
MAT313
Real Analysis
Definition 1.1.10 Let P and Q be propositions. The converse of the proposition
P ⇒ Q is the proposition Q ⇒ P .
Examples 1.1.11 (Examples of converse statements).
(a) If it is cold, then the lake is frozen.
Converse: If the lake is frozen, then it is cold.
(b) Johny is happy if he is healthy.
Converse: If Johny happy, then he is healthy.
(c) If it rains, Zinzi does not take a walk.
Converse: If Zinzi does not take a walk, then it rains.
The truth table of a proposition and its converse:
P
Q
P ⇒Q
Q⇒P
1
1
0
0
1
0
1
0
1
0
1
1
1
1
0
1
Note that the truth tables of P ⇒ Q and Q ⇒ P are not the same.
Consider the following conditional proposition and its converse:
√
Proposition: If π > 2, then 3 is rational.
√
Converse: If 3 is rational, then π > 2.
In this example the conditional statement is false whereas its converse is true.
Hence this conditional proposition and its converse are not equivalent.
Consider the following conditional proposition and its converse:
√
Proposition: If π > 2, then 3 is irrational.
√
Converse: If 3 is irrational, then π > 2.
Here both that conditional proposition and its converse are √
true. If, in this example, we let P stand for the proposition “π > 2” and Q for “ 3 is irrational”, then
we have that both P ⇒ Q and Q ⇒ P are true.
4. Biconditional Proposition: Let P and Q be propositions. The proposition
P ⇔ Q is referred to as a biconditional proposition. It simply means that P ⇒ Q
and Q ⇒ P . It is called a “biconditional proposition” because it represents two
conditional propositions.
There are various ways of stating the proposition P ⇔ Q:
6
MAT313
Real Analysis
• P if and only if Q (also written as P iff Q).
• P implies Q and Q implies P .
• P is necessary and sufficient for Q.
• Q is necessary and sufficient for P .
• P is equivalent to Q.
P
Q
P ⇔Q
1
1
0
0
1
0
1
0
1
0
0
1
Note that the statement P ⇔ Q is true precisely in the cases where P and Q are
both true or P and Q are both false.
5. Negation: Let P be a proposition. The proposition ¬P , meaning “not P ”, is
used to denote the negation of P . If P is true, then ¬P is false and vice versa.
P
¬P
1
0
0
1
Let us construct a few more truth tables.
Examples 1.1.12
1. Let P and Q be propositions. Construct a truth table for the proposition (P ∧ Q) ⇒
(P ∨ Q).
Solution:
P
Q
P ∧Q
P ∨Q
P ∧Q⇒P ∨Q
1
1
0
0
1
0
1
0
1
0
0
0
1
1
1
0
1
1
1
1
2. Let P, Q and R be propositions. Construct the truth table for the proposition ¬(P ∧
Q) ∨ R.
7
MAT313
Real Analysis
Solution:
P
Q
R
P ∧Q
¬(P ∧ Q)
¬(P ∧ Q) ∨ R
1
1
1
0
1
0
0
0
1
1
0
1
0
1
0
0
1
0
1
1
0
0
1
0
1
1
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
0
1
1
1
1
1
1
8
MAT313
Real Analysis
1.2 Tautologies, Contradictions and Equivalences
Some compound propositions are always true while others are always false.
Definition 1.2.1 A compound proposition is a tautology if it is always true regardless
of the truth values of its atomic propositions. If, on the other hand, a compound proposition is always false regardless of its atomic propositions, we say that such a proposition
is a contradiction.
Example 1.2.2 The statement P ∨¬P is always true while the statement P ∧¬P is always
false.
P
¬P
P ∨ ¬P
P ∧ ¬P
1
0
0
1
1
1
0
0
Remark 1.2.3 In a truth table, if a proposition is a tautology, then every line in its column
will have 1 as its entry; if a proposition is a contradiction, every line in its column will have
0 as its entry.
Definition 1.2.4 Let P and Q be propositions. The contrapositive of the proposition
P ⇒ Q is the proposition ¬Q ⇒ ¬P .
Examples 1.2.5 (Examples of contrapositive statements).
1. If it is cold, then the lake is frozen.
Contrapositive: If the lake is not frozen, then it is not cold.
2. If Johny is healthy, then he is happy.
Contrapositive: If Johny not happy, then he is not healthy.
3. If it rains, Zinzi does not take a walk.
Contrapositive: If Zinzi takes a walk, then it does not rain.
DO NOT CONFUSE THE CONTRAPOSITIVE AND THE CONVERSE. Here is the
difference:
Converse: The hypothesis of a converse statement is the conclusion of the conditional statement and the conclusion of the converse statement is the hypothesis of
the conditional statement.
9
MAT313
Real Analysis
Contrapositive: The hypothesis of a contrapositive statement is the negation of
conclusion of the conditional statement and the conclusion of the contrapositive
statement is the negation of hypothesis of the conditional statement.
Examples 1.2.6
1. If Bronwyne lives in Cape Town, then she lives of South Africa.
Converse: If Bronwyne lives in South Africa, then she lives in Cape Town.
Contrapositive: If Bronwyne does not live in South Africa, then she does not live
Cape Town.
2. If it is morning, then the sun is in the east.
Converse: If the sun is in the east, then it is morning.
Contrapositive: If the sun is not in the east, then it is not morning.
Definition 1.2.7 Two propositions P and Q are said to be logically equivalent, written as P ≡ Q, if P ⇔ Q is a tautology. Logically equivalent statements have the same
truth values.
Remark 1.2.8 When we write “P ≡ Q”, we basically say that proposition P means the
same as proposition Q.
Here is an important example: P ⇒ Q ≡ ¬Q ⇒ ¬P . That is, the conditional and its
contrapositive say the same thing.
P
Q
P ⇒Q
¬P
¬Q
¬Q ⇒ ¬P
(P ⇒ Q) ⇔ (¬Q ⇒ ¬P )
1
1
0
0
1
0
1
0
1
0
1
1
0
0
1
1
0
1
0
1
1
0
1
1
1
1
1
1
Theorem 1.2.9 Let P, Q and R be propositions. Then
(a) ¬(P ∧ Q) ≡ ¬P ∨ ¬Q
(b) ¬(P ∨ Q) ≡ ¬P ∧ ¬Q
(c) ¬(P ⇒ Q) ≡ P ∧ ¬Q
(d) P ⇒ Q ≡ ¬P ∨ Q
(e) ¬(¬P ) ≡ P
10
MAT313
Real Analysis
(f ) P ∨ (Q ∧ R) ≡ (P ∨ Q) ∧ (P ∨ R)
(g) P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R)
(h) (P ∨ Q) ∨ R ≡ P ∨ (Q ∨ R)
(i) (P ∧ Q) ∧ R ≡ P ∧ (Q ∧ R)
Proof. (a) ¬(P ∧ Q) ≡ ¬P ∨ ¬Q:
P
Q
P ∧Q
¬(P ∧ Q)
¬P
¬Q
¬P ∨ ¬Q
¬(P ∧ Q) ⇔ (¬P ∨ ¬Q)
1
1
0
0
1
0
1
0
1
0
0
0
0
1
1
1
0
0
1
1
0
1
0
1
0
1
1
1
1
1
1
1
(c) ¬(P ⇒ Q) ≡ P ∧ ¬Q
P
Q
P ⇒Q
¬(P ⇒ Q)
¬Q
P ∧ ¬Q
¬(P ⇒ Q) ⇔ (P ∧ ¬Q)
1
1
0
0
1
0
1
0
1
0
1
1
0
1
0
0
0
1
0
1
0
1
0
0
1
1
1
1
Try to convince yourself that all the other statements are valid.
Let us analyze the following argument: If girls are blonde, they are popular with
boys. Ugly girls are unpopular with boys. Intellectual girls are ugly. Therefore blonde
girls are not intellectual.
Is this argument valid?
Solution: Let us use letters and connectives to represent the above statement.
P: Girls are blonde.
Q: Girls are popular with boys.
R: Girls are ugly.
S: Girls are intellectual.
We can represent the above argument as follows:
P ⇒ Q, R ⇒ ¬Q, S ⇒ R.
Since S ⇒ R and R ⇒ ¬Q, we can conclude that S ⇒ ¬Q.
Since P ⇒ Q, we have, by contrapositive, that ¬Q ⇒ ¬P . Hence, S ⇒ ¬P .
Again, by contrapositive, P ⇒ ¬S, which says that “Blonde girls are not intellectual.” Therefore the argument is valid.
11
MAT313
Real Analysis
1.3 Open Sentences and Quantifiers
In mathematics, one frequently comes across sentences that involve a variable. For
example, x2 + 2x − 3 = 0 is one such. The truth or falsity of this statement depends on
the value you assign for the variable x. For example, if x = 1, then this sentence is true,
whereas if x = −1, this sentence is false.
Definition 1.3.1 An open sentence(also called a predicate) is a sentence that contains variables and whose truth or falsity depends on the values assigned for the variables.
We represent an open sentence by a capital letter followed by the variable(s) in parenthesis, e.g., P (x), Q(x, y) etc.
Examples 1.3.2 (Open statements).
1. x + 4 = −9
2. x < y.
3. She is the queen of jazz.
4. It has four legs.
Definition 1.3.3 The collection of all allowable values for the variable in an open sentence is called the universe of discourse.
Let P (x) be an open sentence containing a free variable x. We want to quantify the
number of x for which P (x) is true. In particular, we want to say that P (x) is true for
at least one x or for all x in the universe of discourse.
Universal Quantifier (∀): To say that P (x) is true for all x in the universe of
discourse, we write (∀x)P (x). Think of the symbol ∀ as an inverted A (representing all).
∀ is called the universal quantifier.
all
for all
∀ means
for every
for each
Existential Quantifier (∃): To say that there is (at least) one x in the universe
of discourse for which P (x) is true, we write (∃x)P (x). Think of the symbol ∃ as the
backwards capital E (representing exists). ∃ is called the existential quantifier.
there is
there exists
∃ means
for some
12
MAT313
Real Analysis
Symbolic Statement
Translation
(∀x)P (x)
For all x, P (x) is true
(∀x)(¬P (x))
For all x, P (x) is false
(There is no x for which P (x) is true)
(∃x)P (x)
There exists an x for which P (x) is true
(∃x)(¬P (x))
There is an x for which P (x) is false
(∀x)(∀y)P (x, y)
P (x, y) is true for all pairs (x, y)
(∃x)(∃y)P (x, y)
There is a pair (x, y) for which P (x, y)
is true
(∀x)(∃y)P (x, y)
For each x, there is a y for which P (x, y)
is true
(∃x)(∀y)P (x, y)
There is an x for which P (x, y) is true
for every y
Remark 1.3.4 Quantifying an open sentence makes it a proposition.
Examples 1.3.5 Write the following statements using quantifiers.
(a) For each real number x > 0, x2 + x − 6 = 0.
Solution: (∀x > 0)(x2 + x − 6 = 0).
(b) There is a real number x > 0 such that x2 + x − 6 = 0.
Solution: (∃x > 0)(x2 + x − 6 = 0).
(c) The square of any real number is nonnegative.
Solution: (∀x ∈ R)(x2 ≥ 0).
(d) For each integer x there is an integer y such that x + y = −1.
Solution: (∀x ∈ Z)(∃y ∈ Z)(x + y = −1).
(e) There is an integer x such that for each integer y, x + y = −1.
Solution: (∃x ∈ Z)(∀y ∈ Z)(x + y = −1).
13
MAT313
Real Analysis
Do examples (d) and (e) convey the same message?
The answer is NO. Statement (d) is true: given any integer x, there is an integer, namely,
y = −1 − x, such that x + y = −1. Statement (e) is false.
ORDER DOES MATTERS AFTER ALL!
Remark 1.3.6 In the statement (∀x)(∃y)P (x, y), the choice of y is allowed to depend on
x - the y that works for one x need not work for another x. On the other hand, in the
statement (∃y)(∀x)P (x, y), the y must work for all x, i.e., y is independent of x.
Examples 1.3.7 Translate the following into English.
(a) (∀x ∈ R)(∃y ∈ R)(x = y 2 ).
Solution: Every real number is a perfect square.
(b) (∀x ∈ R)(∃y ∈ R)(x + y = 0).
Solution: Every real number has an additive inverse.
Negation of Quantifiers
Symbolic Statement
Translation
¬[(∀x)P (x)] ≡ (∃x)(¬P (x))
There is an x for which P (x)
is false
¬[(∃x)P (x)] ≡ (∀x)(¬P (x))
P (x) is false for every x
¬[(∀x)(∃y)P (x, y)] ≡ (∃x)(∀y)(¬P (x, y))
There is an x for which P (x, y)
is false for every y
¬[(∃y)(∀x)P (x, y)] ≡ (∀y)(∃x)(¬P (x, y))
For each y there is an x for which
P (x, y) is false
¬[(∀x)(∀y)P (x, y)] ≡ (∃x)(∃y)(¬P (x, y))
There is a pair (x, y) for which
P (x, y) is false
¬[(∃x)(∃y)P (x, y)] ≡ (∀x)(∀y)(¬P (x, y))
P (x, y) is false for every pair (x, y)
Remark 1.3.8 To negate a statement that involves the quantifiers ∀ and ∃, change each
∀ to ∃, change each ∃ to ∀, and negate the open sentence (predicate).
Examples 1.3.9
1. All birds can fly.
14
MAT313
Real Analysis
Negation: There is (at least one) bird that cannot fly.
Exercise 1.3.10 Write the following statements using quantifiers.
(a) A function f has limit L at a point a, denoted by limx→a f (x) = L, if and only if
given any ϵ > 0, there is a δ > 0 such that for each x in the domain of f , we have
that |f (x) − L| < ϵ whenever 0 < |x − a| < δ.
Ans. (limx→a f (x) = L) ⇔ (∀ϵ > 0)(∃δ > 0)(∀x ∈ dom(f ))[0 < |x − a| < δ ⇒
|f (x) − L| < ϵ].
(b) Write down the negation of (a).
Ans. (limx→a f (x) ̸= L) ⇔ (∃ϵ > 0)(∀δ > 0)(∃x ∈ dom(f ))[(0 < |x − a| <
δ) ∧ (|f (x) − L| ≥ ϵ)].
(c) A function f is continuous at x = a if and only if given any ϵ > 0, there is a δ > 0
such that for each x in the domain of f , we have that |f (x) − f (a)| < ϵ whenever
|x − a| < δ.
Ans. (f is continuous at x = a) ⇔ (∀ϵ > 0)(∃δ > 0)(∀x ∈ dom(f ))[|x − a| < δ ⇒
|f (x) − f (a)| < ϵ].
(d) Write down the negation of (c).
(f is discontinuous at x = a) ⇔ (∃ϵ > 0)(∀δ > 0)(∃x ∈ dom(f ))[(|x − a| < δ) ∧
(|f (x) − f (a)| ≥ ϵ)].
Overgeneralization and Counterexample
Overgeneralization occurs when a pattern searcher discovers a pattern among finitely
many cases and then claim that the pattern holds in general (when in fact it doesn’t).
To disprove a general (universally quantified) statement such as (∀x)P (x), we must
exhibit one x for which P (x) is false. That is, (∃x)¬P (x). This particular x is called a
counterexample to the statement that (∀x)P (x) is true.
Examples 1.3.11
1. Statement: (∀x ∈ R)(x < x2 ).
The above statement is false. x = 21 is a counterexample since 21 ∈ R but
1
2.
1 2
= 14 <
2
2. For all real numbers x and y, |x + y| = |x| + |y|.
This is false. Counterexample: take x = 1 and y = −1. Then 0 = |0| = | − 1 + 1| ̸=
| − 1| + |1| = 2.
15
MAT313
Real Analysis
The statement (∀x)[P (x) ⇒ Q(x)] occurs frequently in Mathematics. Recall that
¬[(∀x)(P (x) ⇒ Q(x))] ≡ (∃x)[P (x) ∧ ¬Q(x)].
Therefore, to show that the implication P (x) ⇒ Q(x) is false, all that you have to do is
produce ONE x for which P (x) is true but Q(x) is false.
Examples 1.3.12
1. If a function f is continuous, then it is differentiable.
This statement is false since f (x) = |x| is continuous but not differentiable at x = 0.
2. For all real numbers a, b, and c, if ac = bc, then a = b.
This statement is false. Take a = 1, b = 7, and c = 0. Then 0 = ac = bc = 0, but
1 = a ̸= b = 7.
3. For all prime numbers p, 2p + 1 is prime.
While this statement is true for p = 2, 3, 5, it is false for p = 7 since 2 × 7 + 1 = 15
which is not prime. So p = 7 is a counterexample to the given statement.
1.4 Methods of Proof in Mathematics
In Mathematics we make assertions about systems, e.g. number system. The process of
establishing the truth of an assertion is called a proof. That is, a proof in Mathematics
is a sequence of logically sound arguments which establish the truth of a statement in
question.
Theorem statements are normally in conditional form (P ⇒ Q) or biconditional form
(P ⇔ Q).
Suppose that we wish to establish the truth of the assertion P ⇒ Q.
1.4.1 Direct Method
In this method of proof, we assume that P is true and proceed through a sequence of
logical steps to arrive at the conclusion that Q is also true.
Examples 1.4.1
(a) Show that if m is an even integer and n is an odd integer, then n + m is an odd
integer.
Solution: Assume that m is an even integer and m is an odd integer. Then m = 2k
and n = 2ℓ + 1 for some integers k and ℓ. Therefore
m + n = 2k + 2ℓ + 1 = 2(k + ℓ) + 1.
Since k + ℓ is an integer whenever k and ℓ are integers, we conclude that m + n is an
odd integer.
16
MAT313
Real Analysis
(b) Show that if n is an even integer, then n2 is also an even integer.
Solution: Assume that n is an even integer. Then n = 2k for some integer k. Now,
n2 = (2k)2 = 4k 2 = 2(2k 2 ).
Since 2k 2 is an integer, it follows that n2 is an even integer.
1.4.2 Contrapositive Method
Associated with the implication P ⇒ Q is the logically equivalent statement ¬Q ⇒
¬P , the contrapositive of the conditional P ⇒ Q. Therefore one way of proving the
conditional P ⇒ Q is to give a direct proof of its contrapositive ¬Q ⇒ ¬P . The first
step in the proof is to write down the negation of the conclusion. Then you show by
a series of logical steps that this leads to the negation of the hypothesis of the original
conditional statement.
Examples 1.4.2
(a) Show that if n2 is an even integer, then n is an even integer.
Solution: We will show the contrapositive -if n is an odd integer, then n2 is an odd
integer. To that end, assume that n is an odd integer. Then, n = 2ℓ + 1 for some
integer ℓ. Now,
n2 = (2ℓ + 1)2 = 4ℓ2 + 4ℓ + 1 = 2(2ℓ2 + 2ℓ) + 1.
Since 2ℓ2 + 2ℓ is an integer, we conclude that n2 is an odd integer.
(b) Show that if 3n is an odd integer, then n is an odd integer.
Solution: We will show the contrapositive - if n is an even integer, then 3n is an even
integer. To that end, assume that n is an even integer. Then n = 2k for some integer
k. Therefore 3n = 3(2k) = 2(3k). It follows that 3n is an even integer.
1.4.3 Contradiction Method
Proof by contradiction, also called reductio ad absurdum, is one of the most powerful
methods of proof in Mathematics. It also tends to be harder to understand than the
direct or contrapositive methods. Here is how it works: assume that the P is true and
Q is false, i.e. assume that the statement P ∧ ¬Q is true. Then show, in a series of
logical steps, that this leads to a contradiction, impossibility or absurdity e.g., R ∧ ¬R.
This will then mean that the assumption that P ∧ ¬Q must have been fallacious, and
therefore its negation ¬(P ∧ ¬Q) must be true. Since ¬(P ⇒ Q) ≡ P ∧ ¬Q, it follows
that (P ⇒ Q) ≡ ¬(P ∧ ¬Q), and hence P ⇒ Q must be true.
Before giving some examples, let us define what it means for a number to be rational.
17
MAT313
Real Analysis
Definition 1.4.3 A real number r is said to be rational if there are integers m and
n (n ̸= 0) such that r = m/n. We denote the set of all rational numbers by the letter
Q. A real number that is not rational is said to be irrational.
Examples 1.4.4 (Proof by Contradiction).
√
(a) Show√that 2 is irrational. That is, there do not exist integers p and q such that
p
2.
q =
Solution: √Proceeding by contradiction, assume that there are integers p and q such
that pq = 2. By cancelling any common factors, we may suppose that p and q have
no common factors. Then squaring both sides, we have that
p2
= 2 ⇔ p2 = 2q 2 .
q2
Hence p2 is even. By Example 1.4.2(a), we have that p is even. Hence we can express
p as p = 2k for some integer k. So,
2q 2 = p2 = (2k)2 = 4k 2 and, consequently, q 2 = 2k 2 .
This means that q 2 is even and so, again by Example 1.4.2(a), we have that q is even.
Hence p and q are both even,√ contradicting the assumption that p and q have no
factors in common. Therefore 2 is not of the form pq for some integers p and q. That
√
is, 2 is irrational.
(b) Show that if 3n is an odd integer, then n is an odd integer.
Solution: We will use contradiction: Assume that 3n is an odd integer and n is an
even integer. Then 3n = 2k + 1 and n = 2ℓ for some integers k and ℓ. Thus
2k + 1 = 3n = 3(2ℓ) = 2(3ℓ).
This shows that 3n is both odd and even,which is absurd. Hence n is an odd integer.
18
Chapter 2
Sets and Functions
2.1 Introduction
The concept of a set permeates every aspect of Mathematics. Set theory underlies the
language and concepts of modern Mathematics. The term set refers to a well-defined
collection of objects that share a certain property or certain properties. The term
“well-defined” here means that the set is described in such a way that one can decide
whether or not a given object belongs in the set. If A is a set, then the objects of the
collection A are called the elements or members of the set A. If x is an element of the
set A, we write x ∈ A. If x is NOT an element of the set A, we write x ̸∈ A.
As a convention, we use capital letters to denote the names of sets and lowercase
letters for elements of a set.
There are several ways of describing sets, but two are common:
1. The Roster method:- listing the elements of a set, separated by commas and
enclosed in braces; e.g., A = {1, 2, 3, 4, 5, 6, 7, 8}. There are two important
facts to bear in mind: (1) the order in which the elements are listed is irrelevant,
(2) each element should be listed only once in the roster.
2. The rule or description method:- we describe a set in terms of one or more
properties that the objects in the set must satisfy. We use set-builder notation to
write such a set, e.g., A = {x | x satisfies some property or properties}. The
vertical bar “ | ” is read as “such that”. Other people use “ : ” instead of the bar
“ | ”.
If a set A consists of a large (or infinite) number of elements, it is general practice to
list a few of its elements followed with ellipsis (. . .). This method requires recognition
of the pattern in the list of elements of A. This practice tends to introduce some
ambiguity as the list may be continued in many different ways. It is safer practice to
define such a set by spelling out the pattern that determines membership of the set.
Examples 2.1.1
19
MAT313
Real Analysis
(a) The set E = {2, 4, 6, 8, . . .} is best described as
E = {n ∈ N : n = 2k for some k ∈ N}.
(b) The set B = {1, 4, 9, 16, . . .} is best described as
B = {n ∈ N : n = k 2 for some k ∈ N}.
Some sets come up often in Mathematics and they have special names assigned to
them.
N = {1, 2, 3, . . .}
Positive natural numbers
Z = {. . . , −2, −1, 0, 1, 2, . . .}
Integers
N0 = {0, 1, 2, 3, . . .}
Nonnegative integers
Q = {p/q : p, q ∈ Z, q ̸= 0}
Rational numbers
Q+
Positive rational numbers
R
Real numbers
R+
Positive real numbers
C = {z = a + bi : a, b ∈ R and i2 = −1}
Complex numbers.
Definition 2.1.2 Let A and B be sets. We say that
(a) B is a subset of A (or is contained in A), denoted by B ⊆ A, if every element
of B is an element of A, i.e., (∀x)(x ∈ B ⇒ x ∈ A).
(b) A = B if (A ⊆ B) ∧ (B ⊆ A), i.e., (∀x)(x ∈ A ⇔ x ∈ B).
(c) If B is a subset of A and A ̸= B, then B is a proper subset of A. In this case we
write B ⊊ A. It is clear that
B ⊊ A ⇔ [(∀x)(x ∈ B ⇒ x ∈ A) ∧ (B ̸= A)].
Example 2.1.3 Let
A = {−1, 0, 1, 2, 3, 4}
B = {1, 2, 3}
C = {x ∈ R : x3 − 6x2 + 11x − 6 = 0}
D = {−1, 0, 1, 8}
E = {x ∈ Z : −2 < x < 5}.
20
MAT313
Real Analysis
Then
3 ∈ A,
−2 ̸∈ B,
B ⊆ A,
D ̸⊆ A,
B = C,
A = E,
{8} ⊆ D,
{2, 3} ⊆ B.
We say that a set is empty if it has no elements. For example,
{x ∈ R : x2 + 1 = 0}
is an empty set since the equation x2 + 1 = 0 has no solution in R.
Proposition 2.1.4
(a) If B is an empty set, then B ⊆ A for any set A.
(b) All empty sets are equal, i.e., if B and C are empty sets, then B = C.
Proof. (a) We must show that every element of B is an element of A; i.e.,
(∀x)(x ∈ B ⇒ x ∈ A). Using the contrapositive method, it suffices to show that
(∀x)(x ̸∈ A ⇒ x ̸∈ B). This is vacuously true since if x ̸∈ A, then x ̸∈ B (since B
contains no elements!)
(b) From (a) we have that (B ⊆ C) ∧ (C ⊆ B). Hence B = C.
■
It follows from Proposition 2.1.4(b) that there is a unique empty set.
Axiom of the empty set: There is a set that contains no elements. This is called the
empty set. It is denoted by ∅ or { }.
Proposition 2.1.5
(a) For any set A, A ⊆ A.
(b) Let A ⊆ B and B ⊆ C, then A ⊆ C.
Russell’s Paradox
We have been very casual and informal in our definition of a set. One has to be careful
though if one is to avoid some unpleasant surprises. Russell’s Paradox is a salutary
reminder that one has to exercise care when defining sets.
Consider the set A = {1, 2, 3, 4}. Then, 3 ∈ A, A ⊆ A, but A ̸∈ A. The set A does
not contain itself as an element.
Let us now consider the set S of all sets; i.e., S = {B : B is a set}. Notice that not
only is S ⊆ S, S ∈ S, since S is a set.
There are therefore sets that contain themselves as elements (e.g., S), and there are
sets that do not contain themselves as elements (e.g. A).
Let R be the set of all those sets that do not contain themselves, i.e.,
R = {X | (X is a set) ∧ (X ̸∈ X)}.
21
MAT313
Real Analysis
The question is “Does R contain itself an element?”
Well, let’s assume R ̸∈ R, i.e., R does not contain itself as an element. So by definition
of R, R is a member of R. So our assumption that R is not an element of R logically
leads to the statement that R is a member of R. This is a contradiction, so our
assumption must be wrong.
Let’s assume that R is an element of R, i.e., R ∈ R. But R is the set that has only
members that do not contain themselves, so R cannot be a member of R. So our
assumption that R is a member of R logically leads to the statement that R is not a
member of R. This is a contradiction, so our assumption must be wrong.
In short, we have the situation that R ∈ R ⇔ R ̸∈ R.
□
The main point of Russell’s Paradox is that there are properties that do not define
sets, i.e., all objects with those properties cannot be collected into one set.
As Russell’s Paradox indicates, there are logical difficulties that arise in the
foundations of Set Theory if one is not careful. We can avoid such difficulties by
assuming that each discussion in which a number of sets are involved is taking place
within a context of a fixed set. This set is called the universal set.
Some notation...
We use special notation to designate intervals of various kinds on the real line. Let
a, b ∈ R with a ≤ b.
[a, b] = {x ∈ R : a ≤ x ≤ b}
[a, b) = {x ∈ R : a ≤ x < b}
(a, b] = {x ∈ R : a < x ≤ b}
(a, b) = {x ∈ R : a < x < b}
[a, ∞) = {x ∈ R : x ≥ a}
(a, ∞) = {x ∈ R : x > a}
(−∞, b] = {x ∈ R : x ≤ b}
(−∞, b) = {x ∈ R : x < b}
(−∞, ∞) = R.
2.2 Operations on Sets
Definition 2.2.1 Let A be a set. The power set of A, denoted by P(A), is the set
whose elements are all subsets of A. That is,
P(A) = {B : B ⊆ A}.
22
MAT313
Real Analysis
Example 2.2.2 Let A = {x, y, z}. Then
P(∅) = {∅}
P({x}) = {∅, {x}}
P({x, y}) = {∅, {x}, {y}, {x, y}}
P(A) = {∅, {x}, {y}, {z}, {x, y}, {x, z}, {y, z}, {x, y, z}}.
N
: Note that ∅ is not the same as {∅}.
Definition 2.2.3 Let A and B be subsets of a universal set U .
(a) The union of A and B, denoted by A ∪ B, is the set of all elements in U that are
either in A or in B (or in both sets). That is,
A ∪ B = {x ∈ U : (x ∈ A) ∨ (x ∈ B)}.
(b) The intersection of A and B, denoted by A ∩ B, is the set of all elements in U
that are in A and B. That is,
A ∩ B = {x ∈ U : (x ∈ A) ∧ (x ∈ B)}.
Sets A and B are said to be disjoint if A ∩ B = ∅.
(c) The complement of A in (or relative to) B, denoted by B \ A or B − A and
read “B minus A”, is the set of all elements of B that are not in A, i.e.,
B − A = {x ∈ U : (x ∈ B) ∧ (x ̸∈ A)}.
(d) The complement of A, denoted by Ac , is the set of all elements in U that are
not in A, i.e.,
Ac = {x ∈ U : x ̸∈ A}.
(e) The symmetric difference of A and B denoted by A △ B is the set
A △ B = (B − A) ∪ (A − B).
Example 2.2.4 Let U = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, A = {2, 4, 6, 8, 9, 10}, and
B = {3, 5, 7, 9}. Then
A ∪ B = { 2, 3, 4, 5, 6, 7, 8, 9, 10}.
A ∩ B = {9}.
B − A = {3, 5, 7}.
A − B = {2, 4, 6, 8, 10}.
23
MAT313
Real Analysis
A △ B = { 2, 3, 4, 5, 6, 7, 8, 10}.
Ac = {1, 3, 5, 7}.
Proposition 2.2.5 Let A, B, and C be subsets of a universal set U .
(a)
A ∪ A = A (idempotent law for union)
(b)
A ∩ A = A (idempotent law for intersection)
(c)
A∪∅=A
(d)
A∩∅=∅
(e)
A∪U =U
(f)
A∩U =A
(g)
A ∪ B = B ∪ A (commutative law for union)
(h)
A ∩ B = B ∩ A (commutative law for intersection)
(i)
(A ∪ B) ∪ C = A ∪ (B ∪ C) (associative law for union)
(j)
(A ∩ B) ∩ C = A ∩ (B ∩ C) (associative law for intersection)
(k)
A ⊆ A ∪ B and B ⊆ A ∪ B
(l)
A ∩ B ⊆ A and A ∩ B ⊆ B
(m)
Acc = A
(n)
A ∪ Ac = U
(o)
A ∩ Ac = ∅
(p)
∅c = U
(q)
Uc = ∅
(r)
(A ∪ B)c = Ac ∩ B c (De Morgan’s law)
(s)
(A ∩ B)c = Ac ∪ B c (De Morgan’s law)
(t)
A ⊆ B if and only if B c ⊆ Ac
(u)
A − B = A ∩ Bc
(v)
A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C) (intersection distributes over union)
(w)
A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) (union distributes over intersection)
(x)
A △ B = (A ∪ B) − (A ∩ B).
24
MAT313
Real Analysis
Proof. Be sure that you can prove these properties.
(r) In order to show that (A ∪ B)c = Ac ∩ B c , we must show that (A ∪ B)c ⊆ Ac ∩ B c
and Ac ∩ B c ⊆ (A ∪ B)c .
(A ∪ B)c ⊆ Ac ∩ B c
Ac ∩ B c ⊆ (A ∪ B)c
Let x ∈ (A ∪ B)c
Let x ∈ Ac ∩ B c
Then x ̸∈ A ∪ B
Then x ∈ Ac and x ∈ B c
∴
¬[x ∈ A ∪ B]
∴
(x ̸∈ A) ∧ (x ̸∈ B)
∴
¬[(x ∈ A) ∨ (x ∈ B)]
∴
¬[(x ∈ A) ∨ (x ∈ B)]
∴
(x ̸∈ A) ∧ (x ̸∈ B)
∴
¬[x ∈ A ∪ B]
∴
(x ∈ Ac ) ∧ (x ∈ B c )
∴
x ∈ (A ∪ B)c
∴
x ∈ Ac ∩ B c
∴
Ac ∩ B c ⊆ (A ∪ B)c
∴
(A ∪ B)c ⊆ Ac ∩ B c
Proof of (v): Here we use the fact that if P, Q, and R are propositions, then
P ∧ (Q ∨ R) ≡ (P ∧ Q) ∨ (P ∧ R).
For each x,
x ∈ A ∩ (B ∪ C)
⇔ x ∈ A and x ∈ B ∪ C
⇔ x ∈ A and (x ∈ B or x ∈ C)
⇔ (x ∈ A) ∧ [(x ∈ B) ∨ (x ∈ C)]
⇔ [(x ∈ A) ∧ (x ∈ B)] ∨ [(x ∈ A) ∧ (x ∈ C)]
⇔ x ∈ A ∩ B or x ∈ A ∩ C
⇔ x ∈ (A ∩ B) ∪ (A ∩ C).
25
MAT313
Real Analysis
2.3 Indexed families of sets
In Mathematics we often work with large collections of sets. Instead of naming each of
those sets using the twenty-six letters of the alphabet, we usually index the sets using
some convenient indexing set.
Suppose that I is a set and that to each i ∈ I, there corresponds one and only one
subset Ai of a universal set U . Then the collection {Ai : i ∈ I} is called an indexed
family of sets (or an indexed collection of sets). The set I is called an indexing
set for the collection {Ai : i ∈ I}. If I = {1, 2, 3, . . . , n}, then the indexed
collection of sets {Ai : i ∈ I} is called a finite sequence of sets. If I = N+ , the set of
positive natural numbers, then the indexed collection {Ai : i ∈ N+ } is called an
infinite sequence of sets.
We can extend the definition of union and intersection discussed earlier to cover an
indexed family of sets.
Definition 2.3.1 Let {Ai : i ∈ I} be an indexed family of subsets of the universal set
U.
S
(a) The union of the family {Ai : i ∈ I}, denoted by i∈I Ai , is the set of all those
elements of U which belong to at least one of the Ai . That is,
[
Ai = {x ∈ U : x ∈ Ai for some i ∈ I}
i∈I
= {x ∈ U : (∃i ∈ I)(x ∈ Ai )}.
T
(b) The intersection of the family {Ai : i ∈ I}, denoted by i∈I Ai , is the set of all
those elements of U which belong to all the Ai . That is,
\
Ai = {x ∈ U : x ∈ Ai for each i ∈ I}
i∈I
= {x ∈ U : (∀i ∈ I)(x ∈ Ai )}.
Proposition 2.3.2 Let {Ai : i ∈ I} be an indexed family of subsets of the universal
set U and let B be a subset of U . Then
S
(a)
Ak ⊆ i∈I Ai for each k ∈ I.
T
(b)
i∈I Ai ⊆ Ak for each k ∈ I.
S
S
(c)
B∩
i∈I Ai =
i∈I (B ∩ Ai ).
T
T
(d)
B∪
i∈I Ai =
i∈I (B ∪ Ai ).
T
S
(e)
B−
i∈I Ai =
i∈I (B − Ai ).
26
MAT313
Real Analysis
T
i∈I Ai
c
=
T
c
i∈I Ai
(de Morgan’s law).
c
=
S
c
i∈I Ai
(de Morgan’s law).
(f)
B−
(g)
S
i∈I Ai
(h)
T
i∈I Ai
=
S
i∈I (B − Ai ).
Proof. Be sure that you can prove these statements. We shall prove (c), (e), and (h).
S
S
Proof of (c): We should
i∈I Ai ⊆
i∈I (B ∩ Ai ) and
S
S show that B ∩
(B
∩
A
)
⊆
B
∩
A
.
We
shall
do
this
in
one
fell swoop.
i
i∈I
i∈I i
!
x∈B∩
[
⇔ x ∈ B and x ∈
Ai
[
Ai
i∈I
i∈I
⇔ x ∈ B and x ∈ Ai for some i ∈ I
⇔ (∃i ∈ I)[(x ∈ B) ∧ (x ∈ Ai )]
⇔ x∈
[
(B ∩ Ai ) .
i∈I
Proof of (e): We use the same technique as applied in (c).
!
x∈B−
[
Ai
⇔ x ∈ B and x ̸∈
i∈I
[
Ai
i∈I
⇔ x ∈ B and ¬[x ∈
[
Ai ]
i∈I
⇔ x ∈ B and ¬[(∃i ∈ I)(x ∈ Ai )]
⇔ (x ∈ B) ∧ [(∀i ∈ I)(x ̸∈ Ai )]
⇔ (∀i ∈ I)[(x ∈ B) ∧ (x ̸∈ Ai )]
⇔ (∀i ∈ I)(x ∈ B − Ai )
⇔ x∈
\
i∈I
27
(B − Ai ) .
MAT313
Real Analysis
Proof of (h):
!c
x∈
\
Ai
⇔ x ̸∈
i∈I
\
Ai
i∈I
⇔ ¬[x ∈
\
Ai ]
i∈I
⇔ ¬[(∀i ∈ I)(x ∈ Ai )]
⇔ (∃i ∈ I)(x ̸∈ Ai )
⇔ (∃i ∈ I)(x ∈ Aci )
⇔ x∈
[
Aci .
i∈I
2.4 Functions
Definition 2.4.1 Let X and Y be sets. A function f from X to Y , denoted by
f : X → Y , is a rule that assigns to each x ∈ X a unique element y ∈ Y . We write
y = f (x) to denote that f assigns the element x ∈ X to the element y ∈ Y .
Definition 2.4.2 Let X and Y be sets. A function f : X → Y is said to be
(i) injective (or one-to-one) if for for each y ∈ Y there is at most one x ∈ X such
that f (x) = y. Equivalently, f is injective if for all x1 , x2 ∈ X, f (x1 ) = f (x2 )
implies that x1 = x2 . Symbolically,
(∀x1 , x2 ∈ X)[(f (x1 ) = f (x2 )) ⇒ (x1 = x2 )].
(ii) surjective (or onto) if for each y ∈ Y there is an x ∈ X such that f (x) = y.
Symbolically,we write
(∀y ∈ Y )(∃x ∈ X)(f (x) = y).
(iii) bijective if f is both injective and surjective.
Definition 2.4.3 Let X, Y, and Z be sets, f : X → Y and g : Y → Z be sets. The
composition of f and g, denoted by g ◦ f , is the function g ◦ f : X → Z defined by
(g ◦ f )(x) = g(f (x)).
Theorem 2.4.4 Let f : X → Y and g : Y → Z such that ran(f ) ⊆ dom(g). Then
(a) If f and g are onto, then so is the composite function g ◦ f ;
28
MAT313
Real Analysis
(b) If f and g are one-to-one, then so is the composite function g ◦ f ;
(c) If f and g are bijective, then so is the composite function g ◦ f ;
(d) If g ◦ f is one-to-one, then so is f ;
(e) If g ◦ f is onto, then so is g;
(f) If g ◦ f is a bijection, then f is one-to-one and g is onto.
Proof.
(a) Let z ∈ Z. Since g is onto, there is a y ∈ Y such that g(y) = z. Since f is onto,
there is an x ∈ X such that f (x) = y. Therefore (g ◦ f )(x) = g(f (x)) = g(y) = z.
Hence, g ◦ f is onto.
(b) Let x1 and x2 be in X such that (g ◦ f )(x1 ) = (g ◦ f )(x2 ). Then
(g ◦ f )(x1 ) = (g ◦ f )(x2 )
⇐⇒ g(f (x1 )) = g(f (x2 ))
⇐⇒
⇐⇒
f (x1 ) = f (x2 ) since g is one-to-one
x1 = x2
since f is one-to-one.
(c) This follows from (a) and (b).
(d) Let x1 and x2 be elements of X such that f (x1 ) = f (x2 ). Then
(g ◦ f )(x1 ) = g(f (x1 )) = g(f (x2 )) = g(f (x2 )). Since g ◦ f is one-to-one, it follows
that x1 = x2 . Thus, f is one-to-one.
(e) Let z ∈ Z. We must produce a y ∈ Y such that g(y) = z. Since g ◦ f is onto,
there is an x ∈ X such that (g ◦ f )(x) = g(f (x)) = z. Let y = f (x) (∈ Y ). Then
g(y) = z, which proves that g is onto.
(f) This follows from (d) and (e).
■
Theorem 2.4.5 Let f : X → Y be a bijection. Then f −1 : Y → X is a bijection.
Proof. Exercise.
■
Theorem 2.4.6 Let f : X → Y and g : Y → Z be bijections. Then
(g ◦ f )−1 = f −1 ◦ g −1 .
Proof. Exercise.
■
Let X and Y be sets, f : X → Y , and A ⊆ X. We denote by f (A) the image of A in
Y . It is defined by
f (A) = {f (x) | x ∈ A}.
29
MAT313
Real Analysis
If B ⊆ Y , we denote by f −1 (B) the pre-image (or inverse image) of B in X. It is
defined by
f −1 (B) = {x ∈ X | f (x) ∈ B}.
Theorem 2.4.7 Let X and Y be sets, f : X → Y , and {Ai : i ∈ I} an indexed
family of subsets of X. Then
(a) f (∅) = ∅;
S
S
(b) f
i∈I Ai =
i∈I f (Ai );
T
T
(c) f
i∈I Ai ⊆
i∈I f (Ai );
T
T
(d) If f is injective, then f
i∈I Ai =
i∈I f (Ai ).
Proof 2.4.8 Exercise.
■
Theorem 2.4.9 Let X and Y be sets, f : X → Y , {Bi : i ∈ I} an indexed family of
subsets of Y and D ⊆ Y . Then
(a) f −1 (∅) = ∅;
S
S
−1 (B );
(b) f −1
i
i∈I Bi =
i∈I f
T
T
−1 (B );
(c) f −1
i
i∈I f
i∈I Bi =
(d) f −1 (Y \ D) = X \ f −1 (D).
Proof 2.4.10 Exercise.
■
Theorem 2.4.11 Let X and Y be sets and f : X → Y . If A ⊆ X and B ⊆ Y , then
(a) A ⊆ f −1 (f (A));
(b) If f is injective, then A = f −1 (f (A));
(c) f f −1 (B) ⊆ B;
(d) If f is surjective, then f f −1 (B) = B;
(e) f (A ∩ f −1 (B)) = f (A) ∩ B.
Proof 2.4.12 Exercise.
■
30
MAT313
Real Analysis
2.5 Cardinality: the size of a set
Definition 2.5.1 Two sets A and B are said to have the same cardinality,
denoted by |A| = |B|, if there is a one-to-one function from A onto B. Sets that have
the same cardinality are also said to be equipotent or equinumerous.
Examples 2.5.2
1. N0 has the same cardinality as N.
Proof. Define f : N0 → N by f (n) = n + 1 for each n ∈ N0 .
Claim: f is one-to-one. Let n, m ∈ N0 such that f (n) = f (m) Then
n + 1 = m + 1, and consequently n = m.
Claim: f is onto. Let m ∈ N. Then m − 1 ∈ N0 and f (m − 1) = m − 1 + 1 = m.
2. Let E = {2n : n ∈ N} − the set of even natural numbers. Then N and E have the
same cardinality.
Proof. Define f : N → E by f (n) = 2n for each n ∈ N.
Claim: f is one-to-one. Let n1 and n2 be elements of N such that f (n1 ) = f (n2 ).
Then 2n1 = 2n2 and consequently n1 = n2 .
Claim: f is onto. Let m ∈ E. Then m = 2k for some k ∈ N. Hence,
f (k) = 2k = m.
3. N and Z have the same cardinality.
Proof. Define f : N → Z by
f (n) =
n
− 2
if
n is even
n−1
2
if
n is odd.
In tabular form
n
1
2
3
4
5
6
7
···
f (n)
0
−1
1
−2
2
−3
3
···
It is clear that dom(f ) = N and ran(f ) ⊆ Z.
Claim: f is one-to-one. For each n ∈ N, f (n) < 0 if n is even and f (n) ≥ 0 if n is
odd. Let m1 , m2 ∈ N such that f (m1 ) = f (m2 ). We must show that m1 = m2 . If
m1 and m2 are both even, then
m1
m2
=−
f (m1 ) = f (m2 )
⇐⇒
−
2
2
⇐⇒
31
m1 = m2 .
MAT313
Real Analysis
If m1 and m2 are both odd, then
f (m1 ) = f (m2 ) ⇐⇒
m1 − 1
m2 − 1
=
⇐⇒ m1 = m2 .
2
2
Hence, f is one-to-one.
Claim: f is onto. If m ∈ Z and is negative, then −2m is in N and is even. Therefore
f (−2m) = (−1)
(−2m)
= m.
2
If m ∈ Z and m ≥ 0, then 2m + 1 is in N and is odd. Therefore
f (2m + 1) =
(2m + 1) − 1
= m.
2
4. N and Q have the same cardinality.
Proof. We start by listing nonnegative rational numbers in an infinite matrix as
follows:
p/q
0
1
0
1
→
1
p
2
1
1
2
1
↙
2
3
0
2
↓
0
3
↗
1
2
↗
1
3
q
4
5
6
..
.
2
5
↗
1
6
↗
↙
..
.
···
↗
↗
↙
↙
↗
↗
..
.
···
↙
6
6
↙
..
.
···
↗
6
5
5
6
···
↙
6
4
5
5
···
↗
6
3
5
4
4
6
↙
6
2
↙
↗
↙
..
.
6
1
↙
↗
↗
..
.
5
1
5
3
4
5
3
6
···
5
2
4
4
↙
↙
2
6
6
↗
↗
3
5
5
↙
4
3
3
4
↗
→
4
2
↙
↙
↙
↙
0
6
↓
..
.
↗
3
3
2
4
1
5
4
1
↗
↗
↗
3
1
3
2
2
3
1
4
4
↙
2
2
↙
↙
0
4
↓
0
5
→
3
···
↗
..
.
···
0
Starting with at the top left corner, we follow the arrows, putting a box around a
1
rational number that occurs for the first time. This assigns a unique natural number
32
MAT313
Real Analysis
to each nonnegative rational number. That is, this defines a function g from N0 to
the set of nonnegative rational numbers Q+ ∪ {0} given by the following table:
n
0
1
2
3
4
5
6
···
g(n)
0
1
1
1
1
2
2
1
3
1
1
3
1
4
···
Define f : N0 → Q by
f (n) =
n
−
g
2
g
n+1
2
if
n is even
if
n is odd.
In tabular form
n
0
1
2
3
f (n)
0
1
−1
1
2
−
4
5
6
···
1
2
2
−2
···
Then f is a bijection between N0 and Q. Since N and N0 have the same cardinality,
there is a bijection h : N → N0 . Therefore f ◦ h is a bijection from N onto Q.
5. R and − π2 , π2 have the same cardinality.
Proof. Define f : R → − π2 , π2 by f (x) = arctan x.
Claim: f is one-to-one. Let x1 and x2 be elements of R such that f (x1 ) = f (x2 )
Then
arctan x1 = arctan x2
⇒ tan(arctan x1 ) = tan(arctan x2 )
⇒
x1 = x2 .
Claim: f is onto. Let y ∈ − π2 , π2 . Then, tan y ∈ R and, since y ∈ − π2 , π2 , we
have that arctan(tan y) = y. Let x = tan y. Then f (x) = y.
6. The intervals (0, 1) and − π2 , π2 have the same cardinality.
Proof 2.5.3 Define f : (0, 1) → − π2 , π2 by f (x) =πx − π2 . It is easy to show that
f is a well-defined bijection from (0, 1) onto − π2 , π2 .
We immediately deduce from examples 5 and 6 that (0, 1) and R have the same
cardinality.
33
MAT313
Real Analysis
Definition 2.5.4 A set S is said to be
(a) finite if S = ∅ or if there is an n ∈ N such that |S| = |{1, 2, 3, . . . , n}|.
(b) infinite if S is not finite.
(c) countably infinite if |S| = |N|.
(d) countable if S is finite or is countably infinite.
(e) uncountable if S is not countable.
The cardinality of N is called ℵ0 (aleph nought).
We have shown that the sets E, Z and Q are countably infinite.
Theorem 2.5.5 There does not exist a surjection from a set X onto its power set
P(X).
Proof. (By Contradiction). Suppose there were such a surjection f : X → P(X). Let
A be the subset of X defined by
A = {x ∈ X : x ̸∈ f (x)}.
Then A ∈ P(X). Since f is assumed to be surjective, there exists an a ∈ X such that
f (a) = A. Either a ∈ A or a ̸∈ A. If a ∈ A, then by definition of A, a ̸∈ f (a) = A, a
contradiction. Therefore, a ̸∈ A. But now again by definition of A, it follows that
a ∈ A, a contradiction again. We conclude that there is no function from X onto
P(X).
■
Corollary 2.5.6 P(N) is uncountable.
Theorem 2.5.7 The set of real numbers in the interval (0, 1) is uncountable.
Proof 2.5.8 (By contradiction). Assume that (0, 1) is countable. Let
{x1 , x2 , x3 , . . .} be the enumeration of elements of (0, 1); that is, there is a bijection
f : N → (0, 1) given by f (k) = xk . Each xn ∈ (0, 1) has a decimal expansion of the form
x1 = 0.a11 a12 a13 a14 a15 · · ·
x2 = 0.a21 a22 a23 a24 a25 · · ·
x3 = 0.a31 a32 a33 a34 a35 · · ·
..
.
xn = 0.an1 an2 an3 an4 an5 · · ·
..
..
.
.
where aij ∈ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}. Let b be the real number that has the
decimal expansion:
b = 0.b1 b2 b3 b4 b5 · · ·
34
MAT313
Real Analysis
where
bn =
2
if ann = 1
1
if ann ̸= 1.
Then, clearly, b ∈ (0, 1) and b ̸= xk for all k ∈ N since b and xk differ at the k-place
after the decimal point. Hence, the function f : k 7→ xk is not surjective.
■
Corollary 2.5.9 The set R of real numbers is uncountable.
Proof 2.5.10 This follows immediately from examples 2.5.2 (5 and 6).
In order to establish the next set of important results, we shall need the following result
called the Well Ordering Principle or Least Natural Number Principle:
Theorem 2.5.11 Every nonempty subset A of natural numbers has a least member a number a0 ∈ A such that a0 ≤ a for all a ∈ A.
The Least Natural Number Principle is equivalent to the Principle of Mathematical
Induction. That is, assuming one principle you can prove the other. Below we prove
that the Principle of Mathematical Induction implies the Least Natural Number
Principle. We leave the proof of the converse of this statement as an exercise.
Theorem 2.5.12 The Principle of Mathematical Induction implies the Least Natural
Number Principle.
Proof. Let T be a subset of N with no least element. We prove that T is an empty set.
Let
S = {n ∈ N : {1, 2, . . . , n} ∩ T = ∅}.
Claim 1: 1 ∈ S. If 1 ̸∈ S, then {1} ∩ T ̸= ∅. But then 1 ∈ T and 1 would be the least
element of T , contradicting the fact that T has no least element. Hence 1 ∈ S.
Claim 2: k ∈ S ⇒ k + 1 ∈ S. Since k ∈ S (by the assumption), it follows that
{1, 2, . . . , k} ∩ T = ∅. This says that no positive natural number less than or equal to k
belongs to T . We must show that k + 1 does not belong to T or equivalently, k + 1 ∈ S.
If k + 1 ̸∈ S, then {1, 2, . . . , k, k + 1} ∩ T ̸= ∅. Since {1, 2, . . . , k} ∩ T = ∅, it follows
that k + 1 ∈ T . But then k + 1 would be the least element of T , contradicting the fact
that T has no least element. Hence k + 1 ∈ S.
By the Principle of Mathematical Induction, we have that S = N. This, of course,
means that no natural numbers belongs to T , i.e., T = ∅.
■
We are now ready to establish some important results.
Theorem 2.5.13 A subset of a countable set is countable.
Proof 2.5.14 Let A be a subset of a countable set B. If A is finite, then it is
obviously countable. Assume that A is infinite. Then B is countably infinite. Let
35
MAT313
Real Analysis
{b1 , b2 , b3 , . . .} be an enumeration of elements of B That is, there is a bijection
f : N → B given by f (k) = bk .
Let M = {n ∈ N | bn ∈ A}. Then M is a nonempty subset of N. By the Least Natural
Number Principle, M has the least element m1 . Similarly, M − {m1 } has the least
element m2 . In general, having chosen m1 , m2 , . . . , mk , let mk+1 be the least element
of M − {m1 , m2 , . . . , mk }. Define g : N → N by g(n) = mn . Since A is infinite, g is
defined for each n ∈ N.
Claim: g is injective. Indeed, if i < j, then mi ̸= mj since mj ̸∈ {m1 , m2 , . . . , mi }.
Thus g(i) ̸= g(j).
We have the diagram:
g
f
N −→ N −→ B.
It now follows that f ◦ g is injective. Since each element of A appears somewhere in the
enumeration of elements of B, we have that g(N) includes all the subscripts of elements
of A. Thus, f ◦ g is a bijection from N onto A. Hence, A is countable.
■
Here is another argument that R is uncountable: Assume that R is countable. Then, by
Theorem 2.5.13, every subset of R would be countable. In particular, the set or real
numbers in the interval (0, 1) would be countable. This contradicts Theorem 2.5.7.
Hence, R is countable.
Corollary 2.5.15 An intersection of any collection of countable sets is countable.
Proof 2.5.16 Let {Aλ | λ ∈ I} be a collection of sets such that Aλ is countable for
each λ ∈ I. Choose and fix α ∈ I. Then
\
Aλ ⊆ Aα .
λ∈I
Since Aα is countable, it follows from Theorem 2.5.13 that
T
λ∈I Aλ is countable.
■
Theorem 2.5.17 Let A be a nonempty set. The following statements are equivalent:
(a) A is countable.
(b) There is a surjection f : N → A.
(c) There is an injection g : A → N.
Proof 2.5.18 (a) ⇒ (b): Assume that A is countable. If A is finite, then there is
nothing to prove. Assume that A is infinite. Then A is countably infinite. Thus, there
is a bijection f : N → A. Therefore, f is a surjection from N onto A.
(b) ⇒ (c): Assume that there is a surjection f : N → A. Then the set
f ← (a) := {n ∈ N | f (n) = a} =
̸ ∅
for each a ∈ A.
36
MAT313
Real Analysis
Define g : A → N by
g(a) = the least element of the set f ← (a)
for each a ∈ A. By the Least Natural Number Principle, we have that g is well-defined.
We show that g is injective. Note first that since g(a) ∈ f ← (a), it follows that
f (g(a)) = a.
Let a, b ∈ A such that g(a) = g(b). Then
a = f (g(a)) = f (g(b)) = b.
Thus, g is injective.
(c) ⇒ (a): Assume that there is an injection g : A → N. Then g is a bijection from A
onto g(A) := {n ∈ N | g(a) = n for some a ∈ A}. Since N is countable and g(A) ⊆ N,
it follows from Theorem 2.5.13 that g(A) is countable. Thus A is countable.
■
Theorem 2.5.19 N × N is countable.
Proof 2.5.20 Define f : N × N → N by
f (n, m) = 2n · 3m .
We show that f is an injection. To that end, let (n, m) and (k, ℓ) be elements of N × N
such that
f (n, m) = f (k, ℓ).
Then
2n · 3m = 2k · 3ℓ
⇐⇒
2n−k = 3ℓ−m .
Hence, n − k = 0 and ℓ − m = 0 and, consequently, n = k and m = ℓ. That is,
(n, m) = (k, ℓ). This shows that f is injective. By Theorem 2.5.17(c), we conclude that
N × N is countable.
■
Corollary 2.5.21 If A and B are countable sets, then A × B is also countable.
Proof 2.5.22 Since A and B are countable, there are bijections f : N → A and
g : N → B. Define h : N × N → A × B by
h(n, m) = (f (n), g(m)) for all (n, m) ∈ N × N.
Clearly, h is well-defined.
Claim 1: h is injective. Assume that h(n, m) = h(k, ℓ). Then, by definition of h,
(f (n), g(m)) = (f (k), g(ℓ)). Therefore f (n) = f (k) and g(m) = g(ℓ). Since f and g are
injective, it follows that n = k and m = ℓ and, consequently, (n, m) = (k, ℓ).
Claim 2: h is surjective. Let (a, b) ∈ A × B. Since f and g are surjective, there are
natural numbers i and j such that f (i) = a and g(j) = b. Hence, (i, j) ∈ N × N and
h(i, j) = (f (i), g(j)) = (a, b).
Thus, h is surjective.
We give another proof that the set Q of rational numbers is countable.
37
■
MAT313
Real Analysis
Corollary 2.5.23 The set Q of rational numbers is countable.
Proof 2.5.24 Since Z and N are countable, we have, by Corollary 2.5.21, that Z × N
is countable. So there is a surjection f : N → Z × N. Define g : Z × N → Q by
p
g(p, q) = .
q
Clearly, g is surjective (by the definition of rational numbers). We have the following
diagram:
f
g
N −→ Z × N −→ Q.
Since the function g ◦ f is a surjection from N onto Q, it follows from Theorem 2.5.17
that Q is countable.
■
Theorem 2.5.25 A countable union of countable sets is countable.
Proof 2.5.26 Let {An S
| n ∈ N} be a collection of sets such that An is countable for
each n ∈ N and let A = ∞
n=1 An . We show that A is countable. Since An is countable
for each n ∈ N, there is a surjection fn : N → An for each n ∈ N. Define
f : N × N → A by
f (n, m) = fn (m).
We show that f is surjective. Indeed, if a ∈ A, then a ∈ An for some n ∈ N. Since fn
is surjective, there is an m ∈ N such that fn (m) = a. Therefore (n, m) ∈ N × N and
f (n, m) = fn (m) = a. Thus, f is surjective. Since N × N is countable, there is a
surjection g : N → N × N. We have the following diagram:
g
f
N −→ N × N −→ A.
Thus, g ◦ f is a surjection from N onto A. By Theorem 2.5.17, A is countable.
Exercise 2.5.27
■
1. Show that the set of irrational numbers is uncountable.
2.5.1 The Cantor-Schröder-Bernstein Theorem
When we started the section on cardinality, we said that two sets A and B have the
same cardinality if there is a bijection (one-to-one and onto function) between them. It
is usually easier to find an injection than a bijection between two sets. The
Cantor-Schröder-Bernstein Theorem asserts that if A and B are sets for which we can
find an injection from A into B and an injection from B into A, then there is a
bijection between A and B.
Lemma 2.5.28 Let A and B be sets such that B ⊆ A. If there is an injective
function f : A → B, then there is a bijective function g : A → B.
38
MAT313
Real Analysis
Proof. If A = B, then the identity function iA works. Assume that B ⊊ A. We
inductively define a sequence (Cn ) of sets as follows:
C0 = A \ B
C1 = f (C0 ) = f (A \ B)
C2 = f (C1 ) = f 2 (A \ B)
C3 = f (C2 ) = f 3 (A \ B)
..
..
..
.
.
.
Cn = f (Cn−1 ) = f n (A \ B)
..
..
..
.
.
.
S∞ n
S
B), where f 0 is the identity map on A. Note that
Let C = ∞
n=0 f (A \ S
n=0 Cn = S
∞
n
A \ B = C0 ⊆ C and n=1 Cn = ∞
n=1 f (A \ B) ⊆ B.
Claim 1: If j, k ∈ N0 and j ̸= k, then Cj ∩ Ck = ∅; that is, the sets Cn are pairwise
disjoint. To prove the claim, assume that j < k and that Cj ∩ Ck ̸= ∅. Let z ∈ Cj ∩ Ck ;
that is, z ∈ f j (A \ B) ∩ f k (A \ B). Then there are x and y in A \ B such that
f j (x) = z = f k (y). Therefore
f j (x) = f k (y) = f k−j f j (y) = f j f k−j (y) .
Since f is injective, so is f j . Hence x = f k−j (y). But, since x ∈ A \ B and
f k−j (y) ∈ B, the equality x = f k−j (y) means that x = f k−j (y) ∈ (A \ B) ∩ B = ∅. This
is a contradiction. Hence, Cj ∩ Ck = ∅.
Claim 2: f (C) ⊆ C. Indeed,
!
∞
∞
∞
[
[
[
Cn =
f (Cn ) =
Cn+1 ⊆ C.
f (C) = f
n=0
n=0
n=0
Define g : A → B by
g(x) =
f (x)
if x ∈ C
if x ∈ A \ C.
x
Claim 3: g is injective. Let x, y ∈ A such that g(x) = g(y). If x, y ∈ C, then
f (x) = f (y). Since f is injective, it follows that x = y. If x ̸∈ C and y ̸∈ C, then
x = g(x) = g(y) = y. That is, x = y. If x ∈ C and y ∈ A \ C, then x ̸= y and
f (x) ∈ f (C) ⊆ C. Therefore g(x) = f (x) ∈ C and g(y) = y ∈ A \ C. Hence
g(x) ̸= g(y).
Claim 4: g is surjective. Let y ∈ B. If y ∈ C, then y ∈ f n (A \ B), for some n ∈ N.
Hence, there is an z ∈ A \ B such that y = f n (z). Let x = f n−1 (z). Then
x ∈ f n−1 (A \ B) ⊆ C. Hence, by definition of g,
g(x) = f (x) = f f n−1 (z) = f n (z) = y.
If y ∈ A \ C, then, by definition of g, g(y) = y.
39
■
MAT313
Real Analysis
Theorem 2.5.29 (Cantor-Schröder-Bernstein Theorem). Let A and B be sets. If there
exist two injections f : A → B and g : B → A, then there is a bijection h : A → B.
Proof. Since f and g are injective functions, the composite function g ◦ f is an
injection from A into g(B). Also, g(B) ⊆ A. By Lemma 2.5.28, there is a bijection
k : A → g(B). Since g is an injection from B into A, it is a bijection from B onto
g(B). The inverse function g −1 is a bijection from g(B) onto B. We now have the
diagram
g −1
k
A −→ g(B) −→ B.
The composite function h := g −1 ◦ k is a bijection from A onto B.
■
Example 2.5.30 We use the Cantor-Schröder-Bernstein Theorem to show that the sets
[−1, 1] and R+ have the same cardinality. Let f : [−1, 1] → R+ and g : R+ → [−1, 1] be
1
given by f (x) = x + 3 and g(x) =
respectively. The function f is clearly injective
x+1
and maps the interval [−1, 1] onto the interval [2, 4]. This function is not onto - for
example, for 5, which is in R+ , there is no x ∈ [−1, 1] such that f (x) = 5.
The function g is also injective and maps R onto the interval (0, 1). This function is not
onto - for example, for 0, which is in [−1, 1], there is no x ∈ R such that g(x) = 0.
By the Cantor-Schröder-Bernstein Theorem, there is a bijection between [−1, 1] and R.
Hence, these sets have the same cardinality.
40
Chapter 3
Real Numbers and their Properties
3.1 Real Numbers as a Complete Ordered Field
FIELD AXIOMS
Definition 3.1.1 A field is a set F together with two binary operations
+ : F × F → F (called addition) and × : F × F → F (called multiplication) such that
for all x, y, z ∈ F,
A1. x + y = y + x;
A2. (x + y) + z = x + (y + z);
A3. There is an element 0 ∈ F, called the additive identity, such that x + 0 = x for
each x ∈ F;
A4. For each x ∈ F, there is an element −x ∈ F, called the additive inverse of x, such
that x + (−x) = 0;
M1. x × y = y × x;
M2. (x × y) × z = x × (y × z);
M3. There is an element 1 ∈ F, called the multiplicative identity, such that x × 1 = x;
M4. For each x ∈ F \ {0}, there is an element x−1 ∈ F, called the multiplicative inverse
of x, such that x × x−1 = 1;
D1. x × (y + z) = x × y + x × z.
Note that a field is a triple (F, +, ×), where F is a set, + and × are binary operations
satisfying the above properties. We shall abuse notation by simply writing F for a field.
x
To simplify notation, we shall write xy instead of x × y and
for x × y −1 .
y
Exercise 3.1.2
1. Let F be a field.
41
MAT313
Real Analysis
(a) Show that the additive and multiplicative identities are unique.
(b) Let x ∈ F and y ∈ F \ {0}. Show that −x and y −1 are unique.
ORDER AXIOMS
Definition 3.1.3 An ordered field is a field F on which an order relation < is
defined such that
(i) (trichotomy) for every x, y ∈ F, exactly one of the following holds:
x < y,
x = y,
y < x;
(ii) (transitivity) for all x, y and z, x < y ∧ y < z ⇒ x < z;
(iii) For all x, y, and z in F, x < y ⇒ x + z < y + z. Furthermore, if z > 0, then
xz < yz.
The sets R and Q are examples of ordered fields (under the usual < relation).
Exercise 3.1.4 Show that Z7 = {0, 1, 2, 3, 4, 5, 6} is a field and that Z7 is not an
ordered field under the usual < relation.
COMPLETENESS AXIOM
Definition 3.1.5 Let B be a subset of an ordered field F.
(a) An element u ∈ F is an upper bound for B if x ≤ u for all x ∈ B.
(b) An element ℓ ∈ F is a lower bound for B if ℓ ≤ x for all x ∈ B.
(c) B is said to be bounded if it has both an upper and a lower bound.
(d) An element M ∈ F is the least upper bound for B if
(i) M is an upper bound for B and,
(ii) for all upper bounds α for B, we have M ≤ α.
The least upper bound for B is also called the supremum for B and is usually
abbreviated as lub(B) or sup B.
(e) An element m ∈ F is the greatest lower bound for B if
(i) m is a lower bound for B and,
(ii) for all lower bounds β for B, we have β ≤ m.
The greatest lower bound for B is also called the infimum for B and is usually
abbreviated as glb(B) or inf B.
42
MAT313
Real Analysis
Proposition 3.1.6 A nonempty subset S of an ordered field F can have at most one
least upper bound.
Proof. Assume that λ and ν are both least upper bounds for S. Then, by definition of
the least upper bound, λ ≤ ν ≤ λ. Hence, λ = ν.
Definition 3.1.7 An ordered field F is said to be complete if every nonempty subset
S of F which is bounded above has the least upper bound.
Exercise 3.1.8 Show that in a complete field F, every nonempty subset S of F which is
bounded below has the greatest lower bound.
Theorem 3.1.9 (Characterization of supremum) Let S be a nonempty subset of an
ordered field F, and M ∈ F. Then M = sup S if and only if
(i) M is an upper bound for S, and
(ii) for any ϵ ∈ F with ϵ > 0, there is an element s ∈ S such that M − ϵ < s
Proof. Assume that M is the supremum for S, i.e., M = sup S. Then, by definition,
M is an upper bound for S. If there is an ϵ′ ∈ F with ϵ′ > 0 for which M − ϵ′ ≥ s for all
s ∈ S, then M − ϵ′ is an upper bound for S which is smaller than M , a contradiction.
For the converse, assume that (i) and (ii) hold. Since S is bounded above, it has a
supremum, A (say). Since M is an upper bound for S, we must have that A ≤ M . If
A < M , then with ϵ = M − A, there is an element s in S such that
M − (M − A) < s ≤ A,
i.e., A < A,
which is absurd. Therefore A = M , i.e., M is the supremum of S.
■
Definition 3.1.10 Let (F, <) and (G, <) be ordered fields. An order isomorphism
between F and G is a bijection ϕ : F → G such that for all x, y ∈ F,
(i) ϕ(x + y) = ϕ(x) + ϕ(y);
(ii) ϕ(xy) = ϕ(x)ϕ(y);
(iii) if x < y, then ϕ(x) < ϕ(y).
⋄ A complete ordered field exists. We denote it by R and call it the field of real
numbers.
⋄ There is an order isomorphism between any two complete ordered field.
⋄ It follows from the above two statements that there is essentially one complete
ordered field, viz. R. “Essentially” here means that there is an order
isomorphism between any complete ordered field and the field R of real numbers.
43
MAT313
Real Analysis
Theorem 3.1.11 Let A and B be nonempty subsets of R which are bounded above.
Then the set
S = {a + b : a ∈ A, b ∈ B }
is bounded above and sup S = sup A + sup B.
Proof. Let c ∈ S. Then c = a + b for some a ∈ A and b ∈ B. Thus,
c = a + b ≤ sup A + sup B. Therefore sup A + sup B is an upper bound for S. Since
sup S is the least upper bound for S, we have that sup S ≤ sup A + sup B.
It now remains to show that sup A + sup B ≤ sup S. To that end, let ϵ > 0 be given. By
Theorem 3.1.9, there exist elements xϵ ∈ A and yϵ ∈ B such that
sup A −
ϵ
2
< xϵ , and
sup B −
ϵ
2
< yϵ .
Thus, sup A + sup B − ϵ < xϵ + yϵ ≤ sup S. Since this is true for any ϵ > 0, we have
that sup A + sup B ≤ sup S, whence sup A + sup B = sup S.
■
Exercise 3.1.12
1. Let S ⊆ R be bounded above and let x ∈ R. Show that if
x < sup S, then there exists an s ∈ S such that x < s.
2. Let S be a subset of R which is bounded below. Show that the set
L = {ℓ ∈ R : ℓ is a lower bound for S }
is bounded above and sup L = inf S.
3. Show that if a set S of real numbers is bounded below, then inf S exists.
4. Let S ⊆ T ⊆ R, where S ̸= ∅.
(i) Show that if T is bounded above, then so is S and sup S ≤ sup T .
(ii) Show that if T is bounded below, then so is S and inf T ≤ inf S.
5. For a subset S of R, let −S = {−s : s ∈ S}. Show that if S is bounded below, then
−S is bounded above and sup(−S) = − inf S.
6. Formulate and prove the characterization of infimum analogous to Theorem 3.1.9.
7. Let A and B be non-empty bounded subsets of R.
(i) Show that the set S = {a + b : a ∈ A, b ∈ B} is bounded below and
inf S = inf A + inf B.
(ii) Show that the set D = {a − b : a ∈ A, b ∈ B} is bounded above and
sup D = sup A − inf B.
44
MAT313
Real Analysis
(iii) Show that the set D = {a − b : a ∈ A, b ∈ B} is bounded below and
inf D = inf A − sup B.
(iv) Show that the set A ∪ B is bounded above and
sup(A ∪ B) = max{sup A, sup B}.
8. Let A and B be non-empty bounded subsets of R+ , the set of positive real numbers.
Show that the set P = {ab : a ∈ A, b ∈ B} is bounded and
sup P = sup A · sup B, inf P = inf A · inf B.
3.1.1 The Archimedean Property of the Real Numbers
The following property of real numbers is one of the major consequences of the
Completeness Axiom.
Theorem 3.1.13 (Archimedean Property). The set N of natural numbers is not
bounded above.
Proof. Assume that N is bounded above. By the Completeness Axiom, sup N exists.
Let m = sup N. Then, by Theorem 3.1.9, with ϵ = 1, there is an element k ∈ N such
that m − 1 < k. This implies that m < k + 1 ≤ m, which is absurd.
■
There are several equivalent formulations of the Archimedean Property. We shall
mention just a few of them as corollaries of Theorem 3.1.13.
Corollary 3.1.14 For every real number b there exists an integer m such that m < b.
Proof. For every real number b there is a natural number n such that n > −b. Hence,
m = −n < b.
■
Corollary 3.1.15 Given any real number x, there exists an integer k such that
x − 1 ≤ k < x.
Proof 3.1.16 Let x ∈ R. By Corollary 3.1.14, there is an integer m such that m < x.
By the Archimedean Property, there is a natural number n such that x < n. Hence,
m < x < n. Choose the largest integer k from the finite collection m, m + 1, . . . , n such
that k < x. Then k + 1 ≥ x, and consequently, x − 1 ≤ k < x.
■
Corollary 3.1.17 If x and y are two positive real numbers, then there exists a
natural number n such that nx > y.
y
Proof 3.1.18 Assume that nx ≤ y for all n ∈ N. Then n ≤ for all n ∈ N. This
x
y
means that N is bounded above (by ), contradicting Theorem 3.1.13.
x
Corollary 3.1.19 If ϵ > 0 then there exists an n ∈ N such that
45
1
< ϵ.
n
■
MAT313
Real Analysis
Proof. Take x = ϵ and y = 1 in Corollary 3.1.17.
Since R is a field in which order and completeness axioms and the Archimedean
Property hold, R is called a complete ordered Archimedean field.
■
The following theorem asserts that we can approximate any real number as closely as
we wish by a rational number. A similar statement also holds for irrational numbers.
Theorem 3.1.20 (Density of Rationals in Reals). If x and y are real numbers such that
x < y, then there exists a rational number r such that x < r < y. That is, between any
two distinct real numbers there is a rational number.
Proof. By Corollary 3.1.19, there is a natural number n such that
x<y−
1
< y − x. That is,
n
1
.
n
(3.1.1)
Also, by Corollary 3.1.15, there is an integer k such that
ny − 1 ≤ k < ny, i.e. y −
k
1
≤ < y.
n
n
(3.1.2)
Combining (3.1.1) and (3.1.2), we have that
x<y−
k
1
≤ < y.
n
n
■
Corollary 3.1.21 (Density of Irrationals in Reals). If x and y are real numbers such
that x < y, then there exists an irrational number z such that x < z < y. That is,
between any two distinct real numbers there is an irrational number.
Proof. By Theorem 3.1.20, there are rational numbers r1 and r2 such that
x < r1 < r2 < y.
1
is an irrational number such that x < z < y.
Then z = r1 + r2√−r
2
■
Corollary 3.1.22 Let b be any real number and let S = {q ∈ Q : q < b }. Then
b = sup S. That is, every real number is a supremum of a set of rational numbers.
Proof. Of course, b is an upper bound for the set S. By the Completeness Axiom, S
has a supremum, c = sup S say. By definition of supremum, c ≤ b. If c < b, then by
Theorem 3.1.20, there exists an q ∈ Q such that c < q < b. But then q < b implies that
q ∈ S, and c < q contradicts the fact that c is the supremum of S. Therefore c = b. ■
It is now easy to see why the completeness axiom fails in Q. Indeed, if η is an
irrational number and S = {q ∈ Q : 0 ≤ q < η }, then S is bounded, with sup S = η.
However η does not belong to the set Q.
46
MAT313
3.2
Real Analysis
Topology of the Real Numbers
In this section we briefly discuss some elementary topological properties of the set R of
real numbers.
The Absolute Value Function
Definition 3.2.1 Let x ∈ R. The absolute value of x is defined by
x if x ≥ 0
|x| =
−x if x < 0.
It is clear from the definition that the absolute value of any real number is always
nonnegative.
Theorem 3.2.2 (Properties of the Absolute Value Function). Let x, y ∈ R. Then,
1. |x| ≥ x and |x| ≥ −x.
2. |x| = | − x|.
3. |xy| = |x||y|.
4.
|x|
x
=
for y ̸= 0.
y
|y|
5. |x + y| ≤ |x| + |y|. (Triangle Inequality.)
Proof 3.2.3 Exercise.
If we think of the real numbers as points on the real line, then |x − y| is just the
distance between the real numbers x and y.
Exercise 3.2.4 Let x, y, z ∈ R. Show that
1. |x − y| + |y − z| ≥ |x − z|.
2. |x| + |y| ≥ |x − y|.
3. |x| − |y| ≤ |x − y|.
4. |x| = max{−x, x}.
5. |x − y| < ϵ for all ϵ > 0 if and only if x = y if and only if |x − y| = 0.
47
MAT313
Real Analysis
Open Sets and Closed Sets
Definition 3.2.5 Let a ∈ R and ϵ > 0.
1. An ϵ−neighbourhood of a is the set
N (a, ϵ) = {x ∈ R : |x − a| < ϵ}.
2. A deleted ϵ−neighbourhood of a is the set
N ∗ (a, ϵ) = {x ∈ R : 0 < |x − a| < ϵ}.
It is clear that
N (a, ϵ) = (a − ϵ, a + ϵ) and
N ∗ (a, ϵ) = (a − ϵ, a) ∪ (a, a + ϵ).
Definition 3.2.6 A subset U of R is said to be open if for each s ∈ U there is an
ϵ > 0 such that (s − ϵ, s + ϵ) ⊆ U .
Examples 3.2.7
1. For any a, b ∈ R with a < b, the set (a, b) is open. Indeed, if
s ∈ (a, b), then a < s < b. Take ϵ = min{s − a, b − s}. We claim that
(s − ϵ, s + ϵ) ⊆ (a, b). To prove the claim, let t ∈ (s − ϵ, s + ϵ). Then,
s − ϵ < t < s + ϵ ⇒ s − (s − a) ≤ s − ϵ < t < s + ϵ ≤ s + (b − s),
whence a < t < b, which proves the claim.
2. The sets (−1, 0) ∪ (3, 7) and (−∞, 4) ∪ (6, 9) ∪ (12, 20) are open.
3. The sets R, ∅ are open.
4. The set Q of rational numbers is not open in R. Indeed, if r ∈ Q, then for any ϵ > 0
the interval (r − ϵ, r + ϵ) contains an irrational number. Thus, Q is not open.
5. The set R \ Q of irrational numbers is not open. The reasoning is the same as in the
previous example.
Theorem 3.2.8
set.
(1) A union of an arbitrary collection of open sets in R is an open
(2) An intersection of a finite collection of open sets in R is an open set.
48
MAT313
Real Analysis
Proof 3.2.9[(1) Let {Ui | i ∈ I} be
[a collection of open sets in R. We want to show
that the set
Ui is open. Let x ∈
Ui . Then x ∈ Uk for some k ∈ I. Since Uk is
i∈I
i∈I
open, we can find an ϵ > 0 such that (x − ϵ, x + ϵ) ⊆ Uk . Since Uk ⊆
[
Ui , we have
i∈I
that (x − ϵ, x + ϵ) ⊆
[
Ui , which proves the desired result.
i∈I
(2) Let U1 , U2 , . . . Un be open sets in R. We want to show that the set
Let x ∈
n
\
Uk is open.
k=1
n
\
Uk . Then x ∈ Uk for all k = 1, 2, . . . , n. Since Uk is open for each
k=1
k = 1, 2, . . . , n, we can find an ϵk > 0 such that (x − ϵk , x + ϵk ) ⊆ Uk for each
k = 1, 2, . . . , n. Let ϵ = min{ϵ1 , ϵ2 , . . . , ϵn }. Then (x − ϵ, x + ϵ) ⊆ Uk for each
n
n
\
\
k = 1, 2, . . . , n, and consequently, (x − ϵ, x + ϵ) ⊆
Uk . That is, the set
Uk is
k=1
k=1
open.
An arbitrary
intersection of open sets need not be open. For example, if
T
−1 1
,
, then ∞
Ik =
k=1 Ik = {0}, which is not open.
k k
■
The following theorem completely characterises open subsets of R.
Theorem 3.2.10 A subset of R is open if and only if it is a countable union of
disjoint open intervals in R.
Proof 3.2.11 Let G be an open subset of R and x ∈ G. Denote by Ix the union of all
open intervals in G that contain x. Note that since G is open, there is an ϵ > 0 such
that (x − ϵ, x + ϵ) ⊆ G. There is therefore at least one open interval that contains x and
is contained in G. Clearly Ix ⊆ G. Let
αx = inf{a ∈ R | (a, x] ⊆ G} and
βx = sup{b ∈ R | [x, b) ⊆ G}.
Claim 1: Ix = (αx , βx ).
Ix ⊆ (αx , βx ) : Let y ∈ Ix . Then there is an open interval (a, b) ⊆ G with x ∈ (a, b)
such that y ∈ (a, b). Since (a, b) ⊆ G and x ∈ (a, b), it follows that (a, x] ⊆ G and
[x, b) ⊆ G. Thus, αx ≤ a and b ≤ βx . Therefore
αx ≤ a < y < b ≤ β x
and consequently y ∈ (αx , βx ).
(αx , βx ) ⊆ Ix : It is clear that (αx , βx ) is an open interval and x ∈ (αx , βx ). It remains
to show that (αx , βx ) ⊆ G. To that end, let y ∈ (αx , βx ). The either y ≤ x or x ≤ y.
Without loss of generality, we assume that y ≤ x. By characterization of αx (as the
49
MAT313
Real Analysis
infimum), given any ϵ > 0, there is an aϵ ∈ R such that (aϵ , x] ⊆ G and aϵ < αx + ϵ. In
x
particular, taking ϵ = y−α
2 , we have that
aϵ < αx +
y − αx
αx + y
=
.
2
2
Since αx < y, it follows that
aϵ <
αx + y
y+y
<
= y ≤ x.
2
2
Therefore y ∈ (aϵ , x] ⊆ G, and so y ∈ G.
If x ≤ y, then we can similarly show that y ∈ G.
Claim 2: If x, y ∈ G, then either Ix = Iy or Ix ∩ Iy = ∅. Assume that z ∈ Ix ∩ Iy .
Then z ∈ Ix and z ∈ Iy . Therefore, Ix is an open interval in G which contains z, and
so Ix ⊆ Iz . Since x ∈ Ix ⊆ Iz , Iz is an open interval in G which contains x. Hence
Iz ⊆ Ix . It now follows that Ix = Iz . Similarly, Iz = Iy , whence Ix = Iy . This shows
that {Ix | x ∈ G}
[is a collection of disjoint open intervals.
[
Claim 3: G =
Ix . Since Ix ⊆ G for each x ∈ G, it follows that
Ix ⊆ G. On the
x∈G
x∈G
other hand, if x ∈ G, then, since G is open, there is an open interval[(a, b) ⊆ G such
that x ∈ (a, b) Since (a, b) ⊆ Ix , it follows that x ∈ Ix , whence G ⊆
Ix .
x∈G
Claim 4: We can replace the intervals Ix by a countable collection of disjoint intervals.
For each x ∈ G, αx < x < βx . Since rationals are dense in reals, there are rational
numbers rx and sx such that αx < rx < x < sx < βx for each x ∈ G. Thus,
x ∈ (rx , sx ) ⊆ (αx , βx ) = Ix for each x ∈ G.
It now follows that
G⊆
[
(rx , sx ) ⊆
x∈G
That is, G =
[
[
Ix = G.
x∈G
(rx , sx ). The intervals {(rx , sx ) | x ∈ G} are clearly disjoint.
x∈G
Conversely, assume that G is a countable union of disjoint open intervals. Since an
open interval is an open set and an arbitrary union of open sets is open, it follows that
G is also open.
■
Definition 3.2.12 Let S be a subset of R, and x ∈ R. Then
(a) x ∈ S is called an interior point of S if there is an ϵ > 0 such that
(x − ϵ, x + ϵ) ⊆ S. The set of all interior points of a set S is denoted by S ◦ or
int(S).
(b) x is called a boundary point of S if for every ϵ > 0 the interval (x − ϵ, x + ϵ)
contains points of S as well as points of R \ S. The set of boundary points of S is
denoted by ∂S or bd(S).
50
MAT313
Real Analysis
(c) x ∈ S is called an isolated point of S if there exists an ϵ > 0 such that
(x − ϵ, x + ϵ) ∩ S = {x}.
It is clear from the definition that each point of an open set S is an interior point of S.
Also, every isolated point of a set S is a boundary point of S.
Examples 3.2.13
1. Let S = {x ∈ R : 0 ≤ x < 1 }. Then
S o = {x ∈ R : 0 < x < 1 }, ∂S = {0, 1}. S does not have isolated points.
1
2. Let S =
: n ∈ N . Then each point of S is an isolated point of S. Therefore
n
S ⊆ ∂S.
1 1
3. Let S = 1, , , . . . , 0 . Then ∂S = S.
2 3
4. The set N of natural numbers consists of isolated points only. Therefore, every point
of N is a boundary point. Clearly, N◦ = ∅.
5. Z◦ = ∅, and R◦ = R.
6. Each set with only finitely many elements consists entirely of isolated points.
The following Theorem asserts that elements of a set S ⊆ R can be divided into two
groups: those that are interior to the set and those that are on the boundary of the set
S.
Theorem 3.2.14 Let S ⊆ R. Then each point of S is either an interior point of S or
is a boundary point of S.
Proof 3.2.15 Let s ∈ S. If s is not an interior point of S, then for each ϵ > 0 the
interval (s − ϵ, s + ϵ) contains a point in R \ S. Since (s − ϵ, s + ϵ) already contains a
point s of the set S, we have that this interval contains a point in S as well as a point
in R \ S. Hence s is a boundary point of S.
■
Definition 3.2.16 A subset S of R is said to be closed if its complement R \ S is
open.
Examples 3.2.17
1. The interval [a, b] is closed since its complement
(−∞, a) ∪ (b, ∞) is open.
2. The sets R and ∅ are closed.
3. The set Q of rational numbers is not closed.
4. The set R \ Q of irrational numbers is not closed.
51
MAT313
Real Analysis
5. The set {1, 3, 4, 7 } is closed since its complement
(−∞, 1) ∪ (1, 3) ∪ (3, 4) ∪ (4, 7) ∪ (7, ∞) is open.
1
6. The set S =
: n ∈ N ∪ {0} is closed since its complement
n
" ∞ #
[
1
1
∪ (1, ∞)
,
(−∞, 0) ∪
k+1 k
k=1
is open.
Definition 3.2.18 Let S be a subset of R.
(1) A point x ∈ R is an accumulation point of S if for every ϵ > 0 there exists an
element s ∈ S such that 0 < |x − s| < ϵ; i.e., [ (x − ϵ, x) ∪ (x, x + ϵ) ] ∩ S ̸= ∅. In
other words, x is an accumulation point of S if every deleted ϵ-neighbourhood
N ∗ (x, ϵ) of x contains a point of S.
The set of all accumulation points of S is called the derived set of S and is
denoted by S ′ .
(2) S is said to be dense in itself if S ⊆ S ′ .
(3) S is called perfect if S = S ′ .
(4) The closure of S is the set S = S ∪ S ′ .
Remarks 3.2.19
(1) An accumulation point of a set S need not be an element of S.
(2) A real number x is an accumulation point of a set S ⊆ R if for each ϵ > 0 the
interval (x − ϵ, x + ϵ) contains infinitely many elements of S. Indeed, if x is an
accumulation point of S then, for any ϵ > 0, there exists an element s1 ∈ S with
s1 ̸= x, such that 0 < |x − s1 | < ϵ. Taking ϵ1 = |x − s1 |, there exists an element
s2 ∈ S with s2 ̸= x, such that 0 < |x − s2 | < ϵ1 < ϵ. Taking ϵ2 = |x − s2 |, there
exists s3 ∈ S with s3 ̸= x such that 0 < |x − s3 | < ϵ2 < ϵ. Continuing in this way we
obtain a sequence (sn ) with the property that sn ̸= x and |sn − x| < ϵ for all n.
1. Elements of a set S ⊆ R can be divided into two groups: isolated points = those
points that can be separated from the rest of the set with an open interval, and
accumulation points = those points that cannot be separated from the rest of
the set with an open interval.
Examples 3.2.20
1. Let S = {x ∈ R : 0 < x ≤ 1 }. Then
S ′ = {x ∈ R : 0 ≤ x ≤ 1 }. Therefore S = S ∪ S ′ = S ′ .
2. If S = {x ∈ R : a ≤ x ≤ b }, then S ′ = S. Therefore S = S.
52
MAT313
Real Analysis
1
3. If S =
: n ∈ N , then S ′ = {0}. Indeed, if ϵ > 0, then there is an m ∈ N
n
1
1
1
1
< ϵ. Therefore −ϵ < m
< ϵ; i.e., m
∈ (−ϵ, ϵ). Since m
∈ S, it
such that 0 < m
∗
follows that for each ϵ > 0, N (0, ϵ) ∩ S ̸= ∅. Also
S = S ∪ S ′ = n1 : n ∈ N ∪ {0}. Note that 0 ̸∈ S.
4. Every real number is an accumulation point of the set Q of rational numbers; that is,
Q′ = R. Indeed, if x ∈ R and ϵ > 0, then the interval (x − ϵ, x + ϵ) contains
infinitely many rational numbers. It now follows that Q = Q ∪ Q′ = Q ∪ R = R.
5. If Z is the set of integers, then Z′ = ∅. Indeed, for any x ∈ R we can find an ϵ > 0
small enough such that (x − ϵ, x + ϵ) contains no integer, except possibly when x is
itself an integer. It thus follows that Z = Z ∪ Z′ = Z ∪ ∅ = Z.
6. A finite set has no accumulation points. Indeed, if S = { s1 , s2 , . . . , sn }, and
x ∈ R, then taking ϵ = min{ |sj − x|, j = 1, 2, . . . , n }, we have that ϵ > 0 and
[ (x − ϵ, x) ∪ (x, x + ϵ) ] ∩ S = ∅.
Thus S ′ = ∅, and so S = S.
Another way of seeing that a finite set S has no accumulation points is simply that
no ϵ-neighbourhood can contain infinitely many points of S since S is finite!
Theorem 3.2.21 Let S ⊆ R. Then S is closed if and only if S contains all its
accumulation points.
Proof 3.2.22 Suppose that S is closed and let x ∈ S ′ . We want to show that x ∈ S. If
x ̸∈ S, then x ∈ R \ S. Since S is closed, R \ S is open. Therefore there exists an ϵ > 0
such that (x − ϵ, x + ϵ) ⊆ R \ S. This then implies that (x − ϵ, x + ϵ) ∩ S = ∅. But this
contradicts the fact that x ∈ S ′ . Thus S ′ ⊆ S.
To prove the converse, assume that S ′ ⊆ S. We want to show that S is closed, or
equivalently, that R \ S is open. To this end, let x ∈ R \ S. Then x ̸∈ S ′ , and so there
is an ϵ > 0 such that
[ (x − ϵ, x) ∪ (x, x + ϵ) ] ∩ S = ∅.
Since x ̸∈ S, we have that (x − ϵ, x + ϵ) ∩ S = ∅. Thus (x − ϵ, x + ϵ) ⊆ R \ S, whence
R \ S is open.
■
Corollary 3.2.23 Let S ⊆ R. Then S is closed if and only if S = S.
Proof 3.2.24 Assume that S is closed. Then, by Theorem 3.2.21, S ′ ⊆ S. Therefore
S = S ∪ S ′ ⊆ S ∪ S = S. But S ⊆ S ∪ S ′ = S. Thus S = S.
Conversely, assume that S = S. Then S ′ ⊆ S ∪ S ′ = S = S. Thus S contains all its
accumulation points and, consequently, S is closed.
■
1 1 1
It follows from Theorem 3.2.21 that the sets [a, b], Z, S = 1, , , , . . . , 0 are all
2 3 4
closed, as is any finite set.
53
MAT313
Real Analysis
Theorem 3.2.25 If S ⊆ R is closed and bounded, then sup S and inf S belong to S.
Proof 3.2.26 Let s = sup S. (sup S exists because S is bounded above.) Then, for any
ϵ > 0, there is an xϵ ∈ S such that s − ϵ < xϵ ≤ s < s + ϵ. If xϵ = s, then s ∈ S and we
are done. If xϵ < s, then 0 < |s − xϵ | < ϵ. That is, for every ϵ > 0, there is an xϵ ∈ S
such that 0 < |s − xϵ | < ϵ. Thus s ∈ S ′ . Since S is closed, s ∈ S.
A similar argument shows that inf S ∈ S.
■
3.3 Compactness
Definition 3.3.1 An open cover of a set S ⊆ R is a collection G = {Gα | α ∈ Λ} of
open sets such that
[
S⊆
Gα .
α∈Λ
′
′
′
If G ⊆ G and G is also an open cover for S, then G is called a subcover for S. If, in
′
′
addition, G has a finite number of elements, then G is called a finite subcover of S.
Examples 3.3.2
1. Let S = [0, ∞) and, for each n ∈ N, let Gn = (−1, n). Then
G = {Gn | n ∈ N} is an open cover for S.
2. Let S = [0, 1] and for each n ∈ N, let An = (− n1 , 1 + n1 ). Then A = {An | n ∈ N} is
an open cover for S.
3. Let S = (0, 1) and U = {( n1 , 2) | n ∈ N}. Then U is an open cover for S. Indeed, let
x ∈ (0, 1). Then, by the Archimedean Property, there is a natural number m such
[ 1
1
1
that 0 < m
< x. Therefore x ∈ ( m
, 2), whence, (0, 1) ⊆
( , 2).
n
n∈N
Definition 3.3.3 A subset S of R is said to be compact if every open cover for S
has a finite subcover.
Examples 3.3.4
1. A finite subset of R is compact. Indeed, let
S = {x1 , x2 , . . . , xn } and let G = {Gα | α ∈ Λ} be an open cover for S. Then
each xi belongs to some Gαi in G. The set G c = {Gαi | 1 ≤ i ≤ n} is a finite
subcover for S.
2. The set R of real numbers is not compact since the open cover
C = {(−n, n) | n ∈ N} of R does not have a finite subcover.
Theorem 3.3.5 Let S be a compact subset of R. If F is a closed subset of S, then F
is compact.
54
MAT313
Real Analysis
Proof 3.3.6 Let U = {Uα | α ∈ Λ} be an open cover for F . Then G = U ∪ {F c } is an
open cover for S. Since S is compact, the cover G is reducible to a finite subcover.
That is, there are indices α1 , α2 , . . . , αn such that
S⊆
n
[
Uαi ∪ F c .
i=1
Since F ⊆ S and F ∩ F c = ∅, it follows that F ⊆
n
[
Uαi . Hence F is compact.
■
i=1
Theorem 3.3.7 Let a and b be real numbers such that −∞ < a < b < ∞. Then the
interval [a, b] is compact.
Proof 3.3.8 Let U = {Ui | i ∈ I} be an open cover for the interval [a, b] and let
A = {x ∈ [a, b] | [a, x] has a finite subcover in U}.
Clearly A ̸= ∅ since a ∈ A. Also, A is bounded above as x ≤ b for all x ∈ A. By the
Completeness Axiom, sup A exists. Let c = sup A. Then a ≤ c ≤ b.
Claim 1: The element c belongs to A.
Proof of Claim 1: Since U is an open cover for the interval [a, b], there is an index i0
such that c ∈ Ui0 . Then, since Ui0 is open, there is an ϵ > 0 such that
(c − ϵ, c + ϵ) ⊆ Ui0 . In particular, (c − ϵ, c] ⊆ Ui0 . By characterization of the
supremum, there is an element xϵ ∈ A such that c − ϵ < xϵ ≤ c. Therefore a ≤ xϵ ≤ c
and so the interval [a, c] = [a, xϵ ] ∪ [xϵ , c] has a finite subcover in U. [The interval
[a, xϵ ] is finitely covered in U since xϵ ∈ A. The interval [xϵ , c] is covered by the set
Ui0 .] It now follows that c ∈ A.
Claim 2: c = b.
Proof of Claim 2: If c < b, then, since U is an open cover for [a, b], there is a Ui0 in U
such that c ∈ Ui0 . Since Ui0 is open, there is a δ > 0 such that (c − δ, c + δ) ⊆ Ui0 .
Choose δ > δ c > 0 small enough such that [c, c + δ c ] ⊆ Ui0 and c + δ c < b. Then
c + δ c ∈ [a, b] and [a, c + δ c ] = [a, c] ∪ [c, c + δ c ] has a finite subcover in U. [The interval
[a, c] is finitely covered in U since c ∈ A and the interval [c, c + δ c ] is covered by the
open set Ui0 ∈ U.] This shows that c + δ c is in A. But this contradicts the fact that c is
the supremum of A. Hence, c = b.
By definition of the set A, we conclude that [a, b] can be covered by finitely many
elements of U. That is, [a, b] is compact.
■
Theorem 3.3.9 (Heine-Borel Theorem). A subset K of R is compact if and only if K
is closed and bounded.
Assume that K is compact. We show that K is closed and bounded.
Closedness of K: It suffices to show that the complement, R \ K, of K is open. To that
end, let x0 ∈ R \ K and for each k ∈ N, let
1
1
1
Uk = x ∈ R | |x − x0 | >
= −∞, x0 −
∪ x0 + , ∞ .
k
k
k
55
MAT313
Then
∞
[
Real Analysis
Uk = R \ {x0 } and U = {Uk | k ∈ N} is an open cover for K. Since K is
k=1
compact, this cover of K is reducible to a finite subcover. That is, there are indices
n
[
k1 , k2 , . . . , kn such that K ⊆
Ukj . Let kmax = max{k1 , k2 , . . . , kn }. Then
j=1
K⊆
n
[
Ukj = −∞, x0 −
j=1
1
∪ x0 +
kmax
1
kmax
, ∞ = x ∈ R | |x − x0 | >
1
kmax
.
Hence,
x ∈ R | |x − x0 | <
1
kmax
⊆ x ∈ R | |x − x0 | ≤
1
kmax
⊆ R \ K,
whence R \ K is open and so K is closed.
Boundedness of K: Let U = {(−k, k) | k ∈ N}. Then U is an open cover for K. Indeed,
K⊆R=
[
(−k, k).
k∈N
Since K is compact, there are natural numbers k1 , k2 , . . . , kn such that
n
[
K⊆
(−kj , kj ). Let kmax = max{k1 , k2 , . . . , kn }. Then
j=1
K⊆
n
[
(−kj , kj ) = (−kmax , kmax ).
j=1
It now follows that K is bounded since it is contained in the bounded interval
(−kmax , kmax ).
Conversely, assume that K is a closed and bounded subset of R. Then there are real
numbers a and b such that K ⊆ [a, b]. It now follows from Theorem 3.3.7 and
Theorem 3.3.5 that K is compact.
■
We now apply the Heine-Borel Theorem to prove another important result: the
Bolzano-Weierstrass Theorem (for sets).
Theorem 3.3.10 (Bolzano-Weierstrass Theorem for sets). Every bounded infinite set
of real numbers has at least one accumulation point.
Proof 3.3.11 Let S be a bounded infinite set of real numbers. Suppose that S has no
accumulation points. That is, the derived set of S, S c , is empty. Therefore
S = S ∪ S c = S, and so S is closed. Thus S is a closed and bounded subset of R. By
the Heine-Borel Theorem (Theorem 3.3.9), S is compact. Since S has no accumulation
points, given any x ∈ S, there is an ϵ > 0 such that S ∩ N (x, ϵ) = {x}. Therefore, the
collection {N (x, ϵ) | x ∈ S, ϵ > 0} is an open cover for S. Since S is compact, there
56
MAT313
Real Analysis
exist x1 , x2 , . . . , xn in S and positive numbers ϵ1 , ϵ2 , . . . , ϵn such that
n
[
S⊆
N (xk , ϵk ). But then
k=1
S=S∩
n
[
k=1
N (xk , ϵk ) =
n
[
(S ∩ N (xk , ϵk )) =
k=1
n
[
{xk } = {x1 , x2 , . . . , xn }.
k=1
That is, S = {x1 , x2 , . . . , xn }, a finite set. This is a contradiction since S has
infinitely many points.
■
Exercise 3.3.12
1. We showed in Theorem 3.3.5 that a closed subset F of a
compact set K is compact. Supply another proof to this statement by using the
Heine-Borel Theorem.
2. Show that the interval (0, 1) is not compact by
(a) showing that U = {( n1 , 2) | n ∈ N} is an open cover for (0, 1) with no finite
subcover.
(b) using the Heine-Borel Theorem.
3. Show that the interval [0, ∞) is not compact by
(a) showing that G = {(−1, n) | n ∈ N} is an open cover for [0, ∞) with no finite
subcover.
(b) using the Heine-Borel Theorem.
4. Show that the set N is not compact by
(a) finding an open cover for N that has no finite subcover.
(b) using the Heine-Borel Theorem.
5. Show that if F is closed and K compact, then F ∩ K is compact by
(a) using the definition of compactness.
(b) applying the Heine-Borel Theorem.
6. Show that an arbitrary intersection of compact subsets of R is compact.
7. Show that if A and B are compact subsets of R then so is A ∪ B by
(a) using the definition of compactness.
(b) applying the Heine-Borel Theorem.
8. Find an infinite collection {Kn | n ∈ N} of compact sets in R such that
[
Kn is
n∈N
not compact. This shows that an arbitrary union of compact sets is not compact.
9. Show that a subset K of R is compact if and only of every infinite subset of K has
an accumulation point in K.
57
MAT313
Real Analysis
58
Chapter 4
Sequences of Real Numbers
4.1 Introduction
In this chapter we study convergence of sequences of real numbers. We prove, among
others, the Monotone Convergence Theorem, the Bolzano-Weierstrass Theorem for
sequences, and the Cauchy Criterion for sequences of real numbers.
Definition 4.1.1 A sequence is a function whose domain is the set N of natural
numbers. If f is such a sequence, let f (n) = xn denote the value of the function f at
n ∈ N. In this case, we denote the sequence f by (xn )∞
n=1 (or simply by (xn )).
Examples 4.1.2
1.
n
n+1
is the sequence ( 12 , 23 , 34 , . . .).
2. ( (−1)n ) is the sequence (−1, 1, −1, . . .).
3. ( 2n ) is the sequence (2, 4, 8, . . .).
Sequences are also frequently specified by giving a recursion formula. For example, if
xn + xn+1
xn+2 =
, where x1 = 0 and x2 = 1, then the terms of the sequence (xn ) are:
3
1 4
7
(0, 1, 3 , 9 , 27 , . . .).
Remarks 4.1.3
1. The order of the terms of a sequence is an important part in the
definition of a sequence. For example, the sequence (1, 5, 7, . . .) is not the same as
the sequence (1, 7, 5, . . .).
2. There is a distinction between the terms of a sequence and the values of a sequence.
A sequence has infinitely many terms while its values may or may not be finite.
3. It is not necessary for the terms of a sequence to be different. For example,
(1, 2, 2, 2, . . . ) is a perfectly good sequence.
59
MAT313
Real Analysis
Exercise
down the first fivetermsof each of the following sequences.
Write 2 4.1.4
cos nπ 1
nπ n + 2n
√
(ii)
(iii)
(iv)
sin
(i)
.
3n
n2
2
n
Definition 4.1.5 A sequence (xn ) is said to be
1. bounded above if there is a real number K such that xn ≤ K for all n ∈ N;
2. bounded below if there is a real number k such that k ≤ xn for all n ∈ N;
3. bounded if it is bounded above and bounded below; otherwise it is unbounded.
It is easy to see that a sequence (xn )n is bounded if and only if there is a positive real
number M such that |xn | ≤ M for all n ∈ N.
Examples 4.1.6
1. The sequence
2. The sequence
1
n+
n
1
n
is bounded since 0 <
1
≤ 1 for all n ∈ N.
n
is bounded below by 2 but is not bounded above.
3. The sequence ((−1)n n) is not bounded above and it is not bounded below.
Definition 4.1.7
1. A sequence (xn ) is said to converge to a real number ℓ if,
given ϵ > 0, there exists a natural number N (which depends on ϵ) such that
|xn − ℓ | < ϵ for all n ≥ N.
Symbolically,
(∀ϵ > 0)(∃N ∈ N)[(∀n ≥ N ) ⇒ |xn − ℓ| < ϵ].
If (xn ) converges to ℓ, then we say that ℓ is the limit of the sequence (xn ) as n
increases without bound, and we write
lim xn = ℓ or xn → ℓ as n → ∞.
n→∞
2. If the sequence (xn ) does not converge to a real number, we say that it diverges.
3. A sequence (xn ) is said to diverge to ∞, denoted by xn → ∞ as n → ∞, if for
any positive real number M , there is an N ∈ N such that
xn > M for all n ≥ N.
Similarly, (xn ) diverges to −∞, denoted by xn → −∞ as n → ∞, if for any
negative real number K, there is an N ∈ N such that
xn < K for all n ≥ N.
60
MAT313
Real Analysis
It is clear from the definition that convergence or divergence of a sequence is about the
behaviour of the ‘tail-end’ of a sequence. Therefore, altering a finite number of terms of
a sequence does not affect its convergence or divergence.
Examples 4.1.8
1. Show that a sequence (xn ) converges to zero if and only if the
sequence (|xn |) converges to zero.
Solution: Assume that the sequence (xn ) converges to zero. Then, given ϵ > 0, there
exists a natural number N (which depends on ϵ) such that
|xn − 0 | = |xn | < ϵ for all n ≥ N.
Now, for all n ≥ N , we have
||xn | − 0| = |xn | < ϵ.
That is, the sequence (|xn |) converges to zero.
For the converse, assume that the sequence (|xn |) converges to zero. That is, given
ϵ > 0, there exists a natural number N (which depends on ϵ) such that
||xn | − 0 | = |xn | < ϵ for all n ≥ N.
It now follows that the sequence (xn ) converges to zero.
2. Show that lim
1
n→∞ n
= 0.
Solution: Let ϵ > 0 be given. We must find an N ∈ N such that
1
− 0 < ϵ for all n ≥ N.
n
By the Archimedean Property, there is an N ∈ N such that 0 < N1 < ϵ. Thus, if
n ≥ N , then we have that
1
1
1
−0 = ≤
< ϵ.
n
n
N
That is, lim
1
n→∞ n
= 0.
1
3. Show that lim 1 − n = 1.
n→∞
2
Solution: Let ϵ > 0 be given. We need to find an N ∈ N such that
1
1 − n − 1 < ϵ for all n ≥ N.
2
61
MAT313
Real Analysis
Noting that
1
1
1
1− n −1 = n =
, and
2
2
(1 + 1)n
n X
n
n
n
n
n
n
n
(1 + 1) =
=
+
+
+ ··· +
>
= n,
k
0
1
2
n
1
k=0
we have that
1
1
1
=
< .
n
n
2
(1 + 1)
n
Now, by the Archimedean Property, there is an N ∈ N such that 0 < N1 < ϵ.
Therefore, for all n ≥ N we have
1
1
1
1
1− n −1 = n < ≤
< ϵ.
2
2
n
N
1
Thus, lim 1 − n = 1.
n→∞
2
4. Find lim
n
n→∞ n2 − 2
.
Solution: By trying a few values of n, we conjecture that lim
n
n→∞ n2 − 2
= 0. Let us
prove this conjecture. Let ϵ > 0 be given. We need to find an N ∈ N such that
n
n2 − 2
− 0 < ϵ for all n ≥ N.
We first note that
n
n
= 2
.
n2 − 2
|n − 2|
If we take N ≥ 2, then for all n ≥ N , we have that
n
n
1
1
1
= 2
=
≤
.
<
|n2 − 2|
n −2
n−1
N −1
n − n2
If we can choose N so that N ≥ 2 and N 1−1 < ϵ, then we are done. That is, we need
1
1
to choose N so that N ≥ 2 and N > 1 + . Choose N > max 2, 1 +
. Then,
ϵ
ϵ
by working backwards, we have that
n
n2 − 2
− 0 < ϵ for all n ≥ N.
5. Show that the sequence ((−1)n ) diverges.
62
MAT313
Real Analysis
Solution: Assume that this sequence converges to some real number ℓ. Then, with
1
ϵ = , there is an N ∈ N such that
2
1
for all n ≥ N.
2
|(−1)n − ℓ | <
In particular,
|(−1)n+1 − ℓ | <
1
.
2
Therefore, for all n ≥ N ,
2 = |(−1)n − (−1)n+1 | ≤ |(−1)n − ℓ | + |ℓ − (−1)n+1 | <
1 1
+ = 1,
2 2
which is absurd.
6. Show that the sequence (1 + (−1)n ) diverges.
Solution: Assume that this sequence converges to some real number ℓ. Then, with
ϵ = 1, there exists a number N ∈ N such that
|(1 + (−1)n ) − ℓ | < 1 for all n ≥ N.
Now, if n ≥ N is odd, then we have
|(1 + (−1)n ) − ℓ | = |ℓ| < 1, whence − 1 < ℓ < 1,
and if n ≥ N is even, we have that
|(1 + (−1)n ) − ℓ | = |2 − ℓ| < 1, whence 1 < ℓ < 3.
But this is impossible.
7. Show that if x ∈ R and |x| < 1, then lim xn = 0.
n→∞
Solution: If x = 0, then there is nothing to prove. Assume that x ̸= 0. Since |x| < 1,
1
we have that
> 1. Thus, there is a positive real number a such that
|x|
1
= 1 + a.
|x|
Let ϵ > 0 be given. We want to find an N ∈ N such that
|xn − 0| < ϵ for all n ≥ N.
Now,
1
=1+a
|x|
⇒
|xn | = |x|n =
63
1
.
(1 + a)n
MAT313
Real Analysis
Using the binomial theorem, we have that
n X
n k
n(n − 1)a2
n
(1 + a) =
a = 1 + na +
+ · · · + an > na,
2
k
k=0
and consequently,
|xn | =
1
1
<
.
n
(1 + a)
na
1
If we can find an N ∈ N such that
< ϵ for all n ≥ N , then we are done. Since
na
aϵ > 0, we have, by the Archimedean Property, that there is an N ∈ N such that
1
< aϵ. Hence, for all n ≥ N , we have that
N
1
1
1
1
≤
⇒
≤
< ϵ,
n
N
na
Na
and so |xn | < ϵ.
8. Suppose that (xn ) is a sequence such that xn > 0 for all n ∈ N. Show that xn → ∞
1
as n → ∞ if and only if lim
= 0.
n→∞ xn
Solution: By definition, xn → ∞ as n → ∞, if and only if for any ϵ > 0 there is an
N ∈ N such that
1
xn > for all n ≥ N.
ϵ
This is equivalent to the statement that
1
1
< ϵ for all n ≥ N, which, in turn, is equivalent to lim
= 0.
n→∞ xn
xn
Theorem 4.1.9 Let (sn ) and (tn ) be sequences of real numbers and let s ∈ R. If for
some positive real number k and some N1 ∈ N, we have
|sn − s| ≤ k|tn | for all n ≥ N1
and if lim tn = 0, then lim sn = s.
n→∞
n→∞
Proof 4.1.10 Let ϵ > 0 be given. Since tn → 0 as n → ∞, there exists an N2 ∈ N
such that
ϵ
for all n ≥ N2 .
|tn | <
k
Let N = max{N1 , N2 }. Then for all n ≥ N we have
ϵ
|sn − s| ≤ k|tn | < · k = ϵ.
k
That is, lim sn = s.
■
n→∞
64
MAT313
Real Analysis
√
Example 4.1.11 Show that lim n n = 1.
n→∞
√
Solution: Since n n ≥ 1 for each n ∈ N, there is a nonnegative real number an such that
√
n
n = 1 + an .
Thus, by the binomial theorem, we have
n X
n k
n(n − 1)a2n
n(n − 1)a2n
n = (1 + an ) =
an = 1 + nan +
+ · · · + ann ≥ 1 +
.
2
2
k
n
k=0
Therefore,
2
n(n − 1)a2n
, whence a2n ≤ , or an ≤
n−1≥
2
n
r
2
n
for all
n ≥ 2.
Now, since
√
n
r
and lim
n→∞
r
n − 1 = |an | = an ≤
2
n
√
2
= 0, we have, by Theorem 4.1.9, that lim n n = 1.
n→∞
n
□
The next theorem says that a convergent sequence has only one limit. It is therefore
unambiguous to talk of the limit of a convergent sequence.
Theorem 4.1.12 Let (sn ) be a sequence of real numbers. If lim sn = ℓ1 and
n→∞
lim sn = ℓ2 , then ℓ1 = ℓ2 .
n→∞
Proof 4.1.13 Let ϵ > 0 be given. Then there exist natural numbers N1 and N2 such
that
|sn − ℓ1 | <
ϵ
for all n ≥ N1 , and
2
|sn − ℓ2 | <
ϵ
for all n ≥ N2 .
2
Let N = max{N1 , N2 }. Then for all n ≥ N we have that
|ℓ1 − ℓ2 | = |(sn − ℓ2 ) + (ℓ1 − sn )| ≤ |sn − ℓ2 | + |sn − ℓ1 | <
Since ϵ > 0 is arbitrary, we have that ℓ1 = ℓ2 .
ϵ
ϵ
+ = ϵ.
2 2
■
Proposition 4.1.14 A sequence (xn ) converges to ℓ ∈ R if and only if for each ϵ > 0,
the set {n | xn ̸∈ (ℓ − ϵ, ℓ + ϵ)} is finite.
65
MAT313
Real Analysis
Proof 4.1.15 Assume that the sequence (xn ) converges to ℓ. Then, given ϵ > 0, there
is a natural number N such that, for all n ≥ N ,
|xn − ℓ| < ϵ ⇐⇒ {xn | n ≥ N } ⊆ (ℓ − ϵ, ℓ + ϵ).
It now follows that {n ∈ N | xn ̸∈ (ℓ − ϵ, ℓ + ϵ)} ⊆ {1, 2, . . . , N − 1}, a finite set.
Conversely, let ϵ > 0 be given and assume that the set {n ∈ N | xn ̸∈ (ℓ − ϵ, ℓ + ϵ)} is
finite. Let N = max{n ∈ N | xn ̸∈ (ℓ − ϵ, ℓ + ϵ)} + 1. If n ≥ N , then
xn ∈ (ℓ − ϵ, ℓ + ϵ) ⇐⇒ |xn − ℓ| < ϵ,
and so xn → ℓ as n → ∞.
■
Theorem 4.1.16 Every convergent sequence of real numbers is bounded.
Proof 4.1.17 Let (sn ) be a sequence of real numbers which converges to s, say. Then,
with ϵ = 1, there exists an N ∈ N such that
|sn − s| < 1 for all n ≥ N.
By the triangle inequality, we have that
|sn | ≤ |sn − s| + |s| < 1 + |s| for all n ≥ N.
Let M = max{|s1 |, |s2 |, . . . , |sN |, |s| + 1 }. Then |sn | ≤ M for all n ∈ N. That is, the
sequence (sn ) is bounded.
■
The converse of Theorem 4.1.16 is not necessarily true. That is, there are sequences
which are bounded but do not converge. One such example is the sequence ((−1)n ). We
shall however see later that every bounded sequence which is monotone will always
converge.
Exercise 4.1.18
1. Show that if sn → s, then |sn | → |s|. Does the converse hold?
2. Show that if (sn ) and (tn ) are sequences with lim sn = s and lim tn = t and if
n→∞
n→∞
sn ≤ tn for all n ∈ N, then s ≤ t.
3. Let (sn ) and (tn ) be sequences such that (sn ) is bounded and lim tn = 0. Show
n→∞
that lim sn tn = 0.
n→∞
4. Which of the following sequences are bounded?
2
n
n +n−4
1
(i)
(ii)
(iii)
1− n
n+4
n+5
2
√
1 + (−1)n
1 + 2n
n
(v)
n
(vi)
(vii)
.
n
2n
66
(iv) (1 + (−1)n )
MAT313
Real Analysis
Theorem 4.1.19 (Squeeze Theorem). Suppose that (sn ) , (tn ) and (un ) are sequences
such that sn ≤ tn ≤ un for all n ∈ N. If lim sn = ℓ = lim un , then lim tn = ℓ.
n→∞
n→∞
n→∞
Proof 4.1.20 Let ϵ > 0 be given. Then there exist N1 and N2 in N such that
|sn − ℓ| < ϵ for all n ≥ N1
and
|un − ℓ | < ϵ for all n ≥ N2 .
That is,
ℓ − ϵ < sn < ℓ + ϵ for all n ≥ N1
and
ℓ − ϵ < un < ℓ + ϵ for all n ≥ N2 .
Let N = max{N1 , N2 }. Then for all n ≥ N , we have
ℓ − ϵ < sn ≤ tn ≤ un < ℓ + ϵ,
and consequently,
|tn − ℓ| < ϵ for all n ≥ N.
That is, lim tn = ℓ.
■
n→∞
cos nπ
2
= 0.
n→∞ n2
Examples 4.1.21
1. Show that lim
Solution: Since
0≤
cos nπ
cos nπ
1
2
2
−
0
=
≤ 1 · 2 , and
2
2
n
n
n
1
= 0,
n→∞ n2
lim
cos nπ
2
= 0.
n→∞ n2
it follows that lim
2. Show that for any x, with |x| < 1,
□
lim nxn = 0.
n→∞
Solution: Without loss of generality, we assume that x ̸= 0 and n > 1. Since |x| < 1,
there there is a positive real number a such that
1
= 1 + a.
|x|
Then
n X
1
n r
n(n − 1) 2
n
= (1 + a) =
a ≥
a
n
|x |
r
2
r=0
67
MAT313
Real Analysis
for some a > 0. Thus,
|xn | ≤
|nxn | ≤
⇒
−2
(n − 1)a2
⇒
Since
2
n(n − 1)a2
2
(n − 1)a2
≤ nxn ≤
2
.
(n − 1)a2
−2
2
= 0 = lim
,
2
n→∞ (n − 1)a
n→∞ (n − 1)a2
lim
we have, by the Squeeze Theorem, that
lim nxn = 0.
n→∞
xn
= 0.
n→∞ n!
3. Show that for any x ∈ R, lim
Solution: Let N be the first integer greater than |x|. Then, if n ≥ N ,
|x|N −1 |x|n−N +1
|x|N −1
|x|n−N +1
xn
|x|n
=
=
·
.
=
n!
n!
(N − 1)!N (N + 1) · · · n
(N − 1)! N (N + 1) · · · n
|x|N −1
. Then K is a constant which is independent of n. Thus,
(N − 1)!
n−N +1
xn
|x|n−N +1
|x|n−N +1
|x|
=K·
<K·
=K·
,
n!
N (N + 1) · · · n
N · N · N ···N
N
Let K =
whence
−K
Since
|x|
N
n−N +1
xn
<
<K
n!
|x|
N
n−N +1
.
|x|
< 1 and n − N + 1 → ∞ as n → ∞, it follows that
N
n−N +1
|x|
lim
= 0,
n→∞
N
and consequently,
xn
= 0.
n→∞ n!
lim
Exercise 4.1.22
1. Show that lim
n
n→∞ 2n
= 0.
68
□
MAT313
Real Analysis
2. Show that lim
1
n→∞ n!
= 0.
Theorem 4.1.23 Let S be a subset of R which is bounded above. Then there exists a
sequence (sn ) in S such that
lim sn = sup S.
n→∞
Proof 4.1.24 Let c = sup S. By the characterisation of supremum (Theorem 3.1.9),
for each n ∈ N there exists sn ∈ S such that
c−
1
< sn ≤ c.
n
1
= c = lim c, we have, by the Squeeze Theorem, that
Since lim c −
n→∞
n→∞
n
lim sn = c = sup S.
■
n→∞
4.2 Algebra of Limits
The following lemma asserts that if the sequence (tn ) converges to t ̸= 0, then the
sequence (tn ) is “bounded away from zero”.
Lemma 4.2.1 If the sequence (tn ) converges to t ̸= 0, then there is an N ∈ N such
|t|
that |tn | >
for all n ≥ N .
2
Proof 4.2.2 Since t ̸= 0, |t| > 0. Let ϵ =
|t|
. Then there exists an N ∈ N such that
2
|tn − t| < ϵ for all n ≥ N.
Thus,
|tn | = |t − (t − tn )| ≥ |t| − |t − tn | > |t| −
|t|
|t|
=
2
2
for all n ≥ N.
Theorem 4.2.3 Let (sn ) and (tn ) be sequences of real numbers which converge to s
and t respectively. Then
(i) lim (sn + tn ) = s + t.
n→∞
(ii) lim sn tn = st.
n→∞
sn
s
= if tn ̸= 0 for all n ∈ N and t ̸= 0.
n→∞ tn
t
(iii) lim
69
MAT313
Proof 4.2.4
Real Analysis
(i) Let ϵ > 0 be given. Then there exist N1 and N2 in N such that
|sn − s| <
ϵ
for all n ≥ N1
2
|tn − t| <
ϵ
for all n ≥ N2 .
2
and
Let N = max{N1 , N2 }. Then for all n ≥ N , we have
|(sn + tn ) − (s + t)| = |(sn − s) + (tn − t)|
≤ |sn − s| + |tn − t| <
ϵ
ϵ
+ =ϵ.
2 2
Hence, lim (sn + tn ) = s + t.
n→∞
(ii) Let ϵ > 0 be given. Now,
|sn tn − st| = |sn tn − stn + stn − st| = |(sn − s)tn + (tn − t)s|
≤ |sn − s||tn | + |tn − t||s| .
Since (tn ) is convergent, it is bounded. Therefore there is a positive real number
K such that
|tn | ≤ K for all n ∈ N.
Thus,
|sn tn − st| ≤ |sn − s||tn | + |tn − t||s| ≤ |sn − s|K + |tn − t||s| .
Let M = max{K, |s|}. Then
|sn tn − st| ≤ M (|sn − s| + |tn − t|).
Since sn → s and tn → t as n → ∞, there exist N1 and N2 in N such that
|sn − s| <
ϵ
for all n ≥ N1
2(M + 1)
|tn − t| <
ϵ
for all n ≥ N2 .
2(M + 1)
and
Let N = max{N1 , N2 }. Then for all n ≥ N , we have
ϵ
ϵ
+
=ϵ.
|sn tn − st| ≤ M (|sn − s| + |tn − t|) < (M + 1)
2(M + 1) 2(M + 1)
Hence, lim sn tn = st.
n→∞
70
MAT313
Real Analysis
1
if tn ̸= 0 for all n ∈ N and t ̸= 0. Once this
t
has been shown we can then apply (ii). By Lemma 4.2.1, there is an N1 ∈ N such
that
|t|
|tn | >
for all n ≥ N1 .
2
Again, there exists an N2 ∈ N such that
(iii) It suffices to show that lim
1
n→∞ tn
=
|tn − t| <
ϵ|t|2
for all n ≥ N2 .
2
Let N = max{N1 , N2 }. Then for all n ≥ N , we have
1
2 ϵ|t|2
1
|t − tn |
2|t − tn |
t − tn
−
<
·
=
=
<
= ϵ.
tn
t
ttn
|t||tn |
|t|2
|t|2
2
1
1
= .
n→∞ tn
t
Hence, lim
■
Exercise 4.2.5
1. Let (sn ) and (tn ) be sequences of real numbers. Prove or disprove
the following statements.
(i) If (sn ) converges and (tn ) diverges, then the sequence (sn + tn ) diverges.
(ii) If both (sn ) and (tn ) diverge, then the sequence (sn + tn ) also diverges.
(iii) If both (sn ) and (tn ) diverge, then the sequence (sn tn ) also diverges.
(iv) If both (sn ) and (tn ) diverge and tn ̸= 0 for all n ∈ N, then the sequence
sn
tn
diverges.
(v) If both (sn ) and (sn tn ) converge, then the sequence (tn ) converges.
(vi) If both (sn ) and (sn tn ) diverge, then the sequence (tn ) diverges.
2. (a) Show that if the sequence (sn ) converges to s, then the sequence {s2n }
converges to s2 .
1
(b) Use (a) and the fact that for all x, y ∈ R, xy = [(x + y)2 − (x − y)2 ] to give
4
an alternative proof of Theorem 4.2.3(ii).
4.2.1 Monotone Sequences
Definition 4.2.6 Let (sn ) be a sequence of real numbers. We say that (sn ) is
(a) increasing if for each n ∈ N, sn ≤ sn+1 .
(b) strictly increasing if or each n ∈ N, sn < sn+1 .
71
MAT313
Real Analysis
(c) decreasing if or each n ∈ N, sn+1 ≤ sn .
(d) strictly decreasing if or each n ∈ N, sn+1 < sn .
(e) monotone if (sn ) is increasing or decreasing.
(f) strictly monotone if (sn ) is strictly increasing or strictly decreasing.
Remark 4.2.7 An increasing sequence (sn ) is bounded below by s1 ; a decreasing
sequence (tn ) is bounded above by t1 . It therefore follows that an increasing sequence is
bounded if and only if it is bounded above. Similarly, a decreasing sequence is bounded if
and only if it is bounded below.
Examples 4.2.8
1. The sequence (1, 1, 2, 3, 5, . . .) is increasing.
2. The sequence (3, 1, 0, 0, −3, −7, . . .) is decreasing.
3. The sequence n2 is strictly increasing.
4. The sequence (−n) is strictly decreasing.
The regular behaviour of monotone sequences makes it easier to determine its
convergence or divergence.
Theorem 4.2.9 (Monotone Convergence Theorem). A monotone sequence converges if
and only if it is bounded.
Proof 4.2.10 We have already proved in Theorem 4.1.16 that if a sequence converges
then it is bounded.
To prove the converse, let (sn ) be a bounded increasing sequence and let
S = {sn | n ∈ N}. Since S is bounded above, it has a supremum, sup S = s, say. We
claim that lim sn = s. Let ϵ > 0 be given. By the characterisation of supremum
n→∞
(Theorem 3.1.9), there exists sN ∈ S such that
s − ϵ < sN ≤ sn ≤ s < s + ϵ for all n ≥ N.
Thus, |sn − s| < ϵ for all n ≥ N .
The proof for the case when the sequence (sn ) is decreasing is similar.
■
n+1
is a convergent sequence.
Examples 4.2.11
1. Show that
n
n+1
Solution: We show that the sequence
is (1) monotone, and (2) bounded.
n
Its convergence will then follow from the Monotone Convergence Theorem
(Theorem 4.2.9).
72
MAT313
Real Analysis
Monotonicity: Let sn =
sn+1
sn
n+1
. Then
n
=
n+2 n+1
n+2
n
n2 + 2n
÷
=
×
=
n+1
n
n+1 n+1
(n + 1)2
<
(n + 1)2
n2 + 2n + 1
=
= 1.
(n + 1)2
(n + 1)2
Thus,
n+1
n+2
sn =
>
= sn+1 for all n ∈ N.
n
n+1
n+1
Therefore, the sequence
is monotone decreasing.
n
Another proof of monotonicity: Consider f (x) =
f ′ (x) =
−1
x − (x + 1)
= 2 <0
2
x
x
x+1
for all x ∈ [1, ∞). Then,
x
for all x ∈ [1, ∞).
Thus, f is decreasing on [1, ∞). Therefore
f (n) > f (n + 1) i.e.,
n+1
n+2
>
for all n ∈ N.
n
n+1
Boundedness:
1
n+1
= 1 + > 1 for all n ∈ N.
n
n
n+1
Thus, the sequence
is bounded below by 1.
n
1 n
2. Show that
1+
is a convergent sequence.
n
Solution: We need an easy preliminary result:
r! ≥ 2r−1 for r ≥ 2.
This follows from the fact that
r! = 1 · 2 · 3 · 4 · 5 · · · r ≥ 1 · 2 · 2 · 2 · 2 · · · 2 = 2r−1 for r ≥ 2.
We establish the existence of the limit by showing that
1 n
(a) 1 +
< 3 for each n ∈ N (boundedness),
n
73
□
MAT313
Real Analysis
n+1
1
1 n
< 1+
for each n > 2 (monotonicity).
(b) 1 +
n
n+1
Now, by the binomial theorem,
1
1+
n
n
=
n X
n 1
r=0
r n
=
r
n
nr
r!
r=0
n X 1
= 1+ +
n
r!
r=2
n
X
n(n − 1)(n − 2) · · · (n − r + 1) 1
1
2
r−1
1−
1−
··· 1 −
;
n
n
n
(*)
the first two terms correspond to r = 0 and r = 1, respectively. Then we obtain (a)
from (*) by noting that
1
1+
n
and so
n
<2+
n
X
1
r=2
r!
<2+
n
X
1
r−1
2
r=2
1
1
(1 − 2n−1
)
1 n
<2+ 2
< 3.
1+
1
n
1− 2
We obtain (b) from (*) by noting that if we replace n by n P
+ 1, each of the brackets
in (*) becomes bigger, so that each of the terms under the
sign becomes bigger;
and there is also one more positive term in the series. That’s all we want!
□
n 1
(The limit that the sequence
1+
converges to is denoted by the letter e.)
n
Theorem 4.2.12 (Nested Intervals Theorem). For each n ∈ N, let In = [an , bn ], where
∞
\
−∞ < an < bn < ∞. If In+1 ⊆ In for each n ∈ N and lim (bn − an ) = 0, then
In
n→∞
n=1
consists of exactly one point.
Proof 4.2.13 Since In+1 ⊆ In , we have that an ≤ an+1 ≤ bn+1 ≤ bn for all n ∈ N.
Thus, (an ) is an increasing sequence of real numbers. Let A be the set of all endpoints
an , i.e., A = {an : n ∈ N}.
Claim: ak ≤ bℓ for all k, ℓ ∈ N. Indeed, if k ≤ ℓ, then ak ≤ aℓ ≤ bℓ . On the other
hand, if ℓ ≤ k, then ak ≤ bk ≤ bℓ .
It now follows that A is a nonempty set which is bounded above (by every bn ). By the
Completeness Axiom, A has a supremum, a = sup A (say). Clearly, an ≤ a ≤ bn for all
∞
\
n ∈ N. Hence a ∈ In for each n ∈ N, and consequently, a ∈
In . We showed in the
n=1
Monotone Convergence Theorem (Theorem 4.2.9) that lim an = a. Assume that
n→∞
74
MAT313
Real Analysis
T
b∈ ∞
n=1 In . Then an ≤ b ≤ bn for all n ∈ N, and so 0 ≤ b − an ≤ bn − an for all
n ∈ N. Since lim 0 = 0 = lim (bn − an ), we have, by the Squeeze Theorem, that
n→∞
n→∞
lim (b − an ) = 0, whence lim an = b. Thus, a = b.
n→∞
n→∞
■
Remark 4.2.14 The Nested Intervals Theorem (Theorem 4.2.12) may fail for a 1
or
decreasing sequence of open or half-open intervals. For example, if In = 0,
n
+
1
T∞
In = [n, ∞) for each n ∈ N, then n=1 In = ∅.
4.2.2 Subsequences
Definition 4.2.15 Let (sn ) be a sequence of real numbers and let (nk )k∈N be a
sequence of natural numbers such that n1 < n2 < n3 < · · · . Then the sequence (snk ) is
called a subsequence of (sn ). That is, a subsequence (snk ) of the sequence (sn ) is
defined by a strictly increasing function ϕ : k 7→ nk .
Example 4.2.16 Let (sn ) be the sequence 1, 2, 21 , 3, 31 , . . . . Then 1, 12 , 13 , . . . and
1, 2, 31 , . . . are subsequences of (sn ).
Theorem 4.2.17 Let (sn ) be a sequence which converges to s. Then any subsequence
of (sn ) converges to s.
Proof 4.2.18 Let (snk ) be a subsequence of (sn ) and let ϵ > 0 be given. Then there
exists an N ∈ N such that
|sn − s | < ϵ for each n ≥ N.
Thus, when k ≥ N we have that nk ≥ k ≥ N and so
|snk − s | < ϵ for all k ≥ N.
That is, lim snk = s.
■
k→∞
Now we state and prove the version of the Bolzano-Weierstrass Theorem that applies to
sequences. Compare this with Theorem 3.3.10 (Bolzano-Weierstrass Theorem for sets).
Theorem 4.2.19 (Bolzano-Weierstrass Theorem for sequences). Every bounded infinite
sequence (sn ) of real numbers has a convergent subsequence.
75
MAT313
Real Analysis
Proof 4.2.20 Since (sn ) is bounded, there exists M > 0 such that |sn | < M for all
n ∈ N, i.e., −M < sn < M for all n ∈ N. If (sn ) has a finite range S = {sn : n ∈ N},
then there is (at least) one term of the sequence (sn ) which occurs infinitely many
times in (sn ). Call this term x, and let
sn1 = sn2 = sn3 = · · · = x.
Therefore, there exists a strictly increasing sequence (nk )k of natural numbers such that
snk = x for all k ∈ N. Thus, {snk } is a subsequence of (sn ) which converges to x.
Now, suppose that S is infinite. Then either [−M, 0] or [0, M ] contains sn for infinitely
many n ∈ N. Call such an interval I1 = [a1 , b1 ]. Note that |I1 | = |b1 − a1 | = M . Now,
bisect I1 . One of the two subintervals of I1 contains sn for infinitely many n ∈ N. Call
that subinterval I2 = [a2 , b2 ]. Clearly, I1 ⊃ I2 and |I2 | = |b2 − a2 | = M
2 . Bisect I2 . One
of the two subintervals of I2 contains sn for infinitely many n ∈ N. Call that
. Continue in
subinterval I3 = [a3 , b3 ]. Clearly, I1 ⊃ I2 ⊃ I3 and |I3 | = |b3 − a3 | = M
22
this manner to obtain a sequence of intervals I1 , I2 , I3 , . . . with I1 ⊃ I2 ⊃ I3 ⊃ · · · and
|In | = |bn − an | =
M
→ 0 as n → ∞.
2n−1
T
By the Nested Intervals Theorem (Theorem 4.2.12), we have that ∞
n=1 In consists of
exactly one point, ℓ say. We obtain a convergent subsequence as follows: choose
sn1 ∈ I1 . Next, choose sn2 ∈ I2 with n2 > n1 . Next, choose sn3 ∈ I3 with n3 > n2 .
Continue in this manner. (Such a selection is possible since In contains infinitely many
terms of the sequence (sn ).) Then (snk ) is a subsequence of (sn ) with snk ∈ Ik for all
k ∈ N. Since ℓ is also in Ik , we have that
|snk − ℓ| <
M
→ 0 as k → ∞.
2k−1
That is, lim snk = ℓ.
■
k→∞
4.2.3
Cauchy Sequences
Definition 4.2.21 A sequence (sn ) is called a Cauchy sequence if, given any ϵ > 0,
there exists an N ∈ N such that
|sn − sm | < ϵ for all n, m ≥ N.
Symbolically,
(∀ϵ > 0)(∃N ∈ N)(∀n, m ∈ N)[(n ≥ N ) ∧ (m ≥ N ) ⇒ (|xn − xm | < ϵ)].
Equivalently, (sn ) is a Cauchy sequence if
lim |sn − sm | = 0.
n,m→∞
76
MAT313
Real Analysis
Examples 4.2.22
sequence.
1. Show that the sequence (sn ), where sn =
n+1
, is a Cauchy
n
Solution: For all n, m ∈ N,
n+1
m+1
m+n
mn + m − nm − n
m−n
|sn − sm | =
−
.
=
=
≤
n
m
nm
nm
nm
Therefore, if m ≥ n, then
m+n
2m
2
≤
= .
nm
nm
n
ϵ
1
< . Thus, for all n ≥ N ,
Let ϵ > 0 be given. Then there is an N ∈ N such that
N
2
we have
n+1
m+1
2
2
|sn − sm | =
−
< ≤
< ϵ.
n
m
n
N
Hence (sn ) is a Cauchy sequence.
□
|sn − sm | ≤
1
(−1)n+1
2. Show that the sequence (sn ), where sn = 1 − + · · · +
, is a Cauchy
2!
n!
sequence.
Solution: For n, m ∈ N with m ≥ n, we have that
1
(−1)n+1
1
(−1)m+1
|sn − sm | =
1 − + ··· +
− 1 − + ··· +
2!
n!
2!
m!
=
(−1)m+1
(−1)n+2 (−1)n+3
+
+ ··· +
(n + 1)!
(n + 2)!
m!
≤
1
1
1
+
+ ··· +
(n + 1)! (n + 2)!
m!
≤
=
Since
1
1
1
1
1
1
+
+ · · · + m−1 = n 1 + + · · · + m−n−1
2n 2n+1
2
2
2
2
#
"
m−n
2
1
2
1
1−
< n = n−1 .
n
2
2
2
2
1
→ 0 as n → ∞, given any ϵ > 0 there is an N ∈ N such that
2n−1
1
1
= n−1 − 0 < ϵ for all n ≥ N.
n−1
2
2
Thus,
1
(−1)n+1
1
(−1)m+1
1
< n−1 < ϵ
|sn − sm | = 1 − + · · · +
− 1 − + ··· +
2!
n!
2!
m!
2
for all m ≥ n ≥ N . That is, (sn ) is a Cauchy sequence.
77
□
MAT313
Real Analysis
Theorem 4.2.23 Every convergent sequence (sn ) is a Cauchy sequence.
Proof 4.2.24 Assume that (sn ) converges to s. Then, given any ϵ > 0, there exists an
N ∈ N such that
ϵ
|sn − s| < for all n ≥ N.
2
Now, for all n, m ≥ N , we have that
|sn − sm | = |(sn − s) + (s − sm )| ≤ |sn − s| + |s − sm | <
ϵ
ϵ
+ = ϵ.
2 2
That is, (sn ) is a Cauchy sequence.
■
Theorem 4.2.25 Every Cauchy sequence (sn ) is bounded.
Proof 4.2.26 Let ϵ = 1. Then there exists an N ∈ N such that
|sn − sm | < 1 for all n, m ≥ N.
Choose a k ≥ N and observe that
|sn | = |sn − sk + sk | ≤ |sn − sk | + |sk | < 1 + |sk | for all n ≥ N.
Let M = max{|s1 |, |s2 |, . . . , |sN |, |sk | + 1 }. Then |sn | ≤ M for all n ∈ N, and
therefore (sn ) is bounded.
■
Theorem 4.2.27 Every Cauchy sequence (sn ) of real numbers converges.
Proof 4.2.28 By Theorem 4.2.25, (sn ) is bounded, and therefore, by the
Bolzano-Weierstrass Theorem (Theorem 4.2.19), (sn ) has a subsequence (snk ) which
converges to some real number ℓ. We claim that the sequence (sn ) converges to ℓ. Let
ϵ > 0 be given. Then there exist natural numbers N1 and N2 such that
|sn − sm | <
ϵ
for all n, m ≥ N1 and
2
|snk − ℓ| <
ϵ
for all k ≥ N2 .
2
Let N = max{N1 , N2 }. Then for all n ≥ N , we have
|sn − ℓ| ≤ |sn − snk | + |snk − ℓ| <
ϵ
ϵ
+ = ϵ.
2 2
Therefore, lim sn = ℓ.
■
n→∞
Combining Theorem 4.2.23 and Theorem 4.2.27, we get:
Cauchy’s Convergence Criterion for sequence: A sequence (sn ) of real numbers
converges if and only if it is a Cauchy sequence.
78
MAT313
Real Analysis
Examples 4.2.29
converges.
1. Use Cauchy’s Criterion to show that the sequence
Solution: We must show that the sequence
ϵ > 0 and sn =
(−1)n
n
|sn − sm | =
Thus,
is Cauchy. To that end, let
1
1
1
1
2
(−1)n (−1)m
≤ +
−
≤ + = .
n
m
n m
n n
n
Now, there is an N ∈ N such that
(−1)n
n
. Then, for all n, m ∈ N with m ≥ n,
|sn − sm | =
(−1)n
n
(−1)n
n
2
< ϵ. Thus, for all n ≥ N , we have
N
(−1)n (−1)m
2
2
≤ ≤
−
< ϵ.
n
m
n
N
is a Cauchy sequence.
2. Show that the sequence (sn ), where sn = 1 +
□
1 1
1
+ + · · · + , diverges.
2 3
n
Solution: It suffices to show that (sn ) is not a Cauchy sequence. Now, for n, m ∈ N
with n > m, we have
1
1 1
1
1 1
− 1 + + + ··· +
|sn − sm | =
1 + + + ··· +
2 3
n
2 3
m
=
>
1
1
1
1
1
1
+
+ ··· +
=
+
+ ··· +
m+1 m+2
n
m+1 m+2
n
1
1
1
n−m
+ + ··· + =
.
n}
n
|n n {z
n−m terms
In particular, if we take n = 2m, we get
1
1 1
1
1
1 1
n−m
|sn − sm | = 1 + + + · · · +
− 1 + + + ··· +
>
= .
2 3
n
2 3
m
n
2
Thus, (sn ) is not Cauchy.
□
Exercise 4.2.30
1. Show that if a (xn ) contains two subsequences that converge to
different limits, then (xn ) diverges.
2. Show that every subsequence of a bounded sequence is bounded.
3. Show that if (xn ) is a Cauchy sequence, then so is {|xn |}.
79
MAT313
Real Analysis
4.2.4 Limit Superior and Limit Inferior
Let (xn ) be a bounded sequence of real numbers and for each n ∈ N, let
En = {xn , xn+1 , . . .} = {xk | k ≥ n}.
Then En is a bounded subset of R. Set
sn = inf En and Sn = sup En .
Clearly, Ej ⊆ Ei for all i, j ∈ N such that i < j. In particular, Ek+1 ⊆ Ek for each
k ∈ N. Therefore
sk ≤ sk+1 ≤ Sk+1 ≤ Sk .
These inequalities show that (sn ) is a monotone increasing sequence of real numbers
and (Sn ) is a monotone decreasing sequence of real numbers. Note further that, for
each k ∈ N,
s1 ≤ sk ≤ sk+1 ≤ Sk+1 ≤ Sk ≤ S1 .
Therefore, the increasing sequence (sn ) is bounded above by S1 and the decreasing
sequence (Sn ) is bounded below by s1 . In fact, for each n ∈ N, Sn is a upper bound for
the sequence (sn ) and for each n ∈ N, sn is a lower bound for the sequence (Sn ).
Therefore, by the Monotone Convergence Theorem (Theorem 4.2.9), the sequence (sn )
converges to the supremum s = sup sn and the sequence (Sn ) converges to the infimum
n
S = inf Sn . That is,
n
s = lim sn = lim inf xk = sup sn and S = lim Sn = lim sup xk = inf Sn .
n→∞
n→∞ k≥n
n→∞
n
n→∞ k≥n
n
The number s is called the limit inferior of the sequence (xn ) and the number S is
called the limit superior of the sequence (xn ). We write
s = lim inf xn and S = lim sup xn .
n→∞
n→∞
We also use the notation lim xn for the limit inferior and lim xn for the limit
n→∞
n→∞
superior.
Definition 4.2.31 Let (xn ) be a bounded sequence of real numbers. The limit
inferior of the sequence (xn ), denoted by lim inf xn , is defined by
n→∞
lim inf xn = lim
n→∞
n→∞
inf xk
= sup
k≥n
n≥1
inf xk .
k≥n
Similarly, we define the limit superior of the sequence (xn ), denoted by lim sup xn , as
n→∞
!
lim sup xn = lim
n→∞
n→∞
sup xk
k≥n
80
!
= inf
n≥1
sup xk
k≥n
.
MAT313
Real Analysis
Examples 4.2.32
1. Consider the sequence (xn ), where, for each n ∈ N,
n
xn = (−1) . Then
inf xk = inf (−1)k = −1 and sup xk = sup(−1)k = 1.
k≥n
k≥n
k≥n
k≥n
Therefore
lim inf xn =
lim
n→∞
n→∞
= −1 and
inf xk
k≥n
!
lim sup xn =
lim
n→∞
n→∞
sup xk
= 1.
k≥n
2. Consider the sequence (xn ), where, for each n ∈ N, xn = (−1)n + n1 . Then
lim inf xn = lim inf xk = −1 and
n→∞
n→∞
k≥n
!
lim sup xn =
lim
n→∞
n→∞
sup xk
= 1.
k≥n
3. Consider the sequence (xn ), where, for each n ∈ N, xn = n1 . Then
1 1 1
, , , . . .}
2 3 4
1 1 1
E2 = { , , , . . .}
2 3 4
1 1
E3 = { , , . . .}
3 4
..
..
.
.
1
1
En = { ,
, . . .}
n n+1
..
..
.
.
E1 = {1,
Therefore
sup xk = sup En =
k≥n
1
and inf xk = inf En = 0.
k≥n
n
It now follows that
!
lim sup xn =
n→∞
lim
sup xk
n→∞
k≥n
lim inf xn =
n→∞
lim
n→∞
1
= lim
= 0 and
n→∞ n
inf xk
k≥n
81
= lim (0) = 0.
n→∞
MAT313
Real Analysis
Lemma 4.2.33 Let (xn ) be a bounded sequence of real numbers, α = lim inf xn , and
n→∞
β = lim sup xn . Then there is a subsequence of (xn ) which converges to α and a
n→∞
subsequence of (xn ) which converges to β.
Proof 4.2.34 Let Ek = {xk , xk+1 , . . .} = {xn | n ≥ k}, sk = inf Ek and Sk = sup Ek .
Then
lim sup xn = β = lim Sk .
(4.2.1)
k→∞
n→∞
Since Sk is the supremum of the set Ek , given ϵ > 0, there is an index nk ≥ k such that
ϵ
ϵ
< xnk ≤ Sk < Sk +
2
2
Sk −
ϵ
⇐⇒ |Sk − xnk | < .
2
(4.2.2)
Also, since lim Sk = β, there is a natural number N such that, for all k ≥ N ,
k→∞
ϵ
|Sk − β| < .
2
(4.2.3)
From (4.2.2) and (4.2.3), we have that for all nk ≥ k ≥ N ,
|xnk − β| ≤ |xnk − Sk | + |Sk − β| <
ϵ
ϵ
+ = ϵ.
2 2
Thus, (xnk ) is a subsequence of (xn ) which converges to β.
The proof of the second part is similar.
■
Theorem 4.2.35 Let (xn ) be a bounded sequence of real numbers. Then
(i) lim inf xn ≤ lim sup xn .
n→∞
n→∞
(ii) lim sup xn = − lim inf (−xn ).
n→∞
n→∞
(iii) The sequence (xn ) converges if and only lim inf xn = lim sup xn . In this case,
n→∞
n→∞
lim xn = lim inf xn = lim sup xn .
n→∞
Proof 4.2.36
n→∞
n→∞
(i) For each n ∈ N, inf xk ≤ sup xk . Therefore
k≥n
lim inf xn = lim
n→∞
n→∞
k≥n
!
≤ lim
inf xk
n→∞
k≥n
sup xk
= lim sup xn .
n→∞
k≥n
(ii) For each n ∈ N, inf (−xk ) = − sup xk . Therefore
k≥n
k≥n
lim inf (−xn ) = lim
n→∞
n→∞
inf (−xk ) = lim
n→∞
k≥n
82
!
− sup xk
k≥n
= − lim sup xn .
n→∞
MAT313
Real Analysis
(iii) Assume that the sequence (xn ) converges to x. By Lemma 4.2.33, there are
subsequences (xnk ) and (ynℓ ) of (xn ) which converge to lim inf xn and lim sup xn
n→∞
n→∞
respectively. Since every subsequence of a convergent sequence converges to the
same limit as the sequence itself, it follows that
lim inf xn = lim xnk = x = lim ynℓ = lim sup xn .
n→∞
ℓ→∞
k→∞
n→∞
Conversely, assume that lim inf xn = lim sup xn . Then for each n ∈ N,
n→∞
n→∞
sn = inf{xn , xn+1 , . . .} ≤ xn ≤ Sn = sup{xn , xn+1 , . . .}.
Since
lim sn = lim inf xn = lim sup xn = lim Sn ,
n→∞
n→∞
n→∞
n→∞
it follows, by the Squeeze Theorem, that the sequence (xn ) converges and
lim xn = lim inf xn = lim sup xn .
n→∞
n→∞
n→∞
■
Exercise 4.2.37
1. For each of the following, find the limit superior, limit inferior and
the limit of the sequence.
(−1)n
.
n+1
(b) (xn ), where xn = (−1)n + (−1)n+2 .
n
(c) (xn ), where xn = 2(−1)n +
.
n+1
(a) (xn ), where xn =
4.2.5 Sequential Characterization of Closed Sets
Theorem 4.2.38 Let K be a nonempty subset of R and x ∈ R. Then
(a) x ∈ K if and only if there is a sequence (xn ) in K such that xn → x as n → ∞.
(b) K is closed if and only if K contains the limit of every convergent sequence in K.
Proof 4.2.39 (a) Assume that x ∈ K. Then either x ∈ K or x ∈ K ′ . If x ∈ K,
then the constant sequence (x, x, x, . . .) in K converges to x. If x ∈ K ′ , then,
for each n ∈ N, the interval (x − n1 , x + n1 ) contains a point xn ∈ K distinct from
x. It now follows that |xn − x| < n1 . Clearly, (xn ) is contained in K and xn → x
as n → ∞.
Conversely, assume that there is a sequence (xn ) in K such that xn → x as
n → ∞. Then, either x ∈ K or every ϵ-neighbourhood of x contains a point
xn ̸= x, in which case x ∈ K ′ Thus x ∈ K.
(b) By Corollary 3.2.23, K is closed if and only if K = K. Hence, (b) follows from
(a).
■
83
MAT313
Real Analysis
4.2.6 Sequential Compactness
Definition 4.2.40 A subset K of R is said to be sequentially compact if every
sequence in K has a subsequence that converges to a point in K.
The following theorem asserts that for subsets of R compactness and sequential
compactness are equivalent. In fact, this is true in any “metric space”. We shall
discuss metric spaces later.
Theorem 4.2.41 A subset K of R is compact if and only it is sequentially compact.
Proof 4.2.42 Assume that K is compact and let (xn ) be a sequence in K. Then, by
the Heine-Borel Theorem (Theorem 3.3.9), K is closed and bounded. Therefore the
sequence (xn ) is bounded. By Bolzano-Weierstrass Theorem (Theorem 4.2.19) (xn ) has
a subsequence (xnk ) which converges to some x ∈ R. Since K is closed, we have by
Theorem 7.3.9, that x ∈ K. Hence, K is sequentially compact.
Conversely, assume that K is not compact. Then, by the Heine-Borel Theorem
(Theorem 3.3.9), either K is not closed or K is not bounded. If K is not closed, then
there is a sequence (xn ) in K that converges to a point outside of K. But then every
convergent subsequence of (xn ) will converge to a point outside of K. Therefore K is
not sequentially compact. If K is not bounded, then there is a sequence (xn ) in K such
that |xn | > n for each n ∈ N. Thus, every subsequence of (xn ) is unbounded, and so, by
Theorem 4.1.16, no subsequence of (xn ) converges (to a point in K). Hence K is not
sequentially compact.
■
Exercise 4.2.43
1. Let a sequence (xn ) of real numbers be defined recursively by
x1 = 0,
xn+1 =
3xn + 1
xn + 3
for all n ≥ 1.
(a) Show, by induction, that 0 ≤ xn ≤ 1 for all n ∈ N.
(b) Show that the sequence (xn ) is monotonically increasing.
(c) Does the sequence (xn ) converge? If so, find its limit.
(d) Does sup{xn | n ∈ N} exist? If so, find it.
84
Chapter 5
Limits and Continuity
5.1
Limits of Functions
Definition 5.1.1 Suppose that a and ℓ are real numbers and let f be a real-valued
function whose domain D includes all points in some open interval about a (except
possibly the point a itself). Then ℓ is called the limit of the function f at a if, given
any ϵ > 0, there exists a δ > 0 (depending on a and ϵ) such that
|f (x) − ℓ| < ϵ for all x ∈ D satisfying 0 < |x − a| < δ.
In this case, we write limx→a f (x) = ℓ or f (x) → ℓ as x → a.
Note that the existence of the limit of f (x) as x tends to a does not depend on f (a).
Indeed, f (a) may or may not be defined since a is not necessarily in the domain of f .
If f (a) and limx→a f (x) both exist, they may or may not be equal. We are only
interested in the behaviour of f as x gets closer to a. It is implicit in the definition of
the limit that a is an accumulation point of the domain D of f .
We can reformulate the above definition in the ϵ-neighbourhood language as follows:
limx→a f (x) = ℓ, if for each ϵ-neighbourhood N (ℓ, ϵ) of ℓ there exists a deleted
δ-neighbourhood N ∗ (a, δ) of a such that f (x) ∈ N (ℓ, ϵ) whenever x ∈ N ∗ (a, δ) ∩ D.
Definition 5.1.2 (1) Suppose that f is defined for all real numbers x > k, where
k ∈ R. Then ℓ ∈ R is the limit of f as x tends to ∞ if, given ϵ > 0, there
exists a real number K such that
|f (x) − ℓ| < ϵ whenever x > K.
In this case we write limx→ ∞ f (x) = ℓ.
(2) Suppose that f is defined for all real numbers x < k, where k ∈ R. Then ℓ ∈ R is
the limit of f as x tends to −∞, denoted by limx→ −∞ f (x) = ℓ, if, given
ϵ > 0, there exists a real number k such that
|f (x) − ℓ| < ϵ whenever x < k.
85
MAT313
Real Analysis
Examples 5.1.3
1. Show that limx → 2 x2 = 4.
Solution: Let ϵ > 0 be given. We need to produce a δ > 0 such that
|x2 − 4| < ϵ whenever 0 < |x − 2| < δ.
Now,
|x2 − 4| = |(x − 2)(x + 2)| = |x − 2||x + 2|.
Consider all x which satisfy the inequality |x − 2| < 1. Then, for all such x, we have
1 < x < 3. Thus,
|x + 2| ≤ |x| + 2 < 3 + 2 = 5,
and so
|x2 − 4| = |x − 2||x + 2| < 5|x − 2|.
Choose δ = min 1, 5ϵ . Then, whenever 0 < |x − 2| < δ, we have that
|x2 − 4| < ϵ .
□
2. Show that limx → 3 (x2 + 2x) = 15.
Solution: Let ϵ > 0 be given. We need to find a δ > 0 such that
|(x2 + 2x) − 15| < ϵ for all x satisfying 0 < |x − 3| < δ.
Note that
|(x2 + 2x) − 15| = |(x + 5)(x − 3)| = |x + 5||x − 3|.
Since we are interested in the values of x near 3, we may consider those values of x
which satisfy the inequality |x − 3| < 1, i.e., 2 < x < 4. For all these values we have
that |x + 5| < 9. Therefore, if |x − 3| < 1, we have that
|(x2 + 2x) − 15| < 9|x − 3|.
Choose δ = min 1, 9ϵ . Then, working backwards, we have that
|(x2 + 2x) − 15| < ϵ for all x satisfying 0 < |x − 3| < δ.
3. Show that limx → −1 2x+3
x+2 = 1.
Solution: Let ϵ > 0 be given. We need to find a δ > 0 such that
2x + 3
− 1 < ϵ for all x satisfying 0 < |x − (−1)| = |x + 1| < δ.
x+2
By elementary algebraic manipulation, we have that
2x + 3
(2x + 3) − (x + 2)
x+1
|x + 1|
−1 =
=
=
.
x+2
x+2
x+2
|x + 2|
86
□
MAT313
Real Analysis
Since we are interested in the values of x near −1, we may consider those values of x
−1
which satisfy the inequality |x + 1| < 12 , i.e., −3
2 < x < 2 . Recognising
|x + 2| = |x − (−2)| as the distance of x from −2, we have that
|x + 2| = |x − (−2)| >
Therefore
Choose δ = min
−3
1
− (−2) = .
2
2
|x + 1|
2x + 3
−1 =
< 2|x + 1|.
x+2
|x + 2|
1
ϵ
2, 2
. Then whenever 0 < |x + 1| < δ, we have that
2x + 3
−1 <ϵ .
x+2
1 if x > 0
4. Show that limx → 0 f (x), where f (x) = |x|
=
x
−1 if x < 0,
□
does not exist.
Solution: Assume that the limit exists and limx → 0 f (x) = ℓ. Then, with ϵ = 1,
there is a δ > 0 such that
|f (x) − ℓ| < 1 for all x satisfying 0 < |x| < δ.
δ
Taking x = −δ
2 , we have that |x| = 2 < δ, and so
1 > |f (x) − ℓ| = | − 1 − ℓ| = |1 + ℓ|.
Thus, −2 < ℓ < 0.
On the hand, if x = 2δ , we have that |x| = 2δ < δ, and so
1 > |f (x) − ℓ| = |1 − ℓ|.
Therefore, 0 < ℓ < 2. But there is no real number that can simultaneously satisfy the
inequalities −2 < ℓ < 0 and 0 < ℓ < 2. Therefore limx → 0 f (x) does not exist.
□
5. Show that limx → 0 x sin x1 = 0.
Solution: Let ϵ > 0 be given. We need to find a δ > 0 such that
x sin
1
− 0 < ϵ for all x satisfying 0 < |x − 0| < δ.
x
Now,
1
1
1
= |x| sin
≤ |x|.
− 0 = x sin
x
x
x
Choose 0 < δ ≤ ϵ. Then, whenever 0 < |x − 0| = |x| < δ, we have that
x sin
x sin
1
− 0 ≤ |x| < ϵ,
x
which proves that limx → 0 x sin x1 = 0.
87
□
MAT313
Real Analysis
6. Consider the function f : R → {0, 1} given by
f (x) =
1 if x ∈ Q
0 if x ∈ R \ Q .
Show that if a ∈ R, then limx→a f (x) does not exist.
Solution: Assume that there is an ℓ ∈ R such that limx→a f (x) = ℓ. Then, with
ϵ = 41 , there exists δ > 0 such that
|f (x) − ℓ| <
If x ∈ Q, then
|1 − ℓ| <
1
for all x satisfying 0 < |x − a| < δ.
4
1
whenever 0 < |x − a| < δ, and
4
if x ∈ R \ Q, then
1
whenever 0 < |x − a| < δ.
4
Since the set {x ∈ R : 0 < |x − a| < δ } contains both rationals and irrationals, we
have that
1 1
1
1 = |1 − 0| = |1 − ℓ + ℓ| ≤ |1 − ℓ| + |ℓ| < + = ,
4 4
2
which is absurd.
□
|ℓ| <
The following theorem highlights the relationship between convergence of sequences and
limits of functions.
Theorem 5.1.4 Let f be a function which is defined in some open interval I
containing a ∈ R, except possibly at a. Then limx→a f (x) = ℓ if and only if for every
sequence (an ) in I \ {a} such that limn→∞ an = a, we have that limn→∞ f (an ) = ℓ.
Proof 5.1.5 Assume that limx→a f (x) = ℓ and let (an ) ⊆ I \ {a} be a sequence such
that limn→∞ an = a. Then, given ϵ > 0, there is a δ > 0 and an N ∈ N such that
|f (x) − ℓ| < ϵ for all x ∈ I satisfying 0 < |x − a| < δ and |an − a| < δ for all n ≥ N.
Now, 0 < |an − a| < δ since an ̸= a for all n ≥ N . Therefore
|f (an ) − ℓ| < ϵ for all n ≥ N.
That is, limn→∞ f (an ) = ℓ.
For the converse, assume that for every sequence (an ) in I \ {a} such that
limn→∞ an = a, we have that limn→∞ f (an ) = ℓ.
88
MAT313
Real Analysis
Claim: limx→a f (x) = ℓ. If the claim were false, then there would exist an ϵ0 > 0 such
that for every δ > 0 with 0 < |x − a| < δ, we have
|f (x) − ℓ| ≥ ϵ0 .
Let n ∈ N and take δ = n1 . Then we can find an ∈ I \ {a} such that 0 < |an − a| < n1
and
|f (an ) − ℓ| ≥ ϵ0 .
Clearly, (an ) is a sequence in I \ {a} with the property that limn→∞ an = a and
|f (an ) − ℓ| ≥ ϵ0 for all n ∈ N.
That is, limn→∞ f (an ) ̸= ℓ, a contradiction.
■
The condition that an ̸= a for all n ∈ N in Theorem 5.1.4 is essential. Consider the
function f defined on R by
1 for x ̸= 0
f (x) =
1
for x = 0.
2
Let (an ) be the sequence where an = 0 for all n ∈ N. Then an ∈ R(= domain of f ) for
all n ∈ N, and limn→∞ an = 0. Since f (an ) = f (0) = 12 for all n ∈ N, and
limx→0 f (x) = 1, it follows that
1
1
= ̸= 1 = lim f (x).
n→∞ 2
x→0
2
lim f (an ) = lim
n→∞
Theorem 5.1.6 (Uniqueness of Limits). Let f be a function which is defined on some
open interval I containing a, except possibly at a. If limx→a f (x) = ℓ1 and
limx→a f (x) = ℓ2 , then ℓ1 = ℓ2 .
2|
Proof 5.1.7 If ℓ1 ̸= ℓ2 , let ϵ = |ℓ1 −ℓ
. Then, there exist δ1 > 0 and δ2 > 0 such that
3
|f (x) − ℓ1 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ1 , and
2
|f (x) − ℓ2 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ2 .
2
Let δ = min{δ1 , δ2 }. Then, whenever 0 < |x − a| < δ, we have
0 < |ℓ1 − ℓ2 | ≤ |f (x) − ℓ1 | + |f (x) − ℓ2 | <
which is impossible.
|ℓ1 − ℓ2 |
,
3
■
89
MAT313
5.1.1
Real Analysis
Algebra of Limits
Theorem 5.1.8 Let ℓ1 , ℓ2 , a ∈ R. Suppose that f and g are real-valued functions
defined on some open interval I containing a, except possibly at a itself, and that
limx→a f (x) = ℓ1 and limx→a g(x) = ℓ2 . Then,
(1) limx→a [f (x) ± g(x)] = ℓ1 ± ℓ2 .
(2) limx→a [f (x)g(x)] = ℓ1 ℓ2 .
(x)
= ℓℓ12 provided g(x) ̸= 0 for all x ∈ I\{a} and ℓ2 ̸= 0.
(3) limx→a fg(x)
Proof 5.1.9
(1) Let ϵ > 0 be given. Then there exist δ1 > 0 and δ2 > 0 such that
|f (x) − ℓ1 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ1 , and
2
|g(x) − ℓ2 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ2 .
2
Let δ = min{δ1 , δ2 }. Then, whenever x ∈ I and 0 < |x − a| < δ, we have
ϵ ϵ
| [f (x)+g(x)]−[ℓ1 +ℓ2 ] | = | [f (x)−ℓ1 ]+[g(x)−ℓ2 ] | ≤ |f (x)−ℓ1 |+|g(x)−ℓ2 | < + = ϵ.
2 2
That is, f (x) + g(x) → ℓ1 + ℓ2 as x → a.
A similar argument shows that f (x) − g(x) → ℓ1 − ℓ2 as x → a.
(2) With ϵ = 1, there exists a δ1 > 0 such that
|f (x) − ℓ1 | < 1 whenever x ∈ I and 0 < |x − a| < δ1 .
This implies that
|f (x)| ≤ |f (x) − ℓ1 | + |ℓ1 | < 1 + |ℓ1 | whenever x ∈ I and 0 < |x − a| < δ1 .
Now, for all x ∈ I with 0 < |x − a| < δ1 , we have
|f (x)g(x) − ℓ1 ℓ2 | = |f (x)g(x) − f (x)ℓ2 + f (x)ℓ2 − ℓ1 ℓ2 |
≤ |f (x)||g(x) − ℓ2 | + |ℓ2 ||f (x) − ℓ1 |
< (1 + |ℓ1 |)|g(x) − ℓ2 | + |ℓ2 ||f (x) − ℓ1 | .
Given ϵ > 0, there exist δ2 > 0 and δ3 > 0 such that
|f (x) − ℓ1 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ2 , and
2(1 + |ℓ2 |)
|g(x) − ℓ2 | <
ϵ
whenever x ∈ I and 0 < |x − a| < δ3 .
2(1 + |ℓ1 |)
90
MAT313
Real Analysis
Let δ = min{δ1 , δ2 , δ3 }. Then, whenever x ∈ I and 0 < |x − a| < δ, we have
ϵ
ϵ
+ |ℓ2 |
|f (x)g(x) − ℓ1 ℓ2 | < (1 + |ℓ1 |)
2(1 + |ℓ1 |)
2(1 + |ℓ2 |)
=
ϵ
ϵ|ℓ2 |
ϵ
ϵ
+
< + =ϵ.
2 2(1 + |ℓ2 |)
2 2
That is, f (x)g(x) → ℓ1 ℓ2 as x → a.
1
= ℓ12 provided
(3) It is enough to show that limx→a g(x)
g(x) ̸= 0 for all x ∈ I\{a} and ℓ2 ̸= 0. Since ℓ2 ̸= 0, ϵ = |ℓ22 | > 0. Therefore there
exists a δ1 > 0 such that
|g(x) − ℓ2 | <
|ℓ2 |
whenever x ∈ I and 0 < |x − a| < δ1 .
2
Now, for all x ∈ I satisfying 0 < |x − a| < δ1 , we have
|ℓ2 | ≤ |ℓ2 − g(x)| + |g(x)| <
|ℓ2 |
+ |g(x)|.
2
That is, |ℓ22 | < |g(x)| for all x ∈ I satisfying 0 < |x − a| < δ1 . It now follows that
for all x ∈ I satisfying 0 < |x − a| < δ1 ,
1
1
ℓ2 − g(x)
|ℓ2 − g(x)|
2|ℓ2 − g(x)|
2|ℓ2 − g(x)|
.
−
=
=
<
=
g(x) ℓ2
g(x)ℓ2
|g(x)ℓ2 |
|ℓ2 ||ℓ2 |
ℓ22
Given ϵ > 0 there exist δ2 > 0 such that
|g(x) − ℓ2 | <
ϵℓ22
whenever x ∈ I and 0 < |x − a| < δ2 .
2
Let δ = min{δ1 , δ2 }. Then, whenever x ∈ I and 0 < |x − a| < δ, we have
1
1
2|ℓ2 − g(x)|
2 ϵℓ22
−
<
·
= ϵ.
<
g(x) ℓ2
ℓ22
ℓ22 2
1
That is, limx→a g(x)
= ℓ12 provided ℓ2 ̸= 0.
Theorem 5.1.10 Let ℓ1 , ℓ2 , a ∈ R. Suppose that f and g are real-valued functions
defined on some open interval I containing a, except possibly at a itself, and that
f (x) ≤ g(x) for all x ∈ I. If limx→a f (x) = ℓ1 and limx→a g(x) = ℓ2 , then ℓ1 ≤ ℓ2 .
2
Proof 5.1.11 If ℓ2 < ℓ1 , let ϵ = ℓ1 −ℓ
2 . Now, there exist δ1 > 0 and δ2 > 0 such that
|f (x) − ℓ1 | < ϵ whenever x ∈ I and 0 < |x − a| < δ1 , and
|g(x) − ℓ2 | < ϵ whenever x ∈ I and 0 < |x − a| < δ2 .
91
■
MAT313
Real Analysis
That is,
ℓ1 − ϵ < f (x) < ℓ1 + ϵ whenever x ∈ I and 0 < |x − a| < δ1 , and
ℓ2 − ϵ < g(x) < ℓ2 + ϵ whenever x ∈ I and 0 < |x − a| < δ2 .
That is,
ℓ1 + ℓ2
2
< f (x) whenever x ∈ I and 0 < |x − a| < δ1 , and
g(x) <
ℓ1 + ℓ2
whenever x ∈ I and 0 < |x − a| < δ2 .
2
Let δ = min{δ1 , δ2 }. Then, whenever x ∈ I and 0 < |x − a| < δ, we have
g(x) <
ℓ1 + ℓ2
< f (x),
2
and so g(x) < f (x), a contradiction.
■
Theorem 5.1.12 (Squeeze Theorem). Suppose that f, g and h are real-valued
functions defined on some open interval I containing a, except possibly at a itself, and
that f (x) ≤ g(x) ≤ h(x) for all x ∈ I. If limx→a f (x) = ℓ and limx→a h(x) = ℓ, then
limx→a g(x) = ℓ.
Proof 5.1.13 Let ϵ > 0 be given. Then there exist δ1 > 0 and δ2 > 0 such that
|f (x) − ℓ| < ϵ whenever 0 < |x − a| < δ1 , and
|h(x) − ℓ| < ϵ whenever 0 < |x − a| < δ2 .
That is,
ℓ − ϵ < f (x) < ℓ + ϵ whenever 0 < |x − a| < δ1 , and
ℓ − ϵ < h(x) < ℓ + ϵ whenever 0 < |x − a| < δ2 .
Let δ = min{δ1 , δ2 }. Then, whenever 0 < |x − a| < δ, we have
ℓ − ϵ < f (x) ≤ g(x) ≤ h(x) < ℓ + ϵ.
Thus,
|g(x) − ℓ| < ϵ for all x satisfying 0 < |x − a| < δ.
That is, limx→a g(x) = ℓ.
Exercise 5.1.14
■
1. Show that f (x) → 0 as x → a if and only if |f (x)| → 0 as x → a.
92
MAT313
Real Analysis
2. Let a, ℓ ∈ R, D ⊆ R and f : D → R. Show that if f (x) → ℓ as x → a, then
|f (x)| → |ℓ| as x → a. Does the converse hold? Justify your answer.
3. Let a, ℓ ∈ R, D ⊆ R, f : D → R and ℓ > 0. Show that if limx→a f (x) = ℓ, then
there exists a deleted ϵ-neighbourhood N ∗ (a, ϵ) of a such that f (x) > 0 for all
x ∈ N ∗ (a, ϵ) ∩ D.
4. Let a, ℓ ∈ R, D ⊆ R, f : D → R and limx→a f (x) = ℓ. Show that there exists a
deleted ϵ-neighbourhood N ∗ (a, ϵ) and a positive real number M such that
|f (x)| ≤ M for all x ∈ N ∗ (a, ϵ) ∩ D.
5.2 Continuous Functions
When discussing the limit limx→a f (x), we made no reference to f (a), the value of the
function f at a. In fact, we emphasized that f (a) was unimportant in the analysis of
limx→a f (x). In this section we want to bring f (a) into the picture; we want to relate
the limit limx→a f (x) to the value of f at a.
Definition 5.2.1 Let D ⊆ R and f : D → R. The function f is said to be
continuous at a ∈ D if, given any ϵ > 0, there exists a δ > 0 (which generally
depends on ϵ and a) such that
|f (x) − f (a)| < ϵ whenever x ∈ D and |x − a| < δ.
The function f is continuous on D if it is continuous at each point of D. If f is not
continuous at a, we say that f is discontinuous there.
Let us reformulate this definition in the language of neighbourhoods:
Definition 5.2.2 Let D ⊆ R and f : D → R. The function f is said to be
continuous at a ∈ D if, for each ϵ-neighbourhood N (f (a), ϵ) of f (a), there is a
δ-neighbourhood N (a, δ) of a such that
f (x) ∈ N (f (a), ϵ) whenever
x ∈ N (a, δ) ∩ D.
Note that, in contrast to the deleted δ-neighbourhoods used in the definition of
limx→a f (x) = ℓ, for continuity we use δ-neighbourhoods.
Examples 5.2.3
1. Show that the function f (x) = x2 is continuous on R.
Solution: Let ϵ > 0 be given and a ∈ R. We need to produce a δ > 0 such that
|f (x) − f (a)| < ϵ whenever |x − a| < δ.
93
MAT313
Real Analysis
Now,
|f (x) − f (a)| = |x2 − a2 | = |(x − a)(x + a)|.
Since we are interested in the behaviour of f near a, we may restrict our attention to
those real numbers x that satisfy the inequality |x − a| < 1. These real numbers
satisfy the inequalities a − 1 < x < a + 1. Therefore, for all these real numbers, we
have
|x + a| ≤ |x| + |a| < |a + 1| + |a| ≤ 1 + 2|a|.
n
o
ϵ
Now, take δ = min 1, 1+2|a|
. Then, |x − a| < δ implies that
|f (x) − f (a)| = |x2 − a2 | < ϵ.
That is, f is continuous at a. Since a was arbitrarily chosen in R, it follows that f is
continuous on R.
□
x sin x1 if x ̸= 0
2. Show that the function f (x) =
is continuous at 0.
0
if x = 0.
Solution: Let ϵ > 0 be given. We need to produce a δ > 0 such that
|f (x) − f (0)| < ϵ whenever |x − 0| < δ.
Now
|f (x) − f (0)| = x sin
1
1
1
− 0 = x sin
= |x| sin
≤ |x|.
x
x
x
Choose 0 < δ ≤ ϵ. Then, |x − 0| < δ implies that
|f (x) − f (0)| = x sin
1
− 0 ≤ |x| < δ ≤ ϵ.
x
That is, f is continuous at 0.
□
3. Show that the function f : R → {−1, 1} given by
f (x) =
1
−1
if x ∈ Q
if x ∈ R \ Q
is discontinuous at every real number.
Solution: Assume that f is continuous at some a ∈ R. Then, given ϵ = 1, there
exists a δ > 0 such that
|f (x) − f (a)| < ϵ whenever |x − a| < δ.
94
MAT313
Real Analysis
Since rationals and irrationals are dense in R, the interval |x − a| < δ contains both
rationals and irrationals. If x ∈ Q and |x − a| < δ, then
|1 − f (a)| < 1, whence 0 < f (a) < 2.
On the other hand, if x ∈ R \ Q and |x − a| < δ, then
| − 1 − f (a)| < 1, whence − 2 < f (a) < 0.
But there is no real number that can simultaneously satisfy both the inequalities
0 < f (a) < 2 and −2 < f (a) < 0. Therefore f is discontinuous at every a ∈ R.
□
4. Show that the function f (x) = x1 is continuous at 1.
Solution: Let ϵ > 0 be given. We need to find a δ > 0 such that
|f (x) − f (1)| < ϵ whenever |x − 1| < δ.
Since we are interested in the values of x near 1, we may consider those x for which
|x − 1| < 12 . These x satisfy the inequalities
1
3
<x< .
2
2
Now, for all the x which satisfy |x − 1| < 12 , we have
|f (x) − f (1)| =
Choose δ = min
ϵ
2, 2
1
1
|x − 1|
−1 =
< 2|x − 1|.
x
x
. Then, whenever |x − 1| < δ, we have that
1
− 1 < ϵ.
x
That is, f is continuous at x = 1.
□
5. Show that if a is an isolated point in the domain D of f , then f is continuous at a.
Solution: Since a ∈ D, f is defined at a. Let ϵ > 0 be given. Since a is an isolated
point of D, there is a δ-neighbourhood N (a, δ) of a such that N (a, δ) ∩ D = {a}.
Assume that x ∈ D and |x − a| < δ; i.e., x ∈ N (a, δ). Then x = a since
N (a, δ) ∩ D = {a}. Hence
|f (x) − f (a)| = |f (a) − f (a)| = 0 < ϵ.
Therefore f is continuous at a.
□
6. We can deduce from Example 5 that if f : Z → R, then f is continuous at every
point of Z.
95
□
MAT313
Real Analysis
The following theorem gives a criterion for continuity at a point in terms of sequences.
On some occasions it is easier to apply this formulation than the ϵ − δ definition. In
particular, this formulation comes handy when one wants to use contradiction to prove
discontinuity of a function.
Theorem 5.2.4 Let D ⊆ R and f : D → R. Then f is continuous at a ∈ D if and
only if for every sequence (an ) in D such that limn→∞ an = a, we have that
limn→∞ f (an ) = f (a).
Proof 5.2.5 Suppose that f is continuous at a ∈ D and that (an ) is a sequence in D
such that limn→∞ an = a. Given ϵ > 0, there is a δ > 0 and an N ∈ N such that
|f (x) − f (a)| < ϵ whenever |x − a| < δ and |an − a| < δ for all n ≥ N.
Therefore
|f (an ) − f (a)| < ϵ for all n ≥ N.
That is, limn→∞ f (an ) = f (a).
For the converse, assume that for every sequence (an ) in D such that limn→∞ an = a,
we have that limn→∞ f (an ) = f (a) and that f is not continuous at a. Then there exists
an ϵ0 > 0 such that for every δ > 0 with 0 < |x − a| < δ, we have
|f (x) − f (a)| ≥ ϵ0 .
For n ∈ N, let δ = n1 . Then we can find an ∈ D such that 0 < |an − a| < n1 and
|f (an ) − f (a)| ≥ ϵ0 .
Clearly, (an ) is a sequence in D with the property that limn→∞ an = a and
|f (an ) − f (a)| ≥ ϵ0 for all n ∈ N.
That is, limn→∞ f (an ) ̸= f (a), a contradiction.
Examples 5.2.6
Solution: Since
1. Find the limit of the sequence ln
■
n+1
n
, if it exists.
n+1
=1
n→∞
n
lim
and the function f (x) = ln x is continuous on (0, ∞), it follows from Theorem 5.2.4
that
n+1
lim ln
= ln 1 = 0.
n→∞
n
That is, the sequence ln n+1
converges to 0.
□
n
96
MAT313
Real Analysis
2. Show that the function f (x) =
x
−x
if x ∈ Q
is continuous only at
if x ∈ R \ Q
x = 0.
Solution: Let us first show that f is continuous at x = 0. Let ϵ > 0 be given. We
need to find a δ > 0 such that
|f (x) − f (0)| < ϵ whenever |x − 0| < δ.
Now, since 0 ∈ Q, we have that
|f (x) − f (0)| = |f (x) − 0| = |f (x)|.
If x ∈ Q, then |f (x)| = |x|, and if x ∈ R \ Q, then |f (x)| = | − x| = |x|. Choose
δ = ϵ. Then whenever |x| < δ, we have that |f (x) − f (0)| < ϵ, i.e., f is continuous
at x = 0.
Next, we show that f is discontinuous on a ∈ R \ {0}. Assume that f is continuous
at some a ∈ R \ {0}. If a ∈ Q, then for each n ∈ N there is an an ∈ R \ Q such that
|an − a| <
1
.
n
That is, the sequence (an ) converges to a. Since an ∈ R \ Q for each n ∈ N,
f (an ) = −an , and since a ∈ Q, f (a) = a. Therefore
lim f (an ) = lim (−an ) = − lim an = −a ̸= a = f (a).
n →∞
n →∞
n →∞
Similarly, if a ∈ R \ Q, then for each n ∈ N there is an an ∈ Q such that
|an − a| <
1
.
n
Again, the sequence (an ) converges to a. Since an ∈ Q for each n ∈ N, f (an ) = an ,
and since a ∈ R \ Q, f (a) = −a. Therefore
lim f (an ) = lim an = a ̸= −a = f (a).
n →∞
n →∞
Thus f is discontinuous at a.
Exercise 5.2.7
□
1. Show that the function f (x) =
x if x ∈ Q
continuous only at x = 0.
97
0 if x ∈ R \ Q
is
MAT313
Real Analysis
2. Show that the function f (x) =
1 if x ∈ Q
is discontinuous at every
0 if x ∈ R \ Q
point of R.
The following theorem asserts that continuity is preserved by the standard algebraic
operations on functions.
Theorem 5.2.8 Let f and g be functions with common domain D ⊆ R, and let
a ∈ D. If f and g are continuous at a, then so are the functions
(i) f ± g,
(ii) cf for each c ∈ R,
(iii) |f |,
(iv) f g,
(v) fg , provided g(a) ̸= 0.
Proof 5.2.9 Exercise.
■
Theorem 5.2.10 Let f be a function which is continuous at a ∈ R. Suppose that g is
a function which is continuous at the point f (a). Then the composite function g ◦ f is
continuous at a.
Proof 5.2.11 Let ϵ > 0 be given. Then there exist η > 0 and δ > 0 such that
|g(y) − g(f (a))| < ϵ whenever |y − f (a)| < η, and
|f (x) − f (a)| < η whenever |x − a| < δ.
(Now δ depends on η, which in turn, depends on ϵ. Therefore δ depends on ϵ.) Hence,
for all x ∈ R with |x − a| < δ, we have that
|g(f (x)) − g(f (a))| < ϵ.
That is, g ◦ f is continuous at a.
■
The next theorem, called the Intermediate Value Theorem, asserts that if the domain of
a continuous function is an interval, then so is its range.
Theorem 5.2.12 (Intermediate Value Theorem). If f is continuous on a closed interval
[a, b] and f (a) ̸= f (b), then for each number k between f (a) and f (b) there is a point
c ∈ [a, b] such that f (c) = k.
98
MAT313
Real Analysis
Proof 5.2.13 For definiteness, assume that f (a) < f (b). Let
S = {x ∈ [a, b] | f (x) ≤ k}. Then S ̸= ∅ since a ∈ S. Thus, c = sup S exists as a real
number in [a, b]. By Theorem 4.1.23, there exists a sequence (xn ) in S such that
limn→∞ xn = c. Since a ≤ xn ≤ b for each n ∈ N, we have that a ≤ c ≤ b, and so f is
continuous at c. This then implies that limn → ∞ f (xn ) = f (c). As f (xn ) ≤ k for each
n ∈ N, we deduce that f (c) ≤ k, and so c ∈ S. It now remains to show that f (c) ≥ k.
To this end, we first observe that since c ∈ S and c = sup S, c + n1 ̸∈ S for each n ∈ N.
Also, since k < f (b), we have that c < b. Therefore, by Corollary 3.1.19, there exists
an N ∈ N such that 0 < N1 < b − c. Hence, for each n ≥ N , we have that
1
1
< b − c, i.e., c + < b.
n
n
This implies that for all n ≥ N, c + n1 ∈ [a, b] and c + n1 ̸∈ S. Thus,
f (c + n1 ) > k for all n ≥ N . By continuity of f , we have that f (c) ≥ k, whence
f (c) = k.
■
One of the many interesting consequences of the Intermediate Value Theorem is the
following fixed-point theorem.
Theorem 5.2.14 (Fixed-point Theorem). If f is continuous on a closed interval [a, b]
and f (x) ∈ [a, b] for each x ∈ [a, b], then f has a fixed point; i.e., there exists a point
c ∈ [a, b] such that f (c) = c.
Proof 5.2.15 If f (a) = a or f (b) = b, then we are done. We therefore assume that
a < f (a) and f (b) < b. Let g(x) = f (x) − x for every x ∈ [a, b]. Clearly, g is a
continuous function on [a, b], g(a) = f (a) − a > 0 and g(b) = f (b) − b < 0. That is, 0
is an intermediate value for g on [a, b]. Hence, by the Intermediate Value Theorem
(Theorem 5.2.12), there exists a c ∈ [a, b] such that g(c) = 0. This, of course, implies
that f (c) = c.
■
5.2.1 Uniform Continuity
Before giving the formal definition of uniform continuity we need to look closely at the
definition of continuity given earlier. We said that a function f , with domain D ⊆ R,
is continuous at a ∈ D if, given any ϵ > 0 there exists a δ > 0 (which depends on ϵ and
a) such that
|f (x) − f (a)| < ϵ whenever x ∈ D and |x − a| < δ.
For continuity at another point b ∈ D, for the same ϵ, a δ ′ > 0 would exist such that
|f (x) − f (b)| < ϵ whenever x ∈ D and |x − b| < δ ′ .
The δ and δ ′ may not be the same. Therefore, δ depends on ϵ as well as the point a.
For this reason, continuity is a local concept – it describes what happens to a function
in a neighbourhood of a point.
We now define uniform continuity.
99
MAT313
Real Analysis
Definition 5.2.16 Let D ⊆ R and f : D → R. The function f is said to be
uniformly continuous on D if, given any ϵ > 0, there exists a δ > 0 such that
|f (x) − f (y)| < ϵ whenever x, y ∈ D and |x − y| < δ.
The most important point to note here is that δ does not depend on any particular
point of the domain D – the same δ works for all points of D. Therefore uniform
continuity is a global concept.
Examples 5.2.17
1. Show that the function f (x) = x is uniformly continuous on R.
Solution: Let ϵ > 0 be given. We must produce a δ > 0 such that
|f (x) − f (y)| < ϵ whenever x, y ∈ R and |x − y| < δ.
Since |f (x) − f (y)| = |x − y|, we may choose 0 < δ ≤ ϵ. Then, for all x, y ∈ R with
|x − y| < δ, we have that
|f (x) − f (y)| = |x − y| < δ ≤ ϵ.
That is, f is uniformly continuous on R.
□
2. Show that the function f (x) = x2 is not uniformly continuous on R.
Solution: Let ϵ > 0 be given. We must show that for every δ > 0 there exist x, y ∈ R
such that |x − y| < δ and
|f (x) − f (y)| = |x2 − y 2 | ≥ ϵ.
Choose x, y ∈ R with x − y = 2δ and x + y = 2ϵ
δ . Then |x − y| < δ and
|x2 − y 2 | = |x + y||x − y| ≥
2ϵ δ
· = ϵ.
δ 2
Thus, f is not uniformly continuous on R.
□
3. Show that the function f (x) = x2 is uniformly continuous on [−1, 1].
Solution: Let ϵ > 0 be given. Then for all x, y ∈ [−1, 1] we have
|f (x) − f (y)| = |x2 − y 2 | = |x + y||x − y| ≤ 2|x − y|.
Choose δ = 2ϵ . Then, for all x, y ∈ [−1, 1] with |x − y| < δ, we have
ϵ
|f (x) − f (y)| = |x2 − y 2 | = |x + y||x − y| ≤ 2|x − y| < 2 = ϵ.
2
Hence f is uniformly continuous on [−1, 1].
100
□
MAT313
Real Analysis
4. Show that the function f (x) = x1 is not uniformly continuous on (0, 1].
Solution: Let ϵ = 12 and δ > 0. Then there exists an n ∈ N such that n1 < δ. Take
1
x = n1 , and y = n+1
. Then
|x−y| =
1
1
1
1
1
−
=
< < δ and |f (x)−f (y)| = |n−(n+1)| = 1 > .
n n+1
n(n + 1)
n
2
Hence f is not uniformly continuous on (0, 1].
□
5. Show that the function f (x) = x1 is uniformly continuous on [a, ∞), where a > 0.
Solution: Let ϵ > 0 be given. We must find a δ > 0 such that
|f (x) − f (y)| < ϵ whenever x, y ∈ [a, ∞) and |x − y| < δ.
Now, for all x, y ∈ [a, ∞),
y−x
|x − y|
|x − y|
1 1
=
=
.
−
≤
x y
xy
xy
a2
Take δ = a2 ϵ. Then, for all x, y ∈ [a, ∞) with |x − y| < δ, we have
|f (x) − f (y)| =
1 1
|x − y|
−
≤
< ϵ.
x y
a2
That is, f is uniformly continuous on [a, ∞).
□
Theorem 5.2.18 If f : D → R is uniformly continuous on D, then it is continuous
there.
Proof 5.2.19 Let ϵ > 0 be given. Then there exists a δ > 0 such that
|f (x) − f (y)| < ϵ whenever x, y ∈ D and |x − y| < δ.
Let y = a ∈ D. Then
|f (x) − f (a)| < ϵ for all x, y ∈ D such that |x − y| < δ.
Thus, f is continuous at a ∈ D. Since a ∈ D was arbitrarily chosen, f is continuous
on D.
■
Definition 5.2.20 A function f : R → R is said to satisfy a Lipschitz condition
on an interval I ⊆ R if there is a positive real number M such that
|f (x) − f (y)| ≤ M |x − y| for all x, y ∈ I.
If M < 1, then f is called a contraction map.
101
MAT313
Examples 5.2.21
on [0, 2].
Real Analysis
1. Show that the function f (x) = x2 satisfies a Lipschitz condition
Solution: For all x, y ∈ [0, 2], we have
|f (x) − f (y)| = |x2 − y 2 | = |x + y||x − y| ≤ 4|x − y|.
□
2. Show that the function f (x) = |x| satisfies a Lipschitz condition on R.
Solution: For all x, y ∈ R, we have
|f (x) − f (y)| = ||x| − |y|| ≤ |x − y|.
□
3. Show that the function f (x) = sin x satisfies a Lipschitz condition on R.
Solution: Let x, y ∈ R. Then
x+y x−y
x+y x−y
+
− sin
−
2
2
2
2
x−y
x+y
sin
= 2 cos
2
2
x−y
≤ 2 sin
2
|f (x) − f (y)| = | sin x − sin y| =
sin
≤ |x − y|,
where we have used the two facts:
x+y
cos
≤1
2
and
sin
x−y
2
≤
|x − y|
.
2
□
Theorem 5.2.22 If a function f : R → R satisfies a Lipschitz condition on an interval
I ⊆ R, then f is uniformly continuous there.
Proof 5.2.23 Since f satisfies a Lipschitz condition on I, there exists a positive real
number M such that
|f (x) − f (y)| ≤ M |x − y| for all x, y ∈ I.
Let ϵ > 0 be given and take δ = Mϵ . Then, whenever x, y ∈ I and |x − y| < δ, we have
that
ϵ
|f (x) − f (y)| ≤ M |x − y| < M
= ϵ.
M
That is, f is uniformly continuous on I.
■
102
MAT313
Real Analysis
Theorem 5.2.24 If f is contraction map on a closed interval [a, b] such that
f (x) ∈ [a, b] for each x ∈ [a, b], then f has a unique fixed point; i.e., there exists exactly
one point c ∈ [a, b] such that f (c) = c.
Proof 5.2.25 Since f is a contraction map, it is (uniformly) continuous on [a, b].
Furthermore, f satisfies the hypotheses of the fixed-point theorem. Therefore there
exists a point c ∈ [a, b] such that f (c) = c.
To prove uniqueness, assume that there is a d ∈ [a, b] such that f (d) = d. Since f is a
contraction map, there exists an M ∈ R such that 0 < M < 1 and
|c − d| = |f (c) − f (d)| ≤ M |c − d| < |c − d|,
which is impossible. Thus c = d.
■
5.2.2 Continuous Functions and Compact Sets
Theorem 5.2.26 A continuous image of a compact set is compact, i.e., if K is a
compact subset of R and f : K → R is continuous on K, then the set
f (K) := {y ∈ R | f (x) = y for some x ∈ K}
is compact.
Proof 5.2.27 Let (yn ) be a sequence in f (K). Then, for each n ∈ N, there is an
xn ∈ K such that yn = f (xn ). Since K is compact, the sequence (xn ) has a subsequence
(xnk ) which converges to some x ∈ K. Using continuity of f , we have, by
k→∞
Theorem 5.2.4, that f (xnk ) −→ f (x) ∈ f (K). Hence, the subsequence
(ynk ) = (f (xnk )) of (yn ) converges to y = f (x) ∈ f (K).
■
Definition 5.2.28 A real-valued function f with domain D is said to be bounded
on D if there exists a positive real number M such that
|f (x)| ≤ M for all x ∈ D.
A continuous function may not be bounded even when its domain is a bounded set. One
such example is the function f (x) = x1 defined on (0, 1). As x approaches 0 from the
right, f grows without bound.
The next theorem asserts that a continuous real-valued function defined on a compact
set is always bounded there.
Corollary 5.2.29 If K is a compact subset of R and f : K → R is continuous on K,
then f is bounded on K. That is,
M = sup{f (x) | x ∈ K} and m = inf{f (x) | x ∈ K}
are finite. Moreover, there are points x1 and x2 in K such that f (x1 ) = M and
f (x2 ) = m.
103
MAT313
Real Analysis
Proof 5.2.30 Since K is compact and f is continuous, it follows from
Theorem 5.2.26 that f (K) is a compact. By the Heine-Borel Theorem
(Theorem 3.3.9), we have that f (K) is closed and bounded. Therefore M and m are
finite. Since f (K) is closed, M and m belong to f (K). Therefore there are points x1
and x2 such that M = f (x1 ) and m = f (x2 ).
■
While the Intermediate Value Theorem (Theorem 5.2.12) assures us that a continuous
function takes an interval into an interval, the following theorem tells us that, in fact,
a continuous function takes a closed and bounded interval into a closed and bounded
one! Its proof is contained in Corollary 5.2.29.
Theorem 5.2.31 (Extreme Value Theorem). If f is continuous on a closed interval
[a, b], then there exist points u and v in [a, b] such that
f (u) ≤ f (x) ≤ f (v) for all x ∈ [a, b], i.e., x ∈ [a, b] ⇒ f (x) ∈ [f (u), f (v)].
The following result asserts that a continuous function on a compact set is uniformly
continuous on K.
Theorem 5.2.32 If K is a compact subset of R and f : K → R is continuous on K,
then f is uniformly continuous.
Proof 5.2.33 Assume that f is continuous on K but not uniformly continuous there.
Then, there is an ϵ > 0 such that, for each δ > 0, there are points x, y ∈ K such that
|x − y| < δ but |f (x) − f (y)| ≥ ϵ. In particular, for each n ∈ N, there are points
xn , yn ∈ K such that |xn − yn | < n1 but |f (xn ) − f (yn )| ≥ ϵ. Since K is compact, the
sequence (xn ) has a subsequence (xnk ) which converges to some x ∈ K. Similarly, the
sequence (yn ) has a subsequence (ynk ) which converges to some y ∈ K. Since
0 ≤ |x − y| ≤ |x − xnk | + |xnk − ynk | + |ynk − y| → 0 as k → ∞,
k→∞
it follows that x = y. Since f is continuous on K, we have that f (xnk ) −→ f (x) and
k→∞
f (ynk ) −→ f (y). Hence, there are natural numbers N1 and N2 such that
|f (xnk ) − f (x)| <
ϵ
for all k ≥ N1 , and
2
|f (ynk ) − f (x)| <
ϵ
for all k ≥ N2 .
2
Let N = max{N1 , N2 }. Then for all k ≥ N we have
0 < ϵ ≤ |f (xnk ) − f (ynk )| ≤ |f (xnk ) − f (x)| + |f (ynk ) − f (x)| <
which is absurd.
ϵ
ϵ
+ = ϵ,
2 2
■
104
MAT313
Real Analysis
Exercise 5.2.34
1. Let f : R → R be a continuous function. Show that if f (q) = 0
for all q ∈ Q, then f (x) = 0 for all x ∈ R. More generally, show that if f : R → R is
a continuous function that vanishes on a dense set, then f is identically zero.
2. Let f : R → R. We say that f is linear if f (x + y) = f (x) + f (y) for all x, y ∈ R.
Show that the function f (x) = cx, where c ∈ R, is a continuous linear function.
Show that, in fact, every continuous linear function f is of this form.
3. Let S ⊆ R. The inverse image of S under f , denoted by f −1 (S), is the set
f −1 (S) = {x ∈ R : f (x) ∈ S}.
Show that a function f : R → R is continuous if and only if the inverse image
f −1 (V ) of every open set V is open.
√
4. Show that the function f : [0, ∞) → [0, ∞) defined by f (x) = x is uniformly
continuous.
5. Show that the function f : R+ → R defined by f (x) = sin x1 is continuous but not
uniformly continuous on R+ .
6. Let S ⊆ R and, for x ∈ R, define
f (x) = inf{|x − s| : s ∈ S}.
Show that if x ̸∈ S, then f (x) > 0. Also, show that
|f (x) − f (y)| ≤ |x − y| for all x, y ∈ R.
This says that f satisfies a Lipschitz condition on R.
105
MAT313
Real Analysis
106
Chapter 6
Riemann integration
6.1 Introduction
In the branch of mathematics known as real analysis, the Riemann integral, created by
Bernhard Riemann (1826-1866), was the first rigorous definition of the integral of a
function on an interval. The Riemann integral was clearly an improvement upon the
way in which integration was initially conceived by Leibnitz and Newton, i.e., simply as
the anti-derivative. While the Riemann integral is one of the easiest integrals to define,
and has obvious uses in numerical analysis, it is unsuitable for many theoretical
purposes. Some of these technical deficiencies can be remedied by the Riemann-Stieltjes
integral, and most of them disappear in the Lebesgue integral. The idea behind the
Riemann integral is to use very simple approximations for the area of S. By taking
better and better approximations, we can say that ‘in the limit’, we get exactly the area
of S under the curve.
6.2 Basic definitions and theorems
In this section we discuss the construction of the Riemann integral. This discussion
reveals some of the shortcomings of the Riemann integral and we present these as a
motivation for the construction of the Lebesgue integral. From the very begin we will
prove every result, no matter how intuitively obvious, in order to put integration on a
solid foundation.
Definition 6.2.1 Let [a, b] be a closed interval in R. A partition of [a, b] is a set
P = {x0 , x1 , x2 , . . . , xn } of points in R such that
a = x0 < x1 < x2 < · · · < xn = b.
Let f be a real-valued function which is bounded on [a, b] and let
P = {x0 , x1 , x2 , . . . , xn } be a partition of [a, b]. Denote by
M = sup f (x) and m = inf f (x).
a≤x≤b
a≤x≤b
107
MAT313
Real Analysis
Since f is bounded on [a, b], it is bounded on each subinterval [xi−1 , xi ], for each
i = 1, 2, . . . , n. Let
Mi = sup{f (x) : xi−1 ≤ x ≤ xi } and mi = inf{f (x) : xi−1 ≤ x ≤ xi },
for each i = 1, 2, . . . , n. Clearly,
m ≤ mi ≤ Mi ≤ M, for each i = 1, 2, . . . , n.
We can now form the sums
U (f, P ) =
n
X
Mi (xi − xi−1 ) and L(f, P ) =
i=1
n
X
mi (xi − xi−1 ).
i=1
Definition 6.2.2 The sums U (f, P ) and L(f, P ) are called, respectively, the upper
and the lower sum of f relative to the partition P .
Remark 6.2.3
1. It is important to note that U (f, P ) and L(f, P ) depend on the
partition P . If f is nonnegative on [a, b], then the upper sum U (f, P ) is the sum
of the areas of the rectangles whose heights are Mi and whose bases are [xi−1 , xi ].
Similarly, L(f, P ) is the sum of the areas of the rectangles whose heights are mi ,
and whose bases are [xi−1 , xi ].
2. It also follows that U (f, P ) ≥ L(f, P ).
Theorem 6.2.4 Let f be a real-valued function which is bounded on [a, b] and let
P = {x0 , x1 , x2 , . . . , xn } be a partition of [a, b]. Then
m(b − a) ≤ L(f, P ) ≤ U (f, P ) ≤ M (b − a).
Proof 6.2.5 Since Mi ≤ M , for each i = 1, 2, . . . , n, it follows that
U (f, P ) =
n
X
n
X
Mi (xi − xi−1 ) ≤
i=1
M (xi − xi−1 ) = M
i=1
n
X
(xi − xi−1 ) = M (b − a).
i=1
Similarly, since m ≤ mi , for each i = 1, 2, . . . , n, it follows that
L(f, P ) =
n
X
i=1
mi (xi − xi−1 ) ≥
n
X
m(xi − xi−1 ) = m
i=1
n
X
(xi − xi−1 ) = m(b − a).
i=1
This theorem says that the set A = {U (f, P ) : P is a partition of [a, b]} is bounded
below by m(b − a). Hence, A has an infimum, Σ(f ), say. That is,
Σ(f ) = inf U (f, P ),
P
108
MAT313
Real Analysis
where the infimum is taken over all possible partitions P of [a, b]. This theorem also
shows that the set B = {L(f, P ) : P is a partition of [a, b]} is bounded above by
M (b − a) and hence B has a supremum, σ(f ), say. That is,
σ(f ) = sup L(f, P ),
P
where the supremum is taken over all possible partitions P of [a, b]. It follows that
m(b − a) ≤ Σ(f ) ≤ M (b − a), and
m(b − a) ≤ σ(f ) ≤ M (b − a).
Definition 6.2.6 Let f be a real-valued function which is bounded on [a, b]. The
upper integral of f on [a, b] is defined by
Z b
f (x)dx = inf U (f, P ),
a
P
and the lower integral of f on [a, b] is defined by
Z b
f (x)dx = sup L(f, P ),
a
P
where, once again, the infimum and supremum are taken over all possible partitions P
of [a, b].
Rb
Rb
It is intuitively clear that a f (x)dx ≤ a f (x)dx. Of course, this is not enough and we
will therefore prove this fact shortly.
Definition 6.2.7 Let P = {x0 , x1 , x2 , . . . , xn } be a partition of [a, b]. A partition P ∗
of [a, b] is called a refinement of P , denoted by P ⊆ P ∗ , if xi ∈ P ∗ , for each
i = 0, 1, 2, . . . , n. A partition P ∗ is called a common refinement of the partitions P1
and P2 of [a, b] if P ∗ is a refinement of both P1 and P2 .
The next theorem states that refining a partition decreases the upper sum and increases
the lower sum.
Lemma 6.2.8 (Refinement Lemma) Let f be a real-valued function which is
bounded on [a, b]. If P ∗ is a refinement of a partition P = {x0 , x1 , x2 , . . . , xn } of [a, b],
then
L(f, P ) ≤ L(f, P ∗ ) ≤ U (f, P ∗ ) ≤ U (f, P ).
Proof 6.2.9 Suppose that P ∗ has one more point that P , say a point x∗ which lies in
the subinterval [xr−1 , xr ]. Let
L1 = sup{f (x) : xr−1 ≤ x ≤ x∗ }, L2 = sup{f (x) : x∗ ≤ x ≤ xr } and
l1 = inf{f (x) : xr−1 ≤ x ≤ x∗ }, l2 = inf{f (x) : x∗ ≤ x ≤ xr }.
109
MAT313
Real Analysis
Recalling that
Mr = sup{f (x) : xr−1 ≤ x ≤ xr }, and mr = inf{f (x) : xr−1 ≤ x ≤ xr },
we observe that
mr ≤ l1 , mr ≤ l2 , L1 ≤ Mr , and L2 ≤ Mr .
It follows that
mr (xr − xr−1 ) = mr (xr − x∗ ) + mr (x∗ − xr−1 ) ≤ l2 (xr − x∗ ) + l1 (x∗ − xr−1 ).
Hence,
L(f, P ∗ ) =
r−1
X
j=1
≥
=
r−1
X
j=1
n
X
n
X
mj (xj − xj−1 ) + l1 (x∗ − xr−1 ) + l2 (xr − x∗ ) +
mj (xj − xj−1 )
j=r+1
mj (xj − xj−1 ) + mr (xr − xr−1 ) +
n
X
mj (xj − xj−1 )
j=r+1
mj (xj − xj−1 ) = L(f, P ).
j=1
Similarly,
Mr (xr − xr−1 ) = Mr (xr − x∗ ) + Mr (x∗ − xr−1 ) ≥ L2 (xr − x∗ ) + L1 (x∗ − xr−1 ),
and so
U (f, P ∗ ) =
r−1
X
Mj (xj − xj−1 ) + L1 (x∗ − xr−1 ) + L2 (xr − x∗ ) +
j=1
≤
=
r−1
X
j=1
n
X
n
X
Mj (xj − xj−1 )
j=r+1
Mj (xj − xj−1 ) + Mr (xr − xr−1 ) +
n
X
Mj (xj − xj−1 )
j=r+1
Mj (xj − xj−1 ) = U (f, P ).
j=1
the case where P ∗ contains k ≥ 2 more points than P can be proved by simply repeating
the above argument k times.
Theorem 6.2.10 Let f be a real-valued function which is bounded on [a, b]. Then,
Z b
Z b
f (x)dx ≤
f (x)dx.
a
a
110
MAT313
Real Analysis
Proof 6.2.11 Let P1 and P2 be any two partitions of [a, b] and let P ∗ be their common
refinement. Then by Lemma 6.2.8,
L(f, P1 ) ≤ L(f, P ∗ ) ≤ U (f, P ∗ ) ≤ U (f, P2 ).
Since P1 is any partition of [a, b], it follows that
sup L(f, P ) ≤ U (f, P2 ),
P
and since P2 is any partition of [a, b], we have that
sup L(f, P ) ≤ inf U (f, P ),
P
P
where the infimum and the supremum are taken over all possible partitions P of [a, b].
Thus,
Z b
Z b
f (x)dx.
f (x)dx ≤
a
a
Remark 6.2.12 Implicit in the proof of Theorem 6.2.10, is the fact that no lower sum
can exceed an upper sum. That is, every lower sum is less than or equal to every upper
sum.
Definition 6.2.13 Let f be a real-valued function on [a, b]. We say that f is
Riemann-integrable on [a, b] if f is bounded on [a, b] and
Z b
Z b
f (x)dx.
f (x)dx =
a
a
If f is Riemann-integrable on [a, b], we define the integral of f on [a, b] to be the
common value of the upper and lower integrals, i.e,
Z b
Z b
f (x)dx =
a
Z b
f (x)dx.
f (x)dx =
a
a
We shall denote by R[a, b] the collection of all functions that are Riemann-integrable
on [a, b].
Remark 6.2.14 In the definition of the integral of f on [a, b], we have tacitly assumed
Rb
Ra
that a < b. If a = b, then a f (x)dx = a f (x)dx = 0. Also if b < a, then define
Z a
Z b
f (x)dx = −
b
f (x)dx.
a
111
MAT313
Real Analysis
Examples 6.2.15
1. Show that if f is a constant function on [a, b], then
f ∈ R[a, b] and find it’s integral.
Solution: Let f (x) = k, for all x ∈ [a, b] and let P = {x0 , x1 , x2 , . . . , xn } by any
partition of [a, b]. Then
Mi = sup{f (x) : xi−1 ≤ x ≤ xi } = k and mi = inf{f (x) : xi−1 ≤ x ≤ xi } = k,
for each i = 1, 2, . . . , n. Therefore,
U (f, P ) =
L(f, P ) =
n
X
i=1
n
X
Mi (xi − xi−1 ) = k
mi (xi − xi−1 ) = k
i=1
n
X
i=1
n
X
(xi − xi−1 ) = k(b − a) and
(xi − xi−1 ) = k(b − a)
i=1
Since P is any partition of [a, b], it follws that U (f, P ) = L(f, P ) = k(b − a), for
all partitions P of [a, b]. Therefore,
Z b
Z b
f (x)dx = k(b − a) =
f (x)dx.
a
a
That is, f is integrable on [a, b] and
Z b
f (x)dx = k(b − a).
a
2. Let f be a function defined by
3.
f (x) =
1 if x ∈ Q ∩ [0, 1]
0 if x ̸∈ Q ∩ [0, 1].
Show that f is not Riemann-integrable on [0, 1].
Solution: Firstly we observe that f is bounded on [0, 1]. Let
P = {x0 , x1 , x2 , . . . , xn } be any partition of [0, 1]. Since for each i = 1, 2, . . . , n,
the subinterval [xi−1 , xi ] contains both rational and irrational numbers, we have
that
Mi = sup{f (x) : xi−1 ≤ x ≤ xi } = sup{0, 1} = 1, and
mi = inf{f (x) : xi−1 ≤ x ≤ xi } = inf{0, 1} = 0,
for each i = 1, 2, . . . , n. Thus,
U (f, P ) =
n
X
Mi (xi − xi−1 ) = (1)
i=1
L(f, P ) =
n
X
(xi − xi−1 ) = 1 − 0 = 1, and
i=1
n
X
mi (xi − xi−1 ) = (0)
i=1
n
X
i=1
112
(xi − xi−1 ) = 0.
MAT313
Real Analysis
Since P is any partition of [0, 1], it follows that U (f, P ) = 1 − 0 = 1 and
L(f, P ) = 0, for all partitions of P of [0, 1]. Therefore,
Z 1
Z 1
f (x)dx = 1,
f (x)dx = 0 and
0
0
and hence f is not Riemann-integrable on [0, 1].
Notice that in the last example, the given function f is discontinuous at every point.
Theorem 6.2.16 (Darboux’s integrability condition) Let f be a real-valued
function which is bounded on [a, b]. Then f is integrable on [a, b] if and only if, for any
ϵ > 0, there exists a partition P ∗ of [a, b] such that
U (f, P ∗ ) − L(f, P ∗ ) < ϵ.
Proof 6.2.17 Assume that f is integrable on [a, b] and let ϵ > 0. Since
Z b
Z b
f (x)dx =
a
f (x)dx = sup L(f, P ),
P
a
there is a partition P1 of [a, b] such that
Z b
f (x)dx −
a
ϵ
< L(f, P1 ).
2
Again, since
Z b
Z b
f (x)dx =
a
f (x)dx = inf U (f, P ),
P
a
there exists a partition P2 of [a, b] such that
Z b
U (f, P2 ) <
ϵ
f (x)dx + .
2
a
Let P ∗ be a common refinement of P1 and P2 . Then
Z b
Z b
ϵ
ϵ
f (x)dx + .
f (x)dx − < L(f, P1 ) ≤ L(f, P ∗ ) ≤ U (f, P ∗ ) ≤ U (f, P2 ) <
2
2
a
a
It now follows that
U (f, P ∗ ) − L(f, P ∗ ) < ϵ.
For the converse, assume that given ϵ > 0, there is a partition P ∗ of [a, b] such that
U (f, P ∗ ) − L(f, P ∗ ) < ϵ.
113
MAT313
Real Analysis
Then,
Z b
a
f (x)dx = inf U (f, P ) ≤ U (f, P ∗ ), and
Z b
P
f (x)dx = sup L(f, P ) ≥ L(f, P ∗ ).
P
a
Thus,
Z b
Z b
f (x)dx −
0≤
f (x)dx ≤ U (f, P ∗ ) − L(f, P ∗ ) < ϵ.
a
a
Since ϵ > 0 is arbitrary, we have that
Z b
Z b
f (x)dx =
f (x)dx.
a
a
That is, f ∈ R[a, b].
We now highlight the following important fact which is contained in the first part of the
proof of Darboux’s integrability condition:
Theorem 6.2.18 If f is integrable on [a, b], then for each ϵ > 0, there exists a
partition P of [a, b] such that
Z b
Z b
f (x)dx − ϵ < L(f, P ) ≤ U (f, P ) <
a
f (x)dx + ϵ.
a
Theorem 6.2.19 If f is continuous on [a, b], then it is integrable there.
Proof 6.2.20 Since f is continuous on [a, b], we have that f is bounded on [a, b].
Furthermore, f is uniformly continuous on [a, b]. Hence, given ϵ > 0, there is a δ > 0
such that
|f (x) − f (y)| <
ϵ
, whenever x, y ∈ [a, b] and |x − y| < δ.
b−a
Let P = {x0 , x1 , x2 , . . . , xn } be any partition of [a, b] such that xi − xi−1 < δ, for each
i = 1, 2, . . . , n. By the Extreme-Value Theorem (applied to f on [xi−1 , xi ], for each
i = 1, 2, . . . , n), there exist points ti and si in [xi−1 , xi ], for each i = 1, 2, . . . , n such that
f (ti ) = sup{f (x) : xi−1 ≤ x ≤ xi } = Mi and f (si ) = inf{f (x) : xi−1 ≤ x ≤ xi } = mi .
Since xi − xi−1 < δ, it follows that |ti − si | < δ, and so
Mi − mi = f (ti ) − f (si ) = |f (ti ) − f (si )| <
114
ϵ
, for all i = 1, 2, . . . , n.
b−a
MAT313
Real Analysis
Thus,
U (f, P ) − L(f, P ) =
n
X
Mi (xi − xi−1 ) −
i=1
≤
mi (xi − xi−1 ) =
i=1
n
X
i=1
n
X
n
X
(Mi − mi )(xi − xi−1 )
i=1
n X
ϵ
(xi − xi−1 )
|f (ti ) − f (si )|(xi − xi−1 ) <
b−a
i=1
ϵ
=
(b − a) = ϵ.
b−a
It now follows from Theorem 6.2.16, that f is integrable on [a, b].
Theorem 6.2.21 If f is monotone on [a, b], then f is integrable there.
Proof 6.2.22 Assume that f is monotone increasing on [a, b] and f (a) < f (b). Since
f (a) ≤ f (x) ≤ f (b), for all x ∈ [a, b], f is clearly bounded on [a, b]. We want to show
that, given any ϵ > 0, there is a partition P of [a, b] such that U (f, P ) − L(f, P ) < ϵ.
Let ϵ > 0 be given an let P = {x0 , x1 , x2 , . . . , xn } be any partition of [a, b] such that
ϵ
xi − xi−1 < f (b)−f
(a) , for each i = 1, 2, . . . , n. Since f is increasing on [a, b], we have
that
Mi = sup{f (x) : xi−1 ≤ x ≤ xi } = f (xi ) and mi = inf{f (x) : xi−1 ≤ x ≤ xi } = f (xi−1 ),
for each i = 1, 2, . . . , n. Hence,
U (f, P ) − L(f, P ) =
≤
n
X
i=1
n
X
Mi (xi − xi−1 ) −
n
X
mi (xi − xi−1 ) =
i=1
n
X
(Mi − mi )(xi − xi−1 )
i=1
n
[f (xi ) − f (xi−1 )](xi − xi−1 ) <
i=1
X
ϵ
[f (xi ) − f (xi−1 )]
f (b) − f (a)
i=1
ϵ
[f (b) − f (a)] = ϵ.
=
f (b) − f (a)
It then follows from Theorem 6.2.16, that f is Riemann-integrable on [a, b]. The case
where f is monotone decreasing can be proved in exactly the same way.
Theorem 6.2.23 If f is integrable on [a, b] and a ≤ c < d ≤ b, then f is integrable on
[c, d].
Proof 6.2.24 Since f is integrable on [a, b], it is bounded there. Hence f is bounded
on [c, d]. Furthermore, given any ϵ > 0, there is a partition P of [a, b], such that
U (f, P ) − L(f, P ) < ϵ.
Let P ∗ = P ∪ {c, d}. Then P ∗ is a refinement of P , and hence
U (f, P ∗ ) − L(f, P ∗ ) ≤ U (f, P ) − L(f, P ) < ϵ.
115
MAT313
Real Analysis
Let Q1 = P ∗ ∩ [a, c], Q2 = P ∗ ∩ [c, d], Q3 = P ∗ ∩ [d, b]. Then P ∗ = Q1 ∪ Q2 ∪ Q3 , and so,
U (f, P ∗ ) = U (f, Q1 ) + U (f, Q2 ) + U (f, Q3 ), and
L(f, P ∗ ) = L(f, Q1 ) + L(f, Q2 ) + L(f, Q3 ).
Hence,
[U (f, Q1 )−L(f, Q1 )]+[U (f, Q2 )−L(f, Q2 )]+[U (f, Q3 )−L(f, Q3 )] = U (f, P ∗ )−L(f, P ∗ ) < ϵ.
Note that all terms on the left are nonnegative. Therefore Q2 is a partition of [c, d]
with the property that
U (f, Q2 ) − L(f, Q2 ) < ϵ.
This implies that f is integrable on [c, d].
Corollary 6.2.25 If f is integrable on [a, b] and a < c < b, then f is integrable on
both [a, c] and [c, b].
The following theorem states that the converse of Corollary 6.2.25 also holds.
Theorem 6.2.26 If a < c < b and f is integrable on both [a, c] and [c, b], then f is
integrable on [a, b] and
Z c
Z b
Z b
f (x)dx =
f (x)dx +
f (x)dx.
a
a
c
Proof 6.2.27 Let ϵ > 0 be given. Since f is integrable on [a, c] and on [c, b], there are
partitions P1 and P2 of [a, c] and [c, b] respectively, such that
ϵ
U (f, P1 ) − L(f, P1 ) < , and
2
ϵ
U (f, P2 ) − L(f, P2 ) < .
2
Let P = P1 ∪ P2 . Then P is a partition of [a, b] and
U (f, P ) − L(f, P ) = U (f, P1 ) + U (f, P2 ) − L(f, P1 ) − L(f, P2 )
= U (f, P1 ) − L(f, P1 ) + U (f, P2 ) − L(f, P2 ) <
ϵ
ϵ
+ = ϵ.
2 2
Therefore f is integrable on [a, b]. Furthermore,
Z b
f (x)dx ≤ U (f, P ) = U (f, P1 ) + U (f, P2 )
a
ϵ
ϵ
+ L(f, P2 ) +
< L(f, P1 ) +
2
2
= L(f, P1 ) + L(f, P2 ) + ϵ
Z c
Z b
≤
f (x)dx +
f (x)dx + ϵ.
a
c
116
MAT313
Real Analysis
Since ϵ is arbitrary, it follows that
Z b
Z c
Z b
f (x)dx ≤
f (x)dx
f (x)dx +
(6.2.1)
c
a
a
Also,
Z b
a
f (x)dx ≥ L(f, P ) = L(f, P1 ) + L(f, P2 )
ϵ
ϵ
> U (f, P1 ) −
+ U (f, P2 ) −
2
2
= U (f, P1 ) + U (f, P2 ) − ϵ
Since ϵ is arbitrary, it follows that
Z b
Z c
f (x)dx ≥
a
Z b
f (x)dx +
a
f (x)dx.
(6.2.2)
c
Combining (6.2.1) and (6.2.2), we have that
Z b
Z c
f (x)dx =
a
Z b
f (x)dx +
a
f (x)dx.
c
Corollary 6.2.28 Let f be defined on [a, b] and suppose that
a = c0 < c1 < · · · < cn−1 < cn = b. Then f is integrable on [a, b] if and only if f is
integrable on [ck−1 , ck ], for each k = 1, 2, . . . , n. In this case,
Z b
f (x)dx =
a
n Z ck
X
k=1
f (x)dx.
ck−1
Corollary 6.2.29 If f is continuous at all but a finite set of points in [a, b], then f is
Riemann-integrable on [a, b].
6.3 Fundamental theorem of calculus
Theorem 6.3.1 (Fundamental theorem of calculus) Let f be a bounded
real-valued integrable function on [a, b]. Suppose that F : [a, b] → R is continuous on
[a, b] and differentiable on (a, b) and that
F ′ (x) = f (x), for each x ∈ (a, b).
Then,
Z b
f (x)dx = F (b) − F (a).
a
117
MAT313
Real Analysis
Proof 6.3.2 Let P = {x0 , x1 , x2 , . . . , xn } be a partition of [a, b].
Mi = sup{f (x) : xi−1 ≤ x ≤ xi } and mi = inf{f (x) : xi−1 ≤ x ≤ xi },
for each i = 1, 2, . . . , n. For each i = 1, 2, . . . , n, F is continuous on [xi−1 , xi ] and
differentiable on (xi−1 , xi ). By the Mean Value Theorem, there is a ζi ∈ (xi−1 , xi ) such
that
F (xi ) − F (xi−1 ) = F ′ (ζi )(xi − xi−1 ) = f (ζi )(xi − xi−1 ).
Since, for each i = 1, 2, . . . , n; mi ≤ f (ζi ) ≤ Mi , it follows that
mi (xi − xi−1 ) ≤ f (ζi )(xi − xi−1 ) ≤ Mi (xi − xi−1 ) ⇔ mi (xi − xi−1 ) ≤ F (xi ) − F (xi−1 ) ≤ Mi (xi − xi−1 )
n
n
n
X
X
X
⇒
mi (xi − xi−1 ) ≤
[F (xi ) − F (xi−1 )] ≤
M
i=1
i=1
⇔ L(f, P ) ≤ F (b) − F (a) ≤ U (f, P ).
Since P is an arbitrary partition of [a, b], it follows that F (b) − F (a) is an upper bound
for the set {L(f, P ) : P is a partition of [a, b]} and a lower bound for the set
{U (f, P ) : P is a partition of [a, b]}. Therefore,
Z b
Z b
f (x)dx = sup L(f, P ) ≤ F (b) − F (a) ≤ inf U (f, P ) =
P
P
a
Since f is integrable on [a, b], we have that
Z b
Z b
f (x)dx =
a
Z b
f (x)dx =
a
f (x)dx,
a
Z b
f (x)dx = F (b) − F (a).
and consequently
a
Exercise 6.3.3
1. Let f be the function on [0, 1] given by
f (x) =
x if x is rational
0 if x is irrational.
Show that f is not Riemann-integrable on [0, 1].
2. Let f be the function on [0, 1] given by
f (x) =
1
x − 21
118
f (x)dx.
a
if 0 ≤ x < 12
if 12 ≤ x < 1.
i=1
MAT313
Real Analysis
(a) Show, from first principles, that f is Riemann-integrable on [0, 1].
(b) Quote a result that assures us that f is Riemann-integrable.
Z 1
f (x)dx.
(c) Find
0
3. Let {r1 , r2 , r3 , . . . } be an enumeration of rationals in the interval [0, 1]. For each
n ∈ N, define
fn (x) =
1 if x ∈ {r1 , r2 , r3 , . . . , rn }
0 otherwise.
(a) Show that (fn ) is a nondecreasing sequence of functions that are
Riemann-integrable on [0, 1].
(b) Show also that the sequence (fn ) converges pointwise to the function
f (x) =
1 if x ∈ Q ∩ [0, 1]
0 otherwise,
(c) Show that f is not Riemann-integrable.
119
MAT313
Real Analysis
120
Chapter 7
Introduction to Metric Spaces
7.1
Definition 7.1.1 Let X be a nonempty set. A metric on X is a function
d : X × X → R such that for every x, y, z ∈ X,
M1. d(x, y) ≥ 0;
M2. d(x, y) = 0 if and only if x = y;
M3. d(x, y) = d(y, x);
M4. d(x, z) ≤ d(x, y) + d(y, z), (triangle inequality).
A metric space is a pair (X, d), where X is a nonempty set and d a metric on X.
The elements of a metric space (X, d) are usually referred to as points. If x, y ∈ X,
then d(x, y) is called the distance between x and y. A set can have more than one
metric defined on it.
If condition M2 is replaced by the condition
M2′ . d(x, x) = 0 for all x ∈ X,
then d is a pseudo-metric on X and (X, d) is a pseudo-metric space.
Examples 7.1.2
1. Let X = R and for x, y ∈ X, define d : X × X → R by d(x, y) = |x − y|. Then
(R, d) is a metric space. This metric is called the usual metric on R.
2. Let X = C, the set of complex numbers. For x, y ∈ X, define d : X × X → R by
d(x, y) = |x − y|. Then (C, d) is a metric space. This is metric called the usual
metric on C.
3. Let X = Rn , where n is a natural number. The elements of X are ordered n-tuples
x = (x1 , x2 , . . . , xn ) of real numbers. For x = (x1 , x2 , . . . , xn ) and
y = (y1 , y2 , . . . , yn ) in X, define
121
MAT313
Real Analysis
n
X
d1 (x, y) =
|xi − yi |,
i=1
" n
X
d2 (x, y) =
#1/2
(xi − yi )
2
,
i=1
max |xi − yi |.
d∞ (x, y) =
1≤i≤n
Then each of d1 , d2 and d∞ defines a metric on Rn .
These metrics have special names attached to them:
d1 is called the taxicab metric. The reason for this name is that it measures the
distance that a taxicab would have to travel from one point to another if the streets
of the city were laid out in a grid-like pattern. This metric is also called the 1-metric.
d2 is called the Euclidean metric or the usual (standard) metric on Rn .
d∞ is called the maximum, supremum, or infinity metric.
(i) We leave it as an easy exercise to show that (Rn , d1 ) is a metric space.
(ii) We show that (Rn , d2 ) is a metric space. Checking that d2 satisfies properties
M1, M2 and M3 is straightforward. We establish property M4. To that end, let
x = (x1 , x2 , . . . , xn ), y = (y1 , y2 , . . . , yn ) and z = (z1 , z2 , . . . , zn ) be
elements of Rn . We want to show that d2 (x, z) ≤ d2 (x, y) + d2 (y, z). This is
equivalent to showing that
n
X
!1/2
(xi − zi )2
≤
i=1
n
X
(xi − yi )2
!1/2
n
X
(yi − zi )2
+
i=1
!1/2
.
(7.1.1)
i=1
For each i = 1, 2, . . . , n, let ai = xi − yi and bi = yi − zi . Then equation
(7.1.1) can be rewritten as
n
X
(ai + bi )2
!1/2
≤
i=1
n
X
!1/2
a2i
+
i=1
n
X
!1/2
b2i
.
i=1
Since both sides of the inequality are nonnegative, it suffices to show that the
inequality holds for the squares of the left and right hand sides of the inequality.
That is, we have to show that
n
X
i=1
(ai + bi )2 ≤
n
X
i=1
a2i + 2
n
X
i=1
122
!1/2
a2i
n
X
i=1
!1/2
b2i
+
n
X
i=1
b2i .
(7.1.2)
MAT313
Real Analysis
The left hand side of (7.1.2) can be expanded as
n
X
(ai + bi )2 =
i=1
n
X
a2i + 2
i=1
n
X
ai bi +
i=1
n
X
b2i .
i=1
It now follows that inequality (7.1.2) is equivalent to the inequality
!1/2 n
!1/2
n
n
X
X
X
ai bi ≤
a2i
b2i
i=1
i=1
(7.1.3)
i=1
Equation (7.1.3) is called the Cauchy-Schwarz Inequality. We now prove the
Cauchy-Schwarz Inequality.
Cauchy-Schwarz Inequality: If (a1 , a2 , . . . , an ) ∈ Rn and
(b1 , b2 , . . . , bn ) ∈ Rn , then
!1/2 n
!1/2
n
n
X
X
X
ai bi ≤
a2i
b2i
.
i=1
i=1
i=1
Proof. If ai = 0 for all i = 1, 2, . . . , n or bi = 0 for all i = 1, 2, . . . , n, then
the inequality obviously holds. Assume that there is an i ∈ {1, 2, . . . , n} such
that ai ̸= 0 and a j ∈ {1, 2, . . . , n} such that bj ̸= 0. For each
i = 1, 2, . . . , n, let
αi = P
n
ai
and βi = P
n
2 1/2
i=1 ai
bi
2
i=1 bi
1/2 .
Recall that if a, b ∈ R, then 2ab ≤ a2 + b2 . Therefore
2αi βi ≤ αi2 + βi2
⇐⇒
a2i
2ai bi
b2i
P
P
≤
+
n
n
Pn 2 1/2
Pn
2
2
2 1/2
i=1 ai
i=1 bi
i=1 bi
i=1 ai
=⇒
Pn
Pn 2
a2i
bi
i=1 ai bi
i=1
≤ Pn
+ Pi=1
n
P
Pn
2
2
1/2
1/2
n
2
2
i=1 ai
i=1 bi
i=1 bi
i=1 ai
2
Pn
=2
Pn
=⇒
=⇒
i=1 ai bi
Pn 2 1/2 ≤ 1
1/2
2
i=1 ai
i=1 bi
Pn
n
X
ai bi ≤
i=1
n
X
!1/2
a2i
i=1
which proves the Cauchy-Schwarz Inequality.
123
n
X
!1/2
b2i
,
i=1
■
MAT313
Real Analysis
(iii) We show that (Rn , d∞ ) is a metric space. Let x = (x1 , x2 , . . . , xn ),
y = (y1 , y2 , . . . , yn ) and z = (z1 , z2 , . . . , zn ) be elements of Rn .
M1. Since for each i = 1, 2, . . . , n, |xi − yi | ≥ 0, it follows that
d∞ (x, y) = max |xi − yi | ≥ 0.
1≤i≤n
M2.
⇐⇒
d∞ (x, y) = 0
max |xi − yi | = 0
1≤i≤n
⇐⇒
|xi − yi | ≤ 0 for each i = 1, 2, . . . , n
⇐⇒
|xi − yi | = 0 for each i = 1, 2, . . . , n
⇐⇒
xi = yi for each i = 1, 2, . . . , n
⇐⇒
x = y.
M3. d∞ (x, y) = max |xi − yi | = max |yi − xi | = d∞ (y, x).
1≤i≤n
1≤i≤n
M4. Since, for each j = 1, 2, . . . , n, |xj − zj | ≤ |xj − yj | + |yj − zj |, it
follows that
|xj − zj | ≤ max |xi − yi | + max |yi − zi | = d∞ (x, y) + d∞ (y, z).
1≤i≤n
1≤i≤n
Hence,
d∞ (x, z) = max |xj − zj | ≤ d∞ (x, y) + d∞ (y, z).
1≤j≤n
4. For 1 ≤ p < ∞, let X = ℓp be a set of sequences (xi )∞
i=1 of real or complex numbers
∞
X
such that
|xi |p < ∞. That is,
i=1
(
ℓp =
x = (xi )∞
i=1
|
∞
X
)
|xi |p < ∞ .
i=1
∞
For x = (xi )∞
i=1 and y = (yi )i=1 in ℓp , define dp : X × X → R by
dp (x, y) =
∞
X
!1/p
p
|xi − yi |
.
i=1
Then (ℓp , dp ) is a metric space.
Properties M1, M2 and M3 are easy to prove. Property M4 requires Minkowski’s
∞
Inequality: If p > 1 and (ai )∞
i=1 and (bi )i=1 are in ℓp , then
∞
X
i=1
!1
p
|ai + bi |p
≤
∞
X
i=1
124
!1
p
|ai |p
+
∞
X
i=1
!1
p
|bi |p
.
MAT313
Real Analysis
∞
∞
We now establish M4. Let x = (xi )∞
i=1 , y = (yi )i=1 and z = (zi )i=1 be elements of
ℓp . For each i ∈ N, let ai = xi − yi and bi = yi − zi . Then, by Minkowski’s
Inequality, we have that
!1/p
!1
∞
∞
p
X
X
p
p
dp (x, z) =
|xi − zi |
=
|ai + bi |
i=1
i=1
∞
X
≤
!1
∞
X
p
p
|ai |
+
=
p
|bi |
i=1
i=1
∞
X
!1
p
!1
p
|xi − yi |p
+
i=1
∞
X
!1
p
|yi − zi |p
i=1
= dp (x, y) + dp (y, z).
5. Let X = ℓ∞ be a set of bounded sequences of real or complex numbers. For
∞
x = (xi )∞
i=1 and y = (yi )i=1 in ℓ∞ , define d∞ : X × X → R by
d∞ (x, y) = sup |xi − yi |.
i∈N
Then (ℓ∞ , d∞ ) is a metric space.
6. Let X be a set of sequences of real or complex numbers. For x = (xi )∞
i=1 and
∞
y = (yi )i=1 in X, define d : X × X → R by
d(x, y) =
∞
X
|xi − yi |
.
i
2 (1 + |xi − yi |)
i=1
Then (X, d) is a metric space.
7. Let X = C[a, b] be a set of continuous real-valued functions on the interval [a, b] and
p ∈ [1, ∞). For f, g ∈ C[a, b], define dp : X × X → R and d∞ : X × X → R
respectively by
Z b
1/p
p
dp (f, g) =
|f (t) − g(t)| dt
a
and
d∞ (f, g) = sup |f (t) − g(t)|.
t∈[a,b]
Then (X, dp ) and (X, d∞ ) are metric metric space.
8. Let X be a set. For x, y ∈ X, define d : X × X → R by
if x = y
0
d(x, y) =
1
if x ̸= y.
Then (X, d) is a metric space. This metric d is called the discrete metric on X.
125
MAT313
Real Analysis
Proposition 7.1.3 Let (X, d) be a metric space. Then for all x, y, z ∈ X,
|d(x, z) − d(y, z)| ≤ d(x, y).
Proof 7.1.4 By the triangle inequality we have that
d(x, z) ≤ d(x, y) + d(y, z) ⇐⇒ d(x, z) − d(y, z) ≤ d(x, y).
(7.1.3.1)
Interchanging the roles of x and y in (7.1.3.1),
d(y, z) − d(x, z) ≤ d(x, y).
(7.1.3.2)
It now follows from equations (7.1.3.1) and (7.1.3.2) that
|d(x, z) − d(y, z)| ≤ d(x, y).
■
7.2 Open Sets, Closed Sets, and Bounded Sets
Definition 7.2.1 Let (X, d) be a metric space, x ∈ X and r > 0. The set
B(x, r) := {y ∈ X | d(x, y) < r}
is called the open ball with centre x and radius r.
The set
B(x, r) := {y ∈ X | d(x, y) ≤ r}
is called the closed ball with centre x and radius r.
Lemma 7.2.2 Let x and y be distinct points in a metric space (X, d). Then there is
an ϵ > 0 such that B(x, ϵ) ∩ B(y, ϵ) = ∅.
Proof 7.2.3 Since x ̸= y, it follows that d(x, y) > 0. Choose ϵ such that
0 < ϵ < d(x,y)
2 . Then B(x, ϵ) ∩ B(y, ϵ) = ∅. Indeed, if z ∈ B(x, ϵ) ∩ B(y, ϵ), then
d(x, z) < ϵ and
d(y, z) < ϵ.
Therefore
0 < d(x, y) ≤ d(x, z) + d(y, z) < ϵ + ϵ <
That is, d(x, y) < d(x, y), which is absurd.
126
d(x, y) d(x, y)
+
= d(x, y).
2
2
■
MAT313
Real Analysis
Definition 7.2.4 Let (X, d) be a metric space. A subset G of X is said to be open if
for each x ∈ G, there is an ϵ > 0 such that B(x, ϵ) ⊂ G.
Definition 7.2.5 Let (X, d) be a metric space. A subset A of X is called a
neighbourhood of x ∈ X if there is an open set V ⊂ X such that x ∈ V ⊂ A.
It is clear that a subset G of a metric space (X, d) is open if G is a neighbourhood of
each of its points.
Examples 7.2.6
1. An open ball in a metric space (X, d) is an open set. Indeed, let B(x, r) be an open
ball with centre x and radius r and let y ∈ B(x, r). Then d(x, y) < r. Let
ϵ = r − d(x, y). We now show that B(y, ϵ) ⊂ B(x, r). Let z ∈ B(y, ϵ). Then
d(y, z) < ϵ. Hence, by the triangle inequality,
d(x, z) ≤ d(x, y) + d(y, z) < d(x, y) + ϵ = d(x, y) + r − d(x, y) = r.
That is, z ∈ B(x, r), and so B(y, ϵ) ⊂ B(x, r).
2. Let (X, d) be a discrete metric space. Then every subset of X is open. To see this,
let G be a subset of X and x ∈ G. Then, with 0 < ϵ < 1, B(x, ϵ) = {x} ⊂ G.
Theorem 7.2.7 Let (X, d) be a metric space.
(1) X and ∅ are open.
(2) A union of an arbitrary collection of open sets in X is open.
(3) An intersection of a finite collection of open sets in X is open.
Proof 7.2.8 Exercise.
Proposition 7.2.9 Let (X, d) be a metric space. Then a set A in X is open if and
only if it is a union of open balls in X.
[
Proof 7.2.10 Assume that A is a union of open balls in X; i.e., A =
B(x, rx ).
x∈A
Since each open ball is an open set and a union of an arbitrary collection of open sets
is open, it follows that A is an open set.
Conversely, assume that A is open [
in X. Then, for each x ∈ A, there is an ϵx > 0 such
B(x, ϵx ).
■
that B(x, ϵx ) ⊂ A. Obviously A =
x∈A
Definition 7.2.11 A subset F of a metric space (X, d)is said to be closed if its
complement X \ F is open.
127
MAT313
Real Analysis
Example 7.2.12
1. A closed ball in a metric space (X, d) is a closed set. Indeed, let B(x, r) be a closed
ball with centre x and radius r and let y ∈ X \ B(x, r). Then d(x, y) > r. Let
ϵ = d(x, y) − r. We now show that B(y, ϵ) ⊂ X \ B(x, r). Let z ∈ B(y, ϵ). Then
d(y, z) < ϵ. Hence, by the triangle inequality,
d(y, z) < ϵ = d(x, y) − r ⇐⇒ r < d(x, y) − d(y, z) ≤ d(x, z).
Hence z ̸∈ B(x, r) and so z ∈ X \ B(x, r).
2. Let (X, d) be a discrete metric space. Then every subset of X is closed. To see this,
let A be a subset of X. Since every subset of X is open, X \ A is open. Hence
A = X \ (X \ A) is closed.
Theorem 7.2.13 Let (X, d) be a metric space.
(1) X and ∅ are closed.
(2) An intersection of an arbitrary collection of closed sets in X is closed.
(3) A union of a finite collection of closed sets in X is closed.
Proof 7.2.14 Exercise.
■
Proposition 7.2.15 Every singleton set in a metric space (X, d) is closed.
Proof 7.2.16 Let x ∈ X. We show that the set {x} is closed. It suffices to show that
the complement X \ {x} is open. To that end, let y ∈ X \ {x}. Then x ̸= y. By
Lemma 7.2.2, there is an ϵ > 0 such that B(x, ϵ) ∩ B(y, ϵ) = ∅. Hence
B(y, ϵ) ⊆ X \ {x}, and so X \ {x} is open.
■
Definition 7.2.17 Let S be a subset of a metric space (X, d), and x ∈ X. Then
(a) x ∈ S is called an interior point of S if there is an ϵ > 0 such that B(x, ϵ) ⊂ S.
The set of all interior points of a set S is denoted by S ◦ or int(S).
(b) x ∈ X is called a boundary point of S if for every ϵ > 0 the open B(x, ϵ)
contains points of S as well as points of X \ S. The set of boundary points of S is
denoted by ∂S or bd(S).
(c) x ∈ S is called an isolated point of S if there exists an ϵ > 0 such that
B(x, ϵ) ∩ S = {x}.
(d) A point x ∈ X is called an accumulation point (or limit point) of S if for
every ϵ > 0, the ϵ-ball, B(x, ϵ), contains a point of S distinct from x. The set of
all accumulation points of S is called the derived set of S and is denoted by S ′ .
That is, S ′ = {x ∈ X | (B(x, ϵ) \ {x}) ∩ S ̸= ∅ for all ϵ > 0}.
128
MAT313
Real Analysis
(e) The closure of the set S, denoted by S, is the set S = S ∪ S ′ .
1. Let X = R2 and S = {(x1 , x2 ) ∈ X | x21 + x22 < 1}.
Examples 7.2.18
Theorem 7.2.19 (Properties of Interior). Let A and B be subsets of a metric space
(X, d). Then
(a) A◦ ⊆ A;
(b) A◦◦ = A◦ ;
(c) If A ⊆ B, then A◦ ⊆ B ◦ ;
(d) (A ∩ B)◦ = A◦ ∩ B ◦ ;
!◦
[
[
Ai ;
(e)
A◦i ⊆
i∈I
i∈I
!◦
(f)
\
Ai
⊆
i∈I
\
A◦i .
i∈I
Proof 7.2.20 Theorem 7.2.21 (Properties of Closure). Let A and B be subsets of a
metric space (X, d). Then
(a) A ⊆ A;
(b) A = A;
(c) If A ⊆ B, then A ⊆ B;
(d) A ∪ B = A ∪ B;
(e)
\
Ai ⊆
i∈I
(f)
[
i∈I
\
Ai ;
i∈I
Ai ⊆
[
Ai .
i∈I
Proof 7.2.22 Theorem 7.2.23 A subset C of a metric space (X, d) is closed if and
only if it contains all its accumulation points.
129
MAT313
Real Analysis
Proof 7.2.24 Assume that C is closed and let x ∈ C ′ . We want to show that x ∈ C.
If x ̸∈ C, then x ∈ X \ C. Since C is closed, X \ C is open. Therefore there exists an
ϵ > 0 such that B(x, ϵ) ⊂ X \ C. This then implies that B(x, ϵ) ∩ C = ∅, which
contradicts the fact that x ∈ C ′ . Thus C ′ ⊂ C.
To prove the converse, assume that C ′ ⊂ C. We want to show that C is closed, or
equivalently, that X \ C is open. To this end, let x ∈ X \ C. Then x ̸∈ C ′ , and so there
is an ϵ > 0 such that
(B(x, ϵ) \ {x}) ∩ C = ∅.
Since x ̸∈ C, we have that B(x, ϵ) ∩ C = ∅. Thus B(x, ϵ) ⊂ X \ C, whence X \ C is
open.
■
Corollary 7.2.25 Let C be a subset of a metric (X, d). Then C is closed if and only
if C = C.
Proof 7.2.26 Assume that C is closed. Then, by Theorem 7.2.23, C ′ ⊂ C. Therefore
C = C ∪ C ′ ⊂ C ∪ C = C. But C ⊂ C ∪ C ′ = C. Thus C = C.
Conversely, assume that C = C. Then C ′ ⊂ C ∪ C ′ = C = C. Thus C contains all its
accumulation points and, consequently, C is closed.
■
Definition 7.2.27 A subset A of a metric space (X, d) is said to be bounded if
A ⊆ B(x, r) for some x ∈ X and some r > 0.
Proposition 7.2.28 A subset A of a metric space (X, d) is bounded if and only if
there is a real number M ≥ 0 such that d(x, y) ≤ M for all x, y ∈ A.
Proof 7.2.29 Exercise.
Definition 7.2.30 The diameter of a subset A of a metric space (X, d) is defined as
diam(A) := sup{d(x, y) | x, y ∈ A}.
Note that a subset A of a metric space (X, d) is bounded if and only if diam(A) < ∞.
Proposition 7.2.31 Any subset of a discrete metric space (X, d) is bounded.
Proof 7.2.32 Let A be a subset of X. Clearly, by definition of the discrete metric,
d(x, y) ≤ 1 for all x, y ∈ A. Hence, A is bounded.
■
Proposition 7.2.33 A finite union of bounded subsets of a metric space (X, d) is
bounded.
130
MAT313
Real Analysis
Proof 7.2.34 Let U1 , U2 , . . . , Un be open subsets of X. Then, for each
i = 1, 2, . . . , n, there is an ri such that d(x, y) ≤ ri for all x, y ∈ Ui . Let
n
[
r = max{r1 , r2 , . . . , rn } and U =
Ui . For each i = 1, 2, . . . , n, choose xi ∈ Ui .
i=1
Let s = max{d(xi , xj ) for all i, j = 1, 2, . . . , n}. Let x, y ∈ U . Then x ∈ Ui and
y ∈ Uj for some i, j = 1, 2, . . . , n. Therefore
d(x, y) ≤ d(x, xi ) + d(xi , xj ) + d(xj , y) ≤ r + s + r = 2r + s.
That is, for all x, y ∈ U , d(x, y) ≤ M , where M = 2r + s and so U is bounded.
■
7.3 Convergence of Sequences in Metric Spaces
Definition 7.3.1 A sequence (xn ) in a metric space (X, d) is said to converge to a
point x ∈ X if, given any ϵ > 0, there is a natural number N (which depends on ϵ, in
general) such that d(xn , x) < ϵ for all n ≥ N . In this case the point x is called the
limit of the sequence (xn ) and we write lim xn = x.
n→∞
Equivalently, (xn ) converges to x if, given any ϵ > 0, there is an N ∈ N such that
xn ∈ B(x, ϵ) for all n ≥ N .
Theorem 7.3.2 (Limits of convergent sequences are unique). Let (xn ) be a sequence in
a metric space (X, d). If lim xn = x and lim xn = y, then x = y.
n→∞
n→∞
Proof 7.3.3 Assume that x ̸= y and let 0 < ϵ <
numbers N1 and N2 such that
d(x, y)
. Then there are natural
2
d(xn , x) < ϵ for all n ≥ N1 and
d(xn , y) < ϵ for all n ≥ N2 .
Let N = max{N1 , N2 }. Then, for all n ≥ N ,
d(x, y) ≤ d(x, xn ) + d(xn , y) < 2ϵ < d(x, y),
which is absurd. Hence x = y.
■
Proposition 7.3.4 A sequence (xn ) converges to x if and only if for each ϵ > 0, the
set {n | xn ̸∈ B(x, ϵ)} is finite.
Proposition 7.3.5 Every convergent sequence is bounded.
Proof 7.3.6 Proposition 7.3.7 If a sequence (xn ) converges to x, then every
subsequence of (xn ) also converges to x.
131
MAT313
Proof 7.3.8 7.3.1
Real Analysis
Sequential Characterization of closed sets
Theorem 7.3.9 Let K be a nonempty subset of a metric space (X, d) and x ∈ X.
Then
(a) x ∈ K if and only if there is a sequence (xn ) ⊂ K such that xn → x as n → ∞.
(b) K is closed if and only if K contains the limit of every convergent sequence in K.
Proof 7.3.10 (a) Assume that x ∈ K. Then either x ∈ K or x ∈ K ′ . If x ∈ K,
then the constant sequence (x, x, x, . . .) in K converges to x. If x ∈ K ′ , then,
for each n ∈ N, the open ball B(x, n1 ) contains a point xn ∈ K distinct from x. It
now follows that d(xn , x) < n1 . Clearly, (xn ) ⊂ K and xn → x as n → ∞.
Conversely, assume that there is a sequence (xn ) ⊂ K such that xn → x as
n → ∞. Then, either x ∈ K or every ϵ-ball centred at x contains a point xn ̸= x,
in which case x ∈ K ′ Thus x ∈ K.
(b) By Corollary 7.2.25, K is closed if and only if K = K. Hence, (b) follows from
(a).
■
7.3.2 Completeness in Metric Spaces
Definition 7.3.11 A sequence (xn ) in a metric space (X, d) is said to Cauchy if,
given any ϵ > 0, there is a natural number N (which depends on ϵ, in general) such
that d(xn , xm ) < ϵ for all n, m ≥ N .
Proposition 7.3.12 A convergent sequence in a metric space (X, d) is Cauchy.
Proof 7.3.13 Let (xn ) be a sequence in X which converges to x ∈ X and let ϵ > 0.
Then there is a natural number N such that d(xn , x) < 2ϵ for all n ≥ N . For all
n, m ≥ N ,
ϵ
ϵ
d(xn , xm ) ≤ d(xn , x) + d(x, xm ) < + = ϵ.
2 2
Thus, (xn ) is a Cauchy sequence in X.
■
Proposition 7.3.14 A Cauchy sequence in a metric space (X, d) is bounded.
Proof 7.3.15 Let (xn ) be a Cauchy sequence in X. Choose N ∈ N such that
d(xn , xm ) < 1
for all n, m ≥ N.
Let r = max{d(x1 , xN ), d(x2 , xN ), . . . , d(xN −1 , xN ), 1}. Clearly d(xn , xN ) ≤ r for all
n = 1, 2, . . . , N − 1. If n ≥ N , then d(xn , xN ) < 1 ≤ r. Thus, d(xn , XN ) ≤ r for all
n ∈ N and so (xn ) is bounded.
■
132
MAT313
Real Analysis
Proposition 7.3.16 Let (X, d) be a metric space. A Cauchy sequence in X which has
a convergent subsequence is convergent.
Proof 7.3.17 Let (xn ) be a Cauchy sequence in X and (xnk ) its subsequence which
converges to x ∈ X. Then, for any ϵ > 0, there are positive integers N1 and N2 such
that
ϵ
d(xn , xm ) <
for all n, m ≥ N1
2
and
ϵ
d(xnk , x) <
for all k ≥ N2 .
2
Let N = max{N1 , N2 }. If k ≥ N , then since nk ≥ k,
ϵ
ϵ
d(xk , x) ≤ d(xk , xnk ) + d(xnk , x) < + = ϵ.
2 2
Hence xn → x as n → ∞.
■
Definition 7.3.18 A metric space (X, d) is said to be complete if every Cauchy
sequence in X converges (to a point in X).
Example 7.3.19 We have shown (see Theorem 4.2.19) that every Cauchy sequence of
real numbers converges. It now follows that R, with its usual metric, is a complete metric
space.
Proposition 7.3.20 A closed subset F of a complete metric space(X, d) is complete.
Proof 7.3.21 Let (xn ) be a Cauchy sequence in F . Then (xn ) is a Cauchy sequence
in X. Since X is complete, this sequence converges to some x in X. Since F is closed,
x ∈ F . Hence F is complete.
■
7.4 Compactness in Metric Spaces
Definition 7.4.1 Let K be a subset of a metric space (X, d). An open cover for K
is a nonempty collection U = { Ui | i ∈ I } of open subsets of X such that
[
K⊆
Ui .
i∈I
Such an open cover is said to be reducible to a finite subcover for K if there are
n ∈ N indices i1 , i2 , . . . , in in I such that
K⊆
n
[
Uik .
k=1
A set K ⊂ X is said to be compact if every open cover for K is reducible to a finite
subcover.
133
MAT313
Real Analysis
Theorem 7.4.2 A closed subset F of a compact metric space (X, d) is compact.
Proof 7.4.3 Let U = {Ui | i ∈ I} be an open cover for F . Then
G = {Ui ∪ (X \ F ) | i ∈ I} is an open cover for S. Since S is compact, the cover G is
reducible to a finite subcover. That is, there are indices i1 , i2 , . . . , in such that
n
[
S⊂
Uik ∪ (X \ F ).
k=1
Since F ⊂ S and F ∩ (X \ F ) = ∅, it follows that F ⊂
n
[
Uik . Hence F is compact. ■
k=1
Proposition 7.4.4 A nonempty subset K of a discrete metric space (X, d) is compact
if and only if K is finite.
Proof 7.4.5 Assume that K is compact. Since each singleton set in a discrete metric
space is open, the collection C = {{x} | x ∈ K} is an open cover for K. Since K is
n
[
compact, there are elements x1 , x2 , . . . , xn in K such that K ⊆
{xi }. Hence
i=1
K=K∩
n
[
!
= {x1 , x2 , . . . , xn },
{xi }
i=1
a finite set.
Conversely, assume that K is finite. Then K is clearly compact as any finite set is
compact.
■
Theorem 7.4.6 Every compact subset K of a metric space (X, d) is closed and
bounded.
Proof 7.4.7 Closedness: It suffices to show that X \ K is open. To that end, let
x ∈ X \ K. By Lemma 7.2.2, for each y ∈ K, there is an ϵy > 0 such that
B(x, ϵy ) ∩ B(y, ϵy ) = ∅. The collection {B(y, ϵy ) | y ∈ K} of open balls is an open cover
for K. Since K is compact, there are elements y1 , y2 , . . . , yn in K such that
K⊆
n
[
B (yi , ϵyi ) .
i=1
Let U =
n
\
B (x, ϵyi ). Then x ∈ U and, by Theorem 7.2.7(3), U is an open set. Hence
i=1
there is a δ > 0 such that B(x, δ) ⊆ U . Since B(x, ϵyi ) ∩ B(yi , ϵyi ) = ∅ for each
134
MAT313
Real Analysis
i = 1, 2, . . . , n, it follows that U ⊂ X \ K and so x ∈ B(x, δ) ⊂ X \ K and X \ K is
open.
Boundedness: The collection G = {B(x, 1) | x ∈ K} is an open cover for K. Since K is
compact, there are elements x1 , x2 , . . . , xn in K such that the sub-collection
{B(xj , 1) | j = 1, 2, . . . , n} of G covers K; i.e.,
K⊆
n
[
B(xj , 1).
j=1
Since a finite union of bounded sets is bounded (Proposition 7.2.33), it follows that the
n
[
set
B(xj , 1) is bounded. Hence K is bounded.
■
j=1
We saw earlier (Heine-Borel Theorem) that a subset of R is compact if and only if it is
closed and bounded. That is, the converse of Theorem 7.4.6 holds if X = R. This
converse does not hold in general. Here is a counterexample: Let K be an infinite
subset of a discrete metric space (X, d). The K is closed and bounded but not compact
(see Proposition 7.4.4).
Proposition 7.4.8 Let (X, d) be a compact metric space. Then any infinite subset of
X has an accumulation point in X.
Proof 7.4.9 Let K be an infinite subset of X with no accumulation point and let
x ∈ X. Since x is not an accumulation point of K, there is an ϵx > 0 such that
B(x, ϵx ) ∩ K ⊆ {x}. The collection C = {B(x, ϵx ) | x ∈ X} is an open cover for X.
Since X is compact, there are elements x1 , x2 , . . . , xn in X such that the finite
sub-collection {B(xj , ϵxj ) | j = 1, 2, . . . , n} of C covers X; i.e.,
X⊆
n
[
B(xj , ϵxj ).
j=1
It follows that
K = K∩X ⊆ K∩
n
[
B(xj , ϵxj ) =
j=1
n
[
n
[
K ∩ B(xj , ϵxj ) ⊆
{xj } = {x1 , x2 , . . . , xn },
j=1
j=1
a finite set. This is a contradiction. Hence K has an accumulation point in K.
7.4.1 Sequential Compactness
Definition 7.4.10 A subset K of a metric space (X, d) is said to be sequentially
compact if every sequence in K has a subsequence that converges to a point in K.
135
■
MAT313
Real Analysis
Exercise 7.4.11
1. Let K be a bounded subset of a metric space (X, d). Show that
diam(K) = inf{M | d(x, y) ≤ M ∀ x, y ∈ K}.
2. Let K be a compact subset of a metric space (X, d). Show that the derived set K ′
of K is compact.
7.5 Equivalent Metrics
Definition 7.5.1 Two metrics d and d∗ on a nonempty set X are said to be
equivalent if there are real numbers α > 0 and β > 0 such that
αd(x, y) ≤ d∗ (x, y) ≤ βd(x, y)
for all x, y ∈ X.
136
0
You can add this document to your study collection(s)
Sign in Available only to authorized usersYou can add this document to your saved list
Sign in Available only to authorized users(For complaints, use another form )