Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
——————–
Maths Analysis
Lecture notes
——————–
Toby Wiseman
1
Toby Wiseman; Huxley 507, email: t.wiseman@imperial.ac.uk
Tutorials: There will be 6 tutorials for the course. Three will be this term
in weeks 8, 9, 10. There following three will be next term.
Books
This course is not based directly on any one book. Recommended textbooks
for the course are;
The following books are less technical and even non-technical, but may be
enjoyable bed-time reading:
2
Plan for the course
• Sets and maps (or Basics):
3
Some notation
In case you haven’t come across this notation....
4
1 Sets and Maps
1.1 Definitions and Notation
Definition (Set)
A set is a collection of distinct elements (or members).
Comments:
• The ordering of elements is irrelevant
• The number of elements of the same type is irrelevant; only the types
of distinct elements are important
Use comma separated notation with curly braces; eg.
Equality: Two sets are equal if they contain the same elements.
Example:
Note that a set may contain elements which are themselves sets,
S1 = {r, 4, } , S2 = {r, 4} , S3 = { , r, 4}
and then,
S1 = S3 6= S2
Notation
We write ‘x is an element of the set X’ as,
x2X
5
Conversely if x is not contained in the set X we write,
x2
/X
r 2 S1 , 2 S1 , 2
/ S2
Definition (Sequence)
A sequence is an ordered collection of elements, denoted with brackets, eg.
(a, g, h, u, g, h) or (2, 2, 4, 4, 6, 6, 8, 8, . . .) where repetition is allowed. Then
(a, g, g, h) 6= (g, g, h, a) and (a, g, g, h) 6= (a, g, h).
Definition (Subset)
A set X is a subset of a set Y if every element in X is contained in Y .
Notation
For a subset X of Y we write;
X✓Y
X⇢Y
W 6✓ Y
Comment:
6
Example: using the S1,2,3 defined above;
S2 ⇢ S1 , S1 6✓ S2 , S1 ✓ S 1 , S2 ✓ S2
Comment:
• The empty set is always a subset of any set; ; ✓ X for any set X.
X = {x| condition on x}
Reads: X is the set of all elements x such that the condition on x holds.
Example: given the set of natural numbers N, we can take the positive even
numbers;
N = {0, 1, 2, 3, . . .}
X = {x|x 2 N and x even} = {0, 2, 4, 6, . . .}
Example:
A = {a, b, b, c, d, e, f, h, z, z}
B = {d, f, e, h, h, g, i}
C = {x|x 2 A and x 2 / B} = {a, b, c, z}
Example:
D = {2n |n 2 N}
7
A more compact notation is,
X = {x 2 Y | condition on x}
reading X is the set of all elements of Y which satisfy the given condition.
X = {x 2 N|x even}
C = {x 2 A|x 2
/ B}
A = {1, 2, 3}
B = {x 2 N|x < 100}
N = {0, 1, 2, 3, 4, . . .}
N+ = {1, 2, 3, 4, . . .}
P = {2, 3, 5, 7, 11, . . .}
8
Fundamental Theorem of arithmetic: Every natural number greater
than one has a unique prime factorisation.
Definition (Integers)
Z = {. . . , 4, 3, 2, 1, 0, 1, 2, 3, 4, . . .}
a
Q = { |a 2 Z , b 2 N+ }
b
Real numbers
R is the set of all numbers on the continuous real number line. We will post-
pone a careful definition of them until later.
Clearly,
N+ ⇢ N ⇢ Z ⇢ Q ⇢ R
Intervals are defined by their ’end’ positions, and may include their end points
of not. We use the notations;
9
Definition:
Also we define;
10
1.2 Basics of proof
A proof is a clear and convincing argument. There are various methods of
proof we will employ in this course.
Your should lay out a proof with the proposition (or claim), and then the
argument. You should never use the result you are trying to prove in the
proof itself!
The proof should end with QED (Quod Erat Demonstrandum - which was to
be proved) or a square ⇤.
You must state clearly in the proof that you are assuming the proposition is
false for the purpose of contradiction.
Proof. Assume for contradiction that the proposition is false. Then there
exists n 2 N+ , and n > 1 which is the smallest number such that n is not a
prime nor a product of primes.
Note that all the above statements after the assumption for contradiction are
false.
11
Proof by induction: Suppose we have a proposition P (n) about a positive
number n 2 N+ and we can show;
• P (1) is true.
Note: We were not required to prove P (r + 1). Only to prove it under the
assumption that either P (r) or P (n) for all n r were true.
Alternatively we can replace showing P (1) with showing P (k) for some k 2 N,
and then induction shows P (n) is true for all n k.
n(n+1)
Proposition: For n 2 N+ then 1 + 2 + 3 + . . . + n = 2
.
Proof. (By induction)
n(n + 1)
(1 + 2 + 3 + . . . + n) + (n + 1) = + (n + 1)
2
n2 + 3n + 2 (n + 1)(n + 2)
= =
2 2
Hence the proposition holds also for (n + 1).
12
Let us reprove using induction the previous proposition we proved using con-
tradition.
• Suppose for induction that the proposition holds for all r n. Then
consider the proposition for n + 1.
13
Some general comments:
• Try not to write =) everywhere. Try to write the proof out in a clear
and well written way - just as you would want to read it.
14
1.3 Properties of sets
Definition (Cardinality)
The Cardinality of a finite set is the number of elements it contains; denoted
|X| for the cardinality of a set X.
2X = {A|A ✓ X}
Example:
A = {1, 2, 3}
2A = {;, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}
Theorem 1.1 (Cardinality of the power set). The power set of a finite set
X has cardinality |2X | = 2|X| , hence the notation.
Proof. Choose some ordering of the elements in the finite set X = {x1 , x2 , x3 , . . . , xn }
where n = |X|. Then a subset is specified by the n-digit binary number
p1 p2 . . . pn , pi 2 {0, 1}
15
Definition (Union, Intersection, Set Di↵erence)
Let X and Y be sets. Then;
• The union of X and Y , denoted X [ Y , is;
X [ Y = {z|z 2 X or z 2 Y }
Some properties:
• Union and intersection are associative: for any sets A, B, C then;
A [ (B [ C) = (A [ B) [ C
so we simply write this as A [ B [ C. Likewise for intersection.
• For any set A then; A [ ; = A and A \ ; = ;
Examples: for the sets A = {1, 2, 3} as before, B = {2, 6} and C =
{0, 1, 2, 3, 4} then,
A [ B = {1, 2, 3, 6}
A \ B = {2}
A \ B = {1, 3}
B \ A = {6}
A\C =;
and,
A[;=A
A\;=;
A\;=A
16
Definition (Cartesian product)
The Cartesian product of two sets X and Y , denoted X ⇥ Y , is the set
of ordered pairs (or sequences of length two) of elements, the first coming
from X and second from Y .
X ⇥ Y = {(x, y)|x 2 X , y 2 Y }
Comments:
• X ⇥ Y 6= Y ⇥ X unless X = Y .
A ⇥ B = {(1, 2), (1, 6), (2, 2), (2, 6), (3, 2), (3, 6)}
B ⇥ A = {(2, 1), (6, 1), (2, 2), (6, 2), (2, 3), (6, 3)}
Note that A 6= B.
This generalizes in the natural way for the product of finitely many multiple
sets,
X1 ⇥ X2 ⇥ . . . ⇥ Xn = {(x1 , x2 , . . . , xn )|x1 2 X1 , x2 2 X2 , . . . , xn 2 Xn }
X1 ⇥ X2 ⇥ . . . = {(x1 , x2 , . . . )|xn 2 Xn 8n 2 N+ }
Taking the Cartesian product of a set X with itself n-times we use the no-
tation; X n = X ⇥ X ⇥ . . . ⇥ X (for n-factors on the r.h.s.)
Examples:
17
1.4 Russell’s Paradox
A set is a collection of elements.
S = {x|x is a set}
Problems in the definitions of sets arise when we take the members of sets
to be themselves sets in an unrestricted manner.
Russell’s Paradox: Define the set of all sets that do not have themselves
as an element:
R = {x|x is a set , x 2
/ x}
Russell’s paradox was removed by introducing set axioms that don’t allow
the sets like S and R - for example the Zermelo-Fraenkel axioms.
18
1.5 Maps (functions)
Definition (Map/Function)
A map from a set D to a set T is an assignment of each element of D to
some element of T .
• D is the domain
• T is the target or codomain
• If we label the map - say f - we use the notations;
f: D!T
or if we are more explicit about specifying the map,
f: D!T
x ! f (x)
where x 2 D and f (x) 2 T .
• f (x) is the image of x under the map f
• x is the pre-image of f (x) under the map f
19
Example:
h: R!R
x ! h(x) = x + 1
idD : D ! D
x!x
Definition (Image)
The image (or range) of a map f : D ! T is the set of elements of T that
those of D are mapped to.
20
Example: in the above maps then Image(g) = {0, ;} and Image(h) = R.
Examples:
p
1. f : R ! R, with f (x) = x, is not a map as x = 1 doesn’t have an
image in R.
However,
h : [0, 1) ! R
p
x ! x
is a well defined map. Note that Image(h) = [0, 1)
2. f : R ! R, with f (x) = 1/x, is not a map as f (0) isn’t well defined.
However,
j : R \ {0} ! R
1
x !
x
is a well defined map. Note that Image(j) = R \ {0}.
3. f : R ! R, with f (x) defined so that f (x) = tan(x), is not a map.
The map is not well defined at x = ± ⇡2 , ± 3⇡
2
, . . ..
However,
⇡ ⇡
k:( ,+ ) ! R
2 2
x ! tan x
is a well defined map.
21
Definition (Composition)
Given maps f : X ! Y and g : Y ! Z then we define the composition of
f with g as,
g·f :X !Z
x ! g · f (x) = g(f (x))
Note: g · f (x) means act first with f , then act with g on the result.
h · (g · f ) (x) = (h · g) · f (x)
Consider RHS:
22
Definition (Surjective)
A map f : D ! T is surjective (or onto) if for every y 2 T there exists an
x 2 D s.t. f (x) = y.
Definition (Injective)
A map f : D ! T is injective (or one-to-one) if x 6= y implies f (x) 6= f (y)
for all x, y 2 D.
23
Definition (Bijective)
A map f : D ! T is bijective if it is both injective and surjective.
Each domain element is uniquely paired with a target element and vice versa.
Definition (Inverse)
1
Given a bijective map f : D ! T , then the inverse map, denoted f , is
defined by,
1
f :T !D
y ! x(y)
such that y = f (x). Such a map exists because f is surjective, and is unique
because f is an injection. Then,
f 1 · f = idD
f · f 1 = idT
24
1. If f is a surjection then R = B and so |B| n. Therefore |B| |A|.
3. If f is a bijection then both |B| |A| and |A| |B| must be true
which implies |A| = |B|.
[ If f : A ! B for finite sets A, B s.t. |A| > |B| then f is not an injection.]
25
2 Numbers and counting
2.1 Real numbers
Rational numbers can be expressed as infinite decimals e.g.
1
• 2
= 0.5 = 0.50̇
1
• 9
= 0.11111 · · · = 0.1̇
1
• 7
= 0.142857142857 . . . = 0.1̇4̇2̇8̇5̇7̇
where the dots denote recurring digits.
Infinite decimals provide a practical definition of the real numbers. Let us try
the following definition - in fact we shall see it needs a slightly modification
shortly;
Questions
26
1. Can the same real number have two di↵erent decimal expressions?
Proof.
9 9 9
0.99999 . . . = + 2 + 3 + ...
10 ✓ 10 10 ◆
9 1 1
= 1+ + + ...
10 10 102
✓ ◆
9 1
= 1 =1 (7)
10 1 10
Any infinite decimal that ends in recurring 9’s has the same property. There
exists a number ending in recurring 0’s that represents the same real number.
For example;
In fact this is the only type of ambiguity. We may amend our definition of a
real number to not allow decimals ending in recurring 9’s.
27
Definition (Real numbers)
A real number, r, is the infinite decimal,
r = n.d1 d2 d3 . . . (9)
where n 2 Z is the integer part, and di 2 {0, 1, 2, . . . , 9} for i = 1, 2, 3, . . .,
which is equal to the infinite sum,
d1 d2 d3
r =n+ + 2 + 3 + ... (10)
10 10 10
and we further require the condition,
6 9 m 2 N+ s.t. di = 9 8 i m (11)
Now;
• Every real number uniquely corresponds to an infinite decimal
• Two di↵erence decimals are di↵erent real numbers
Answer to question 2:
Firstly we prove that ending in recurring digits implies the number is rational.
Suppose a real ends in recurring digits;
r = n.d1 d2 . . . dn d˙n+1 . . . d˙n+N (12)
Then,
d1 d2 . . . dn dn+1 . . . dn+N dn+1 . . . dn+N dn+1 . . . dn+N
r =n+ n
+ n+N
+ n+2N
+ + ...
10 10 ✓ 10 10◆n+3N
d1 d2 . . . dn dn+1 . . . dn+N 1 1
=n+ n
+ n+N
1 + N + 2N + . . .
10 10 10 10
✓ ◆
d1 d2 . . . dn dn+1 . . . dn+N 1
=n+ +
10 n 10 n+N 1 101N
✓ ◆
d1 d2 . . . dn dn+1 . . . dn+N 1
=n+ + (13)
10n 10n 10N 1
28
where we use the notation a1 a2 . . . am is the natural number with decimal
digits ai , so,
r = 0.d1 d2 d3 . . . (15)
where,
10p
d1 = b c , remainder r1 = 10p d1 q
q
10r1
d2 = b c , remainder r2 = 10r1 d2 q
q
10r2
d3 = b c , remainder r3 = 10r2 d3 q
q
..
.
10rn 1
dn = b c, remainder rn = 10rn 1 dn q
q
..
. (16)
and then the remainders ri are elements of {0, 1, 2, . . . , q 1}, so there are
q possible remainders. Note that at step n, this procedure only depends on
the remainder from the previous step (n 1).
Now the pigeon hole principle during q + 1 steps of this process we must have
that at least two of the remainders are equal. Suppose that the first repeated
remainder is rn and repeats at rn+k . Then the digits dn+1 , dn+2 , . . . , dn+k will
29
repeat indefinitely, so,
p
= 0.d1 d2 . . . dn d˙n+1 d˙n+2 . . . d˙n+k (17)
q
This proves a rational 0 r < 1 is a recurring decimal. We may write a
general rational as,
p
r=N+ (18)
q
30
2.2 Completeness of R
Definition (upper/lower bounds): Let A ⇢ R and A 6= ;.
• X is bounded.
31
• The supremum of X is 5 and the infimum is 3.
• X is bounded.
• Z as no maximum or minimum.
Aside: The rationals, Q, are not complete. Consider X = {y 2 Q|y 2 < 2}.
Then X is bounded from above by rational numbers, eg. 32 is an upper bound,
but has no supremum (l.u.b.) in Q.
32
Proof. (of existence of infimum):
Since A is bounded from below there exists some integer n 2 Z such that it
is the greatest integer which is a lower bound of A (ie. n is a lower bound,
but n + 1 is not).
n.0
n.1
n.2
..
.
n.9 (19)
Choose the rational from these, n.d1 , such that it is the greatest one that is
a lower bound.
Now consider,
n.d1 0
n.d1 1
n.d1 2
..
.
n.d1 9 (20)
Choose the rational, n.d1 d2 , such that it is the greatest of these and still is a
lower bound.
Continue in this way to construct the number, n.d1 d2 d3 . . . which is the infi-
mum (g.l.b) of A.
33
Note: At every step in this algorithm we are making decisions about rational
numbers or integers to construct a new lower bound. It is only upon iterating
that we construct an infinite sequence of lower bounds whose limit is the
infimum, which may not be a rational number but will be an infinite decimal,
and hence a real number by our definition of real numbers - we will discuss
limits of sequences in much more detail later...
Theorem 2.2. For any two real numbers a, b 2 R we may find both a rational
and an irrational number that lie between them.
34
2.3 Countability and Cardinality
Definition (Cardinality equality)
Let A, B be sets (possibly infinite). If there exists a bijection f : A ! B
then we define,
|A| = |B|
Comments:
• If |A| = |B| and |B| = |C| then |A| = |C|. This follows from the fact
that if f : A ! B is a bijection, and g : B ! C is a bijection, then
g · f : A ! C is also a bijection.
|A| |B|
Comments:
• Again this is compatible with our previous results for finite sets.
• In a similar way to equality above, we may show that if |A| |B| and
|B| |C| then |A| |C|.
35
Crucially these definitions make sense due to the Cantor-Bernstein-Schroeder
theorem through the following proposition;
Proposition 2.3. If |A| |B| and |B| |A| then |A| = |B|.
Proof. If |A| |B| then by definition there exists an injection A ! B. If
|B| |A|, then an injection exists B ! A. By Cantor-Bernstein-Schroeder
then there is a bijection from A ! B and hence |A| = |B|.
Proposition 2.4. If A ✓ B then |A| |B|.
Proof. For a subset A ! B then the identity map idA is an injection, showing
the result.
Remarks:
• For reasonable set axioms (which include the ‘axiom of choice’) then for
sets A, B the existence of an injection f : A ! B implies the existence
of a surjection g : B ! A.
• For sets A, B exactly one of the following is true;
|A| = |B|, |A| < |B| or |A| > |B|.
Proposition 2.5. |N+ | = |N|
Proof. Consider the map,
f: N+ ! N
x ! f (x) = x 1 (21)
This map is a bijection.
Proposition 2.6. |N+ | = |Z|
Proof. Consider the map,
f: N+ ! Z (22)
defined by;
f (2n + 1) = n n 2 {0, 1, 2, . . .}
f (2m) = m m 2 {1, 2, 3, . . .}
so,
{f (1), f (2), f (3), f (4), . . .} = {0, 1, 1, 2, 2, 3, 3 . . .} (23)
This map is a bijection.
36
Note: these two results also imply; |N| = |Z|.
Definition (Countability)
A set A is countable if |A| = |N+ | (so there exists a bijection from N+ ! A).
Comment: While one can certainly count the number of elements in a finite
set, it is not a countable set.
X = {x1 , x2 , x3 , . . .} (24)
X = {x1 , x2 , x3 , . . .} (26)
f : N+ ! X
n ! f (n) = xn (27)
This is surjective and since the xn are distinct also injective so f is a bijection.
Hence X is countable.
37
This result is very useful as it allows a ”proof by list”; showing a set can be
listed then proves countability. Note that it must be clear and unambiguous
how the list is defined.
Claim: Z is countable.
Proof. We may list Z as,
Z = {0, 1, 1, 2, 2, 3, 3 . . .} (28)
so it is countable.
Notation (@0 )
The standard symbol for |N+ | is called ”aleph-zero” or ”aleph-nought”;
@0 = |N+ |
The Cardinal numbers give the sizes of sets. They are the natural numbers
together with ‘transfinite’ Cardinal numbers so;
0, 1, 2, 3, . . . ; @0 , @1 , @2 , . . . (29)
A [ B = {a1 , b1 , a2 , b2 , a3 , b3 , . . .} (30)
and omitting any element that appears in the list already (since for the list
it is important that the elements are distinct).
38
Alternative? Could we argue A [ B = {a1 , a2 , . . . , b1 , b2 , . . .}? Recall a
proof must be convincing! This is not convincing as listing the a’s never
finishes, so one never starts listing the b’s.
Proof. Since for any k 2 N+ the set Ak is countable we may list it as,
and the elements can be listed by following the above arrows, and omitting
at element if it is equal to a previous element that has been listed;
[1
i=1 Ai = {a1,1 , a1,2 , a2,2 , a2,1 , a3,1 , a3,2 , a3,3 , a2,3 , a1,3 , a1,4 . . .} (33)
Proof. A and B are both countable so we may list them as {a1 , a2 , . . .} and
{b1 , b2 , . . .} respectively. The elements may be listed by following the arrows
39
below;
40
the rationals in a two dimensional array as;
0 1 1 2 2 ...
1 0! 1 1! 2 2 ! ...
# " # "
1 1
2 0 2 2
1 1 ...
# " # "
1 1 2 2 (37)
3 0! 3
! 3 3 3
...
# "
1 1 1 1
4 0 4 4 2 2
...
# "
1 1 2 2
5 0! 5
! 5
! 5
! 5
...
Following the arrows, and omitting any rational that we have already en-
countered, we may list the rationals. Here we obtain,
1 1 1 1 2 1 1 1 1 2 2 2
Q = {0, 1, , , , , 1, 2, , , , , , , , , 2, . . .} (38)
2 3 3 2 3 4 4 5 5 5 5 3
41
Now r 6= ri for any i, since it di↵ers from ri at least in the i-th decimal place.
Thus r is not in the list of reals, leading to contradiction. Hence R is not
countable.
Definition: An uncountable set is an infinite set which is not countable.
Example:
By the above proposition a) |R| = |R \ Q|.
42
Proposition 2.17. The interval {x 2 R| ⇡
2
< x < ⇡
2
} has the same
cardinality as R.
Proof. The map,
⇡ ⇡
f: {x 2 R| <x< }!R
2 2
x ! f (x) = tan x (45)
is a bijection.
Proposition 2.18. The open interval (a, b) has the same cardinality as R.
Proof. Consider the map,
⇡ ⇡
g: {x 2 R|a < x < b} ! {y 2 R| <y< }
✓ 2 2 ◆
⇡ (a x) + (b x)
x!y= (46)
2 a b
which is a bijection. Then by the previous the open interval has the cardi-
nality equal to |R|.
Proposition 2.19. |R ⇥ R| = |R|
One can find an explicit bijection (for example using infinite decimal ex-
pansions). However a simpler proof uses the Cantor-Bernstien-Schroeder
theorem.
43
Proposition 2.20. |Rn | = |R| for n 2 N+ .
Proof is left as an exercise - question 3 in example sheet 3.
We may now show there are sets with cardinality greater than |R|.
Theorem 2.5. If A is a non-empty set, then |2A | > |A|.
Proof. Firstly consider the injection,
f: A ! 2A
a ! {a} (49)
A
This implies |A| |2 |.
Now suppose for contradiction that |A| = |2A |. Then there must exist a
bijection g : A ! 2A . Then for any a 2 A, g(a) is a subset of A. Now define
the set,
Z = {a 2 A|a 2
/ g(a)} (50)
Now since Z ⇢ A, then Z 2 2A . Since g is a bijection there must exist some
y 2 A such that g(y) = Z.
Our original assumption for contradiction leads to the existence of the set Z,
and we can ask the logical question: is y 2 Z or y 2/ Z. One must be true.
44
3 Sequences
Consider ⇡ = 3.141592635 . . .. Now consider the decimals truncated (not
rounded!) to 1, 2, 3, . . . decimal places:
x: N+ ! R (53)
The map may be listed as the infinite sequence (x(1), x(2), x(3), . . .).
45
3.1 Convergent sequences
We now introduce the very important tool of ✏ N.
When reading this think: ”... for any ✏ > 0 no matter how small there
exists an N 2 N+ . . .
Thus for any ✏ > 0 there exists an N such that all subsequent terms n > N
lie in the interval xn 2 (x ✏, x + ✏).
xn ! x as n ! 1 (54)
or,
x = lim xn (55)
n!1
Note that while a sequence may not converge (ie. diverges), it need not be
unbounded. An example is,
Example: Let xn = 1
n
for n 2 N+ .
Proposition: xn ! 0 as n ! 1.
46
Rough work: Want:
|xn x| < ✏
1
<✏
n
1
<✏
n
1
n> (57)
✏
End of rough work
Proof. Let ✏ > 0. Choose N 2 N+ such that N > 1✏ . Then for n > N we
have n > 1✏ and so xn = n1 < ✏. Hence,
Proposition: xn ! 0 as n ! 1.
|xn x| < ✏
|an | < ✏
|a|n < ✏
n log |a| < log ✏
log ✏
n> (59)
log |a|
noting that log |a| < 0. (For ✏ > 1 any n 2 N+ will do!). End of rough work
log ✏
Proof. Let ✏ > 0. Choose N 2 N+ such that N > log |a|
. Then for n > N we
log ✏
have n > log |a|
.
47
This implies, n log |a| < log ✏ since log |a| < 0, and so,
Draw diagram!
However since (xn ) converges to y, there must exist N2 2 N+ such that for
n > N2 we have |xn y| < y 2 x .
Then for n > max{N1 , N2 } we have both |xn x| < y 2 x and |xn y| < y x
2
which is a contradiction as these intervals are disjoint.
or alternatively (taking y ! y)
1. If zn = xn + yn then zn ! x + y as n ! 1.
2. If wn = xn · yn then wn ! x · y as n ! 1.
1 1
3. If y 6= 0 and yn 6= 0 then if un = yn
, un ! y
as n ! 1.
48
Proof. of proposition 1);
Let ✏ > 0. There exists N1 2 N+ such that for n > N1 then |xn x| < ✏
2
and there exists N2 2 N+ such that for n > N2 then |yn y| < 2✏ .
✏
Let N = max{N1 , N2 }. Then for n > N we have |xn x| < 2
and |yn y| < 2✏ .
Now,
✏ ✏
|zn (x + y)| = |(xn x) + (yn y)| |xn x| + |yn y| + =✏
2 2
(63)
Rough work:
hence,
but,
|(xn x)(yn y)| + |x(yn y)| + |y(xn x)| = |(xn x)| |(yn y)| + |x| |(yn y)| + |y| |(xn x)
(66)
Hence,
|xn yn xy| |(xn x)| |(yn y)| + |x| |(yn y)| + |y| |(xn x)| (67)
49
Proof. of proposition 2);
|xn yn xy| |(xn x)| |(yn y)| + |x| |(yn y)| + |y| |(xn x)|
✏ ✏ ✏
< + + =✏ (70)
3 3 3
Case 2: Suppose x = 0 but y 6= 0 or both. Let ✏ > 0. There exists N1 2 N+
such that for n > N1 then,
r
✏ ✏
|xn | < and |xn | < (71)
2 2|y|
There exists N2 2 N+ such that for n > N2 then,
r
✏
|yn y| < (72)
2
Let N = max{N1 , N2 }. Then for n > N we have,
p
|xn | < ✏ (74)
50
There exists N2 2 N+ such that for n > N2 then,
p
|yn y| < ✏ (75)
Theorem 3.1. (Squeezing theorem) Consider sequences (xn ), (yn ) and (zn )
where the first two converge to the same limit, xn ! Z and yn ! Z as n !
1. Suppose there exists N 2 N+ such that for all n > N then xn yn yn .
Then zn ! Z as n ! 1 too.
51
3.2 Bounds, monotonicity and convergence
We now consider the implications of completeness of the reals for sequences.
Let ✏ > 0. Since x ✏ is less than x it is not an upper bound. This implies
there must exist some xN 2 X such that x ✏ < xN . Since (xn ) is increasing
then for n > N we have x ✏ < xN < xn . Thus,
✏ < xn x (77)
xn x<✏ (78)
52
Definition (Subsequence):
Let (xn ) be a sequence. Let n1 , n2 , n3 , . . . 2 N+ by a strictly increasing se-
quence of natural numbers, ie. n1 < n2 < n3 < . . .. Define x̄k = xnk for all
k 2 N+ . Then (x̄k ) is a subsequence of (xn )
Comments:
Proof. Let (xn ) be a sequence. For each N 2 N+ define the set TN = {xn |n >
N }. Since these sets TN ✓ R, then either all the sets TN have a maximum
or there exists some set TN with no maximum.
Case 1:
Suppose every set TN has a maximum, max(TN ) 2 R. Let xn1 be the first
occurrence of max(T1 ) in the sequence (xn ), and consider the set Tn1 . Now
Tn1 ✓ T1 so max(Tn1 ) max(T1 ). Let xn2 be the first occurrence of max(Tn1 )
in the sequence (xn ) such that n2 > n1 .
Now consider Tn2 ✓ Tn1 , so that max(Tn2 ) max(Tn1 ). Let xn3 be the first
occurrence in (xn ) of max(Tn2 ) such that n3 > n2 . Then xn3 xn2 .
Now consider Tn3 ✓ Tn2 , and continue in this way to produce a decreasing
sequence (xn1 , xn2 , xn3 , . . .).
Case 2:
Now consider the case TM has no maximum. Choose xn1 = xM +1 . Since TM
has no maximum, then there must exist elements of TM larger than xM +1 .
53
Then let xn2 be the first term in the sequence such that n2 > M + 1 and
x n 2 > xn 1 .
Consider Tn2 1 . Note the terms (xM +1 , xM +2 , . . . xn2 1 ) are all smaller than
xn2 . Hence Tn2 1 cannot have a maximum because otherwise that would
have been a maximum of TM which would be a contradiction. So xn2 is not
a maximum of Tn2 1 and hence it contains an element greater than xn2 . Let
xn3 be the first term in the sequence such that n3 > n2 and xn3 > xn2 .
54
Application: Root finding methods
An important application of these ideas is in understanding the behaviour
of algorithms to find roots of functions. Suppose we consider an interval
I = (a, b) and a function f : I ! R. Suppose we are interested in solving
the equation x = f (x), and we know this has a solution ⇠ 2 I. Now assume,
Then graphically we might expect the sequence (xn ) defined by xn+1 = f (xn )
converges to the root taking any starting value x1 2 (a, ⇠).
• For any xn 2 (a, ⇠] then xn+1 = f (xn ) > xn . Hence the sequence is
increasing.
• If xn 2 (a, ⇠) then xn+1 = f (xn ) < f (⇠) = ⇠. Thus xn < xn+1 < ⇠
so xn+1 2 (a, ⇠). By induction all xn 2 (a, ⇠) (since x1 is). Thus all
xn < ⇠.
The sequence is monotone increasing and bounded and therefore must con-
verge.
However we have not yet shown that this converges to ⇠ - just somewhere. In
order to finalize the proof we need to constraint the behaviour of the function
- we will return to this example when we have discussed continuous functions
later.
55
3.3 Cauchy sequences
Our definition of a convergent sequence is a bit clunky as it requires us to
know the value of the limit in order to prove it is convergent. Suppose we
want to know if a sequence converges, but don’t know what the limiting value
is?
56
Now we aim to show the converse - a Cauchy sequence is convergent. This
is important as without knowing a limit we may show a sequence is Cauchy.
To prove this we first show simply a Cauchy sequence is bounded. Then we
go on to show it converges using Bolzano-Weierstrass.
Now,
(xn ) is Cauchy: hence there exists N 2 N+ such that for n, m > N we have
|xn xm | < 2✏ .
57
Now,
|xn x| = |(xn xnK ) (x xnK )| < |xn xnK | + |xnK x| (84)
and for n > N then,
|xn x| < ✏ (85)
1
Proposition 3.4. The sequence x1 = a, x2 = b and xn+2 = 2
(xn+1 + xn )
for n 1 is convergent.
Whilst we won’t use this, the limit is xn ! 23 b 1
3
a.
Proof.
1 1
xm+2 xm+1 = (xm xm+1 ) =) |xm+2 xm+1 | = |xm+1 xm |
2 2
1
=) |xm+2 xm+1 | = m |b a| (86)
2
Then for n > m
|xn xm | = |xn xn 1 + xn 1 + . . . xm+1 + xm+1 xm |
|xn xn 1 | + |xn 1 xn 2 | + . . . + |xm+2 xm+1 | + |xm+1 xm |
✓ ◆
1 1 1 2n1 m 1
1 + + . . . + n m |xm+1 xm | = 1 ⇥ m 1 |b a|
2 2 1 2 2
✓ ◆
1 1 1
=4 m n
|b a| m 2 |b a| (87)
2 2 2
Let ✏ > 0. Choose N such that,
1
|b a| < ✏ (88)
2N 2
Then for any n, m > N ,
1
|xn xm |
|b a| < ✏ (89)
2N 2
Hence the sequence is Cauchy and thus is convergent.
58
The following is an important example:
x1 = m.d1
x2 = m.d1 d2
x3 = m.d1 d2 d3
.. ..
. .
xn = m.d1 d2 d3 . . . dn
.. ..
. . (90)
Note: This shows that we may think about real numbers as a limit of a
Cauchy sequence of rational numbers, rather than as infinite decimals.
Proposition: xn ! r as n ! 1.
On the other hand, if we want to make statements about its limit then we
require the usual ✏-N technology.
59
Sequences in Q:
One may consider sequences over a subset of the reals such as the rationals
Q - for example the Cauchy sequence above.
One might imagine such sequences would behave in a similar way to real
sequences. However this is not the case. Consider the Cauchy sequence over
Q given by the truncation of ⇡ in decimals,
This fact can be used to give an alternative definition of the real numbers
using only rational numbers!
60
4 Series
The following are examples of series or series sums.
p 4 1 4
2=1+ + + + ...
10 100 1000
1
= 1 + x + x2 + x3 + . . . if |x| < 1
1 x
x2 x3
ex = 1 + x + + + ... (92)
2! 3!
Definition (Series):
A series P
(or series sum) is the infinite sum of a real sequence (an ). It is
denoted, 1 k=1 ak . We term the an the summands.
p 4 1 4
Example: for the series 2=1+ 10
+ 100
+ 1000
+ then S3 = 1.41.
61
4.1 Convergent series
Definition (value
P of a series):
If for a series 1k=1 k the sequence of partial sums, (Sn ), converges so S =
a
limn!1 Sn , then we say the series converges (or the series is convergent),
and its value is S, so,
1
X
S= ak (96)
k=1
1
X 1
xk = if |x| < 1 (98)
k=0
1 x
by the previous exercise. Now if |x| < 1 then xn+1 ! 0 as n ! 1, and hence
xn+1
1 x
! 0 in this limit leaving,
1
Sn ! as n ! 1 (100)
1 x
P1 P1
Proposition 4.2. If x = k=1 xk and y = k=1 yk are convergent series,
then,
1
X
a·x+b·y = (a · xk + b · yk ) (101)
k=1
for any a, b 2 R.
62
P P
Proof. Consider the partial sums Sn = nk=1 xk and Tn = nk=1 yk . Then
these converge, Sn ! x and Tn ! y. Now consider,
n
X
Un = (axk + byk ) (102)
k=1
X1
29 1 222
2 1
5 + 19 2 +1+ 15 + ...... +3+
2 k=1
2k
102000000 terms (103)
is a convergent series.
P1 1
Proposition 4.3. The series k=1 k is divergent.
63
Proof. Firstly we see for n > 0;
2
X
n ✓ ◆ ✓ ◆
1 1 1 1 1 1 1 1
S 2n = =1+ + + + + + + + ...
k=1
k 2 3 4 5 6 7 8
✓ ◆
1 1 1
+ + + ... + p +
9p 10p 16
..
.
✓ ◆
1 1
+ + ... + n
2n 1 + 1 2
n 1
2 terms
✓ ◆ ✓ ◆
1 1 1 1 1 1 1
1+ + + + + + + + ...
2 4 4 8 8 8 8
✓ ◆
1 1 1
+ + + ... + p +
16p 16p 16
..
.
✓ ◆
1 1
+ + ... + n
2n 2
1 1 1 1 n
= 1 + + + + ... + = 1 +
2 2 2 2 2
n terms (104)
Thus the partial sums (S2n ) are unbounded from above as n ! 1. Thus the
sequence (Sn ) is also unbounded above and diverges as n ! 1.
P
Proposition 4.4. If a series 1 k=1 ak has positive terms, an 0 and (Sn )
is bounded above then the series converges.
If we can show (Sn ) is increasing and bounded above then we learn the series
converges. However we don’t learn what value it converges to.
64
P1 1
Proposition 4.5. The series k=1 kp is convergent for p > 1. (This is the
Riemann zeta function ⇣(p)).
Proof. Firstly we see for n > 0;
n 1
2X ✓ ◆ ✓ ◆
1 1 1 1 1 1 1
p
=1+ p
+ p + p
+ p + p + p + ...
k=1
k 2 3 4 5 6 7
✓ ◆
1 1 1
+ + + . . . + +
8p 9p 15p
..
.
✓ ◆
1 1
+ + ... + n
(2n 1 )p (2 1)p
2n 1 terms
✓ ◆ ✓ ◆
1 1 1 1 1 1
1+ + + + + + + ...
2p 2p 4p 4p 4p 4p
✓ ◆
1 1 1
+ + + ... + p +
8p 8p 8
..
.
✓ ◆
1 1
+ + ... + n 1 p
(2n 1 )p (2 )
2 4 8 2n 1
= 1 + p + p + p + . . . + p(n 1)
2 4 8 2
1 1 1 1
= 1 + p 1 + 2(p 1) + 3(p 1) + . . . + (n 1)(p 1)
2 2 2 2
1 n
1 2(p 1)
= (105)
1 2(p1 1)
1
Now since p > 1 then 2(p 1) < 1 so,
n 1
2X
1 1
1 (106)
k=1
kp 1 2(p 1)
65
Thus the sequence (Sn ) is bounded. Since an > 0 (Sn ) is increasing. Hence
it must converge.
Lemma
P 4.1. (Simple comparison test I) P1
Let 1 k=1 bk be a convergent series such that 0 bk . Then the series k=1 ak
converges if 0 ak bk for all k 2 N .
+
Then both (Sn ) and (Tn ) are both increasing sequences and Sn Tn for all
n 2 N+ .
P
Now since 1k=1 ak converges there exists T 2 R such that Tn ! T as n ! 1.
The sequence (Tn ) is bounded by T and hence so is (Sn ).
66
4.2 Tests of convergence
We have seen above in the case where an 0 and (Sn ) is bounded then the
series converges. Suppose that the summands an are not positive - what can
we say more generally about convergence? In fact there are a number of
‘tests’ of convergence.
Since we don’t know whether a given series converges, and what the limit
of (Sn ) is, a powerful method to deal with series is observing convergence is
equivalent to (Sn ) being a Cauchy sequence. Recall Cauchy sequences are
useful as they are equivalent to convergent sequences, but do not explicitly
refer to the limit.
Let ✏ > 0. If (Sn ) is Cauchy there exists N such that for all n, m0 > N such
that |Sn Sm0 | < ✏. Take n > m0 , then,
n
X
Sn Sm 0 = ak (110)
k=m0 +1
Corollary 4.1. A necessary, but not sufficient, condition for convergence is;
67
P1
Note: If (ak ) does not converge to zero, the series k=1 ak does not converge.
Proof. That this is necessary for a convergent series follows directly from
proposition 4.6 above taking the case n = m.
P1 1
That it is not sufficient is shown by the example k=1 k , which as an ! 0
as n ! 1 but is divergent.
P1
Example: The series k=0 ( 1)k is divergent since an 6! 0 as n ! 1.
converges.
Note: bk 0
Proof. We observe 0 bn bn+1 for all n as (bn ) is decreasing.
or write,
68
or write,
I = (bm+1 bm+2 ) + (bm+3 bm+4 ) + . . . + (bn 2 bn 1 ) + bn 0 (117)
Hence we see for any n > m;
0 bm+1 bm+2 + bm+3 . . . bn bm+1 (118)
Let ✏ > 0. Since bn ! 0 as n ! 1 there exists N such that for all k > N
then |bk | = bk < ✏.
Lemma
P1 4.4. (Comparison test) P
Let k=1 bk be a convergent series such that 0 bk . Then the series 1k=1 ak
converges if there exists N 2 N+ such that |ak | bk for all k N .
Note: Before we only had this if ak > 0. Also this now only applies to the
tail of the series.
P1
Proof.
P1 Let ✏ > 0. Take S n and
P1 T n to be the partial sums for k=1 ak and
k=1 kb respectively. Since b
k=1 k converges, then (T n ) is Cauchy so there
exists M such that for any n > m > M ,
n
X n
X
bk = bk < ✏ (121)
k=m k=m
69
Let may choose M N . Now,
Definition
P1(absolute convergence):
A
P1series k=1 ak converges absolutely (or is absolutely convergent) if
k=1 |ak | converges.
P1 ( 1)k 1
Example: The sum k=1 k
converges but is not absolutely convergent.
70
Proof. Let us consider the cases.
Hence for all n > N then xn > ⇢, and so |an | > ⇢n > 1. Thus (an ) does not
tend to zero, and so the series cannot converge.
Then there exists N 2 N+ such that for n > N then |xn x| < ✏ and hence
xn < r.
71
Proof. The proof is very similar to the root test.
an+1
>⇢ (123)
an
so that, |an+1 | > |an |. Thus for n > N the sequence (|an |) is strictly increas-
ing, so |an+1 | > |aN +1 | for all n > N , and so the sequence (an ) cannot tend
to zero, and so the series cannot converge.
72
4.3 Power Series
One of the most important examples of a series in physics is a power series.
3. There exists r 2 R with r > 0 such that the series is absolutely conver-
gent for |x| < r, diverges for |x| > r and may or may not converge for
x = ±r.
In the latter case r is called the radius of convergence.
Examples:
P1
k=0 k!x diverges, by ratio test, for any x 2 R.
k
•
P1 1 k
• k=0 k! x converges, by ratio test, for any x 2 R.
P1 k
• k=0 x converges for |x| < 1, and diverges for |x| 1.
P1 ( 1)k 1 k
• k=1 k
x converges for |x| < 1, diverges for |x| > 1. It converges
for x = 1 and diverges for x = 1.
P ⇣ 1
⌘
Proposition 4.7. If for a power series 1 c
k=0 k x k
the sequence |c n | n con-
1
verges so |cn | n ! 1
r
for r 2 R, with r > 0, then r is the radius of convergence.
73
Proof. P
Consider applyingPthe root test to a power series. Consider the power
series 1 k
k=0 ck x = c0 +
1 n
n=1 an with an = cn x .
|x|
yn ! y = as n ! 1 (127)
r
Then by the root test the series is convergent if y < 1, ie. |x| < r, and is
divergent if y > 1 ie. |x| > r. For y = 1, so |x| = r then the series may or
may not converge.
74
4.4 Riemann reordering
We have defined series as a sum of a sequence. Now a sequence has a definite
ordering of its elements. Does that matter for the series, which after all is
simply their sum?
We have previously shown this series converges, and hence is finite. Thus we
have reached a contradiction.
75
• If it converges, but does not converge absolutely, then for every real
P1⇢ 20 R there exists a reordering of the summands, (ak ), such
0
number
that k=1 ak = ⇢.
Let (pn ) be the positive sequence and (qn ) be the negative one. Suppose
⇢ > 0 is the value we want the reordered series to converge to.
Take just enough of the first (pn )’s so their sum is just larger than ⇢.
(Note this is possible as the sum of the (pn ) must diverge, as the series does
not converge absolutely).
Now take just enough of the first (qn )’s so the sum is now just less than ⇢.
Now take enough of the next (pn )’s so the sum is again just larger than ⇢.
Again take enough of the next (qn )’s so the sum is just less than ⇢.
Continue in this manner. Since both sequences tend to zero this process
converges on ⇢.
76