SMA 2301 Real Analysis I Notes
SMA 2301 Real Analysis I Notes
1
ly, Z is countably infinite.
Theorem 1.2.1: A set is countable if it is equivalent to a subset of N.
Example: We can also show that Z is countable by showing that there exists a bijection
from Z to a subset of N. For instance, define g : Z −→⊆ N by
(
2x if x ≥ 0
g (x) = −x
3 if x < 0.
..
.
An = {an1 , an2 , an3 , · · · }
..
.
2
∞
Solution: Clearly, Q = ∪ En where En = {0/n, ±1/n, ±2/n, ±3/n, · · · }. Now, each En is
n=1
equivalent to Z and is thus countable (since Z is countable). Since Q is the countable union
of countable sets, it is countable.
Further Examples:
1. The set R of real numbers is uncountable.
Proof : Suppose R is countable, i.e., R = {x1 , x2 , · · · }. Let
1 1
I1 = x1 − , x1 +
4 4
1 1
I2 = x2 − , x2 +
8 8
..
.
1 1
In = xn − n+1 , xn + n+1
2 2
..
.
1
The length of In is 2n
so that the sum of all the lengths of In ’s is 21 + 14 + 18 + 16
1
+ · · · = 1.
∞ ∞
But xn ∈ In so that R = ∪ {xn } ⊂ ∪ In . This means that the whole real line (whose
n=1 n=1
length is infinite) would be covered by (contained in) a union of intervals whose lengths
add up to 1. This is a contradiction. Therefore, R must be uncountable.
2. Let A = (0, ∞). Then A ∼ R since the function f : R −→ A defined by f (x) = ex is
both one-to-one and onto. Since R is uncountable and A ∼ R, then A is uncountable.
3. In general, any interval of real numbers is uncountable.
Theorem 1.2.6: Let A1 , A2 , · · · , An be a finite family of countable sets. Then the Cartesian
product A1 × A2 × · · · × An is countable.
Examples:
1. Z × Z is countable. To prove this
consider the fuction f : Z × Z −→⊆ N defined by
2a 3b if a ≥ 0, b ≥ 0
5−a 7b
if a < 0, b ≥ 0
f (a, b) =
11a 13−b if a ≥ 0, b < 0
−a −b
17 19 if a < 0, b < 0.
3
2 Bounded and Unbounded Sets
2.1 Upper Bounds and Lower Bounds
Definition 2.1.1: A real number m is called an upper bound (u.b) of a non-empty subset A
of R if x ≤ m for all x ∈ A. A real number n is called an lower bound (l.b) of a non-empty
subset A of R if n ≤ x for all x ∈ A.
The set of all upper bounds of a set A is denoted by UA while the set of all lower bounds of
A is denoted by LA .
Remark 2.1.1 :
(i ) A lower bound or an upper bound of A need not be an element of A.
(ii ) A lower bound or an upper bound of A is not unique.
Proposition 2.1.1: Let A ⊂ R.
(a) If m, m′ ∈ R with m′ > m and m ∈ UA , then m′ ∈ UA .
(b) If n, n′ ∈ R with n′ < n and n ∈ LA , then n′ ∈ LA .
Definition 2.1.2: If a set A has an upper bound, then A is said to be bounded above. If A
has a lower bound, then A is said to be bounded below. If A has both an upper bound and
a lower bound, then we say that A is bounded. If A is neither bounded nor bounded above
or below, we say that A is unbounded. By definition, A is bounded if A ⊆ [n, m] for some
interval [n, m] of finite length.
Examples:
1. Let A = (1, 3]. Then A = {x | 1 < x ≤ 3}. If m ∈ R such that m ≥ 3, then m ∈ UA ,
and if n ∈ R such that n ≤ 1, then n ∈ LA . Therefore, A is bounded.
2. The set N = {1, 2, 3, 4, · · · } is bounded below but not above. For instance, −10 is a
lower bound of N (in fact, every real number n ≤ 1 is a lower bound of N).
Remark 2.1.2 : Examples 1 and 2 above show that a bounded set need not be countable
and vice versa.
n
3. The number 1 is an upper bound of the set B = 12 , 43 , 78 , · · · , 2 2−1
n , · · · . On the other
1 1
hand, 2 is a lower bound of B. In fact, if x ∈ B, then x ≥ 2 and x < 1.
4. The set C = n1 : n ∈ N , i.e., C = 1, 21 , 13 , 41 , · · · is bounded since if x ∈ C, then
0 < x ≤ 1. Each real number k ≥ 1 is an upper bound of C while each real number
l ≤ 0 is a lower bound of C. Hence, C has infinitely many lower bounds and infinitely
many upper bounds.
5. The set Z = {· · · , −3, −2, −1, 0, 1, 2, 3, · · · } is unbounded.
6. The set Z2 = {z 2 | z ∈ Z} = {0, 1, 4, 9, 16, 25 · · · } is bounded below while the set
−Z2 = {−z 2 | z ∈ Z} = {· · · , −25, −16, −9, −4, −1, 0} is bounded above.
7. The set Y = {sin x | 0 ≤ x < 2π} is bounded by −1 and 1. On the other hand, the set
K = {tan x | 0 ≤ x < 2π} is unbounded. However, K ′ = {tan x | 0 ≤ x ≤ π/2} is bounded
below.
4
2.2 Supremums and Infimums
From Examples 2 and 3 above, infinitely many real numbers greater than −10 are lower
bounds of N, but no number less that 1 is an upper bound of B. This leads us to the concept
of least upper bound and greatest lower bound.
Definition 2.2.1: Let A ⊂ R. An element u ∈ R is called the least upper bound (l.u.b) of
A or supremum of A, written l.u.b A or sup A, if:
(i ) u ∈ UA (i.e., u is an upper bound of A),
(ii ) u ≤ m for all m ∈ UA .
Definition 2.2.2: Let A ⊂ R. An element l ∈ R is called the greatest lower bound (g.l.b) of
A or infimum of A, written g.l.b A or inf A, if:
(i ) l ∈ LA (i.e., l is a lower bound of A),
(ii ) l ≥ n for all n ∈ LA .
Remark 2.2.1 : If A, B ⊂ R such that A ⊆ B, then inf B ≤ inf A and sup A ≤ sup B.
Theorem 2.2.1: If α is an upper bound of a set A ⊂ R and α ∈ A, then α is the supremum
of A.
Proof : Suppose α, β ∈ A and α, β ∈ UA . Since α ∈ UA and β ∈ A, then β ≤ α. In a similar
manner, since β ∈ UA and α ∈ A, then α ≤ β. The two inequalities hold simultaneously if
and only if α = β. So we cannot have two upper bounds in a set. Therefore, if α ∈ A and
α ∈ UA , then α is the supremum of A. @
Theorem 2.2.2: If a set has an infimum, then the infimum is unique.
Proof : Let A be a non-empty subset of R. Suppose α = inf A and also β = inf A. Then
α, β ∈ LA . If α = inf A, then α ≥ n for all n ∈ LA . But β ∈ LA . So α ≥ β. Similarly,
if β = inf A, and α ∈ LA , then β ≥ α. Now, the inequalities α ≥ β and β ≥ α hold
simultaneously if and only if α = β. Therefore, inf A is unique. @
Remark 2.2.2 : Theorems 2.2.1 and 2.2.2 hold if we replace supremum with infimum and
vice versa.
Examples:
1. Let A = (3, 4). If n ∈ LA , then n ≤ 3, and if m ∈ UA , then m ≥ 4. Hence, inf A = 3
and sup A = 4.
n
2. Let B = 21 , 34 , 87 , · · · , 2 2−1 1
n , · · · . Then inf B = 2 and sup B = 1. In this case, inf B ∈ B
and sup B ∈
/ B.
3. Consider the set N = {1, 2, 3, · · · } of positive integers. Then inf N = 1, and sup N = ∞
since N has no upper bound.
4. Let C = {x} for x ∈ R. Then inf C = sup C = x.
5. If D = 0, 12 , 32 , 43 , 65 , 67 , · · · , then inf D = 0 and sup D = 1.
6. The empty set ∅ is bounded since ∅ ⊂ [n, m] for any interval [n, m] of finite length.
Thus every number m ∈ R is an upper bound of ∅ and so ∅ does not have a supremum.
Similarly, ∅ does not have an infimum.
5
Theorem 2.2.3: Every non-empty set of real numbers that is bounded above has a least
upper bound in R.
Remark 2.2.3 : Theorem 2.2.3 above is called the completeness axiom of real numbers or
the least upper bound axiom.
Exercise:
Find the supremum and infimum of each of the following sets:
(a) A = {1/2, 3/2, 5/2, 7/2, 9/2, 11/2, · · · }.
(b) B = {1/2, −2/3, 3/4, −4/5, 5/6, −6/7, · · · }.
(c) C = {sin x | 0 ≤ x < 2π}.
(d ) D = tan x | 0 ≤ x < π2 .
(ii ) The name triangle inequality comes from the property of triangles where the sum of
the lengths of any two sides of a triangle is always greater than or equal to the length
of the remaining side.
(iii ) The distance function d on X is neither one-to-one (since d (x, y) = d (y, x) for all
x, y ∈ X) nor onto (since negatives in R do not have pre-images, by M1 ).
Definition 3.1.2: Let d be a metric on X. The pair (X, d) is called a metric space. Elements
in a metric space are called points.
Remark 3.1.2 : If it is clear what the distance function d on X is, we write the metric space
(X, d) simply as X.
Examples:
1. The most important examples of metric spaces are the Euclidean spaces Rn especially
R (the real line) and R2 (the complex plane). The distance d : Rn × Rn −→ R on Rn is
defined as follows:
6
Let x = (x1 , x2 , · · · , xn ) and y = (y1 , y2 , · · · , yn ) be points in Rn . Then
d (x, y) = |x − y|
= |(x1 − y1 , x2 − y2 , · · · , xn − yn )|
q
= (x1 − y1 )2 + (x2 − y2 )2 + · · · (xn − yn )2 (positive square root).
For instance,
(a) In R, d −1, 32 = −1 − 3
= − 52 = 25 .
2
b x = (x1 , x2 )
b
y = (y1 , y2 )
Then
d (x, y) = |x − y|
= |(x1 − y1 , x2 − y2 )|
q
= (x1 − y1 )2 + (x2 − y2 )2 (positive square root).
Then d is a metric on X.
Note 3.1.1 : Every subset Y of a metric space X is a metric space with the same distance
function since if conditions M1 , M2 , and M3 hold for all x, y, z ∈ X, they also hold if we
restrict x, y, z to lie in Y .
Definition 3.1.3: Let x ∈ Rn and let r > 0. Then
7
(a) the open ball with centre at x and radius r is the set of all y ∈ Rn such that |y −x| < r.
(b) the closed ball with centre at x and radius r is the set of all y ∈ Rn such that |y−x| ≤ r.
Examples:
1. In R, balls are intervals.
r1 r1 r2 r2
b b
x1 x2
Open Interval Closed Interval
b
b b
b
b b
b b
b
b b
b b b
b
b
b b
b
b b
b
b b
b b
b
b b
b
b b
b b
b b b
b b
b b
b
b
b
b b
b b
b
b b b
b b
b b
b
b b
b
b
b
b
b b
b b
b b
b
b
b
b b
b b
b b b b
b
b
b
b
b b
b
b b
b
b
b
b
b
b
b
b
3.2 Neighbourhoods
Definition 3.2.1: Let N ⊆ R and let x ∈ R. Then N is a neighbourhood (written nbhd) of
x if there exist δ > 0 such that (x − δ, x + δ) ⊆ N.
Remark 3.2.1 : Clearly, if N is a neighbourhood of x, then x ∈ N. This implies that if
x∈
/ N, then N cannot be a neighbourhood of x.
Examples:
1. Consider the set A = (1, 4). In this case, A is a neighbourhood of 3 since if we take
δ = 0.1, then (3 − 0.1, 3 + 0.1) = (2.9, 3.1) ⊂ A. In general, if 1 < x < 4, then A is a
neighbourhood of x. On the other hand, A is not a neighbourhood of 1 since for every
δ > 0, (1 − δ, 1) ⊂ (1 − δ, 1 + δ) but (1 − δ, 1) ∩ A = ∅ so that (1 − δ, 1 + δ) * A. In a
similar manner, for any δ > 0, (4, 4 + δ) ⊂ (4 − δ, 4 + δ) but (4, 4 + δ) ∩ A = ∅ so that
(4 − δ, 4 + δ) * A. Therefore, A is not a neighbourhood of 4.
8
2. In general, the set A = (a, b) or (a, b] or [a, b) or [a, b] is a neighbourhood of every x ∈ A
such that a < x < b. However, A is not a neighbourhood of x if x ∈ / (a, b). For instance,
in Example 1 above, A is not a neighbourhood of 0, 1, 4, 5.5, etc.
Proposition 3.2.1: If U is a neighbourhood of x and U ⊆ V , then V is also a neighbourhood
of x.
Proof : Suppose U is a neighbourhood of x. Then there exists δ > 0 so that (x − δ, x + δ) ⊆ U.
But U ⊆ V . Hence, (x − δ, x + δ) ⊆ V . Therefore, V is also a neighbourhood of x.
Exercise:
Consider the set A = [−1, 3) ∪ {8}. Show that:
(a) A is a neighbourhood of 0.
(b) A is not a neighbourhood of either 3 or 8.
(c) A is not a neighbourhood of 5.
9
Proof : Suppose x ∈ int (Q). Then there exists δ > 0 such that (x − δ, x + δ) ⊆ Q. But
this is not the case since there are irrational numbers between x − δ and x + δ (from
the fact that every interval of positive length contains both rational and irrational
numbers). Therefore, int (Q) = ∅. A similar argument shows that int (Qc ) = ∅.
7. Let x ∈ R and let δ = 1. Then (x − 1, x + 1) ⊂ R. Hence, every real number is an inte-
rior point of R. Therefore, int (R) = R.
Definition 3.3.2: Let A be a set of real numbers. The exterior of A, denoted by ext (A), is
the interior of its complement, i.e., ext (A) = int (Ac ).
Example: If A = (a, b), then ext (A) = int ((−∞, a] ∪ [b, ∞)) = (−∞, a) ∪ (b, ∞).
Exercise:
1. Find int (A) given that A = (−2, −1] ∪ {0} ∪ [1, 2].
2. Show that if A, B ⊆ R, then:
(a) int (A ∩ B) = int (A) ∩ int (B).
(b) it is not necessarily the case that int (A ∪ B) = int (A) ∪ int (B).
10
Remark 3.5.1 :
(i ) A point x is a limit point of A if there are points in A that are arbitrarily close to x.
(ii ) A limit point of a set A need not be an element of A. Hence, the derived set A′ of A
need not be a subset of A.
(iii ) From definition, an isolated point of A can not be a limit point of A. In fact, if x ∈ A
/ A′ , then x is an isolated point of A. On the other hand, if x ∈ A′ , then x is
and x ∈
not an isolated point of A.
Theorem 3.5.1: For a set A, if x ∈ A and x ∈ / A′ , then x is an isolated point of A.
′
Proof : Let x ∈ A. If x ∈
/ A , then there exists δ > 0 such that (x − δ, x + δ) ∩ (A\ {x}) = ∅.
Since x ∈ (x − δ, x + δ) and x ∈ A, this means that (x − δ, x + δ) ∩ A = {x} for some δ > 0.
Hence, x is an isolated point of A.
Examples:
1. Let A = (a, b) and let x ∈ A. Then x ∈ A′ since for any δ > 0, the interval (x − δ, x + δ)
contains points of A other than x (infinitely many points in fact). Hence, A ⊆ A′ .
2. Consider the set A = (1, 3) ∪ {8}. Then for any δ > 0, (1, 1 + δ) ∩ (A\ {1}) 6= ∅. This
implies that (1 − δ, 1 + δ) ∩ (A\ {1}) 6= ∅ for any δ > 0. Hence, 1 ∈ A′ . In a similar
manner, for any δ > 0, (3 − δ, 3) ∩ (A\ {3}) 6= ∅ so that (3 − δ, 3 + δ) ∩ (A\ {3}) 6= ∅
for any δ > 0, meaning 3 ∈ A′ . On the other hand, 8 ∈ / A′ since if we take δ = 1, then
(8 − δ, 8 + δ) ∩ (A\ {8}) = (7, 9) ∩ (A\ {8}) = ∅ (in fact, 8 is an isolated point of A).
Remark 3.5.2 : In general, if A = (a, b) or (a, b] or [a, b) or [a, b] for a < b, then a, b ∈ A′ .
This together with Example 1 above mean that [a, b] ⊆ A′ .
3. Let A = (a, b) or (a, b] or [a, b) or [a, b]. Then A′ = [a, b]. To show this, from Remark
3.5.2, we know that [a, b] ⊆ A′ . Hence, it suffices to show that if x ∈ R and x ∈ / [a, b],
i.e., x < a or x > b, then x ∈/ A′ . Suppose x < a. Let δ < a − x. Then x + δ < a and
a∈ / (x − δ, x + δ) so that (x − δ, x + δ) ∩ (A\ {x}) = ∅. Similarly, suppose x > b. Let
δ < x − b. Then b < x − δ and b ∈ / (x − δ, x + δ) so that (x − δ, x + δ) ∩ (A\ {x}) = ∅.
′
In either case, x ∈/ A.
4. The set Z of integers has no limit points, i.e., Z′ = ∅.
Proof : Suppose Z has a limit point x. Then for any δ > 0, (x − δ, x + δ)∩(Z\ {x}) 6= ∅.
But for any real number x, there exists n ∈ Z such that n ≤ x < n + 1. Now, if we let
δ < min {|x − n|, |x − n − 1|}, the interval n ≤ x < n + 1 contains no integers different
from x, i.e., (x − δ, x + δ) ∩ (Z\ {x}) = ∅. Hence, no real number is a limit point of Z.
5. Q′ = R.
Proof : Suppose x ∈ R. Then for any δ > 0, the interval (x − δ, x + δ) contains infinitely
many points of Q other than x. Thus, (x − δ, x + δ) ∩ (Q\ {x}) 6= ∅. Therefore, every
real number is a limit point of Q.
Exercise:
1. Show that N′ = ∅.
2. Show that if A = n1 : n ∈ N , then A′ = {0}.
11
Proof : Let x ∈ A′ . Then (x − δ, x + δ) ∩ (A\ {x}) 6= ∅ for all δ > 0, and it follows that if
A ⊆ B, (x − δ, x + δ) ∩ (B\ {x}) 6= ∅ for all δ > 0. Hence, x ∈ B ′ . Therefore, A′ ⊆ B ′ .
Theorem 3.5.3: If A, B ⊂ R, then (A ∪ B)′ = A′ ∪ B ′ .
Proof : Since A ⊆ A ∪ B, then by Theorem 3.5.2, A′ ⊆ (A ∪ B)′ . Similarly, B ⊆ A ∪ B so
that B ′ ⊆ (A ∪ B)′ . Therefore, A′ ∪ B ′ ⊆ (A ∪ B)′ .
Now, suppose x ∈ (A ∪ B)′ . Then
(x − δ, x + δ) ∩ [(A ∪ B) \ {x}] 6= ∅ for all δ > 0
⇒ (x − δ, x + δ) ∩ [(A\ {x}) ∪ (B\ {x})] 6= ∅ for all δ > 0
⇒ [(x − δ, x + δ) ∩ (A\ {x})] ∪ [(x − δ, x + δ) ∩ (B\ {x})] 6= ∅ for all δ > 0
⇒ (x − δ, x + δ) ∩ (A\ {x}) 6= ∅ or (x − δ, x + δ) ∩ (B\ {x}) 6= ∅, for all δ > 0
⇒ x ∈ A′ or x ∈ B ′
⇒ x ∈ A′ ∪ B ′ .
Hence, (A ∪ B)′ ⊆ A′ ∪ B ′ .
Therefore, (A ∪ B)′ = A′ ∪ B ′ .
Theorem 3.5.4: Let x ∈ R and A ⊂ R. If x is a limit point of A, then any neighbourhood
of x contains infinitely many members of A.
Proof : Let N be a neighbourhood of x containing only a finite number of points of A, i.e.,
N ∩ A is finite. Then N ∩ A\ {x} is also finite. Suppose N ∩ A\ {x} = {y1 , y2 , · · · , yn }. We
show that there exists δ > 0 such that (x − δ, x + δ) ∩ N does not contain any member of
A\ {x}. Since both N and (x − δ, x + δ) are neighbourhoods of x, so is their intersection.
This will prove that there is a neighbourhood of x containing no element of A\ {x} hence
proving x is not a limit point of A. Let δ = min {|x − y1 |, |x − y2 |, · · · , |x − yn |}. Since x 6= yi
(i = 1, · · · , n) and δ > 0, then (x − δ, x + δ) ∩ N contains no point of A other than x, hence
the proof. @
Corollary 3.5.1:
(a) If x has a neighbourhood which only contains finitely many members of A, then x
cannot be a limit point of A.
(b) A finite point set has no limit points.
Examples:
′
1. Let A = {1, 2, 3, 4, 5, 6, 7, 8}. Then, by Corollary 3.5.1, A = ∅.
2. Show that it is not always the case that (A ∩ B)′ = A′ ∩ B ′ .
Solution: Consider the sets A = (−1, 1] and B = [1, 2). Then A ∩ B = {1} so that
(A ∩ B)′ = {1}′ = ∅. On the other hand, A′ ∩ B ′ = [−1, 1] ∩ [1, 2] = {1}. Accordingly,
(A ∩ B)′ 6= A′ ∩ B ′ .
12
open if it is (or contains) a neighbourhood of each of its points. In other words, A is
open if every point of A is an interior point of A.
(b) A is closed if every limit point of A is a point of A, i.e., if A′ ⊆ A.
Theorem 3.6.1: A set A is open if and only if its complement is closed.
Proof : Suppose A is open and suppose x is a limit point of Ac . Then for every δ > 0,
(x − δ, x + δ) ∩ (Ac \ {x}) 6= ∅, i.e., for every δ > 0, the interval (x − δ, x + δ) contains a
point y ∈ Ac such that y 6= x. Hence, (x − δ, x + δ) * A for every δ > 0, implying that
x∈/ int (A). Since A is open, then x ∈ / A so that x ∈ Ac . It now follows that Ac is a closed.
Conversely, suppose Ac is a closed. Let x ∈ A. Then x ∈ / Ac and x is not a limit point
c
of A (since a closed set contains all its limit points). Hence, there exists δ > 0 such that
(x − δ, x + δ) ∩ Ac = ∅, i.e., (x − δ, x + δ) ⊆ A. Thus, x ∈ int (A), and it follows that A is
open. @
Corollary 3.6.1: A set A is closed if and only if its complement is open.
Theorem 3.6.2: Let A ⊂ R. Then:
(a) Å is open.
(b) A is open if and only if A = Å.
(c) If B is open and B ⊆ A, then B ⊆ Å.
Proof :
(a) We need to show that if x ∈ Å, then there exists δ > 0 such that (x − δ, x + δ) ⊆ Å.
Suppose x ∈ Å. Then there exists δ > 0 such that (x − δ, x + δ) ⊆ A. We show that
(x − δ, x + δ) ⊆ Å by showing that every point of (x − δ, x + δ) is an interior point of
A. Let y ∈ (x − δ, x + δ) and let
13
example, A′ = A). Alternatively, it is closed since Ac = (−∞, a) ∪ (b, ∞), a union of
open sets, which is open.
3. Let A = {1, 2, 3, 4, 5, 6, 7, 8}. From a previous example, int (A) = ∅ =6 A. Hence, A is
not open. On the other hand, A contains all it limit points, namely none (see a previous
example). Hence, A is closed. Similarly, the set N is closed but not open.
4. Sets that are both open and closed:
From a previous example, int (R) = R, implying that R is open. But ∅c = R\∅ = R,
implying that the empty set ∅ is closed.
Now, since there are no elements in ∅, then for every x ∈ ∅, (x − δ, x + δ) ⊂ ∅ for any
δ > 0. Hence, ∅ is open. But Rc = R\R = ∅. Hence, R is closed.
Therefore, R and ∅ are sets that are both open and closed; in fact, these are the only
sets with this property.
5. Sets that are neither open nor closed :
(a) Let a, b ∈ R such that a < b. Consider the set A = [a, b). Then A is not open since
a ∈ A but a ∈ / Å. Similarly, A is not closed since b ∈ A′ but b ∈
/ A.
Alternatively, consider the set Ac = (−∞, a) ∪ [b, ∞). In this case, Ac is not closed
since a is a limit point of Ac but a ∈ / Ac , implying that A is not open. Besides, Ac
is not open since b ∈ Ac but b ∈ / int (Ac ), implying that A is not closed either.
Therefore, [a, b) is neither open nor closed. The same is true for (a, b].
(b) The set Q is neither open nor closed. As seen earlier, none of the points of Q is an
interior point. Hence, Q is not open, implying that Qc is not closed. In a similar
manner, none of the points of Qc is an interior point. Hence, Qc is not open, and
so (Qc )c = Q is not closed. Therefore, Q and Qc are examples of subsets of R that
are neither open nor closed.
Remark 3.6.2 : Being closed is not the opposite of being open, i.e., a set is not either open
or closed, it can be neither.
6. Let x ∈ R. Then {x} is closed since {x}c = (−∞, x) ∪ (x, ∞) is open. Alternatively,
{x} is closed since it contains all its limit points, namely none. On the other hand, {x}
is not open since, clearly, there does not exist δ > 0 such that (x − δ, x + δ) ⊆ {x}.
Exercise:
1. Show that Z is closed but not open.
2. Show that
each of the sets below is neither open nor closed:
(a) A = n1 : n ∈ N .
(b) B = [1, 2) ∪ {3}
Theorem 3.6.3: Let {Gi } be an infinite collection of open sets and {Hi } an infinite collection
of closed sets. Then:
∞
(a) ∪ Gi is open (i.e., an arbitrary union of open sets is open).
i=1
n
(b) ∩ Gi is open (i.e., a finite intersection of open sets is open).
i=1
n
(c) ∪ Hi is closed (i.e., a finite union of closed sets is closed).
i=1
14
∞
(d ) ∩ Hi is closed (i.e., an arbitrary intersection of closed sets is closed).
i=1
Proof :
∞ ∞
(a) We prove that if x ∈ ∪ Gi , then x is an interior point of ∪ Gi , i.e., there exists δ > 0
i=1 i=1
∞ ∞
such that (x − δ, x + δ) ⊆ ∪ Gi . Now, suppose x ∈ ∪ Gi . Then x ∈ Gi for at least
i=1 i=1
one i, and since Gi is open, x is an interior point of Gi . Hence, there exists δi > 0 such
∞
that (x − δi , x + δi ) ⊆ Gi . Therefore, (x − δi , x + δi ) ⊆ ∪ Gi .
i=1
n n n
(b) If ∩ Gi = ∅, then ∩ Gi is open since ∅ is open. On the other hand, suppose ∩ Gi 6= ∅
i=1 i=1 i=1
n
and let x ∈ ∩ Gi . Then, x ∈ Gi for every i = 1, 2, · · · , n. But each Gi (i = 1, 2, · · · , n)
i=1
is open. So, for each i = 1, 2, · · · , n, there exists δi > 0 such that (x − δi , x + δi ) ⊆ Gi .
Now, let δ = min {δ1 , · · · , δn }. Since δi > 0 for all i = 1, 2, · · · , n, then δ > 0. Hence,
∞
(x − δ, x + δ) ⊆ Gi for every i = 1, 2, · · · , n, and so (x − δ, x + δ) ⊆ ∩ Gi . Therefore,
i=1
n n n
x is an interior point of ∩ Gi , and since x is an arbitrary point of ∩ Gi , then ∩ Gi
i=1 i=1 i=1
is open.
Remark 3.6.3 : The intersection of an infinite number of open sets need not be open.
Counterexample:
In R, let Gn = − n1 , n1 , n ∈ N, i.e., G1 = (−1, 1), G2 = − 12 , 12 , G3 = − 13 , 31 , · · · . Then
∞
Gn is open for each n = 1, 2, · · · . However, ∩ Gn = {0}, which is not open (by Example 6
n=1
above).
(c) Hi is closed implies Hic is open, for each
i = 1, 2, · · · , n. So, by part (b) of the theorem,
n n c
∩ Hic is open, and by Theorem 3.6.1, ∩ Hic is closed. But by the De Morgan’s
i=1 i=1
n
c n n n
law, ∩ Hic = ∪ (Hic )c = ∪ Hi . Therefore, ∪ Hi is closed.
i=1 i=1 i=1 i=1
Remark 3.6.4 : The union of an infinite collection of closed sets need not be closed.
Counterexample:
, n ∈ N, i.e., H1 = − 12 , 12 , H2 = − 32 , 23 , H3 = − 34 , 34 , · · · .
n n
In R, let Hn = − n+1 , n+1
∞
Then Hn is closed for each n = 1, 2, · · · . However, ∪ Hn = (−1, 1), which is not closed.
n=1
15
Remark 3.7.1 : The closure A of a set A is the intersection of all closed supersets of A.
Examples:
′
1. ∅ = ∅ ∪ ∅ = ∅ ∪ ∅ = ∅.
′
2. {x} = {x} ∪ {x} = {x} ∪ ∅ = {x}.
3. Consider the set A = {1, 2, 3, 4, 5, 6, 7, 8}. From a previous example, A′ = ∅. Hence,
A = A ∪ A′ = A ∪ ∅ = A.
′
4. (a, b) = (a, b) ∪ (a, b) = (a, b) ∪ [a, b] = [a, b].
5. If B = [−1, 1), then B ′ = [−1, 1] and B = B ∪ B ′ = [−1, 1].
6. If C = (0, 1] ∪ {3}, then C ′ = [0, 1] and C = C ∪ C ′ = [0, 1] ∪ {3}.
7. N = N ∪ N′ = N ∪ ∅ = N.
′
8. Q = Q ∪ Q = Q ∪ R = R. Similarly, Qc = R.
Exercise:
1. Show that Z = Z.
2. Let A, B ⊆ R. Prove that:
(a) if A ⊆ B, then A ⊆ B.
(b) A ∪ B = A ∪ B.
(c) it is not always the case that A ∩ B 6= A ∩ B.
Theorem 3.7.1: Let A ⊂ R. Then:
(a) A is closed.
(b) A = A if and only if A is closed.
(c) If B is closed and A ⊂ B, then A ⊂ B.
Proof :
(a) Since A is the intersection of all closed supersets of A, then, by Theorem 3.6.3, A is
closed.
(b) Suppose A = A. From part (a) of the theorem, A is closed. Therefore, A is closed.
Conversely, suppose A is closed. Then A′ ⊆ A, and A = A ∪ A′ = A.
(c) Suppose A ⊂ B where B is closed. Then A′ ⊂ B ′ and B ′ ⊆ B so that A′ ⊂ B. There-
fore, A = A ∪ A′ ⊂ B. @
Remark 3.7.2 : By parts (a) and (c) of Theorem 3.7.1, A is the smallest closed subset of
R that contains A.
Examples:
1. From Examples 1, 2, 3 and 7 above, the empty set ∅, the singleton set {x}, the set
A = {1, 2, 3, 4, 5, 6, 7, 8}, and N, are closed since ∅ = ∅, {x} = {x}, A = A and N = N.
2. From Examples 4, 5, 6 and 8 above, the sets (a, b), B = [−1, 1), C = (0, 1] ∪ {3}, Q,
and Qc , are not closed since (a, b) 6= (a, b), B 6= B, C 6= C, Q 6= Q, and Qc 6= Qc .
16
Exercise:
1. Show that A = [1, 2) ∪ {3} is neither open nor closed.
2. Prove that Z is closed.
2. Let A ⊆ R. Prove that if A is open, then A′ = A.
17
3.9 Dense Sets
Definition 3.9.1: Let A ⊂ R. Then A is said to be dense (in R) if A ∩ (a, b) 6= ∅ for each
open interval (a, b). More generally, suppose A, B ⊂ R. We say that A is dense in B if every
open interval that intersects B also intersects A.
Examples:
1. The set Q is dense in R since for any interval (a, b) in R, Q ∩ (a, b) 6= ∅.
2. Q is dense in Qc . The converse is also true.
3. Z is not dense in R since 12 , 43 ∩ Z = ∅.
18
that A1 ∩I1 = ∅. Now, A2 is also nowhere dense in R. So, there exists an open interval I2 ⊂ I1
such that A2 ∩ I2 = ∅. Proceeding in this manner we obtain intervals I1 ⊃ I2 ⊃ I3 ⊃ · · · ⊃ In
such that Ai ∩ Ii = ∅ for i = 1, 2, · · · , n. Since In ⊂ Ii for i = 1, 2, · · · , n, then Ai ∩ In = ∅
for i = 1, 2, · · · , n. Thus,
n n n
∪ Ai ∩ In = ∪ (Ai ∩ In ) = ∪ ∅ = ∅,
i=1 i=1 i=1
Examples:
1. The collection
1 1 1 3 2 5 3 7
T = 1 − ,2 − : n ∈ N = (0, 1) , , , , , , ,···
n n 2 2 3 3 4 4
∞
1 − n1 , 2 − 1
is an open cover for the set A = [1/2, 2) since A ⊂ ∪ n
.
n=1
19
Proof : The collection T = {(−n, n) : n ∈ N} is an open cover for any set A ⊆ R. The union
of any finite subcollection will be an interval of the form (−n0 , n0 ). If A is compact, there
must be an interval (−n0 , n0 ), so that A ⊂ (−n0 , n0 ), and so A is bounded. @
Example: The collection
1 1
T = a− ,b − : n∈N
n n
1 1 1 1 1 1
= (a − 1, b − 1) , a − , b − , a− ,b− , a − ,b− ,···
2 2 3 3 4 4
∞
is an open cover for the set A = [a, b) since A ⊂ ∪ a − n1 , b − n1 . In this case, the union
n=1
of any finite subcollection of T has the form a − n11 , b − n12 , and hence does not cover A.
Therefore, A = [a, b) is not compact.
Remark 3.10.3 : The set A in the preceeding example is bounded but not closed. This
brings us to the following theorem:
Theorem 3.10.2: If A is a compact set, then A is closed.
Proof : If A is not
closed, ∞ be a limit point x of A with x ∈
there must / A. The collection
T = {Gn }∞ 1 1
n=1 = R\ x − n
, x + n n=1
is an open cover for A. In order for A to be compact,
k
there must be a finite subcollection {Gni }ki=1 of T that covers A. Since ∪ Gni = Gn′ where
i=1
k
n = max {n1 , n2 , · · · , nk }, we have A ⊂ ∪ Gni = Gn′ = R\ x − n′ , x + n1′ or equivalently,
′ 1
i=1
A ∩ x − n1′ , x + n1′ = ∅. But A ∩ x − n1′ , x + n1′ = ∅ implies that x is an exterior point of
A, and therefore not a limit point of A. This contradiction means that A is not compact,
and the proof is complete. @
Remark 3.10.4 : Theorems 3.10.1 and 3.10.2 prove that a compact set need be both closed
and bounded. The next theorem asserts that these two conditions are also sufficient for
compactness.
Theorem 3.10.3 (Heine-Borel Theorem): The set A ⊆ R is compact if and only if A is
closed and bounded.
Example: Let A = {1, 2, 3, 4, 5, 6, 7, 8}. Then A is closed and bounded. Hence, by Theorem
3.10.3, A is compact.
20
Remark 4.1.1 : The sequence illustration should not be confused with set notation. In sets,
the order of elements does not matter, but in sequences, it does. Thus, a sequence {1, 2, 3, 4}
is different from {1, 3, 4, 2}. In set notation, these would be considered equal.
Examples:
1. {1} = {1, 1, 1, 1, · · · }.
2. {2n}∞
n=1 = {2, 4, 6, 8, · · · }.
∞
3. (−1)n+1 n=1 = {1, −1, 1, −1, · · · }.
Definition 4.1.2: Let {an } be a sequence of real numbers and consider the sequence {ni }
of positive integers such that n1 < n2 < n3 < · · · . Then the sequence {ani } is called a sub-
sequence of {an }. If {an } = {a1 , a2 , a3 , a4 , · · · } is a sequence, then {ani } = {a21 , a42 , a63 , · · · }
is a subsequence.
Remark 4.1.2 : A subsequence {ani } of a sequence {an } is itself a sequence and the numbers
n1 , n2 , · · · themselves form a subsequence of the sequence of positive integers 1, 2, 3, · · · .
Examples:
∞
1. Consider the sequence {(−1)n }n=1 = {−1, 1, −1, 1, −1, 1, · · · }. Then {−1, −1, −1, · · · }
∞
and {1, 1, 1, · · · } are subsequences of {(−1)n }n=1 .
2. The sequence {1, 2, 1, 3, 1, 4, 1, 5, · · · } has subsequences {1, 1, 1, 1, · · · } and {1, 2, 3, 4, · · · }.
21
an < −M for all n ≥ N. If a sequence {an }∞ lim an 6= ±∞,
n=1 of real numbers diverges but n→∞
we say that the sequence oscillates.
Theorem 4.2.1: A point x is a limit point of a set A if and only if there exists a sequence
{xn }∞
n=1 in A such that lim xn = x.
n→∞
Examples:
1. The sequence n1 = 1, 21 , 13 , 41 , · · · converges to 0.
1
− 0 < ε for all n ≥ N (1)
n
or
1
< ε for all n ≥ N. (2)
n
If we choose N such that N1 < ε, then (1) and (2) will hold since n1 ≤ N1 if n ≥ N. Now,
1
N
< ε if and only if n > 1ε . Hence, we can choose N ∈ N such that N > 1ε proving that
lim n1 = 0.
n→∞
Remark 4.2.2 : The limit 0 of the sequence in Example 1 above is not equal to any term
of the sequence.
2. The sequence {an }∞ ∞
n=1 = {n}n=1 = {1, 2, 3, · · · } diverges.
Proof : Suppose the contrary, i.e., an −→ L for some L ∈ R. Then for every ε > 0 there
exists a positive integer N = N (ε) for which
or
−1 < n − L < 1 for all n ≥ N
or
L − 1 < n < L + 1 for all n ≥ N.
This means that all values of n greater than or equal to N lie between L − 1 and L + 1,
a contradiction. Hence, the sequence diverges.
Remark 4.2.3 : It is obvious that {an }∞ ∞
n=1 = {n}n=1 diverges to ∞, by Definition 4.2.3. For
given M > 0, choosing N ∈ N such that N ≥ M, then an = n ≥ M for all n ≥ N.
∞
3. The sequence {(−1)n }n=1 diverges.
Proof : The terms of the sequence are −1, 1, −1, 1, · · · . Suppose the sequence converges
to L for some L ∈ R. Then for ε = 21 there is an N = N 12 ∈ N such that
1
|(−1)n − L| < for all n ≥ N. (1)
2
22
For n even (1) becomes
1
|1 − L| < for all n ≥ N, (2)
2
and for n odd (1) becomes
1
| − 1 − L| < for all n ≥ N. (3)
2
In this case, (2) implies that L is less than 21 unit away from 1 while (3) implies that L
is less than 21 unit away from −1, a contradiction.
Alternatively, the inequality (3) is equivalent to |1 + L| < 12 . But then
1 1
2 = | (1 + L) + (1 − L) | ≤ |1 + L| + |1 − L| < + = 1,
2 2
which is a contradiction.
Therefore, the sequence does not have a limit.
4. The sequence {log (1/n)}∞
n=1 diverges to −∞.
Proof : Given M > 0 we find N ∈ N such that
1
log < −M for all n ≥ N. (1)
n
But this is equivalent to
or
n > eM for all n ≥ N. (2)
Thus, if we choose N ≥ eM , the (2) and hence (1) will hold.
Exercise:
n+1 ∞
1. Show that the sequence {an }∞
n=1 = (−1) n=1
has no limit.
n o∞
2n
2. Prove that the sequence n+4n 1/2 converges to 2.
n=1
Theorem 4.2.2: Let {an }∞
n=1 be a sequence of non-negative numbers. If lim an = L, then
n→∞
L ≥ 0.
Proof : Supose the contrary, i.e., L < 0. Then for ε = − L2 there exists N ∈ N such that
L
|an − L| < − for all n ≥ N.
2
In particular,
L
|aN − L| < − ,
2
23
which implies
L
aN − L < −
2
or
L
< 0 for L < 0,
aN <
2
a contradiction since, by hypothesis, aN ≥ 0. Hence, we must have L ≥ 0. @
Theorem 4.2.3: If {an }∞n=1 converges, then its limit is unique.
Proof : Suppose an −→ L and an −→ M. We show that L = M. Suppose the contrary, i.e.,
L 6= M so that |M − L| > 0. Let ε = 12 |M − L|. By hypothesis an −→ L. Hence, there exists
N1 = N1 (ε) ∈ N such that
|an − L| < ε for all n ≥ N.
Similarly, since an −→ M there exists N2 = N2 (ε) ∈ N such that
and
|an − M| < ε for all n ≥ N.
Thus,
24
diverges. This example shows that a divergent sequence may have a convergent subse-
quence.
3. The sequence {n}∞ n=1 shows that a divergent sequence need have no convergent subse-
quence.
4. Consider the sequence 1, 2, 1, 3, 1, 4, 1, 5, · · · . By Corollary 4.2.1, the sequence diverges
since it has the divergent subsequence 1, 2, 3, 4, 5, · · · . Moreover, the sequence does not
diverge to ∞ since there is no N ∈ N for which an > 2 for all n ≥ N. The sequence
obviously does not diverge to −∞. Hence, it oscillates.
5. The sequence {an }∞ n=1 = {1, −2, 3, −4, 5, −6, · · · } has the subsequence 1, 3, 5, · · · which
diverges to ∞ and also has the subsequence −2, −4, −6, · · · which diverges to −∞. The
sequence {an }∞n=1 diverges, but lim an 6= ±∞; it oscillates.
n→∞
i.e., {an } = {0, 1, 0, 1, 0, 1, · · · }. Then the range of {an } is the set {0, 1} which is bounded.
Therefore, the sequence is bounded.
If a sequence diverges to ∞ or to −∞, then it is not bounded. A sequence that diverges to
∞ must, however, be bounded below (since such a sequence can have only a finite number
of negative terms). Similarly, if a sequence diverges to −∞, then it is bounded above. An
oscillating sequence may or may not be bounded.
Examples:
1. The sequence 1, −2, 3, −4, 5, −6, · · · oscillates and is neither bounded above nor bounded
below.
2. The sequence −1, 1, −1, 1, −1, 1, · · · oscillates between −1 and 1; it is bounded.
3. The sequence 1, 2, 1, 3, 1, 4, 1, 5, · · · oscillates and is bounded below but is not bounded
above.
Theorem 4.3.1: If the sequence {an }∞
n=1 of real numbers is convergent, then it is bounded.
Proof : Suppose an −→ L. Then given ε = 1, there exists N ∈ N such that
|an − L| < 1 for all n ≥ N.
25
Since |an | = |L + (an − L)| ≤ |L| + |an − L|, then
Remark 4.3.1 : The converse of Theorem 4.3.1 is not true, i.e., a bounded sequence need
not be convergent.
Corollary 4.3.1: If the sequence {an }∞ n=1 of real numbers is not bounded, it is divergent.
Proof : The corollary is just the contrapositive of Theorem 4.3.1.
Examples:
∞
1. The sequence {(−1)n }n=1 is bounded but not convergent.
2. The sequence 1, −2, 3, −4, 5, −6, · · · is divergent since it is neither bounded above nor
bounded below.
Theorem 4.3.2 (Bolzano-Weierstrass Theorem): Let {an }∞ n=1 be a bounded sequence
of real numbers. Then {an }∞
n=1 has a convergent subsequence.
Examples:
1 ∞
= 1, 1 21 , 1 34 , 1 87 , · · ·
1. The sequence 2 − 2n−1 n=1
is non-decreasing (increasing), and
bounded.
2. The sequence {n}∞n=1 = {1, 2, 3, 4, 5, · · · } is non-decreasing (increasing), and bounded
below (but not bounded above).
∞
3. The sequence n1 n=1 = 1, 21 , 31 , 41 , · · · is non-increasing (decreasing), and bounded.
26
∞
4. The sequence − n1 = −1, − 12 , − 31 , − 14 , · · ·
n=1
is non-decreasing (increasing), and
bounded.
∞
5. The sequence {(−1)n }n=1 = {−1, 1, −1, 1, −1, 1, · · · } is not monotonic since it is neither
non-increasing nor non-decreasing.
Theorem 4.4.1: A non-decreasing sequence which is bounded above is convergent.
Proof : Suppose {an }∞
n=1 is non-decreasing and bounded above. Then the set A = {a1 , a2 , · · · }
is a non-empty subset of R which is bounded above. By the completeness axiom of real
numbers, this set has a least upper bound. Let
Examples: 1 ∞
1. As seen in a previous example, the sequence 2 − 2n−1 n=1
is non-decreasing and
bounded. It converges to 2.
1 n
2. Consider the sequence {an }∞
n=1 where an = 1 + n . It can be shown that an ≤ an+1
∞
for every n ∈ N, i.e., {an }n=1 is non-decreasing, and that an < 3 for every n ∈ N, i.e.,
{an }∞ ∞
n=1 is bounded above (by 3). Hence, by Theorem 4.4.1, {an }n=1 is convergent. In
n
fact, lim an = lim 1 + n1 = e where e = 2.7182818 · · · .
n→∞ n→∞
Remark 4.4.2 :
(i ) Theorem 4.4.1 gives a set of criteria that enables us to prove that a sequence converges
without first guessing its limit.
(ii ) A non-decreasing sequence does not oscillate, imlying that a non-decreasing sequence
that is not bounded above diverges to ∞.
Theorem 4.4.2: A non-decreasing sequence which is not bounded above diverges to ∞.
27
Proof : Suppose {an }∞
n=1 is non-decreasing but not bounded above. Given M > 0 we find
N ∈ N such that
an > M for all n ≥ N. (1)
Now, since M is not an upper bound for {a1 , a2 , · · · } there must exist N ∈ N such that
aN > M. Then, for this N, (1) follows from the hypothesis that {an }∞ n=1 is non-decreasing.
This proves the theorem. @
Theorem 4.4.3: Let {an }∞ n=1 be a non-increasing sequence of real numbers.
∞
(a) If {an }n=1 is bounded below, it is convergent.
(b) If {an }∞
n=1 is not bounded below, it diverges to −∞.
Proof : The proof of the theorem follows the proofs of Theorems 4.4.1 and 4.4.2 exactly,
with all upper bounds and least upper bounds replaced by lower bounds and greatest lower
bounds. @
Remark 4.4.3 : From Theorems 4.4.1 and 4.4.3, a bounded non-decreasing or non-increasing
sequence is convergent. Hence, convergence and boundedness are equivalent for monotonic
sequences of real numbers.
Theorem 4.4.4: Every sequence of real numbers has a monotonic subsequence.
Now,
28
hence the proof. @
Theorem 4.5.2: Let {an }∞ n=1 be a sequence of real numbers, and let c ∈ R. If n→∞
lim an = a,
then lim can = ca.
n→∞
Proof : If c = 0, the theorem is obvious. Now, suppose c 6= 0. Given ε > 0 we find
N = N (ε) ∈ N such that
But then
|c| · |an − a| < ε for all n ≥ N,
which is equivalent to (1). @
Theorem 4.5.3:
(a) If 0 < x < 1, then {xn }∞
n=1 converges to 0.
29
Remark 4.5.1 : Corollary 4.5.1 remains true even if an > bn for a finite number of values
of n.
Theorem 4.5.5: Let {an }∞ ∞
n=1 and {bn }n=1 be sequences of real numbers. If n→∞
lim an = a and
lim bn = b, then lim an bn = ab.
n→∞ n→∞
Proof : Given ε > 0 we find N ∈ N such that
Now,
Since {bn }∞
n=1 is convergent, then by Theorem 4.3.1, it is bounded. Hence, there exists M > 0
such that |bn | ≤ M for all n ∈ N. Then (2) will certainly hold if
30
a
Now, there exists N1 ∈ N such that |an − a| < 2
for all n ≥ N1 . This implies that
a
an > for all n ≥ N1
2
so that
a2
an a > for all n ≥ N1 .
2
In addition, there exists N2 ∈ N such that
a2 ε
|an − a| < for all n ≥ N2 .
2
a2 a2 ε
Accordingly, if N = max {N1 , N2 }, then an a > 2
and |an − a| < 2
for all n ≥ N. Therefore,
|an − a| 1 1 a2 ε
= · |an − a| < a2 · = ε for all n ≥ N. @
|an a| |an a| /2 2
31
∞
{(−1)n }n=1 with itself is not divergent. For sequences that diverge to ∞ we have the following
results:
Theorem 4.6.1: Let {an }∞ ∞
n=1 and {bn }n=1 be sequences of real numbers that diverge to ∞.
Then {an + bn }∞ ∞
n=1 and {an bn }n=1 diverge to ∞ also.
Proof : Given M > 0, choose N1 ∈ N such that
and
an bn > M · 1 = M for all n ≥ N,
hence the proof. @
Theorem 4.6.2: Let {an }∞ ∞ ∞
n=1 and {bn }n=1 be sequences of real numbers. If {an }n=1 diverges
to ∞ and {bn }∞ ∞
n=1 is bounded, then {an + bn }n=1 diverges to ∞.
Proof : By hypothesis there exists Q > 0 such that
Then
an + bn ≥ an − |bn | > (M + Q) − Q = M for all n ≥ N.
That is,
an + bn > M for all n ≥ N
which shows that an + bn −→ ∞ as n −→ ∞. @
Corollary 4.6.1: If {an }∞ ∞ ∞
n=1 diverges to ∞ and {bn }n=1 converges, then {an + bn }n=1 di-
verges to ∞.
Proof : The proof follows directly from Theorems 4.3.1 and 4.6.2. @
Remark 4.6.1 : Theorems 4.6.1 and 4.6.2, and Corollary 4.6.1 will hold if we replace ∞
with −∞.
32
4.7 Limit Superior and Limit Inferior
Consider a sequence {an }∞ n=1 that is bounded above, say an ≤ M for all n ∈ N. Then for a
fixed n ∈ N, the set {an , an+1 , an+2 , · · · } is bounded above and hence has a least upper bound
Mn = l.u.b {an , an+1 , an+2 , · · · }. Moreover, Mn ≥ Mn+1 since Mn+1 = l.u.b {an+1 , an+2 , · · · }
is the least upper bound of a subset of {an , an+1 , an+2 , · · · }. Thus, the sequence {Mn }∞ n=1 is
non-increasing and hence either converges or diverges to −∞.
Definition 4.7.1: Let {an }∞ n=1 be a sequence of real numbers that is bounded above, and
let Mn = l.u.b {an , an+1 , an+2 , · · · }.
(a) If {Mn }∞
n=1 converges, then lim sup an = lim Mn .
n−→∞ n→∞
(b) If {Mn }∞
n=1 diverges to −∞ then lim sup an = −∞.
n−→∞
Examples:
1. Let an = (−1)n , n ∈ N. Then the sequence {an }∞
n=1 is bounded above. In this case,
Mn = 1 for each n ∈ N and hence lim Mn = 1. Therefore, lim sup (−1)n = 1.
n→∞ n−→∞
3. Consider the sequence an = 1, −1, 1, −2, 1, −3, 1, −4, · · · . Then Mn = 1 for all n ∈ N.
Hence, lim sup an = 1.
n−→∞
Proof : Let L = lim an . Then given ε > 0 there exists N ∈ N such that
n→∞
or
L − ε < an < L + ε for all n ≥ N.
Thus, if n ≥ N, then L + ε is an upper bound for {an , an+1 , an+2 , · · · } and L − ε is not an
upper bound. Hence,
33
But lim Mn = lim sup an . Thus,
n→∞ n−→∞
Since ε was arbitrary, this implies lim sup an = L, which is what we wished to prove. @
n−→∞
∞
Now, suppose the sequence {an }n=1 of real numbers is bounded below. Then for a fixed
n ∈ N, the set {an , an+1 , an+2 , · · · } is bounded below and hence has a greatest lower bound.
Let mn = g.l.b {an , an+1 , an+2 , · · · }. Besides, mn ≤ mn+1 since mn+1 = g.l.b {an+1 , an+2 , · · · }
is the greatest lower bound of a subset of {an , an+1 , an+2 , · · · }. Thus, the sequence {mn }∞ n=1
is non-decreasing and hence either converges or diverges to ∞.
Definition 4.7.3: Let {an }∞ n=1 be a sequence of real numbers that is bounded below, and
let mn = g.l.b {an , an+1 , an+2 , · · · }.
(a) If {mn }∞
n=1 converges, then lim inf an = lim mn .
n−→∞ n→∞
(b) If {mn }∞
n=1 diverges to ∞ then lim inf an = ∞.
n−→∞
Examples:
n ∞
1. The sequence {an }∞
n=1 = {(−1) }n=1 is bounded below. In this case, mn = −1 for every
n ∈ N and hence lim inf (−1)n = lim mn = −1.
n−→∞ n→∞
3. The sequence an = 1, −1, 1, −2, 1, −3, 1, −4, · · · is not bounded below. Therefore, by
Definition 4.7.4, lim inf an = −∞.
n−→∞
34
Remark 4.7.1 : From Theorems 4.7.1 and 4.7.2 we see that if lim an = L, then we must
n→∞
have lim sup an = lim inf an = L.
n−→∞ n→∞
implying that
an < L + ε for all n ≥ N1 (1)
Similarly, since lim inf an = lim mn = L, there exists N2 ∈ N such that
n−→∞ n→∞
implying that
an > L − ε for all n ≥ N2 (2)
Now, if N = max {N1 , N2 }, then from (1) and (2) we have L − ε < an < L + ε for all n ≥ N
so that
|an − L| < ε for all n ≥ N.
This proves that lim an = L. @
n→∞
35
Proof : Let Mn = l.u.b {an , an+1 , · · · }, mn = g.l.b {an , an+1 , · · · }, Pn = l.u.b {bn , bn+1 , · · · },
and pn = g.l.b {bn , bn+1 , · · · }. Since an ≤ bn for all n ∈ N, then Mn ≤ Pn and mn ≤ pn for
all n ∈ N. Now, from Corollary 4.5.1,
and
lim inf an = lim mn ≤ lim pn = lim inf bn . @
n−→∞ n→∞ n→∞ n−→∞
Remark 4.7.2 :
(i ) Theorems 4.7.6 remains true even if an > bn for a finite number of n.
(ii ) It is not always true that lim sup (an + bn ) = lim sup an + lim sup bn , even for bounded
n−→∞ n−→∞ n−→∞
sequences and {bn }∞
{an }∞
n=1 n=1 .
n ∞ n+1 ∞
Example: Let {an }∞ and {bn }∞
n=1 = {(−1) }n=1 n=1 = (−1) n=1
so that an + bn = 0 for
each n ∈ N. In this case, lim sup an = 1 = lim sup bn so that lim sup an + lim sup bn = 2. On
n−→∞ n−→∞ n−→∞ n−→∞
the contrary, lim sup (an + bn ) = 0.
n−→∞
ak ≤ Mn for all k ≥ n,
and
bk ≤ Pn for all k ≥ n,
so that
ak + bk ≤ Mn + Pn for all k ≥ n.
Thus, Mn + Pn is an upper bound for {an + bn , an+1 + bn+1 , an+2 + bn+2 , · · · } so that
lim l.u.b {an + bn , an+1 + bn+1 , an+2 + bn+2 , · · · } ≤ lim (Mn + Pn ) = lim Mn + lim Pn .
n→∞ n→∞ n→∞ n→∞
In other words,
lim sup (an + bn ) ≤ lim sup an + lim sup bn . @
n−→∞ n−→∞ n−→∞
Theorem 4.7.8: Any bounded sequence of real numbers has a convergent subsequence.
36
Exercise:
1. Let {an }∞ ∞
n=1 be a sequence of real numbers and let {ani }n=1 be any subsequence of
{an }∞
n=1 . Prove that if lim sup an = M, then lim sup ani ≤ M.
n−→∞ n−→∞
2. Let {an }∞
n=1 be a bounded sequence of real numbers and let lim inf an = m. Prove that:
n−→∞
(a) there is a subsequence of {an }∞
n=1 which converges to m.
∞
(b) no subsequence of {an }n=1 converges to a limit less than m.
ε
|ak − L| < for all k ≥ N.
2
Thus, if m, n ≥ N, we have
ε ε
|am − an | = |(am − L) + (L − an )| ≤ |am − L| + |L − an | < +
2 2
so that
|am − an | < ε for all m, n ≥ N,
which proves that {an }∞
n=1 is Cauchy. @
Then,
|am − aN | < 1 for all m ≥ N. (1)
Hence, if m ≥ N, we have
37
and so, using (1)
|am | < 1 + |aN | for all m ≥ N.
If M = max {|a1 | , · · · , |aN −1 |}, then
Hence, {an }∞
n=1 is bounded.
ε
anj − a < for all j ≥ J. (1)
2
Since {an }∞
n=1 is Cauchy, there exists N ∈ N such that
ε
|am − an | < for all m, n ≥ N. (2)
2
We may choose N such that N ≥ J.
Now suppose k ∈ N and k ≥ N. Then k ≥ J, so (1) implies
ε
|ank − a| < .
2
Also, nk ≥ k ≥ N, so (2) implies
ε
|ak − ank | < .
2
Therefore,
ε ε
|ak − a| = |(ak − ank ) + (ank − a)| ≤ |ak − ank | + |ank − a| < +
2 2
so that
|ak − a| < ε for all k ≥ N,
and the conclusion follows. @
38
∞
P
Definition 4.9.2: Let an be an infinite series of real numbers and let sn = a1 +a2 +· · ·+an
n=1
be the sum of the first n terms (nth partial sum) of the sequence {an }∞ ∞
n=1 . Then {sn }n=1 is
∞
P
called the sequence of partial sums of the series an .
n=1
∞
an be an infinite series and let {sn }∞
P
Definition 4.9.3: Let n=1 be the corresponding
n=1
∞ ∞
an is said to converge if {sn }∞
P P
sequence of partial sums. Then n=1 converges, an diverges
n=1 n=1
∞
if {sn }∞ an oscillates if {sn }∞ ∞
P
n=1 diverges, and n=1 oscillates. If {sn }n=1 converges to s, then
n=1
∞
P ∞
P
s is called the sum of the series an and we write s = an or s = a1 + a2 + · · · + an + · · · .
n=1 n=1
∞
P n
P
In this case, an = s = lim sn = lim ai . If the series diverges to ∞, we write
n=1 n→∞ n→∞ i=1
∞
P ∞
P
an = ∞, and if it diverges to −∞, we write an = −∞.
n=1 n=1
∞
P ∞
P
Theorem 4.9.1: Let an and bn be convergent series.
n=1 n=1
∞
P ∞
P ∞
P ∞
P
(a) Then (an ± bn ) is also convergent and (an ± bn ) = an ± bn .
n=1 n=1 n=1 n=1
∞ ∞ ∞
(b) If c ∈ R, then
P P P
can is also convergent and can = c an .
n=1 n=1 n=1
Proof :
(a)
∞ n n n
!
X X X X
(an ± bn ) = lim (ai ± bi ) = lim ai ± bi
n→∞ n→∞
n=1 i=1 i=1 i=1
n
X n
X ∞
X X∞
= lim ai ± lim bi = an ± bn .
n→∞ n→∞
i=1 i=1 n=1 n=1
∞ n n ∞
(b) If c ∈ R, then
P P P P
can = lim cai = c lim ai = c an . @
n=1 n→∞ i=1 n→∞ i=1 n=1
∞
P
Theorem 4.9.2: If an is a convergent series, then lim an = 0.
n=1 n→∞
∞
P
Proof : Suppose an = lim sn = s where sn = a1 + a2 + · · · + an . But lim sn−1 = s also.
n=1 n→∞ n→∞
Since an = sn − sn−1 , then, by Theorem 4.5.4,
lim an = lim (sn − sn−1 ) = lim sn − lim sn−1 = s − s = 0. @
n→∞ n→∞ n→∞ n→∞
Remark 4.9.1 : Theorem 4.9.2 gives a necessary but not sufficient condition for a series to
be convergent.
∞
P
Corollary 4.9.1: If lim an 6= 0, then an diverges.
n→∞ n=1
39
Proof : The corollary is just the contrapositive of Theorem 4.9.2. @
Examples:
1−n
1. Suppose an = 1+2n . Then lim an = − 21 6= 0. Hence, by Corollary 4.9.1, the series
n→∞
∞
1−n
P
1+2n
diverges.
n=1
∞
(−1)n diverges since lim (−1)n does not exist.
P
2. The series
n=1 n→∞
∞
n2 n2 1
P
3. The series 3n2 +n
diverges since lim 2 = 6= 0.
n=1 n→∞ 3n +n 3
Exercise:
Show that the following series are divergent.
(a) 21 + 23 + 43 + · · ·
(b) − 21 + 23 − 43 + · · ·
P∞
Theorem 4.9.3: Let an be a series of non-negative numbers. Then
n=1
∞
an converges if the sequence {sn }∞
P
(a) n=1 is bounded.
n=1
∞
an diverges if the sequence {sn }∞
P
(b) n=1 is not bounded.
n=1
Proof :
(a) Since an+1 ≥ 0 we have sn+1 = a1 + · · · + an + an+1 = sn + an+1 ≥ sn . Thus, {sn }∞
n=1 is
non-decreasing and (by hypothesis) bounded. By Theorem 4.4.1, {sn }∞ n=1 converges,
∞
P
and thus an converges.
n=1
∞
{sn }∞ is not bounded, then by Corollary 4.3.1, {sn }∞
P
(b) If n=1 n=1 diverges. Hence, an
n=1
diverges. @
∞
1
P
Example: The harmonic series n
is divergent.
n=1
Proof : In this case sn = 1 + 12 + · · · + n1 . Consider the subsequence s1 , s2 , s4 , s8 , · · · , s2n−1 , · · ·
of {sn }∞
n=1 . We have
s1 = 1,
1
s2 = 1 + 2
= 32 ,
1 1 3 1 1
s4 = s2 + 3
+ 4
> 2
+ 4
+ 4
= 2,
1 1 1 1
s8 = s4 + 5
+ + +
6 7 8
> 2 + 81 + 81 + 1
8
+ 1
8
= 52 ,
..
.
In general, it may be shown by induction that s2n ≥ n+2
2
. Thus, {sn }∞
n=1 contains a divergent
∞
subsequence and hence, by Corollary 4.2.1, {sn }∞ 1
P
n=1 diverges. Therefore, the series n
n=1
diverges. @
40
∞
P
Remark 4.9.2 : The divergence of the harmonic series shows that a series an may diverge
n=1
even if lim an = 0.
n→∞
Examples:
∞
P 1
1 ∞
1. From a previous example n
is diverges. However, since n n=1
is non-increasing
n=1
∞
(−1)n+1
= 1 − 12 + 31 − 14 + · · ·
P
and lim an = 0, it follows from Theorem 4.9.4 that n
n→∞ n=1
converges.
1 ∞
2. The sequence {an }∞
1 1 1
n=1 = 2n−1 n=1 = 1, 2 , 4 , 8 , · · · is non-increasing and n→∞ lim an = 0.
∞
(−1)n+1 2n−1 1
= 1 − 21 + 41 − 18 + · · · converges.
P
Hence, by Theorem 4.9.4, the series
n=1
Examples:
∞
an = 1 − 21 + 14 − 18 + · · · converges. Also, it is
P
1. From Example 2 above, the series
n=1
∞
|an | = 1 + 21 + 1
+ 81 + · · · converges (use ratio test or
P
easy to show that the series 4
n=1
∞
P
root test). Hence, an converges absolutely.
n=1
41
∞
an = 1 − 21 + 13 − 14 + · · · converges. However,
P
2. From Example 1 above, the series
n=1
∞
|an | = 1 + 21 + 31 + 1
P
from a previous example, the series 4
+ · · · diverges. Hence,
n=1
∞
P
an converges conditionally.
n=1
∞
P ∞
P
Theorem 4.9.5: If an converges absolutely, then an converges.
n=1 n=1
Proof : Let sn = a1 + · · · + an . The aim now is to prove that {sn }∞
n=1 converges. By Theorem
∞
4.8.2, it is enough to show that {sn }∞
P
n=1 is Cauchy. By hypothesis |an | < ∞. Thus, if
n=1
tn = |a1 | + · · · + |an |, then {tn }∞ ∞
n=1 converges. By Theorem 4.8.1, {tn }n=1 is Cauchy. Hence,
given ε > 0, there exists N ∈ N such that
|tm − tn | < ε for all m, n ≥ N.
But (if m > n, say), |sm − sn | = |an+1 + · · · + am | ≤ |an+1 |+· · ·+|am | = tm −tn . Accordingly,
|sm − sn | < ε for all m, n ≥ N.
Therefore, {sn }∞
n=1 is Cauchy. @
42
∞
P ∞
P
(a) If bn converges, then an converges.
n=1 n=1
P∞ ∞
P
(b) If an diverges, then bn diverges.
n=1 n=1
Proof : Let sn = a1 + · · · + an and tn = b1 + · · · + bn be the corresponding nth partial sums.
Since an ≤ bn for all n ∈ N, then sn ≤ tn for all n ∈ N.
∞
bn converges, then {tn }∞ ∞
P
(a) If n=1 is bounded. Thus, {sn }n=1 is also bounded. Since
n=1
∞
{sn }∞
P
n=1 is increasing and bounded, it is convergent (by Theorem 4.4.1). Hence, an
n=1
converges.
∞
an diverges, then {sn }∞ ∞
P
(b) If n=1 diverges and is necessarily unbounded. Thus, {tn }n=1
n=1
∞
is also unbounded and therefore {tn }∞
P
n=1 is divergent. Hence, bn diverges. @
n=1
Examples:
∞
1
P
1. Consider the series np
where p ≥ 2. The integral test (Theorem 4.9.11) shows that
n=1
∞ ∞
1 1 1 1
P P
n2
converges. Now, if p ≥ 2, then np
≤ n2
. Therefore, by comparison test, np
is
n=1 n=1
∞
1
P
also convergent. The series np
is called a p-series and actually converges for any
n=1
p > 1.
∞
n+7
P
2. Determine whether the series n3 +1
converges or diverges.
n=1
Solution: We have that
n+7 n + 7n 8n 8
3
≤ 3 < 3 = 2.
n +1 n +1 n n
∞ ∞
8 n+7
P P
The series n2
converges and thus, by comparison test, the series n3 +1
also
n=1 n=1
converges.
∞
P ∞
P
Theorem 4.9.8 (Limit Comparison Test): Let an and bn be series of positive
n=1 n=1
an
terms and let lim = L.
n→∞ bn
∞
P ∞
P ∞
P ∞
P
(a) If L > 0, then an converges if and only if an converges (i.e., an and an
n=1 n=1 n=1 n=1
converge or diverge together).
P∞ ∞
P
(b) If L = 0 and bn converges, then an converges also.
n=1 n=1
P∞ ∞
P
(c) If L = ∞ and bn diverges, then an diverges also.
n=1 n=1
Examples:
∞ ∞ ∞ ∞ 1
1 1 an n
P P P P n+1
1. Let an = n+1
and bn = n
. Then L = lim = lim 1 = lim = 1.
n=1 n=1 n=1 n=1 n→∞ bn n→∞ n n→∞ n+1
Since 0 < L < ∞, the two series converge or diverge together. But the harmonic series
43
∞ ∞
1 1
P P
n
diverges. Hence, the series n+1
diverges also.
n=1 n=1
∞ ∞ ∞ ∞ 1
1 1 an n2 +1 n2
P P P P
2. If an = n2 +1
and bn = n2
, then L = lim = lim 1 = lim 2 +1 = 1.
n=1 n=1 n=1 n=1 n→∞ bn n→∞ n2 n→∞ n
∞ ∞
1 1
P P
Since 0 < L < ∞, and n2
is a convergent p-series, then n2 +1
converges also.
n=1 n=1
∞
P an+1
Theorem 4.9.9 (Ratio Test): Let an be a series of positive terms and let lim = l,
n=1 n→∞ an
finite or infinite. ∞
P
(a) If l < 1, then an converges.
n=1
P∞
(b) If l > 1, then an diverges.
n=1
(c) If l = 1, the series may converge or diverge and so, the test fails.
∞
an
P
Corollary 4.9.2: Let an be series of positive terms and let lim an+1 = l, finite or infinite.
n=1 n→∞
∞
P
(a) If l > 1, then an converges.
n=1
P∞
(b) If l < 1, then an diverges.
n=1
(c) If l = 1, the series may converge or diverge and so, the test fails.
Examples:
∞
2n
P
1. The series n!
converges since by the ratio test
n=1
an+1 2n+1 n! 2
lim = lim n
= lim = 0 < 1.
n→∞ an n→∞ (n + 1)! 2 n→∞ n + 1
44
n!xn
Proof : Since x > 0, the series is of positive terms and an = nn
for all n ∈ N. Thus,
an+1 (n + 1)!xn+1 nn
= ·
an (n + 1)n+1 n!xn
(n + 1) n!xn x nn
= ·
(n + 1)n (n + 1) n!xn
n
n
= x
n+1
x
= n
1 + n1
an+1 x x
and lim = lim 1 n = n = xe . Hence, by the ratio test, the series con-
n→∞ an n→∞ (1+ n ) n→∞
(1+ n1 )
lim
verges if xe < 1 or x < e, and diverges if x
e
> 1 or x > e.
Exercise: ∞
3n
P
1. Show that the series (n+1)!
converges.
n=1
∞
2n+1
P
2. Use the ratio test to determine whether the series (n+2)!3!
converges or diverges.
n=1
2 3 4 n+1 n
3. Use the ratio test to show that the series 12 + 33 + 45 + 57 + · · · + 2n−1
+···
converges.
∞
P √
Theorem 4.9.10 (Root Test): Let an be series of positive terms and let lim n an = l,
n=1 n→∞
finite or infinite. ∞
P
(a) If l < 1, then an converges.
n=1
P∞
(b) If l > 1, then an diverges.
n=1
(c) If l = 1, the series may converge or diverge and so, the test fails.
Examples:
∞ n
2−n+(−1) is convergent.
P
1. Show that the series
n=1
√ (−1)n
1
Solution: In this case, lim n an = lim 2−1+ n = 2
< 1. Therefore, by the root test,
n→∞ n→∞
the series is convergent.
∞ 2
nn
P
2. Show that the series n2
is convergent.
n=1 (n+1)
n2
Solution: In this case, an = n n2 > 0 for all n ∈ N. By the root test, the series
(n+1)
√ nn 1 1 1
converges since lim n an = lim (n+1) n = lim 1 n = 1 n = e < 1.
n→∞ n→∞ n→∞ (1+ n ) lim (1+ n
n→∞
)
∞
1
P
3. The series npn
converges if p > 0 and diverges if p ≤ 0.
n=1
√
Proof : In this case, an = n1pn > 0 for all n ∈ N and for all p ∈ R, lim n an = lim n1p .
√ n→∞ n→∞
Now, if p > 0, lim n an = 0 < 1 and the series converges. Since an = 1 for all n ∈ N
n→∞
45
∞ √
1
P
if p = 0, npn
diverges. If p < 0, lim n
an = ∞ > 1, and by the root test, the series
n=1 n→∞
diverges. @
2 3 4
4. Test for convergence of the series 21 + 33 + 54 + 57 + · · · .
n+1 n √ n+1 1
Solution: In this case, an = 2n−1 so that lim n an = lim 2n−1 = 2
< 1. Hence, by
n→∞ n→∞
the root test, the series converges.
Exercise: ∞ 2
3n
P
1. Test for convergence of the series 43n
.
n=1
∞ ∞
e2n en
P P
2. Show that 3n
diverges while 3n
converges.
n=1 n=1
∞ 2
1 −n
xn converges if x < e and diverges if x > e.
P
3. Show that for x > 0, 1+ n
n=1
46
Now, suppose p < 1. Then
Z ∞ t
dx
Z
= lim x−p dx
1 xp t→∞ 1
1−p t
x
= lim
t→∞ 1 − p
1−p 1
t 1
= lim −
t→∞ 1 − p 1−p
= ∞.
∞
1
P
Hence, np
diverges if p < 1.
n=1
Finally, if p = 1,
∞ Z t
dx dx
Z
= lim
1 x t→∞ 1 x
47
∞
n
P
(b) n2 +1
n=1
∞
1
P
(c) en
n=1
∞
ln n
P
(d ) n
n=1
Now, if 0 < |x − 4| < 3ε , then |f (x) − 7| < 3 3ε = ε. Thus, given ε > 0 we let δ = 3ε
so that if 0 < |x − 4| < δ, then |f (x) − 7| < ε. Hence, by definition, lim f (x) = 7. @
x→4
x+1 1
2. Let f : R −→ R where f (x) = x2 +3
. Prove that lim f (x) = 2
.
x→1
Proof : We have that
1 x+1 1 x2 − 2x + 1 |x − 1|2
f (x) − = 2 − = 2
= 2
< |x − 1|2 .
2 x +3 2 2 (x + 3) 2 (x + 3)
√
Let ε > 0 be arbitrary and let δ = ε. Now, if 0 < |x − 1| < δ, then |x − 1|2 < δ 2 = ε.
Hence, if 0 < |x − 1| < δ, then f (x) − 21 < ε. Therefore, lim f (x) = 21 . @
x→1
48
Exercise:
Use the ε-δ definition of the limit of a function to prove that:
(a) lim (3x + 6) = 0
x→−2
(b) lim (2x − 5) = −7
x→−1
(c) lim 2x+3 =3
x→3 4x−9
2
−3x
(d ) lim xx+3 =2
x→6
{f (xn )} = {n}, which is not bounded and thus does not converge. Therefore, by Corollary
5.1.1, lim x1 does not exist. @
x→0
Examples:
1. Let f (x) = a0 +a1 x+a2 x2 +· · ·+an xn be a polynomial function. Then limf (x) = f (c)
x→c
for every c ∈ R. If g (x) = b0 + b1 x + b2 x2 + · · · + bm xm is another polynomial function
(x) (c)
and g (x) 6= 0 in a neighbourhood of x = c and limg (x) = g (c) 6= 0, then lim fg(x) = fg(c) .
x→c x→c
49
−4 2
2. Prove that lim xx−2 =4
x→2
x2 −4
Proof : Observe that lim (x − 2) = 0. If x 6= 2, then x−2
= x + 2. Hence, the functions
x→2
x2 −4
f (x) = x−2
and g (x) = x + 2 are equal at every point in R\ {2}. Since lim g (x) = 4,
x→2
it follows that lim f (x) = 4. @
x→2
Remark 5.1.3 :
(i ) The statement lim+ f (x) = L involves only values of f (x) for x to the right of c,
x→c
while lim− f (x) = M involves only values of f (x) for x to the left of c.
x→c
(ii ) lim+ f (x) and lim− f (x) may exist without being equal to each other.
x→c x→c
Examples: (
x if 0 ≤ x < 1
1. Let f (x) = . Then lim f (x) = 1 while lim+ f (x) = 2.
3 − x if 1 ≤ x ≤ 2 x→1− x→1
1
2x − 1
if x < 0
1
2. Consider the function f (x) = 1+x 2 if 0 ≤ x < 1 . In this case, lim− f (x) = −1,
1
x→0
2
x if 1 ≤ x
lim+ f (x) = 1; on the other hand, lim− f (x) = lim+ f (x) = 21 .
x→0 x→1 x→1
50
5.2 Continuous and Discontinuous Functions
Definition 5.2.1: Let f : A −→ R be a function. Then f is continuous at c ∈ A if:
(i ) limf (x) exists,
x→c
In other words, f is continuous at c ∈ A if for each ε > 0, there is some δ > 0 such that if
x ∈ A and |x − c| < δ, then |f (x) − f (c)| < ε. If f is not continuous at c, then we say that
f is discontinuous at c. The function f is continuous on A if f is continuous at each point
in A.
Remark 5.2.1 : In Definition 5.2.1, the number δ, in general, depends on ε and the point c.
Definition 5.2.2: Consider a function f : A −→ R and let c ∈ A. Then f is right-continuous
at c if lim+f (x) = f (c), f is left-continuous at c if lim− f (x) = f (c).
x→c x→c
51
f
f + g, f − g, f g, and bf are also continuous on A. Furthermore, if g (c) 6= 0, then g
is also
continuous on A.
Examples:
1. Consider the function f : R −→ R defined by f (x) = 3x − 5. In a previous example, it
was proved that lim f (x) = 7. Furthermore, f (4) = 7. Hence, f is continuous at x = 4.
x→4
sin x
2. Let f (x) = x
where x ∈ R\ {0}. Then f is not continuous at x = 0 since it is not
defined at x = 0, even though lim sinx x exists (and is equal to 1). However, the function
( x→0
sin x
x
if x 6= 0
g defined by g (x) = is continuous at x = 0 since lim g (x) = g (0) = 1.
1 if x = 0 x→0
52
continuous at x = 1. (
1 if x ∈ Q
2. Show that the function f (x) = is discontinuous everywhere.
0 if x ∈ R\Q
1 1 y−x 1 1
|f (x) − f (y)| = − = = |x − y| ≤ |x − y| .
x y xy |x| |y|
Given ε > 0, we can set δ = ε so that if |x − y| < δ, then |f (x) − f (y)| < ε. @
3. The function f : [−2, 1] −→ R defined by f (x) = x2 is uniformly continuous on [−2, 1].
Proof : Clearly, if x, y ∈ [−2, 1], then |x + y| ≤ |x| + |y| ≤ 4. Now, we have that
|f (x) − f (y)| = x2 − y 2 = |x + y| |x − y| ≤ 4 |x − y| .
53
(b) There exists ε > 0 such that for every δ > 0, there exists x, y ∈ A such that |x − y| < δ
but |f (x) − f (y)| ≥ ε.
(c) There exists ε > 0 and a pair of sequences {xn } and {yn } in A where lim (xn − yn ) = 0
x→∞
and |f (xn ) − f (yn )| ≥ ε.
Examples:
1. The function f (x) = x1 is not uniformly continuous on A = (0, 1].
Proof : Let ε = 1. Consider the sequences {xn } = n1 and {yn } = 2n 1
in A. Then
1 1 1
lim (xn − yn ) = lim − = lim =0
x→∞ x→∞ n 2n x→∞ 2n
but
|f (xn ) − f (yn )| = |n − 2n| = n ≥ 1 = ε.
Hence, by Theorem 5.3.1, the conclusion follows. @
1
Remark 5.3.2 : In general, the function f (x) = x
is not uniformly continuous on the set
A = (0, ∞).
2. The function f (x) = x2 is not uniformly continuous on [1, ∞), since thefunction is not
bounded as x −→ ∞. We accordingly can set {xn } = {n} and {yn } = n + n1 so
that 2
1 1
|f (xn ) − f (yn )| = n + − n2 = 2 + 2 > 2.
n n
Exercise:
2
Show that the function f (x) = x
is not uniformly continuous on A = (0, 2].
Theorem 5.3.2: If the function f : A −→ R is uniformly continuous on A, then it is
continuous on A.
Proof : Suppose f is uniformly continuous on A. Then for ε > 0, there exists δ > 0 such
that for all x1 , x2 ∈ A with |x1 − x2 | < δ implies |f (x1 ) − f (x2 )| < ε. Now, let x ∈ A. Then
on taking x1 = x, we find for ε > 0, there exists δ > 0 such that for fixed x2 ∈ A such that
|x − x2 | < δ implies |f (x) − f (x2 )| < ε. Hence, f is continuous at every x2 ∈ A, i.e., f is
continuous on A. @
Theorem 5.3.3: If the function f : A −→ R is continuous on the closed interval A = [a, b],
then it is uniformly continuous on A.
Proof : Suppose that f is not uniformly continuous on A. Then by Theorem 5.3.1, there
exists ε > 0 and two sequences {xn } and {yn } in A such that lim (xn − yn ) = 0 and
x→∞
|f (xn ) − f (yn )| ≥ ε. Since {xn } is a bounded sequence, by Theorem 4.3.2, there is a sub-
sequence {xnk } of {xn } that converges to a point x0 ∈ [a, b]. But then the corresponding
subsequence {ynk } of {yn } also converges to x0 since
ε ε
|ynk − x0 | ≤ |ynk − xnk | + |xnk − x0 | < + = ε.
2 2
But since the sequences {xnk } and {ynk } both converge to x0 , and f is continuous at
x0 , it follows that the sequences {f (xnk )} and {f (ynk )} must both converge to f (x0 ) or
54
lim |f (xnk ) − f (ynk )| = 0 which contradicts the assumption that |f (xnk ) − f (ynk )| ≥ ε for
x→∞
all k. @
Example: Consider the function f (x) = x1 . By Theorem 5.3.3, f is uniformly continuous
on any closed interval that does not contain 0. By Definition 5.3.1, f is uniformly continuous
on any set of the form [c, ∞) for c > 0, because if x, y ∈ [c, ∞), then
1 1 y−x 1 1
|f (x) − f (y)| = − = = |x − y| ≤ 2 |x − y| .
x y xy xy c
1 2
Hence, if we let δ = c2 ε and |x − y| < δ, then |f (x) − f (y)| < c2
cε = ε.
Exercise:
1. Let f : A −→ R and g : A −→ R be uniformly continuous functions on A. Prove that
f + g is uniformly continuous on A.
2. Prove that f (x) = x2 is not uniformly continuous on R.
3. Show that f (x) = sin x2 is not uniformly continuous on R.
55