Beamer Sets and Functions 10-2024
Beamer Sets and Functions 10-2024
Beamer Sets and Functions 10-2024
a ∈ A.
Otherwise, we write
a∈
/ A.
If A contains no elements, it is the empty set, denoted by ∅.
Two sets are equal if they have exactly the same elements. In other words,
A = B ⇔ (x ∈ A ⇔ x ∈ B ).
All the elements that we will consider are assumed to belong to a universe
set U.
We use the bracket notation {} to refer to a set.
Example
The sets {1, 2, 3} and {3, 2, 1} are the same, because the ordering does
not matter. The set {1, 1, 2, 3, 3} is also the same set as {1, 2, 3}, because
we are not interested in repetitions.
One may specify a set explicitly, that is by listing all the elements the set
contains, or implicitly, using a predicate :
{x : P (x )}.
Definition
The Cardinality |A| of a set A is the number of distinct elements of A. If
|A| is finite, then A is said to be finite. Otherwise, A is said to be infinite.
Example
1 | ∅ | = 0 while |{ ∅ }| = 1.
2 |{1, 2, 5}| = 3.
A ∪ B = {x : x ∈ A ∨ x ∈ B }.
Definition
The intersection of A and B is
A ∩ B = {x : x ∈ A ∧ x ∈ B }.
Example
If A = {1, 2, 3, 4} and B = {3, 4, 5, 6}, then
A ∪ B = {1, 2, 3, 4, 5, 6}
and
A ∩ B = {3, 4}.
Definition
The sets A and B are disjoint when A ∩ B = ∅.
Definition
The absolute complement or, simply, the complement of a set A is
defined as
A = U − A = {x : x ∈ U ∧ x ∈/ A}.
Definition
The relative complement of a set B with respect to a set A or, simply,
the set difference of B from A is
A − B = {x : x ∈ A ∧ x ∈
/ B }.
Example
Let U = {1, 2, · · · , 10}, A = {1, 2, 3, 4, 5} and B = {3, 4, 5, 6, 7, 8}.
Then
A − B = {1, 2}
and
A = {6, 7, 8, 9, 10}.
Use Venn diagram to illustrate.
Example
R − Q : irrational numbers.
A ∪ (B ∩ C ) 6 = (A ∪ B ) ∩ C .
A ∪ (B ∪ C ) = (A ∪ B ) ∪ C ,
and
A ∩ (B ∩ C ) = (A ∩ B ) ∩ C ,
then we can write A ∪ B ∪ C and A ∩ B ∩ C .
|A ∪ B | = |A| + |B |.
|A ∪ B | = |A| + |B | − |A ∩ B |.
Corollary
If A, B and C are finite sets, then so is A ∪ B ∪ C , and
|A ∪ B ∪ C | = |A| + |B | + |C | − |A ∩ B | − |A ∩ C | − |B ∩ C | + |A ∩ B ∩ C |
A1 ∪ A2 ∪ · · · ∪ Am = ∪m
i =1 Ai = {x : x ∈ Ai for some Ai }
A1 ∩ A2 ∩ · · · ∩ Am = ∩m
i =1 Ai = {x : x ∈ Ai for every Ai }
Now let A be any collection of sets. The union and the intersection of
these sets are denoted and defined, respectively, by
We have then
A * B ⇔ ∃x, x ∈ A ∧ x ∈
/ B.
Example
Let A = {1, 2, 3} and B = {1, 2, 5}. Then A * B because ∃ 3 ∈ A and
3∈/ B.
When A ⊆ B but A 6= B, we say that A is a proper subset of B, and we
write A ⊂ B ).
Example
N ⊂ Z ⊂ Q ⊂ R ⊂ C.
Theorem
Let A, B, C be sets. Then
1 A ⊆ B ⇔ B ⊆ A.
2 ∅ ⊆ A.
3 A = B ⇔ A ⊆ B ∧ B ⊆ A.
4 If A ⊆ B and B ⊆ C , then A ⊆ C .
The set Z plays the role of an index set, a set whose only purpose is to
enumerate the elements of the family. Each element of an index set is
called an index. If we let I = Z and Ai = [i, i + 1[, the family can be
written as
F = {Ai : i ∈ I }.
Example
P ({1, 2, 3}) = {∅, {1}, {2}, {3}, {1, 2}, {1, 3}, {2, 3}, {1, 2, 3}}
Definition
The Cartesian product of A and B is
A × B = {(a, b ) : a ∈ A ∧ b ∈ B }.
Example
If A = {1, 2} and B = {0, 1, 2},
A × B = {1, 2} × {0, 1, 2} = {(1, 0), (1, 1), (1, 2), (2, 0), (2, 1), (2, 2)}.
A × B = {(1, ∅), (1, {1, 5}), (2, ∅), (2, {1, 5}), (7, ∅), (7, {1, 5})}.
A × B × C = {(a, b, c ) : a ∈ A ∧ b ∈ B ∧ c ∈ C },
A × B × C × D = {(a, b, c, d ) : a ∈ A ∧ b ∈ B ∧ c ∈ C ∧ d ∈ D },
and
An = {(a1 , a2 , · · · , an ) : ai ∈ A ∧ i = 1, 2, · · · , n }.
Rn = R × R × · · · × R (n times) is the Cartesian n −space.
October 10, 2024 28 / 1
FUNCTIONS
Example
Let E = {1, 2, 3} and F = {a, b }. Then we can define a function
f : E → F by setting f (1) = f (2) = a and f (3) = b.
This can be represented by the following pictures.
Definition
Let f : E → F be a function and A ⊂ E . The restriction of f to A is the
function denoted f/A : A → F defined by f/A = f (x ), ∀x ∈ A.
χA : E → {0, 1}
1 if x ∈ A .
x 7 → χA (x ) =
0 if x ∈
/A
Definition
For a function f : E → F , A ⊆ E ,and B ⊆ F , the image of A is
f (A) = {y ∈ F : ∃x ∈ A, y = f (x )}.
f −1 (B ) = { x ∈ E : f (x ) ∈ B }
Example
Let f : R ⇒ R, f (x ) = x 2 . Then
1 f ([−1, 1]) = [0, 1].
2 f −1 ({1}) = {−1, 1}.
3 f −1 ({−1}) = ∅.
Let f : E → F be a function.
1 ∀A, B ∈ P (E ), A ⊂ B ⇒ f (A) ⊂ f (B ).
2 ∀A, B ∈ P (E ), f (A ∩ B ) ⊂ f (A) ∩ f (B ).
3 ∀A, B ∈ P (E ), f (A ∪ B ) = f (A) ∪ f (B ).
4 ∀A, B ∈ P (F ), f −1 (A ∪ B ) = f −1 (A ) ∪ f −1 (B ).
5 ∀A, B ∈ P (F ), f −1 (A ∩ B ) = f −1 (A ) ∩ f −1 (B ).
Definition
Two functions f : E → F and g : G → H are said to be equal if
1 E = G and F = H.
2 ∀x ∈ E , f (x ) = g (x ).
Definition
A function f : E → F is injective if we have
Example
The function f : Z → Z defined by f (x ) = x 2 , ∀x ∈ Z, is not injective
since f (1) = f (−1).
The function g : N → N defined by g (x ) = x 2 , ∀x ∈ N, is injective.
∀y ∈ F , ∃x ∈ E , y = f (x ).
Definition
A function that is both injective and surjective is said to be bijective.
Example
f : [0, +∞[ → [0, +∞[
is bijective
x 7 → f (x ) = x 2
Theorem
Let f : E → F be a function. Then f is bijective if and only if
∀y ∈ F , ∃!x ∈ E : f (x ) = y .
f (x ) = y ⇔ x = f −1 (y ).
Definition
f −1 is called the inverse of f .
Example
f : [0, +∞[−→ [0, +∞[ defined by √ f (x ) = x 2 is bijective.
Its inverse is given by f −1 (x ) = x.
Definition
Let f : E −→ F and g : F −→ G be functions. The composed function
g ◦ f : E −→ G is defined by :
∀x ∈ E , g ◦ f (x ) = g (f (x )).
Example
Let f , g : R −→ R where f (x ) = x 2 and g (x ) = x + 1. Then
(g ◦ f )(x ) = g (x 2 ) = x 2 + 1,
while
(f ◦ g )(x ) = f (x + 1) = (x + 1)2 = x 2 + 2x + 1.
Therefore, in general,
g ◦ f 6= f ◦ g .
October 10, 2024 42 / 1
Composition
Theorem
Let f : E −→ F , g : F −→ G be functions. Then
1 If g ◦ f is injective, then f is injective.
2 If g ◦ f is surjective, then g is surjective.
Theorem
Let f : E −→ F , g : F −→ G and h : G −→ H be functions. Then we
have
h ◦ (g ◦ f ) = (h ◦ g ) ◦ f .
Theorem
Let f : E −→ F be a bijective function, then f −1 ◦ f = IdE and
f ◦ f −1 = IdF .