Real Analysis Notes
Real Analysis Notes
Real Analysis Notes
REAL ANALYSIS I
1. INTRODUCTION
. 2. OBJECTIVES
LECTURE ONE
SETS
1.1 Introduction
In this lecture we introduce the concept of a set and operations on sets. These
are some of the basic ideas that the learner requires in order to understand
subsequent lectures in this module.
1.3 Sets
Notations
The following symbols will be used throughout this module:
Definition
A set is a collection of objects characterized by some defining property that enables us to
think of the objects as a whole. The objects in a set are called elements or members of
the set.
We usually block (capital) letters to denote sets and small letters to designate elements of
a set.
To say that a set must be characterized by some defining property is to require that there
should be a clear fact whether a particular object or element does or does not belong to a
particular set; that is for any element b and set A, the statement b must be true or
false, but not both. For example which of the following satisfy the requirement of a set?
a) all the current M.P.s from western?
b) all prime advisors of 1923
c) all the tall people in Uganda
d) all the prime numbers between 8 and 10
To define a particular set, we have to indicate the property that governs its elements by
either:
1. Listing the element of the set, especially if the set is finite.
2. Defining a rule relating the elements, which is set within braces as in
x : x is an integer
Definition: Let A and B be sets. Then we say that
a. A is a subset of B denoted by A B if every element of A belongs to B. If
A and an element b B such that b A then A is said to be a proper
subject of B, denoted by . It turns out that to prove that A , we must
show that if x , then x is a true statement.
b. A is equal to B written A B if and A. Immediately we see that
proving A B is equivalent to proving x A x and x x .
c. The union of A and B, denoted by is defined by
x : x A or x
d. The intersection of A and B, denoted by A is the set:
A x : x and x
e. The complement of B relative to A denoted by A / B is the set
/ x : x and x
Definition
A set containing all other sets in consideration (question) is called the universal set and is
denoted by the letter U .
Consider the set D of all prime numbers between 8 and 10. Then the set D has no
elements. A set such as D with no member is called an empty set, denoted by . The
empty set turns out to be a subset of every set. Hence the following Lemma;
Lemma 1.1
The empty set is a subset of every set A.
Proof (by contradiction)
We want to show that . By contradiction, suppose that (is not a subset of
A), then an element such that x , but this is a contradiction, since is empty,
hence .
i x : i I : x Ai
iI
x : x
iI
i i for each i I
U / x U : x
(i)
A
(ii) /
(iii) iff
(iv)
(v)
Note that identities (iv) and (v) are called De Morgan’s laws
The De Morgan’s laws will prove to be useful later; hence we generalize them in the
following theorem:
Theorem 1:2
i i
(i)
i 1 i 1
(ii) i i
Proof
(i) First we show that i i
i 1
Let x Ai x i
i 1 i 1
x i i
x i i
x i
i 1
Conversely, we show that i
i n i 1
i
Let x i Ai
1
x i i
x i i
x i
i 1
x i hence the results.
i 1
If A and B are non-empty sets, then A B is the set of all ordered pairs a, b such that
a and b . That is
A B a, b : a , b
Thus, if A 1, 2,3 and 4, 6 , then the set A B is the set whose elements are the
ordered pairs (1,4), (1,6), (2,4), (2,6), (3,4), (3,6).
Activity 1.1
c
i Ai
i 1 i 1
(a) What is A1 A2 ?
(b) Determine the sets An : n and An : n
LECTURE TWO
Functions
2.1 Introduction
2.3 Functions
Let A and B be a non-empty sets. Then a function f from A to B (in symbol f : )
is a rule that assigns to each element x of A a unique element y . In this case y is
called the value of the function f at x, written y f x (or the image of x under f).
The set A is called the domain of f and the while the set f x : x A is called the range
of f denoted by R(f). In general R f , B is called the codomain of f.
There is another way of visualizing a function namely a machine that accepts elements of
the domain of f, D f A as inputs and producers corresponding elements of
R f as outputs.
Example
Let A D f be the set of real numbers and f be the rule (function) that squares every
element of A, if x A then f x x y
2
f f x : x
f 1
x : f x
Thus if we are given a set then a point b1 is in the direct image f iff there
exists at least one point x1 such that b1 f x1 . Similarly a point x 2 is in the inverse
image f 1
if and only if y2 : f x2 belongs to H.
Example
(i) f i f Ai
i1 i 1
(ii) f Ai f Ai
u 1
(iii) f 1
Ai f 1 A
(iv) f 1 A f 1 A
(v) f 1
f
1
Proof
(i) Let x f Ai
iI
f 1 x Ai
iI
f 1 x Ai for some i
x f Ai for some i
x f Ai
iI
(v) Let x f 1
f x
f x
x f 1
x f 1
10
surjective.
(That is the graph of f must satisfy the first horizontal line test: Every horizontal line y=b
with b intersect the graph of f in at most one point).
To prove that a function f is surjective, we must show that for any b there exists at
least one x such that f x b. [ That is, the graph of f, satisfies the second
horizontal test. Every horizontal line y b with b intersects the graph of f in at least
one point).
Example
2x
Let A x : x 1 and define f x for all x . Show that f is injective and
x 1
find the set B such that f : is surjective.
Solution
2 x1 2 x2
x1 1 x 2 1
2x
To determine B (range of f), we solve the equation y in terms of y to obtain
x 1
y
x . This is meaningful for y 2. Thus the range of f (i.e. B) is the set
y 2
Example
11
Solution
It is enough to show that there exists more than one point of mapped onto one point in
the range of f. (Otherwise apply the first horizontal line test).
Thus the points 1,0,1 are mapped onto 0. Hence f is not one-one.
1
f : such that
f 1
y x : f x y
Moreover f 1
f x f f 1 x x
2x
For example, the function f x is bijective from A x : x 1 on to the set
x 1
y
f 1
y for y
y 2
Remark
To find the inverse function of f, all we need is to solve for x in terms of y assuming that
y f (x)
Example
12
g f x g f x for all x .
Example
f g x f g x f x 1 ( x 1)2 x 2 2 x 1
g f x g f x g x 2 x 2 1
Proof
(a) Since g is subjective (onto) R g C. That is, for any c C , b such that
13
Activity 2.1
x
1. Show that the function f defined by f x
, x is a
x 1 2
function h= g f .
14
LECTURE THREE
3.1 Introduction
3.3.1 Notation
We shall denote by:
15
16
In fact, this process can be repeated infinitely many times, and so between any two
rational numbers, there are infinitely many rationals.
Definition: The set of all rational and irrational numbers is called the set of real numbers
or the continuous denoted by . Thus Q Q , the set is closed under addition
and multiplication.
Intervals
Let a and b be any two real numbers so that
a b . Then
a) a, b x : x , a x b is called an open interval
b) a, b x ; a x b is called a closed interval
c) a, b x : x , a x b is called half-open/half-closed interval.
17
18
Example
The set of rational numbers does not satisfy the completeness axiom. For consider a non-
empty subject S of Q, S x Q : Q x 2 . Then S is bounded and sup S 2 ,
2
Activity 3.1
t
1. Show that if t is irrational, then S is irrational
t 1
2. Find the supremum, infimum, maximal and minimum elements
of the following sets:
a) S r Q : 0 r 2
1 1
b) S : n, m
m n
m
c) S : m, n , m n
n
1
d) S 1 : n
n
n 1
e) S 1 1 : n
n
n
f) S : n
n 1
3. Let A and B be any two bounded nonempty subsets of real
numbers and let A B a b : a A, b B . Show that
sup A B sup A sup B.
19
Activity 3.2
a) If u>0 is any real number and x<y, show that there exists a rational
number r such that x ru y. (Hence the set ru : r Q is dense in
b) Complete the proof of theorem 2.5 by removing the assumption that x>0.
20
LECTURE FOUR
4.1 Introduction
In this lecture we will study the topology of the real number system . We will
discuss the concepts of interior points of a set, open sets, limit points of a set and
closed sets
Definition
A subset N of is said to be a neighbourhood of a point x if there exists an open
interval a, b x , x such that x a, b . We call a, b ( x , x ) an
neighbourhood of x for some 0 .
Examples
1. The set is nbd (neighbourhood) of each of its points
2. The set of rational numbers is not a nbd of each of its points (why?)
3. An open interval a, b is a nbd of its points.
21
3. , , Q ,
Definition
A subset B of is open in if for each x B there exists a nbd V of X such that
x V B. That is B is open if it contains an open interval about each of its points We
also see that a set B is open if and only if B B
Examples
a. Every open interval is an open set.
b. The closed interval is not open
c. The empty set is open, since has no element, so there is no element in which
is not an interior point.
d. The sets , ,Q are not open sets.
e. The set is open since
The following basic result describes the manner in which open sets relate to the
operations of the union and intersection of sets in .
Theorem 4.2 (Open sets)
a. the union of an arbitrary collection of open subsets in is open.
b. the intersection of any finite collection of open sets in is open.
Proof
a) Let U 1
A where A is open for each . If U , then U is open. If
U , let x U , then x A for some . Since A is open,
x a, b A x a, b U (since A U ) . Hence U is a nbd of
x implying that U is open, since x was arbitrary.
n
b) Let A i 1 be a finite family of open sets. We show that B Ai is open.
n
i 1
22
Activity 4.1
23
A real number p is a limit point (or an accumulation point or a cluster point) of S if every
neighbourhood of p contains at least one point of S different from p. That is if N is the
neighbourhood of p then p is a limit point of S if N / p S .
The set of all limit points of S is denoted by S ' and is called the derived set of S.
Example
Let 0,1 0,1. Then every member of 0,1 is a limit point of 0,1. Thus though 0,1 do
not belong to 0,1 they are its limit points for the nbd 1 , 1 of 1 contains infinitely
many elements of 0,1 .
Note that from this we see that a limit point may or may not belong to the set.
Example
a) The sets , and have no limit points.
b) Every real number is a limit point of the sets Q and .
Lemma 4.3
Finite sets have no limit points.
Proof: Consider the set A x1 , x 2 ,..., x n . Let p be an arbitrary real number and define
d1 x1 p ,..., d n xn p
Let r min d1 ,..., d n . Then the nbd N p 2r of p contains no point of A. Hence p is not a
limit point of A. Since p was arbitrary A has no limit points.
Next we have a characterization of a limit point of a set.
Theorem 4.4
A real number p in a limit point of a subset S of iff every nbd of p contains infinitely
many points of S.
Proof
( ) Let p be a limit point of S and Let N p be a nbd of p We show that N p has infinitely
many points. Suppose to the contrary that N p has a finite number of points of S distinct
from p. Then by the above lemma p is not a limit point of S, which is a contradiction?
Hence N p contains infinitely many points of S. Thus every nbd of p has infinitely many
of S, since N p was arbitrary.
Conversely, given that every nbd of p has infinitely many points of S we have that
every nbd of p contains a point of S different from p. Hence p is a limit point of S.
Definition (Closed set)
Let X be a set and S X . Then S is said to be closed in X if it contains all its limit
points. That is, if S is closed and s is a limit point of S then s S .
Example
1. The is closed for there is no element which is not a limit point of .
2. The set a, b is closed since a, b are limits points of A and a, b A.
3. Every finite set is closed for there is no limit point that does not belong to the set
since finite sets have no limit points.
Theorem 4.5
A set A is closed iff its complement A is open.
Proof
24
Example
25
1. Find the derived sets of the following sets and state whether they are
closed or not:
a) S all int egers
b) S n, n 1 : n
1
c) S x : x , n
n
1 n
d) S 1 : n
n
1 1 1 1 1 1
e) S 1, 1,1 , 1 ,1 , 1 ,1 , 1 ,...
2 2 3 3 4 4
2. If A is open and B is closed, prove that A/B is open and B/A is closed.
26
LECTURE FIVE
COMPACT SETS
5.1 Introduction
In this lecture we will study compact sets and prove some results on compact
sets.
That is, F
I
A , thus
27
A F
I
is an open cover of K. Since K is compact there exists a finite sub cover
n
say Ai F such that
i 1
n
Ai F for some 1 , 2 ,..., n
i n
Since F , we have
n
F Ai F , but F F
i n
n
Thus F Ai , where if any Ai happens to be in F is deleted. Hence F is compact.
i 1
Example
Let A 0, then each of the following is an open cover of A.
G1 1, ; G2 r 1, r 1 : r Q, r 0
Theorem 5.2
A finite subset of is compact.
Proof
Let x1 , x2 ,..., xn be a finite subset of . If G G is an open cover of K, then
each xi is contained in some set Gi in G. Then the union of the sets in the collection
G 1 ,..., G 2 contains K, which is a finite sub cover of G. Hence K is compact since G
was arbitrary.
Example
Let H 0, . We show that H is not compact. Let G n 1, n for each n N . Then
H Gn , so that G Gn : n is an open cover for H. However if G1 ,..., G n is
n 1
28
Activity 5.1
Show that each the following subset of is not compact by describing an open cover for it
that has no finite subcover:
a) A 1,3
1
b) B : n
n
c) C x Q : 0 x 2
29
LECTURE SIX
SEQEUNCES
6.1 Introduction
6.3 Sequences
Loosely speaking a sequence is a collection of real numbers obeying a particular pattern
or definite rule or order.
Definition
A sequence of real numbers is a function whose domain is the set of natural numbers
1, 2... and range is a subset of . That is f : where for any n there
exists a unique number n such that f n n .
30
If the limit of a sequence exists then the sequence is said to be convergent otherwise the
sequence in said to be divergent.
Example 1
1
Show that lim n 0 .
n
Proof
We want to show that given 0 there is a number N N such that
n 0 , n N .
Now,
n 0 1n 0
1
n
n 1
Certainly 1 n , n 1 .
Choose N such that N 1
31
Example 2
Show that lim n 1
n
1
where n 1 1
n
n2
Proof
Let 0 be given. Then
n 1
1
1 1
n
1
n2
1
n
n2
n 2 1
n 1
3n 2
3
n 1
3n 2 3n 3 1 1
n 1 n 1 n 1
1
n 1
n 1 1
n 1 1
Choose N such that N 1 1 integer then
32
n 3 , n N
Theorem 6.1
A sequence n in has a unique limit.
Proof
Suppose n has two limits 1 and 2 . Then lim
n
n 1 and lim n 2 . Given
n
a) lim
n
n n
b) lim k n k , k constant
n
c) lim
n
n n
d) lim
n
n n , provided that n 0 for all n and 0.
33
Proof
(a) and (b) Exercise
c) Since lim
n
n and lim n given 0 M 1 and M 2 such that
n
n M 1 and n M 2 n
Now given 0 N1 and N 2 such that
n , n .
2m 2m
Now let N max N1 , N 2
n n n n n n
n n n
n n n
M n M n
.
2 2
Activity 6.1
34
4n 2 3 4
1. Show that lim
n 5n 2 2n
.
5
n 1
2. Prove that lim 1
n
n
n 1 n 1
3. Show that lim 1 does not exist.
n
n
Since nk is any subsequence of n , it follows that every subsequence of n
converges to whenever n
Conversely, let every subsequence of n converge to . Then n for n is
a subsequence of itself.
Example
35
Theorem 6.4
36
37
LECTURE SEVEN
SERIES
7.1 Introduction
7.3 Series
Definition (Series)
If x xn is a sequence in , then the infinite series (series) generated by x is the
sequence s sn k 1 defined by
38
Solution
We have the partial series given by
1 1 1 1
sn ...
(1)(2) (2)(3) (3)(4) n n 1
1 1 1 1 1 1 1 1
...
1 2 2 3 3 4 n n 1
1
1
n 1
1
Now lim sn lim 1 1 .
n n
n 1
Theorem 7.1
If an is a convergent series, then lim n
an 0 .
Proof
If a n converges, them the sequence sn of partial sums have a finite limit, say a. But
an sn sn 1 , so lim an lim sn lim sn 1 a a 0 .
n n n
n
Does the series converge or diverge ?
n 1 2n 5
39
Example
Consider the series
1 n 1 2 . Now for all n
we have
1 1
0
n 1 n n 1
2
1
n 1 2 also converges.
Definition
Let an be a sequence in . If the series a n a is to be
converges then the series n
be conditionally convergent.
Theorem 7.3
If a series is absolutely convergent then it is convergent.
Proof
Let n be absolutely convergent. For each n
n n n
So that
0 n n 2 n
If n converges them 2 n converges and by the comparison test, the non-
negative series
n n ) converges.
But n n n n
Therefore n converges being a differences of convergent series.
Corollary 7.4
If n diverges, then n also diverge.
40
Proof
Exercise.
lim ln n ln1 .
n
Thus 1n
n 1
diverges.
Example
The series 1
n
1 n 2 converges absolutely for 1 n / n 2 1 / n 2
1
n
Hence the series converges
n2
41
n
Does the series n
n 1
2
1
converge or diverge?
Solution
n 1
2
an n 2 , an 1
2 n
2n 1
2
1 n 1
an 1
1
2
lim lim lim 1 1 1 1 .
n 2
n a
n
n 2
n n 2
Solution
an 1 2 , an 1 1
n 1
2
n
2
2
an 1 n 1 1 .
lim lim lim
n 1
n a n
n 1 1
n
n
42
Examples
Determine the convergence or divergence of the series 3 e
n n
Solution
an 3n e n , an 1 3n 1 e n 1
3n 1 e n 3 3
lim n 1
. n lim 1
n e 3 n e e
Hence the series diverges.
Theorem 7.7 (Root Test)
Given a series a n ,
1
Let lim
n
an
n
Example
The series 2 e n n
converges
1
n n
For lim 2n lim 2 2 1 .
n e n e e
Example
The series 3 e diverges for
n n
1
n n
3 3 3
lim lim 1.
n en n e e
1
n 1
a n converges.
Example
Since the sequence 1 n is decreasing and lim
n
1 0 , we have that the alternating
n
series 1 / n converges. Since 1 n is divergent being harmonic series, it
n 1
follows that
1 / n is not absolutely convergent hence we conclude that it is conditional
n 1
convergent.
43
Example
1
n
The series
n 2 nn
1
converges since the sequence n is decreasing and has lim
n n
1 n 0 .
n
Activity 7.1
n
3
a)
2n
3 n
b) n!
n!
c) n n
sin 2 n
d) 2
n
5 n
e) n
2
1 n
n 1
f) 2
n 1
2n
g)
n 1
3
44
LECTURE EIGHT
8.1 Introduction
In this lecture we will study countable and uncountable sets. We will show that the
set of all integers is countable but the set of all real numbers is uncountable.
We will also show that an infinite union of countable sets is a countable set.
45
n 1
Proof
For each An there exists 1-1 correspondence. f n : An , so we can write
An An1 , An 2 ,... where f n j Anj . We can now arrange the elements of An in a
n 1
rectangular array:
A1 : A11 A12 A13 A14 ....
A2 : A21 A22 A23 A24 ....
A3 : A 31 A32 A33 A34 ...
A4 : A41 A42 A43 A44 ...
By moving along each diagonal of the array in the manner indicated, we obtain a listing
of all elements in A
n 1
n
A11 , A12 , A21 , A31 , A22 , A13 , A14 , A23 , A32 , A41 ,... .
46
47
Activity 8.2
48
LECTURE NINE
9.1 Introduction
In this lecture we study limits and continuity of functions. We will prove limits
by first principles and also consider both pointwise and uniform continuity of a
function.
49
Example 1
Let f x x 2 1 x . Prove that lim f x 5 .
x 2
Solution
We need to show that given 0 a 0 such that
x 2 f x 5
Now for x ,
f x 5 x 2 1 5 x 2 4 x 2 x 2.
Choose . Then whenever x 2 we have
x2
f x 5 x 2 x 2 x 2 . Hence. lim f x 5 .
x 2
Activity 9.1
50
Properties of limits
[Proofs are similar to those as sequences]
a) If lim f x exists then if is unique
x a
i) lim f x g x L1 L2
x a
L
lim g x 1 provided g x 0 x and L2 0.
f x
iii) x a L
2
Activity 9.2
Evaluate
x2 2x 5
a) lim 2
x 1 x 3x 5
2 x 2 3x 1
lim
b)
x 0 x 1
x4 2
c) lim
x 0 x
4x
d) lim
x 0 x
x 2
e) lim
x 1 x 2
51
Similarly,
If f x L as x a and x a always then we say that x a from the left as write
x a and say that
lim f x L
x a
Activity 9.3
Find
4x
a) xlim
0 x
4x
b) xlim
0 x
x2 1
c) xlim
1 x 1
x2 1
d) lim
x 1 x 1
and
x
lim 1
x 0 x
1 1
b) lim 2
, lim have infinite limit.
x 0 x x 0 x
52
x x
c) lim has infinite limit.
x xx
Activity 9.4
x
b) lim .
x 2 x 2
ii) lim f x f a .
x a
Example
Let
x2 1
, x 1
f x x 1
2 , x 1
Then
x 2 1 x 1 x 1
lim f x lim 2 .
x 1 x 1 x 1 x 1
Also
x2 1
lim f x lim x 1 2 .
x 1 x 1 x 1
53
Example
a) The function f x x 2 is continuous at every x a . For given by 0, a 0
can be found such that
x a x 2 a 2 .
Now,
x2 a2 x a x a
x a xa .
Choose . Then whenever x a we have
xa
x 2 a 2 x a x a x a .
b) Prove that f x x 2 2 x 6 or continuous at x 3
Solution
Given 0 we show that a 0 such that x 3 implies
f x f 3
Now,
f x f 3 x 2 2 x 6 21 x 5 x 3
x 5 x 3
Choose , then whenever x 3 we have
x 5
f x f 3 x 5 x 3 x 5 .
Activity 9.5
1. Prove that
2 x 2 3x 1
lim 1
x 1 x 1
2. Let f x x sin 1 x for x 0 and f 0 0. Show that f x is
continuous at x 0
(Since f x f 0 x sin 1 x x choose )
54
Activity 9.6
2 x 2 3x 1
, x 1
f x x 1
5 , x 1
is discontinuous at x 1. How can we redefine f x so that it is
continuous at x 1.
x2 4x 5
b) Let f x for x 5. How should f x defined so
x 5
that it is continuous at x 5.
Example
55
Solution
56
Now
f x f y x2 y 2 x y x y
x y xy
10 x y
Choose (depending on alone). Then whenever in x y we have
10
f x f y 10 x y 10 .
1
The function f x is uniformly continuous an 2, .
x
Proof
Given 0 and x, y 2, we have,
1 1 1
f x f y x y
x y xy
1
x y
4
1 1
Choose 4 , then whenever y x we have f x f y x y .
4 4
Negation of the definition of uniform continuity on S.
If 0 such that 0 x, y S such that x y but f x f y .
Example
The function f x 1 x is not uniformly continuous in 0,1 .
Solution
Suppose that f is uniformly continuous in 0,1 so that 0 a 0 such that
f x f y whenever x y , x, y 0,1
Let x and y where 0 1 .
1
Then x y .
1 1
But
1 1 1 1
f x f y
x y
Thus f x f y which contradicts the fact that if is uniformly continuous in 0,1
Example
Show that f x x 2 is not uniformly continuous on
Solution
57
1 1
Let 1 and 0 be given. Let x and y . Then x y . But
2 2
1 1 2
f x f y x y x y . 1 .
2 2 2
Thus f is in uniformly continuous on . .
(Why) suppose 2 0 would as well work. We must show that given any
0 x, y such that
x y f x f y 2
For x, if we let y x
2
Then x y .
2
To make
f x f y x y x y
2
We need to have x y . This prompts us to choose 1 8 (How?).
8
Theorem
Let f : S be uniformly continuous on S and suppose that x n is a Cauchy
sequence in S. Then f x n in a Cauchy sequence in . .
Proof
Given any 0 . Since f is uniformly continuous on S a 0 such that
f x f y whenever x y x, y S .
Since x n is Cauchy a number N such that xm xn whenever m, n N .
Then for m, n N we have
f xn f x so f xn in a Cauchy sequence in .
Theorem (Uniform continuity)
Let I a, b be a closed bounded interval in . . Let f : I be a continuous
function on I. Then f is uniformly continuous on I. i.e. every continuous function on a
closed bounded interval is uniformly continuous.
E.g. f x x is uniformly continuous on 5,5 .
2
58
Activity 9.7
59
LECTURE TEN
METRIC SPACES
10.1 Introduction
60
Solution
Clearly M1-M3 are trivial hence we only need to show. M4
x, y, z we have
d x, y xi yi xi zi zi yi
xi zi zi yi
d x, z d z , y .
Activity 10.1
2) Define d on by
d x, y sup x1 x2 , y1 y2 . Verify that d is a metric on 2 , where
x x1 , y1 and y x2 , y2 .
3) Let X 2 and define d : 2 2 by
d x1 , y1 , x2 , y2 x2 x1 y2 y1 for all points
x1 , y1 , x2 , y2 2 .
Show that d is a metric on 2 .
61
62