MA313 Real and Complex Analysis: Dr. Robin S. Havea
MA313 Real and Complex Analysis: Dr. Robin S. Havea
Lecture 1.2
Functions 2
Cartesian product . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Function . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Mapping and image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Direct and inverse images. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Special types of functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Inverse function. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Composition of functions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Cardinality of a Set 14
Countability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Cantor’s Theorem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
1
Functions 2 / 21
Cartesian product
If A, B are nonempty sets, then the Cartesian product of A and B is the set of all
ordered pairs
A × B := {(a, b) : a ∈ A, b ∈ B}.
R × R = {(x, y) : x ∈ R, y ∈ R}.
,
RSH MA313L1.2 – 3 / 21
Function
In a nutshell,
More formally,
The set A of first elements is called the domain of f denoted by D( f ); note that
D( f ) = A.
The set of second elements in f is called the range of f denoted by R( f ); note that
R( f ) ⊆ B.
RSH MA313L1.2 – 4 / 21
2
Direct and inverse images
Let f : A → B be a function with D( f ) = A and R( f ) ⊆ B.
f (E) := { f (x) : x ∈ E} ⊆ B.
f −1 (H) := {x ∈ A : f (x) ∈ H} ⊆ A.
RSH MA313L1.2 – 6 / 21
Example
Consider f : R → R defined by f (x) = x2 . The image of
E = {x : 0 ≤ x ≤ 1}.
under f is
f (E) = {x ∈ R : 0 ≤ x ≤ 1}.
The inverse image of
H = {x ∈ R : 0 ≤ x ≤ 1}
under f is
f −1 (H) = {x ∈ R : −1 ≤ x ≤ 1}.
Notice that D( f ) = R and
R( f ) = {x ∈ R : x ≥ 0} ⊆ R.
What are f (Z) and f −1 (T) if T = {81}? ,
RSH MA313L1.2 – 7 / 21
3
Special types of functions
Let f : A → B. We say that f is:
• one–to–one or injective if
∀a1 ∈ A∀a2 ∈ A f (a1 ) = f (a2 ) ⇒ a1 = a2 ,
Example
(a) f : R → R defined by
f (x) = x2
is not one–to–one. Why?
(b) g : R → R defined by (
x−1 if x≥0
g(x) =
x+1 if x<0
is onto R but fails to be one–to–one. Why?
(c) f : R → R defined by
f (x) = ex
is one–to–one but not onto R. Why? ,
RSH MA313L1.2 – 9 / 21
Why?
(a) f (−1) = f (1) = 1.
(b) g(−1) = g(1) = 0
(c) Graph f (x) = ex .
RSH MA313L1.2 – note 1 of slide 9
4
Example
Let h : R → R defined by h(x) = 3x + 2. Then:
(a) h is a one–to–one function.
(b) h is onto R.
Exercise: Justify. ,
RSH MA313L1.2 – 10 / 21
Justification
(a) One–to–one: Suppose h (x1 ) = h (x2 ). Then 3x1 + 2 = 3x2 + 2 implying x1 = x2 .
(b) Onto: Suppose y ∈ R(g) = R. Then for x = 31 (y − 2) ∈ D(g) = R we have
1 1
h(x) = h (y − 2) = 3 (y − 2) + 2 = y.
3 3
RSH MA313L1.2 – note 1 of slide 10
Inverse function
If f : A → B is a bijection of A onto B, then
g := {(b, a) ∈ B × A : (a, b) ∈ f }
is a function on B into A. This function is called the inverse function of f and is denoted
by f −1 . The function f −1 is also called the inverse of f .
Notice that
• D( f ) = R f −1 ,
• R( f ) = D f −1 .
RSH MA313L1.2 – 11 / 21
Composition of functions
If f : A → B and g : B → C, and if R( f ) ⊆ D(g) = B, then the composition function g ◦ f
is the function from A into C defined by
N.B. Order of composition is important! For instance, if f (x) = x + 1 and g(x) = x2 , then
and
(g ◦ f )(x) = g( f (x)) = [ f (x)]2 = (x + 1)2 = x2 + 2x + 1.
RSH MA313L1.2 – 12 / 21
5
Theorem
Let f : A → B and g : B → C be functions and let H be a subset of C. Then
(g ◦ f )−1 (H) = f −1 g−1 (H) .
Proof. Omitted.
RSH MA313L1.2 – 13 / 21
Cardinality of a Set 14 / 21
Countability
The set S is said to be:
• denumerable (or countably infinite) if there exists a bijection of N onto S.
• countable if it is either finite or denumerable.
• uncountable if it is not countable.
RSH MA313L1.2 – 15 / 21
Example
(a) The function f : Z → N, defined by
(
2n if n ≥ 1
f (n) = ,
1 − 2n if n ≤ 0
6
Theorem
The set N × N of all ordered pairs of positive integers is countable/denumerable.
Proof. (SKETCH) List all ordered pairs and count by following the arrows.
Since we are able to enumerate all elements in the above table, the set must be
countable.
RSH MA313L1.2 – 17 / 21
Theorem
Let S, T be sets such that T ⊆ S.
Proof. Omitted.
RSH MA313L1.2 – 18 / 21
Theorem
The following are equivalent conditions.
Proof. Omitted.
RSH MA313L1.2 – 19 / 21
7
Theorem
If Am is a countable set for each m ∈ N, then the union
∞
[
Am
m=1
is countable.
Proof. Omitted.
RSH MA313L1.2 – 20 / 21
Cantor’s Theorem
If A is a set, then there is no surjection of A onto the set P(A) of all subsets of A.
Proof
(Contradiction) Suppose there is a surjection f : A → P(A). Because f (a) ⊆ A, either
a ∈ f (a) or a < f (a). Let
D := {a ∈ A : a < f (a)} ⊆ A.
If f is a surjection, then D = f (a′ ) for some a′ ∈ A.
Thus we must have either a′ ∈ D or a′ < D. If a′ ∈ D, then since D = f (a′ ), we must have
a′ ∈ f (a′ ), contradicting the definition of D. Similarly, if a′ < D, then a′ < f (a′ ) so that
a′ ∈ D, another contradiction.
Therefore, f cannot be a bijection.
RSH MA313L1.2 – note 1 of slide 21