ODL Module Notes
ODL Module Notes
CHANCELLOR COLLEGE
Mathematics
MAT311: Introduction to Real Analysis
Module Writer
Patrick Ali
Module Reviewer
Copy right page
University of Malawi
Elearning Center
P.O. Box 280
Zomba
Tel: +265 (0) 524 222 / + 265 (0) 111952593
Email: elearning@cc.ac.mw
ii
Acknowledgments
This ODL module was prepared for the E-Learning Centre at Chancellor
College, University of Malawi, to facilitate the training of students in the
Bachelor of Education Mathematics degree at the College. The module was
produced with the financial support from the Deutsche Gesellschaft für In-
ternationale Zusammenarbeit (GIZ).
The Centre extends its appreciation to the Deutsche Gesellschaft für Interna-
tionale Zusammenarbeit (GIZ) for the generous financial support that made
this work possible. Further appreciation to module writer and reviewers for
ensuring good quality work is produced. It is envisaged that through this
programme, an increased number of mathematics and science student teach-
ers will be trained and thus contribute to the expansion of access to high
quality higher education to the wider population in Malawi
iii
Table of Contents
1 Introductory concepts 1
1.1 Natural numbers . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3 Rational numbers . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.3.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.4 Real numbers: algebraic properties . . . . . . . . . . . . . . . 5
1.5 Real numbers: ordering properties . . . . . . . . . . . . . . . . 5
1.6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.6.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.7 Supremum and Infimum . . . . . . . . . . . . . . . . . . . . . 8
1.7.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 11
1.7.2 Properties of the supremum and infimum . . . . . . . . 12
1.7.3 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.8 Archimedean Property . . . . . . . . . . . . . . . . . . . . . . 13
1.9 The . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.9.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 16
1.10 Summary/Let Us Sum Up . . . . . . . . . . . . . . . . . . . . 16
1.11 Suggestions for Further Reading/ Reading Assignment . . . . 16
iv
1.12 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.13 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 17
2 Sequences 19
2.1 Convergence . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.1.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.2.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 28
2.3 Monotone Sequence . . . . . . . . . . . . . . . . . . . . . . . . 28
2.3.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.4 Cauchy Sequence and subsequences . . . . . . . . . . . . . . . 33
2.4.1 Cauchy sequence . . . . . . . . . . . . . . . . . . . . . 33
2.4.2 Subsequence . . . . . . . . . . . . . . . . . . . . . . . . 35
2.4.3 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 39
2.5 Summary/Let Us Sum Up . . . . . . . . . . . . . . . . . . . . 39
2.6 Suggestions for Further Reading/ Reading Assignment . . . . 40
2.7 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
2.8 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 41
3 Series 43
4 Series 44
4.1 Convergence of infinite series . . . . . . . . . . . . . . . . . . . 44
4.1.1 The Cauchy Condition . . . . . . . . . . . . . . . . . . 46
4.1.2 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.2 Convergence tests . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.2.1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
v
4.2.2 Rearrangements . . . . . . . . . . . . . . . . . . . . . . 55
4.2.3 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.3 Summary/Let Us Sum Up . . . . . . . . . . . . . . . . . . . . 56
4.4 Suggestions for Further Reading/ Reading Assignment . . . . 56
4.5 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.6 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 57
5 Coninuity 59
5.1 Continuous Functions . . . . . . . . . . . . . . . . . . . . . . . 60
5.1.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
5.2.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 68
5.3 Summary/Let Us Sum Up . . . . . . . . . . . . . . . . . . . . 69
5.4 Suggestions for Further Reading/ Reading Assignment . . . . 69
5.5 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
5.6 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 69
vi
6.6 Suggestions for Further Reading/ Reading Assignment . . . . 78
6.7 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
6.8 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 79
7 Differentiation 80
7.1 Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
7.1.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 82
7.2.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 87
7.3 The Mean Value Theorem . . . . . . . . . . . . . . . . . . . . 87
7.3.1 Activity . . . . . . . . . . . . . . . . . . . . . . . . . . 91
7.4 Summary/Let Us Sum Up . . . . . . . . . . . . . . . . . . . . 91
7.5 Suggestions for Further Reading/ Reading Assignment . . . . 92
7.6 Unit Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
7.7 Answers to Unit Activities . . . . . . . . . . . . . . . . . . . . 92
Bibliography 96
vii
Unit 1
Introductory concepts
Introduction
This unit describes the properties of the basic number systems. It briefly
discusses the natural numbers, integers, rational numbers and then considers
the real numbers in more detail. In Sections 1.1, 1.2 and 1.3, we discuss
the properties of natural numbers, integers and rational numbers. Also,
we discuss algebraic properties and ordering properties of real numbers in
Sections 1.4, 1.5 and 1.6. Finally, in Sections 1.7, 1.8 and 1.8 we discuss
the completeness of real numbers, Archimedean property and the density of
rational numbers.
1
• apply completeness of real numbers, Archimedean property and the the
density of rational numbers in problem solving.
Key Terms
N = {1, 2, 3, . . .}.
(a) 1 ∈ A;
(b) n ∈ A implies (n + 1) ∈ A.
Then A = N.
2
Proof. Clearly, the inequality holds for n = 1 since (1 + x)1 = 1 + 1(x).
Suppose (1 + x)k ≥ 1 + kx for some natural number k.
For the case n = k + 1, we have
(1 + x)k+1 = (1 + x)k (1 + x)
≥ (1 + kx)(1 + x) = 1 + (k + 1)x + kx2
≥ 1 + (k + 1)x
1.1.1 Activity
n n!
= for r = 0, 1, . . . , n.
r r!(n − r)!
(b) Use 4(a) and Mathematical induction to prove the binomial the-
orem:
n n n n n−1 n n
(a + b) = a + a b + ··· + b
0 1 n
1
= an + nan−1 b + n(n − 1)an−2 b2 + · · · + nabn−1 + bn
2
3
1.2 Integers
The set of consists of the natural numbers, their negatives and zero:
Z = {. . . , −3, −2 − 1, 0, 1, 2, 3, . . .}
p2 = 2q 2 ,
which implies that p2 is even. Since the square of an odd number is odd,
p = 2r must be even. Thus
2r2 = q 2 ,
which implies that q = 2s is even. Hence, p and q have a common factor of
2, which is a contradiction.
4
1.3.1 Activity
√ √ √
1. Show that 3, 5 and 7 are not rational numbers.
5
(c) if x < y and z > 0, then xz < yz.
(a, ∞) = {x : x > a}
[a, ∞) = {x : x ≥ a}
(−∞, b) = {x : x < b}
(−∞, b] = {x : x ≤ b}
We call the intervals (a, b), (a, ∞) and (−∞, b) open and the interval [a, b], [a, ∞)
and (−∞, b] closed. (The intervals [a, b) and (a, b] are sometimes called half-
open).
The closed, bounded intervals [a, b] are very important. We shall call such
an interval compact. Compactness will be covered in detail in Chapter 5.
1.6
Definition 1.6.1. The absolute value of x ∈ R is defined by
x if x ≥ 0,
f (x) =
−x if x < 0.
6
(b) | − x| = |x|;
Proof. Parts (a) and (b) follow immediately from the definition.
Part (c)
It follows that
|x + y| ≤ |x| + |y|.
Part (d)
p p
|xy| = (xy)2 = x2 y 2
√ p
= x2 · y 2
= |x| · |y|
1.6.1 Activity
7
3. Suppose that x1 , x2 , . . . , xn are real numbers. Prove that
The number m (if such a number exists) is called a lower bound of the
set A.
A set which is both bounded above and bounded below is just said to be
bounded .
N = {1, 2, 3, 4, 5, 6, ...}
8
is bounded from below by any m ≤ 1. It is not bounded from above,
so N is unbounded.
(ii) The set {x : 1 ≤ x < 2} is bounded above. Some upper bounds are
100, 10, 4, and 2. The set is also bounded below. Some lower bounds
are -27, 0 and 1.
Proof. Suppose there exists a real number M ≥ 0 such that |x| ≤ M for every x ∈
A. Then M is an upper bound of A and −M is a lower bound, so A is
bounded. Conversely, if A is bounded from above by M 0 and from below by
m0 , then |x| ≤ M for every x ∈ A where M = max{|m0 , |M 0 |}.
B = sup A.
If b is a real number and a lower bound of A such that b ≥ m for every lower
b = inf A.
9
Sometimes you may encounter the notation sup A = +∞. This simply
means that A is unbounded above. Similarly, inf A = −∞ means that A is
unbounded below.
The supremum or infimum of a set may or may not belong to the set. If
sup A does belong to A, then we also denote it by max A and refer to it as of
A; if inf A ∈ A, then we also denote it by min A and refer to it as the of A.
Example 1.7.5. (i) The set {1, 2, 3} has a maximum 3 and this is equal
to its smallest upper bound. The set {1, 2, 3} has minimum 1 and this
is equal to its largest lower bound.
(iii) The set {x : x > 0} has no maximum, nor does it have an upper
bounds. The set {x : x > 0} has no minimum (why not?). Its lower
bound is 0.
10
(v) For A = (0, 1), we have sup A = 1, inf A = 0. In this case neither sup A
nor inf A belongs to A.
Axiom 1. Every nonempty set of real numbers that is bounded from above
has a supremum.
1.7.1 Activity
1. For each subset of R, give its supremum and its maximum, if they exist.
Otherwise, write none.
11
(a) {π, 3}
(b) (0, 4)
1
(c) {1 − n
: n ∈ N}
(1)n
(d) {n + n
: n ∈ N}
(e) ∪∞ 1 1
n=1 [ n , 2 − n ]
(f) {r ∈ Q, r < 5}
Proof. The set A + B is bounded from above if and only if A and B are
bounded from above, so sup(A+B) exists if and only if both sup A and sup B
exist. In that case, if x ∈ A and y ∈ B, then
x + y ≤ sup A + sup B,
12
so sup A + sup B is an upper bound of A + B, and therefore
To get the inequality in the opposite direction, suppose > 0. Then there
exist x ∈ A and y ∈ B such that
x > sup A − , y > sup B − .
2 2
It follows that
x + y > sup A + sup B −
for every > 0, which implies that
The proof of results for inf(A + B) and inf(A − B) is similar, or we can apply
the results for the supremum to −A and −B.
1.7.3 Activity
13
Theorem 1.8.1 (Archimedean Property). The set N of natural numbers is
unbounded above in R.
(b) For each x > 0, and for each y ∈ R there exists n ∈ N such that nx > y.
1
(c) For each x > 0, there exists n ∈ N such that 0 < n
< x.
Proof. Since the natural numbers are all positive, n1 > 0 for all n ∈ N. So,
the set is bounded below by 0. We have to prove that 0 is the largest lower
bound. Suppose that h > 0 is a lower bound for S. Then, for each n ∈ N,
1
≥ h.
n
Hence, for each n ∈ N,
n ≤ h−1 .
But then h−1 is an upper bound for the set N which we know is unbounded
above. This is a contradiction. So, no h > 0 can be a lower bound for S.
Thus 0 is the largest lower bound for S. Note that 0 6∈ S and hence S has
no minimum.
Theorem 1.8.3. Every set of natural numbers which is not empty has a
minimum.
14
Proof. Let S be a nonempty set of natural numbers. Then, it has a lower
bound 0. It follows that S has the largest lower bound b. Since b is the
largest lower bound, b + 1 is not a lower bound. Therefore, for some n ∈ S,
n < b + 1.
b≤m<n<b+1
(a) 1 ∈ A;
(b) n ∈ A implies (n + 1) ∈ A.
Then A = N.
1.9 The
Between any two real numbers there is a rational number. More precisely,
we say that the set Q is dense in R.
15
Theorem 1.9.1. If x and y are real numbers with x < y, then there exists a
rational number r such that x < r < y.
1
Proof. Let = y − x. Pick n ∈ N such that n. y−x , which implies n1 < y − x.
Let A = { mn
: m ∈ N} be a subset of Q. We claim: A ∩ (x, y) 6= φ. Assume
otherwise, so that we can take m1 the greatest integer such that mn1 < x.
Then m1n+1 > y. But this implies that y − x < m1n+1 − mn1 = n1 < y − x, a
contradiction. Thus (x, y) ∩ Q 6= φ.
1.9.1 Activity
1. If a and b are real numbers with a < b, prove that there exists an
irrational number w such that a < w < b.
In this unit we have seen that number systems have interesting properties.
In particular, we discussed the completeness of real numbers, Archimedean
property and density of rational numbers.
16
1.12 Unit Test
1. For each subset of R, give its supremum and its maximum, if they exist.
Otherwise, write none.
(a) (0, 1)
(b) ∪∞
n=1 [2n, 2n + 1]
17
4(a)
n n n! n!
+ = +
r r−1 r!(n − r)! (r − 1)!(n − r + 1)!
n! 1 1
= ( + )
(r − 1)!(n − r)! r (n − r + 1)
n! n+1
=
(r − 1)!(n − r)! r(n − r + 1)
(n + 1)!
=
r!(n − r + 1)!
n+1
=
r
1.7.1 1 (a) sup 4, no max (b) no sup, no max (c) sup 5, no max
1.7.3 2. Since sup S is an upper bound for S, we have sup S ≥ x for all
x ∈ S. We also given that sup S ∈ S. Hence sup S is the maximum
of S.
1.9.1 1. Apply the Density of rational numbers to the real numbers √a and
2
√b .
2
18
Unit 2
Sequences
Introduction
19
Key Terms
2.1 Convergence
Definition 2.1.1. A of real numbers is a correspondence which associates
to every natural number n ∈ N a number an ∈ R. The number an is called
the n-th term of the sequence. A sequence is always denoted by {an }.
Example 2.1.2.
a) The sequence {an } where an = (−1)n . This is the sequence {1, −1, 1 . . . , (−1)n , . . .}.
1
b) The sequence {an } where an = n2
. This is the sequence {1, 14 , 19 , 16
1 1
, 25 , . . .}.
The limit of a sequence {an } is a real number that the values an are close
to for large values of n. For instance, the values of the sequence in Example
2.1.2 b) are close to 0 for large n.
20
definition is N = 6. For each value of n > 6, |an − l| < .
In this case we say that {an } is convergent. A sequence that does not
converge is divergent.
1
Example 2.1.4. The sequence { n1 } is convergent and lim = 0.
n→∞ n
Proof. We need to find N () such that |an − a| < ∀ n > N . That is N ()
such that | n1 − 0| < ∀ n > N .
1
⇒ < ∀n > N
n
⇒ 1 < n ∀n > N
1
⇒ < n ∀n > N
Choose N = 1 . Then |an − a| < .
Example 2.1.5. {an } = 2n+1
n+1
→ 2.
Proof. We need to find N () such that |an − a| < ∀ n > N . That is
2n+1
n+1
− 2 < ∀ n > N.
2n + 1 − 2(n + 1)
⇒ <
n+1
−1
⇒ <
n+1
1
⇒ <
n+1
1
⇒ −1<n
1
Let N =
− 1 < n. Then |an − a| < .
4n3 + 3n
Example 2.1.6. Prove that lim = 4.
a→n n3 − 6
Proof. We need to find N () such that |an − a| < ∀ n > N . That is
4n3 + 3n
−4 <
n3 − 6
4n3 + 3n − 4(n3 − 6)
⇒ <
n3 − 6
3n + 24
⇒ <
n3 − 6
21
3n+24
Consider n > 1 and so we may drop the absolute values. i.e. n3 −6
< .
3n+24
We make estimates. The idea is that n3 −6
is bounded by same constant
times nn3 = n12 for sufficiently large n.
To find such a bound we will find an upper bound for the numerator
and lower bound for the denominator. For example, since 3n + 24 ≤ 27n, it
suffices for us to get n27n
3 −6 < .
Example 2.1.7. Show that the sequence an = (−1)n does not converge.
Now
2 = |1 − (−1)| = |1 − a + a − (−1)|
≤ |1 − a| + |a − (−1)|
< 1+1=2
1.
22
Proof. Suppose that
We need to show that a = b. Let > 0. Then there exist N1 and N2 such
that
|an − a| < /2 ∀ n > N1
and
|an − b| < /2 ∀ n > N2
These inequalities both hold if n > N = max(N1 , N2 ), which implies that
|a − b| = |a − an + an − b|
≤ |a − an | + |an − b|
≤ |an − a| + |an − b|
< /2 + /2 =
∴ |a − b| = 0; that is a = b.
an ≥ a ∀ n,
|an | ≤ M ∀n
|an | ≤ M, n = 1, 2, . . .
23
Take = 1. then ∃ N such that |an − a| < 1 ∀ n > N .
Therefore
We still need to worry (slightly) about the terms in the sequence that came
before the N-th term. Because there are only a finite number of these, we let
2.1.1 Activity
2.2
24
Theorem 2.2.1. If {xn } and {yn } are convergent sequences and xn ≤ yn for
all n ∈ N, then
lim xn ≤ lim yn .
n→∞ n→∞
Theorem 2.2.2 (Sandwich). Suppose that {xn } and {yn } are convergent
sequences of real numbers with the same limit L. If {zn } is a sequence such
that
xn ≤ zn ≤ yn for all n ∈ N
then {zn } also converges to L.
− < xn − L ≤ zn − L ≤ yn − L <
25
It is essential here that {xn } and {yn } have the same limit.
Theorem 2.2.3 (Limit Theorem). Let {sn } and {tn } be sequences converging
to s and t respectively. Then
Proof. a) Let > 0. Since sn → s there exists N1 such that |sn −s| < /2
∀ n > N1 .
Similarly, there exists N2 such that |tn − t| < /2 ∀ n > N2 .
Let N = max{N1 , N2 }. Then for all n > N , we have
26
b) We need to show that given > 0 there exists N such that |sn tn −st| <
∀ n > N.
Now
Therefore,
|t|
|tn | = |t + (tn − t)| ≥ ||t| − |tn − t|| > for any n > N1
2
|t|2
Let > 0. Since tn → t, ∃ N2 such that |tn − t| < 2
.
27
1
which prove that tn
converges to 1t .
Now we obtain Theorem 2.2.3 part (c) in the general way as follows:
sn 1 1 s
lim = lim · sn = · s = .
n→∞ tn n→∞ tn t t
2.2.1 Activity
1. Use Theorem 2.2.3 to find the following limits. Justify your answer.
2
(a) lim 5n +4n
7n2 −3
4
(b) lim 2n +7
n5 −3
√
2. Let s1 = 1 and for n ≥ 1 let sn+1 = sn + 1.
28
Theorem 2.3.1. (i) Let {xn } be an increasing sequence which is bounded
above. Then {xn } is convergent and lim xn = sup{xn }.
n→∞
(ii) Let {xn } be a decreasing sequence which is bounded below. Then {xn }
is convergent and lim xn = inf{xn }.
n→∞
x = sup{xn }
We show that xn → x as n → ∞.
x − < xn ≤ x
x − < xn < x +
29
Theorem 2.3.2. If x, y ∈ R and n ∈ N, then
n
n
X n n−k k n n!
(x + y) = x y , = .
k=0
k k k!(n − k)!
lim xn = 0
n→∞
lim xn = ∞.
n→∞
Proof. If 0 < x < 1, then 0 < xn+1 = x · xn < xn , so the sequence {xn } is
strictly decreasing and bounded from below by zero. Therefore it has a limit
a and
a = lim xn+1 = lim x · xn = x lim xn = ax
n→∞ n→∞ n→∞
Since x 6= 1, it follows that a = 0.
xn = (1 + δ)n
n
X n k
= δ
k=0
k
1
= 1 + nδ + n(n − 1)δ 2 + · · · + δ n
2
> 1 + nδ
Given M ≥ 0, choose N N such that N > M/δ. Then for all n > N , we have
30
1 n
Example 2.3.5. The sequence xn = 1 + n
, n ∈ N is increasing and
bounded, and hence convergent.
where 2 < e < 3. This limit can be taken as the definition of e ≈ 2.71828.
(a + 1)n ≥ 1 + na.
Now
1
n+1
xn+1 1+ n+1
= 1
n
xn 1 + n+1
1
n+1
1 + n+1
= n+1 −1
1 + n1 · 1 + n1
n+1
n+2 n n+1
= · ·
n+1 n+1 n
2 n+1
n + 2n n+1
= 2
·
(n + 1) n
n+1
1 n+1
= 1− 2
·
(n + 1) n
n+1
1 n+1
≥ 1− 2
·
(n + 1) n
1 n+1
≤ 1− · =1
n+1 n
Thus xn+1 ≥ xn .
We also need to show that the sequence is bounded above. By the bino-
31
mial theorem,
n 2 n
1 1 n(n − 1) 1 1
1+ = 1+n + + ··· +
n n 2 n n
1 1 1 2 1
= 1+1+ 1− · + 1− 1− · + ···
n 2! n n 3!
n−1 1
+ 1− ·
n n
1 1 1
≤ 1 + 1 + + + ··· +
2! 3! n!
1 1 1
≤ 1 + 1 + + 2 + · · · + n−1 (because n! ≥ 2n−1 for n ≥ 1)
2 2 2
n
1 − 21
1
= 1+ =1+2 1− <3
1 − 1/2 2
1 1
Proof. x1 = 3, x2 = 4−x1
= 4−3
= 1 < x1
Therefore the sequence converges, and say to a limit `. For this number,
we have that
1
` =
4−`
⇒ `2 − 4` +√1 = 0
4 ± 16 − 4
⇒ `=
√2
⇒ `=2± 3
32
√
Since x1 = 3 and {xn } is decreasing, we have that ` = 2 − 3.
2.3.1 Activity
1. Prove that each sequence is monotone and bounded. Then find the
limit.
Definition 2.4.1 (Cauchy Sequence). A sequence {xn } is called if, for every
> 0, ∃ N ∈ N such that |xn − xm | < ∀ m, n > N .
Remark 2.4.2. A Cauchy sequence is a sequence for which the terms are
eventually close to each other.
1
Example 2.4.3. Consider a sequence {xn } where xn = n
. Prove that the
sequence is a Cauchy sequence.
Proof. Let > 0 be given. We want to show that there exists N ∈ N such
that |xn − xm | < for all m, n ∈> N. That is we would like to have for
33
n > m, |xn − xm | = | nk=1 k12 − m
P P 1
Pn 1
k=1 k 2 | = k=m+1 k2 < . Remembering
1
telescoping sums and the fact that k12 < k(k−1) we see that
n
X 1
|xn − xm | = | |
k=m+1
k2
n
X 1
=
k=m+1
k2
n
X 1 1
< ( − )
k=m+1
k−1 k
1 1
= −
m n
1 1
< +
m n
2
Therefore, as we see in the previous example, if N is equal to
then |xn −
xm | < whenever m, n > N.
then |xn | ≤ M ∀ n ∈ N.
and also
|xm − x| < /2 ∀ m > N
34
so that
|xn − xm | = |xn − x + x − xm |
≤ |xn − x| + |x − xm |
< /2 + /2 =
1+(−1)n+1 1+|(−1)n+1 |
Proof. |xn | = 2
≤ 2
= 1.
1 + (−1)n+2 − 1 − (−)n+1
|xn+1 − xn | =
2
n+1
2(−1) 2
= = =1
2 2
2.4.2 Subsequence
35
Theorem 2.4.1. Every subsequence of a convergent converges to the limit
of the sequence.
Example 2.4.12. The limit set of the divergent sequence {(−1)n+1 }, 1, −1, 1, −1, 1, . . .
contains two points, and is {−1, 1}.
xn1 = max xn
n>1
xn2 = max xn
n>n1
xn3 = max xn
n>n2
and so on.
Obviously n1 < n2 < n3 < · · · and so, at each stage, we are taking the
maximum of a smaller set that at the previous stage. Hence {xnk } is a
decreasing subsequence of {xk }.
36
Case 2.4.4. Suppose that it is not true that all of the sets {xn : n > N } have
a maximum. Then, for some N1 , the set {xn : n > N1 } has no maximum.
So given any xm with m > N1 , we can find an xn following xm such that
xn > xm . Define xn1 = xN1 +1 and let xn2 be the first term following xn2 for
which xn3 > xn2 and so on. We get an increasing subsequence {xnr }.
Proof. The expression “if and only if" indicates that we have two assertions
to verify.
37
We already verified (i). To check (ii), consider a Cauchy sequence {xn }. By
proven results, {xn } is bounded. thus by the Bolzano-Weierstrass theorem,
it has a subsequence {xnk } convergent to a point x ∈ R. We shall show that
{xn } is itself convergent to x.
Since {xn } is Cauchy, for /2 > 0, there exists a N1 ∈ N such that
So {xn } is convergent to x.
Example 2.4.13. A sequence {xn } is defined by x1 = a, x2 = b and xn+2 =
1
2
(xn+1 + xn ) (n = 1, 2, 3, . . .). Prove that {xn } converges.
Proof.
1
xn+2 − xn+1 = (xn+1 − xn ) − xn+1
2
1
= (xn − xn+1 )
2
1
|xn+2 − xn+1 | = |xn − xn+1 |
2
1 1
= |xn−1 − xn |
2 2
1
= |xn − xn−1 |
22
..
.
1
= |x2 − x1 |
2n
1
= |b − a|
2n
38
If n > m,
2.4.3 Activity
In this unit we have in depth studied sequences. We now know what they
are and how they are used. They are going to be important in this module
and subsequent courses in analysis.
39
2.6 Suggestions for Further Reading/ Reading
Assignment
1. For each subset of R, give its supremum and its maximum, if they exist.
Otherwise, write none.
(a) (0, 1)
(b) ∪∞
n=1 [2n, 2n + 1]
40
2.8 Answers to Unit Activities
√
2.1.1 1(b) Let > 0. We need to find N such that | n2 + 1 − n − 0| < for
all n > N.
√
| n2 + 1 − n| <
√ √
( n2 + 1 − n)( n2 + 1 + n)
| √ |<
n2 + 1 + n
1 1 1
√ < √ = <
n2 + 1 + n n2 n
1
n>
1
√
Let N = . Then | n2 + 1 − n − 0| < .
2.2.1 1(a)
5n2 + 4n
lim
7n2 − 3
5 + n4
lim
7 − n32
lim 5 + 4 lim n1
lim 7 − 3 lim n12
5 + 4(0) 5
= =
7 − 3(0) 7
√ √ √ √
2.3.1 1(b) s2 = 4 = 2, s3 = 2s2 + 2 = 6 = 2.449, s4 = 2s3 + 2 =
√
2 · 2.449 + 2 = 2.626. The sequence is increasing. Suppose
sn+1 > sn for some n ∈ N.
p √
sn+2 = 2sn+1 + 2 > 2sn + 2 = sn+1
41
2.4.3 1. If n > m,
42
Unit 3
Series
Introduction
Key Terms
infinite series, partial sums, Cauchy condition, comparison test, ratio test,
root test, integral test, absolute convergence, conditional convergence, rear-
rangement
43
Unit 4
Series
44
Example 4.1.1. Consider the series
∞
X
an
n=0
1 − aN +1
=
1−a
1
If |a| < 1, aN +1 → 0 as N → ∞ and hence SN → 1−a as N → ∞.
P∞ n
It follows that the series n=0 a converges if |a| < 1 and we may write
∞
X 1
an = (|a| < 1)
n=0
1−a
45
∞
X 1
Example 4.1.4. The partial sums of the series are given by
n=1
n(n + 1)
N N
X 1 X 1 1
N= = −
n=1
n(n + 1) n=1
n n+1
1 1 1 1 1 1 1
= 1− + − + − + ··· + −
2 2 3 3 4 N N +1
1
= 1− → 1 as N → ∞.
N +1
∞
X 1
∴ = 1.
n=1
n(n + 1)
Proof. The series converges if and only if the sequence SN of partial sums
is Cauchy, meaning that for every ε > 0 there exist N such that
n
X
|Sn − Sm | = | ak | < ε for all n > m > N
k=m+1
46
Proof. If the series converges, then it is Cauchy. Taking m = n − 1 in the
Cauchy condition in the previous theorem, we find that for every ε > 0 there
exists N ∈ N such that |an | < ε for all n > N which proves that an → 0 as
n → ∞.
∞
X
Example 4.1.5. The an converges if |a| < 1 and in that case an → 0 an
n=0
n → ∞. If |a| ≥ 1, then an 6→ 0 as n → ∞, which implies that the series
diverges.
The condition that the terms of a series approach zero is not, however,
sufficient to imply convergence. The following series is a fundamental exam-
ple.
∞
X 1
Theorem 4.1.3. The series diverges to +∞
n=1
n
Proof. Since the partial sum partial sum of this series increase, we only need
to show that they are bounded above.
1
an =
n
Consider S2N of {an }
1 1 1
S2N = 1 + + + ··· + N
2 3 2
1 1 1 1 1 1 1 1 1
= 1+ + + + + + + + ··· + + ··· + N
2 3 4 5 6 7 8 2N −1 + 1 2
1 1 1 1 1 1 1 1 1
≥ 1+ + + + + + + + ··· + N
+ ··· + N
2 4 4 8 8 8 8 2 2
N −1
1 2 4 2
= 1+ + + + ··· + N
2 4 8 2
1
= 1+ N.
2
Thus the partial sums are unbounded above and hence the theorem follows.
47
4.1.2 Activity
∞
X
Proof. Let ε > 0. Since bn converges, we can find an N such that, for
n=1
any n > N
∞
X
bk < ε
k=n+1
∞
X
Let Sn = an . Then if n > m > N
n=1
48
Thus Sn is Cauchy and the theorem follows.
n
Example 4.2.1. Since an < an , a ≥ 1
P n
a converges if 0 < a < 1, the
P an
series n
converges if 0 < a < 1, by the comparison test.
1 1
P 1
Example 4.2.2. Since (n2 +n) ε < n2ε , n ≥ 1 and n2ε
converges if ε > 12 ,
1 1
the series (n2 +n)ε converges if ε > 2 by the comparison test.
∞ ∞
X 1 X 1
0≤ 2
<
n=1
(n + 1) n=1
n(n + 1)
We also get the explicit upper bound
∞ ∞
X 1 X 1
2
<1+ =2
n=1
n n=1
n(n + 1)
∞
X 1 π2
In fact, the sum is =
n=1
n2 6
∞
an+1 X
(ii) lim | | > 1, then an diverges.
n→∞ an
n=1
an+1
(iii) lim | | = 1, then we conclude nothing.
n→∞ an
49
Proof. If l < 1, we may take ε > 0 so small that l + ε < 1. For sufficiently
large value of N ,
an an−1 aN +2
|an | = ··· |aN +1 | < (1 + ε)n−N −1 |aN +1 |
an−1 an−2 aN +1
∞
X
The series an then converges by comparison with the geometric series
n=1
∞
X ∞
X
n
(l + ε) . If l > 1, a similar argument shows that the terms of an do
n=1 n=1
not tend to zero and so the series diverges.
∞
1
X
Theorem 4.2.3 (). Let an be a series which satisfies lim sup |an | n = l.
n→∞
n=1
Then the series
Proof. (i) Take ε > 0 so small that l + ε < 1. For sufficiently large value
of N ,
|an | < (l + ε)n (n > N )
∞
X
This implies that an converges by comparison test.
n=1
(ii) Choose ε > 0 so small that l − ε > 1. Then, for some sub sequence
{ank },
|ank | > (l + ε)nk → ∞ as k → ∞.
∞
X
and so the terms of an do not tend to zero.
n=1
50
n+1
(n + 1)a 1
Then lim n
= |a| lim (1 + ) = |a|. By the ratio test, the series
n→∞ na n→∞ n
converges if |a| < 1 and diverges if |a| > 1.
Example 4.2.5.
∞
X 1
n=1
np
Then
1
" #
(n+1)p 1
lim 1 = lim = 1,
n→∞
np
n→∞ (1 + n1 )p
so the ratio test is inconclusive. In this case, the series diverges if 0 <
p ≤ 1 and converges if p > 1, which shows that either possibly may occur
when the limit in the ratio test is 1.
The root test may succeed where the ratio test fails.
Now consider the series obtained by switching successive odd and even
terms.
∞
X 1 1 1 1 1 1
bn = + 2 + 3 + 4 + 5 + 6 ··· ,
n=1
2 2 2 2 2 2
1 if n is odd
2n+1
bn =
1 if n is even
2n+1
51
and the ratio test does not apply, since the required limit does not exist. On
1 1
the other hand lim sup |bn | n = , so the ratio test still works.
n→∞ 2
Theorem 4.2.4 (). Let f be a continuous function defined on [0, ∞) and
suppose that f is positive and decreasing. That is, if x1 < x2 , then f (x1 ) ≥
P
f (x2 ) > 0. Then the series f (n) converges if and only if
Z n
lim ( f (x) dx)
n→inf ty 1
Thus 0 < an+1 ≤ bn ≤ an for each n. By the comparison test applied twice,
P P P
an converges if and only if bn converges. But the partial sums of bn
Rn P Rn
are the integrals 1 f (x) dx, so bn converges precisely when lim[ 1 f (x) dx]
exists as a real number.
1
P
Example 4.2.7. n
diverges
Proof
1
P
Example 4.2.8. n2
converges
Proof
52
1
Let f (x) = x2
. Then
Z ∞ a
1 1
dx = lim −
k x2 a→∞ x
k
1 1
= lim − −
a→∞ a k
1
=
k
1
P
Example 4.2.9. np
, p>1
Proof
1
Let f (x) = xp
.Then
Z ∞ a
x−p+1
1
dx = lim
k xp a→∞ −p + 1
−p+1 k −p+1
a k
= lim −
a→∞ −p + 1 −p + 1
−p+1
k
=
p−1
(ii) {an } → 0.
∞
X
Then, the alternating series (−1)n+1 an converges.
n=1
53
∞
X (−1)n−1
Example 4.2.10. converges since { n1 } is decreasing and limn→∞ 1
n
=
n=1
n
0.
4.2.1
P
Definition 4.2.11. (i) A series an converges absolutely, or is abso-
P
lutely convergent, if |an | converges.
(ii) A series which converges but does not converge absolutely is said to be
conditionally convergent.
Theorem 4.2.6. Every absolutely convergent series is convergent.
P P
Proof. Suppose that an is absolutely convergent, so that |an | con-
verges. By the Cauchy condition, given any > 0, there exists N ∈ N
such that n > m > N implies that ||am | + · · · + |an || < . But then
P
|am + · · · + an | ≤ ||am | + · · · + |an || < by the triangle inequality, so an
also converges.
Example 4.2.12. (i)
(−1)n−1
an = (n = 1, 2, 3, . . . )
n
∞ ∞
X X (−1)n−1
an = converges
n=1 n=1
n
∞ ∞
X X 1
|an | = diverges
n=1 n=1
n
P∞ (−1)n−1
∴ n=1 is conditionally convergent
n
(ii)
∞ ∞
X X (−1)n−1
an =
n=1 n=1
n2
∞ ∞
X X 1
|an | = converges
n=1 n=1
n2
P∞ (−1)n−1
∴ n=1 is absolutely convergent
n2
54
4.2.2 Rearrangements
A of a series is a series that consists of the same terms in a different order. The
convergence of a rearranged series may initially appear to be unconnected
with absolute convergence, but absolutely convergent series are exactly those
series whose sums remain the same under every rearrangement of their terms.
On the other hand, a conditionally convergent series can be rearranged to
give any sum we please, or to diverge.
55
4.2.3 Activity
a2n con-
P P
(a) Give an example of divergent series an for which
verges.
a2n di-
P P
(b) Give an example of convergent series an for which
verges.
3. Let {xn } be a sequence of real numbers and let yn = xn − xn+1 for each
n ∈ N.
P∞
(a) Prove that the series n=1 yn converges if and only if the sequence
{xn } converges.
(b) If ∞
P
n=1 yn converges, what is the sum?.
In this unit we have in depth studied sequences. We now know what they
are and how they are used. They are going to be important in this module
and subsequent courses in analysis.
56
Trench, W.F. (2013). Introduction to Real Analysis. (Free Hyperlinked
Edition 2.04.) Texas: Trinity University, San Antonio.
1. For each subset of R, give its supremum and its maximum, if they exist.
Otherwise, write none.
(a) (0, 1)
(b) ∪∞
n=1 [2n, 2n + 1]
4.1.2 2. Let > 0. By the Cauchy condition, there exists N such that
n > m > N implies that | nk=m+1 xk | < . In particular, n > N
P
2. (a) Take an = n1 .
57
P∞
3. (a) Since n=1 converges. we have lim yn = 0. That is lim(xn −
xn+1 ) = 0. Thus the sequence {xn }converges. Complete the the
proof by considering the other direction.
58
Unit 5
Coninuity
Introduction
In this unit we give a precise -δ definition of continuity and then show its
relationship to limits and sequences. We also show that algebraic combina-
tions of continuous functions are continuous. We further develop important
properties of continuous functions such as the intermediate value property.
We shall consider functions which are defined on a nonempty subset A of R.
Key Terms
59
5.1 Continuous Functions
Definition 5.1.1. A function f (x) is at x0 if for every sequence xn converging
to x0 implies that f (xn ) converges to f (x0 ).
Proof. Suppose f (x) is continuous at x0 , that is, for every sequence {xn }
converging to x0 implies that f (xn ) → f (x0 ). We need to show that given
ε > 0, ∃ δ > 0 such that |x − x0 | < δ → |f (x) − f (x0 )| < ε. Suppose given
any ε > 0, 6 ∃ δ > 0 such that |x − x0 | < δ → |f (x) − f (x0 )| < ε, i.e.,
for δ > 0, |x − x0 | < δ 6→ |f (x) − f (x0 )| < ε. In particular |x − x0 | < n1 →
|f (x) − f (x0 )| ≥ ε so that |xn − x0 | < n1 → |f (xn ) − f (x0 )| ≥ ε.
Thus, xn → x0 but f (xn ) 6→ f (x0 ) since |f (xn ) − f (x0 )| ≥ ε for all n. This
shows that f cannot be continuous at x0 , contrary to our assumption.
Now given that for any ε > 0, ∃ δ > 0 such that |x − x0 | < δ → |f (x) −
f (x0 )| < ε, and xn → x0 . We need to show that f (xn ) → f (x0 ). Since xn →
x0 , for δ > 0 there exists N such that |xn − x0 | < δ for all n > N . It follows
that |f (x) − f (x0 )| < ε for all n > N . This proves that f (xn ) → f (x0 )
lim 2x2n + 1
lim f (xn ) =
n→∞ n→∞
h i2
= 2 lim xn + 1
n→∞
= [2x20 + 1]
= f (x0 ).
60
Hence f is continuous at each x0 ∈ R.
(b) Let x0 ∈ R and let ε > 0. We want to show that |f (x) − f (x0 )| < ε
whenever |x − x0 | < δ.
Example 5.1.3. Let f (x) = x2 sin( n1 ) for x 6= 0 and f (0) = 0. Prove that f
is continuous at 0.
Proof. Given ε > 0, find δ > 0 such that |x − x0 | < δ → |f (x) − f (x0 )| < ε.
2 1
|f (x) − f (x0 )| = x sin −0
n
2 1
= x sin
n
2 1
≤ x since sin ≤1
n
61
√
Since we want this to be less than ε, we set δ = ε. Then |x − 0| < δ implies
x2 < δ 2 = ε, so
Therefore, f is continuous at 0.
Example 5.1.4. Let f (x) = x1 sin( x12 ) for x 6= 0 and f (0) = 0. Show that f
is discontinuous, i.e. not continuous, at 0.
1 π 1 1
= 2nπ + , x2n = π or xn = p .
x2n 2 2nπ + 2 2nπ + π2
1
Then lim xn = 0 while lim f (xn ) = lim = +∞
n→∞ n→∞ n→∞ xn
62
Proof. If f is continuous at x0 then for any sequence xn → x0 implies
f (xn ) → f (x0 ). We know that kxn → kx0 . Thus kf (xn ) → kf (x0 ). This
proves that kf is continuous at x0 .
Proposition 5.1.3. If f, g are continuous at x0 ∈ R. Then
(i) f + g is continuous at x0 ;
(ii) f g is continuous at x0 ;
f
(iii) g
is continuous at x0 if g(x0 ) 6= 0.
Proof.
(i) Let xn be a sequence
converging to x0. Then f (xn ) → f (x0 )
or lim f (xn ) = f (x0 ) and g(xn ) → g(x0 ) or lim g(xn ) = g(x0 ) .
n→∞ n→∞
Thus
(ii)
So f g is continuous at x0
(iii)
f f (xn )
lim (xn ) = lim
n→∞ g n→∞ g(xn )
f (x0 )
=
g(x0 )
f
= (x0 )
g
f
so, g
is continuous at x0 .
63
Proposition 5.1.4. If f is continuous at x0 and g is continuous at f (x0 ),
then the composite function g ◦ f is continuous at x0
5.1.1 Activity
4. Let the function g(x) = sin( x1 ) for x 6= 0 and let g(0) = 0. Prove that
g is discontinuous at x = 0..
5. Let f (x) = 1 for rational numbers x and f (x) = 0 for irrational num-
bers. Show that f is discontinuous for every x ∈ R.
5.2
Definition 5.2.1. An interval I is a set of real numbers with the property
that, if x ∈ I and y ∈ I and x ≤ z ≤ y, then z ∈ I, i.e, if two numbers
belong to I,then so does every number between them.
64
If inf J < sup J, then such a set J must be an interval. In fact, we will show
that
inf J < y < sup J implies y ∈ J (5.2)
so J is an interval with endpoints inf J and sup J; inf J and sup J may or
may not be finite.
To prove (5.2) from (5.1), consider inf J < y < sup J. Then there exists
y0 , y1 in J so that y0 < y < y1 . Thus y ∈ J by (5.1).
Theorem 5.2.2. If f is continuous on [a, b] and either f (a) < 0 and f (b) > 0
or f (a) > 0 and f (b) < 0 then there exists x ∈ (a, b) such that f (x) = 0.
65
Example 5.2.4. Show that the equation 17x7 − 19x5 − 1 = 0 has a solution
c which satisfies −1 < c < 0. Since any polynomial is continuous on any
interval that is (−1, 0).
Since −1 < 0 < 1, we have that f (x) = 0 for some x between -1 and 0.
Proposition 5.2.3. Let f : [a, b] → [a, b] be continuous on [a, b]. Then for
some x ∈ [a, b] such that f (x), x is called the of f .
Proof. The image of [a, b] is the subset of [a, b]. Thus f (a) ≥ a and f (b) ≤ b.
Consider g(x) = f (x) − x on [a, b]. By previous results g(x) is continuous on
[a, b].
66
Example 5.2.5. Let f : [0, 1] → [0, 1] be continuous on [0, 1] in other words,
f (x) ∈ [0, 1]. Show that f has a fixed point, i.e., a point x0 ∈ [0, 1] such that
f (x0 ) = x0 .
67
Proof. Consider g(x) = f (x) − x2 which is also continuous on I. Given any
point ξ ∈ I, let {rn } be a sequence of rational numbers in I such that {rn } →
ξ as n → ∞. Then g(rn ) → g(ξ) as n → ∞. But g(rn ) = 0, n = 1, 2, 3, 4, . . ..
It follows that 0 = g(ξ) = f (ξ) − ξ 2 .
Example 5.2.7. Prove that x = cos x for x which is also continuous on
0, π2
5.2.1 Activity
3. Show that any polynomial of odd degree has at least one real root.
5. Suppose that f is continuous on [0, 2] and that f (o) = f (2). Prove that
there exists x, y ∈ [0, 2] such that |y − x| = 1 and f (x) = f (y). Hint:
Consider g(x) = f (x + 1) − f (x) on [0, 1].
68
5.3 Summary/Let Us Sum Up
In this unit we have discussed the sequential and -δ definitions of continuity
of functions and how it can be applied. We have also established the inter-
mediate value theorem which is one of the important property of continuous
functions.
69
limn→−∞ f (xn ) = −∞. Hence we can find a and b such that
a(b) < 0 and f (a) > 0. Therefore, there exists η between a and b
such that f (η) = 0.
70
Unit 6
Introduction
In this unit, we define some topological properties of the real numbers R and
its subsets. We discuss closed and open sets in Sections 5.1 and 5.2. Finally,
in Sections 5.3 and 5.4 we cover compact and connected sets and the closure
of sets.
• determine with justification whether or not given sets are open, closed,
connected and compact.
71
Key Terms
closed set, open set, limit point, -neighbourhood, compact set, connected
set. closure of a set, Heine-Borrel theorem
Example 6.1.2. The point 0 is a limit point for the interval (0, 1] = {ε ∈ R : 0 < t ≤ 1}
1
because 0 = lim , but 0 6⊂ (0, 1].
n→∞ n
Example 6.1.4. The real numbers R and the empty set ∅ are closed sets.
Proof. The real numbers R are a closed set because any limit point of R is
a real number.
The empty set ∅ is a closed set because it has no elements. Suppose that ∅ is
not closed. Thus, there exists a convergent sequence {an } ⊂ ∅ with lim an 6∈
n→∞
∅. However, this will imply that an ∈ ∅ for any n ∈ N, hence ∅ have atleast
one element but by definition, it has no elements. A contradiction!.
72
Example 6.1.6. The interval [0, 1] is closed.
Proof. Take a convergent sequence {an } ⊂ [0, 1]. Then 0 ≤ xn ≤ 1 for every
n ∈ N, and
0 ≤ lim ≤ 1
n→∞
Proof. Take a convergent sequence {an } ⊂ A and let a be its limit. Then,
for 2ε > 0, there exist N such that |an − a| < 2ε for every n > N. Hence n > N
implies
|an − aN | = |(an − a) + (a − aN )|
≤ |an − a| + |a − aN |
ε ε
< + =ε
2 2
and therefore an = aN for any n > N . That is, {an }n > N is a constant
sequence of points of A, so a = aN ∈ A.
Example 6.1.8. The rational number Q are not a closed set. In fact, the
set of all limit points for Q is the set of real number R.
73
6.1.1 Activity
(a) N
(b) Q
(c) {x : |x − 5| ≤ 12 }
(d) {x : x2 > 0}
Example 6.2.2. The sets R and ∅ are both open because R = R \ ∅ and
∅ = R \ R.
Definition 6.2.3. The sets which are both open and closed are called .
Example 6.2.5. Every open interval (a, b), a, b ∈ R and a < b is an open
set.
Proof. Take a point x ∈ (a, b). Then, b − x > 0 and x − a > 0, and so is the
number δ = min{b − x, x − a}. Take the point y ∈ {x − δ, x + δ}. Then
74
From this example, we see that (x − ε, x + ε) is an open set for every
ε > 0. It is usually called the ε-neighbourhood of x. In fact, any open set
B ⊂ R which contains a point x is called a of that point.
The open sets are the key elements to define convergent sequences.
Proof. We saw already that (0, 1] is not closed.Since (0, 1) is open, we con-
sider the point 1. We observe that 1 < 1 + δ, δ > 0. Consider the middle
point x = 1 + 2δ . Then x ∈ (1, 1 + δ) ⊂ (1 − δ, 1 + δ). But x = 1 + 2δ > 1, so
x 6∈ (0, 1]. Since (1 − δ, 1 + δ) 6⊂ (0, 1], the interval (0, 1] is not open.
6.2.1 Activity
1. Determine whether or not each of the sets in Activity 6.1.1 (1) is open.
6.3 Compactness
Definition 6.3.1. A subset X ⊂ R is called sequentially , sometimes
marely compact, if every sequence in X has a sub-sequence that converges
to a limit that is also in X.
75
Proof. Take, for instance, xn = n n ∈ N. Then {xn } is divergent to
+∞,and clearly any sub-sequence of {xn } will have the same properties. So,
R is not compact.
76
6.3.1 Activity
(a) [1, 3)
(b) [1, 2) ∪ (3, 4]
(c) N
(d) x ∈ Q : 0 ≤ x ≤ 2
A ∪ {0}.
(b) Q̄ = R
77
Example 6.4.5. The set of rational numbers is disconnected. Let A =
√ √
Q ∩ (−∞, 2) and B = Q ∩ ( 5, ∞).
√ √
Ā ∩ B = (−∞, 2] ∩ ( 5, ∞) = ∅
√ √
A ∩ B̄ = (−∞, 2] ∩ ( 5, ∞) = ∅
6.4.1 Activity
In this unit we have seen that real numbers and its subsets have interesting
topological properties. In particular, we discussed open, closed, compact and
connected sets.
78
2. Find the closure of each set in 1.
6.2.11(d). The set is open because if you take the -neighbourhood of any
point c in the set, it will be contained in the set.
79
Unit 7
Differentiation
Introduction
The focus of this unit will be on the theoretical aspects of differentiation that
are often treated more superficially in the introductory course. We give the
definition in Section 6.1 and establish the basic properties of the derivative
in Section 6.2. Finally, we prove the mean value theorem and develop some
of its consequences in Section 6.3.
80
Key Terms
7.1 Derivatives
Definition 7.1.1. Let f be a function defined on an open interval containing
a point a. We say that f is at a, or that f has a derivative at a, if the limit
f (x) − f (x − a)
lim
x→a x−a
exists and is finite.
We will write
f (x) − f (a)
f 0 (a) = lim
x→a x−a
Whenever this limit exists and is finite. Equivalently, we may write
f (x + h) − f (a)
f 0 (a) = lim .
h→0 h
Example 7.1.2. Let n be a positive integer, and let f (x) = xn for all x ∈ R.
We show that f 0 (x) = nxn−1 for all x ∈ R.
So
f (x) − f (a)
= xn−1 + axn−2 + a2 xn−3 + · · · + an−2 x + an−1
x−a
For x 6= a. It follows that
f (x) − f (a)
f 0 (a) = lim
x→a x−a
n−1
= a + aan−2 + a2 an−3 + · · · + an−2 a + an−1
= nan−1
81
7.1.1 Activity
√
1. Let h(x) = x = x1/2 for x ≥ 0. Use the definition of derivative to
prove that h0 (x) = 12 x−1/2 for x > 0.
7.2
We have
f (x) − f (a)
f (x) = (x − a) + f (a), x 6= a
x−a
f (x) − f (a)
Since lim (x − a) = 0 and lim exists and is finite, previous
x→a x→a x−a
result show
f (x) − f (a)
lim (x − a) · =0
x→a x−a
Therefore lim f (x) = f (a), as desired.
x→a
82
Proof. Then f is continuous at 1 but not differentiable (The graph has a
‘corner’).
f (1 + h) − f (1) (1 + h) − 1
lim+ = lim+ =1
h→0 h h→0 h
and
f (1 + h) − f (1) (1 + h)2 − 1
lim = lim− =2
h→0− h h→0 h
Thus the converse of Theorem 7.2.1 is false.
Theorem 7.2.2. Let f and g be functions that are differentiable at the point
a. Let c be any real number. Then
83
[g(a)f 0 (a) − f (a)g 0 (a)]
(iv) (f /g)0 (a) = (quotient rule)
g 2 (a)
Proof. (i)
(ii)
(f + g)(x) − (f + g)(a)
(f + g)0 (a) = lim
x→a x−a
f (x) − f (a) g(x) − g(a)
= lim + lim
x→a x−a x→a x−a
0 0
= f (a) + g (a)
(iii)
(f g)(x) − (f g)(a)
(f g)0 (a) = lim
x→a x−a
f (x)g(x) − f (x)g(a) + g(a)f (x) − g(a)f (a)
= lim
x→a
x−a
g(x) − g(a) f (x) − f (a)
= lim f (x) + g(a)
x→a x−a x−a
g(x) − g(a) f (x) − f (a)
= lim f (x) + lim g(a)
x→a x−a x→a x−a
0 0
= f (a)g (a) + g(a)f (a)
f (x) f (a)
(f /g)(x) − (f /g)(a) = −
g(x) g(a)
g(a)f (x) − f (a)g(x)
=
g(x)g(a)
g(a)f (x) − g(a)f (a) + g(a)f (a) − f (a)g(x)
=
g(x)g(a)
84
So
(f /g)(x) − (f /g)(a) f (x) − f (a) g(x) − g(a) 1
= g(a) − f (a)
x−a x−a x−a g(x)g(a)
For x ∈ I, x 6= a. Now
0 f (x) − f (a) g(x) − g(a) 1
(f /g) (a) = lim g(a) − f (a)
x→a x−a x−a g(x)g(a)
0 0
g(a)f (a) − f (a)g (a)
=
g 2 (a)
Example 7.2.3. Let m be a positive integer, and let h(x) = x−m for x 6= 0.
Then h(x) = f (x)/g(x) where f (x) = 1 and g(x) = xm for all x. By the
quotient rule,
85
Proof. By lemma 7.2.4 , we know that g ◦ f is defined on some open interval
containing a.
g(y) − g(f (a))
Let h(y) = for y ∈ dom (f ) and y 6= f (a), and let
y − f (a)
h(f (a)) = g 0 (f (a)). Since lim h(y) = h(f (a)), the function h is contin-
y→f (a)
uous at f (a).
Note:
So
Hence
g ◦ f (x) − g ◦ f (a) f (x) − f (a)
= h(f (x)) (7.1)
x−a x−a
For x ∈ dom (g ◦ f ), x 6= a. Since lim f (x) = f (a) and the function h is
x→a
continuous at f (a), we have that
f (x) − f (a)
Of course, lim = f 0 (a), so taking the limit in equation (7.1) as
x→a x−a
x → a we obtain
(g ◦ f )0 (a) = g 0 (f (a)) · f 0 (a)
86
7.2.1 Activity
→ R be defined by
1. Let f : R
2x if x ≥ 1,
f (x) =
x2 + 1 if x < 1.
(a) Use the chain rule and product rule to show that f is differentiable
at each a 6= 0 and find f 0 (a). (You may assume that the derivative
for sin x is cos x for all x ∈ R.)
(b) Use the definition of derivative to show that f is differentiable at
x = 0 and find f 0 (0).
(c) Show that f 0 is not continuous at x = 0.
87
Proof. Suppose that f is defined on (a, b) where a < x0 < b. Since either
f and −f assumes its maximum at x0 , we may assume that f assumes its
maximum at x0 .
f (x) = f (x0 )
f 0 (x0 ) = lim
x→x0 x − x0
there exists δ > 0 such that a < x0 − δ < x0 + δ < b and
f (x) − f (x0 )
0 < |x − x0 | < δ → >0 (7.2)
x − x0
If we select x so that x0 < x < x0 + δ, then (7.2) shows that f (x) > f (x0 ),
contrary to the assumption that f assumes its maximum at x0 .
f (x) − f (x0 )
0 < |x − x0 | < δ → <0 (7.3)
x − x0
If we select x so that x0 < x < x0 , then (7.3) implies f (x) > f (x0 ), against
a contradiction. Thus we must have f 0 (x0 ) = 0.
Our next result is fairly obvious except for one subtle point: one must
know or believe that a continuous function on a closed interval assumes its
maximum and minimum.
88
Proof. Since f is continuous on [a, b], by Theorem 7.3.2, there exist x0 , y0 ∈
[a, b] such that f (x0 ) ≤ f (x) ≤ f (y0 ) for all x ∈ [a, b]. If x0 and y0 are
both end points of [a, b], then f is a constant function [since f (a) = f (b)]
and f 0 (x) = 0 for all x ∈ (a, b). Otherwise, f assumes either a maximum
or a minimum at a point x in (a, b), in which case f 0 (x) = 0 by Theorem
7.3.1. The Mean Value Theorem tells us that a differentiable function on [a, b]
must some where have its derivative equal to the slope of the line connecting
f (b) − f (a)
(a, f (a)) to (b, f (b)), namely .
b−a
Theorem 7.3.4 (). Let f be a continuous function on [a, b] that is differen-
tiable on (a, b). Then there exists [at least one] x in (a, b) such that
f (b) − f (a)
f 0 (x) =
b−a
Proof. Let L be the function whose graph is the straight line connecting
(a, f (a)) to (b, f (b)), i.e, the dotted line in Figure above. Observe that
f (b) − f (a)
L(a) = f (a), L(b) = f (b) and L0 (x) = for all x. Let g(x) =
b−a
f (x) − L(x) for x ∈ [b − a].
89
Note 3. Rolle’s Theorem is the special case of Mean Value Theorem where
f (a) = f (b).
Proof. If f is not constant on (a, b), then there exist x1 , x2 such that a <
x1 < x2 < b and f (x1 ) 6= f (x2 ).
f (x2 ) − f (x1 )
By the Mean Value Theorem, for some x ∈ (x1 , x2 ) we have 6=
x2 − x1
0, a contradiction.
90
Proof. (a) Suppose that f 0 (x) > 0 for all x ∈ I, and let x1 , x2 ∈ I with
x1 < x2 . Since f is continuous on [x1 , x2 ] and differentiable on (x1 , x2 ),
the mean value theorem implies that there exists a point c ∈ (x1 , x2 ) such
that f (x2 )˘f (x1 ) = f 0 (c)(x2 ˘x1 ). Since f 0 (c) > 0 and x2 ˘x1 > 0, we must
have f (x2 ) > f (x1 ). Thus f is strictly increasing on I. The proof of (b) is
similar.
7.3.1 Activity
3. Suppose that f and g are continuous on [a, b], and differentiable on (a, b)
and that g 0 (x) = 0 for any x ∈ (a, b). Prove that, for some η ∈ (a, b),
In this unit we looked at how we can use the definition of derivative in solving
problems. We established the properties of the derivative. In addition, we
established the mean value theorem and derived several of its corollaries.
91
7.5 Suggestions for Further Reading/ Reading
Assignment
92
7.3.1 1(c). Let f (x) = sin x. We obtain f (x) − f (0) = f 0 (c)(x − 0) for c ∈
(0, x). Thus we have sin x − 0 = x cos c and sin(x) = x cos c ≤ x
since 0 ≤ cos c ≤ 1. It follows that sin x ≤ x.
3. h(a) = f (a)eg(a) and h(b) = f (b)eg(b) . Thus h(a) = h(b) = 0.
By Rolle’s theorem, there exists x ∈ (a, b) such that h0 (x) = 0. So
h0 (x) = f 0 (x)eg(x) +f (x)eg(x) g 0 (x) = 0, that is h0 (x) = eg(x) (f 0 (x)+
f (x)g 0 (x)) = 0. But eg(x) cannot be zero and so the result follows.
93
Assessment
94
Module Test
(a) {r ∈ Q : r2 ≤ 5}
(b) ∪∞ 1 1
n=1 [ n , 2 − n ]
1
4. Given the sequence a1 = 2 and an+1 = 3−an
.
7. Let f and g be continuous on [a, b] such that f (a) ≥ g(a) and f (b) ≤
g(b). Prove that f (x0 ) = g(x0 ) for at least one x0 ∈ [a, b].
95
References
96
Index
97
Ratio test, 49 subsequence, 35
rational number, 4 supremum, 9
rearrangement, 55
Rolle’s Theorem, 88 The absolute value, 6
Root test, 50 The Integral Test, 52
sequence, 20 Uniqueness, 22
98