Chapter 2 Sets and Applications
Chapter 2 Sets and Applications
In this chapter, we will study two parts: sets and functions, and we also have
some unresolved exercises.
I/ Sets 2.1
Note:
1. The set that contains no elements is called the empty set, denoted by ∅ or
{ }.
2. The order of elements has no importance , i.e., {1,2,3}is the same as
{3,2,1}.
3. If the number of elements in a set E is finite, we say that E is a finite set.
4. A set can also be represented by its characteristic property, for example:
𝐸 = {𝑥 ∈ ℝ\𝑥 2 − 4 = 0}
Cardinality of a Set
Definition 2.2: We call the cardinality of a set E the number of elements in the
set, denoted by ∣E∣ or Card{E}
Example: E ={ a, b, c } .
∣E∣= Card(E) = 3
Note:
2. Inclusion
𝐸 ⊆ 𝐹 ⇔ ∀𝑥, 𝑥 ∈ 𝐸 ⟹ 𝑥 ∈ 𝐹
𝐸 ⊈ 𝐹 ⟺ ∃𝑥, 𝑥 ∈ 𝐸 𝐴𝑛𝑑 𝑥 ∉ 𝐹
Note:
3. Equality
𝐴≠𝐵⟺𝐴⊄𝐵 ⋁ 𝐵⊄𝐴
Properties
1. ∅ ∈ 𝒫(𝐴)
2. A∈ 𝒫(𝐴)
3. 𝐶𝑎𝑟𝑑(𝒫(𝐴)) = 2𝐶𝑎𝑟𝑑(𝐴) .
2.3.1 Intersection
Definition 2.7: The intersection of sets A and B is the set of elements that
belong to both A and B, denoted by A∩B.
𝐴 ∩ 𝐵 = {𝑥 \𝑥 ∈ 𝐴 ⋀ 𝑥 ∈ 𝐵}
𝐴∩𝐵
2.3.2The Union
Definition 2.8: The union of sets A and B is the set of elements that belong to A
or B, denoted by A∪B. Thus:
𝐴 ∪ 𝐵 = {𝑥: 𝑥 ∈ 𝐴 𝑜𝑟 𝑥 ∈ 𝐵}
𝐴∪𝐵
A B
Example: A={1,2,3},B={3,4,5}
A∪B={1,2,3,4,5}
1. 𝐴∪∅=𝐴,
2. 𝐴 ∪ 𝐴 = 𝐴,
3. 𝐴 ∪ 𝐵 = 𝐵 ∪ 𝐴 (𝐶𝑜𝑚𝑚𝑢𝑡𝑎𝑡𝑖𝑣𝑖𝑡𝑦),
4. (𝐴 ∪ 𝐵) ∪ 𝐶 = 𝐴 ∪ (𝐵 ∪ 𝐶)(𝐴 ∪ 𝐵) ∪ 𝐶 = 𝐴 ∪ (𝐵 ∪
𝐶) (𝐴𝑠𝑠𝑜𝑐𝑖𝑎𝑡𝑖𝑣𝑖𝑡𝑦),
5. 𝐴 ∪ (𝐵 ∩ 𝐶) = (𝐴 ∪ 𝐵) ∩ (𝐴 ∪ 𝐶) (𝐷𝑖𝑠𝑡𝑟𝑖𝑏𝑢𝑡𝑖𝑣𝑖𝑡𝑦),
6. 𝐴 ⊆ 𝐴 ∪ 𝐵 ; 𝐵 ⊆ 𝐴 ∪ 𝐵,
7. ∅ ⊆ 𝐴 .
2.3.3 Complement
𝐴𝐶 = {x ∈ E ⋀x ∉ A}
Properties:
Remark:
∣A×B∣=∣A∣×∣B∣.
A×B×C={(a,1,x),(a,1,y),(a,2,x),(a,2,y),(b,1,x),(b,1,y),(b,2,x),(b,2,y) }
Note:
Attention: Do not confuse the concept of the pair (x,y) with the concept of the
set. A pair is a single point in the Cartesian product, but a set with two elements
x and y is {x,y}.
Example:
We will study two types of binary relations: equivalence relations and order
relations.
1. Reflexivity: ∀𝑥, x ℛ x
2. Symmetry: If x ℛ y, then y ℛ x ,
3. Transitivity: If x ℛ y and y ℛ z, then x ℛ z.
∃ 𝑘 ∈ ℕ; 𝑥 + 𝑦 = 2𝑘 𝑎𝑛𝑑 ∃ 𝑘 ′ ∈ ℕ; 𝑦 + 𝑧 = 2𝑘 ′ . 𝑡ℎ𝑒𝑛 𝑥 + 𝑧
= 2(𝑘 + 𝑘 ′ − 𝑦).
II/ Functions
We also have:
Thus:
Example:
1
2. Let 𝑔 be defined from ℝ 𝑡𝑜 ℝ by 𝑔(𝑥) = .
𝑥−1
Note :
G is the domaine of 𝑔.
F is the co-domaine of 𝑓.
H is the co-domaine of 𝑔.
𝑓(𝑥) = 𝑥.
1 𝑖𝑓 𝑥 ∈ 𝐴
𝑓𝐴 (𝑥) = {
0 𝑖𝑓 𝑥 ∉ 𝐴
Properties:
1. 𝑓𝐴∩𝐵 = 𝑓𝐴 𝑓𝐵 .
2. 𝑓𝐴∪𝐵 = 𝑓𝐴 +𝑓𝐵 − 𝑓𝐴 𝑓𝐵 .
3. 𝑓𝐴𝐶 = 1 − 𝑓𝐴 .
4. 𝑓𝐴\𝐵 = max(0, 𝑓𝐴 − 𝑓𝐵 ).
5. 𝑓𝐴∆𝐵 = |𝑓𝐴 − 𝑓𝐵 |.
6. 𝐴 ⊂ 𝐵 ⟺ 𝑓𝐴 ≤ 𝑓𝐵 .
Attention: Do not confuse the image 𝑓(𝑥) and the function 𝑓. f is a function,
but 𝑓(𝑥) is the image of x by the function 𝑓.
𝑓: 𝐸 ⟶ 𝐹 𝑔: 𝐺 ⟶ 𝐻
Remark:
(𝑔 ∘ 𝑓)(𝑥) ≠ (𝑓 ∘ 𝑔)(𝑥)).
2. 𝑔 ∘ (𝑓 ∘ ℎ) = (𝑔 ∘ 𝑓) ∘ ℎ .
𝑓: 𝐼𝑅 ⟶ 𝐼𝑅 and 𝑔: 𝐼𝑅 ⟶ 𝐼𝑅
E F
X 1
Y 2
Z 4
𝑓1 𝑖𝑠 𝑖𝑛𝑗𝑒𝑐𝑡𝑖𝑣𝑒 .
𝑓2
E F
A 2
B 5
C 3
𝑓: 𝐼𝑅 ⟶ 𝐼𝑅
𝑥 ⟼ 𝑓(𝑥) = 𝑥 2 .
2.8.2 Surjectivity
Definition 2.20: We say that a function 𝑓 defined from E to F is surjective
(onto ) if and only if: ∀𝑦 ∈ 𝐹, ∃𝑥 ∈ 𝐸 𝑠𝑢𝑐ℎ 𝑡ℎ𝑎𝑡 𝑓(𝑥) = 𝑦
X 1
Y 2
Z 3
E F
𝑓1
𝑓1 is surjective (onto)
𝑓2 is not surjective (not onto) because the element 5 has not a pre-image in E.
𝑓: 𝐼𝑅 ⟶ 𝐼𝑅
𝑥 ⟼ 𝑓(𝑥) = 𝑥 2 .
2.8.3 Bijectivity
E F
X 1
Y 2
Z 3
𝑓 is bijective
Example
𝑓: 𝐼𝑅 ⟶ 𝐼𝑅
𝑥 ⟼ 𝑓(𝑥) = 2𝑥 + 5.