2nd Chapitre - Compressed
2nd Chapitre - Compressed
Lebri Nemira
Applied Mathematics Laboratory,
Department of Mathematics,
Setif 1-University, 19000, Algeria.
Chapter 2
العــالقــات و التـطـبـيـقــات،المـجـمــوعــات
I. SETS المـجـمــوعــات
Definitions:
1. A set is the mathematical model for a collection of different things; we denote it
with capital letters: A, B, C, D, E…
2. A set contains elements or members, we denote it with minuscule letters: a, b, c,
d, e…
3. The relation between a set and it elements is a belonging relation which means
the element either belongs to the set,
If B is a set and x is an element of B, this is written in shorthand as x ∈ B, which can also be
read as "x belongs to B", or "x is in B". The statement "y is not an element of B" is written as
y ∉ B, which can also be read as "y is not in B" .
4. The set either denoted by mentioning all of its elements, or by mentioning the
propriety that unites these elements.
Example:
A = {-2, -1, 0, 1, 2} = {𝑥 ∈ ℤ: |𝑥| ≤ 2}
5. The empty set (or null set) is the unique set that has no elements. It is
denoted ∅ or { }.
The relation between sets:
1. The inclusion: we say that B includes A if every element 𝑥 from A belongs to the set B,
we write: A⊂B which means:
𝐴 ⊂ 𝐵 ⇔ (∀𝑥: 𝑥 ∈ 𝐴 ⟹ 𝑥 ∈ 𝐵)
Note: To approve that A⊄B it is enough to find an element 𝑥 from A that not belongs to
the set B.
Result: The empty set is a subset of every set, and every set is a subset of itself:
∅ ⊆ A , A ⊆ A.
2. The equality: If the set A is a sub from the set B, and the set B a sub from the set A in this
case we say that A and B are equal, we write A=B which means:
𝐴 = 𝐵 ⇔ (𝐴 ⊂ 𝐵 ∧ 𝐵 ⊂ 𝐴)
Basic operation:
Given any two sets A and B,
their union is the set of all things that are members of A or B or both, we denoted
A∪B.
A ∪ B = {𝑥: 𝑥 ∈ 𝐴 ∨ 𝑥 ∈ 𝐵}
their intersection is the set of all things that are members of both A and B, we
denoted A ∩ B . If A ∩ B = ∅, then A and B are said to be disjoint.
Properties:
A ∩ B = {𝑥: 𝑥 ∈ 𝐴 ∧ 𝑥 ∈ 𝐵}
A∩B⊂𝐴∧A∩B⊂B
𝐴⊂A∪B∧B⊂A∪B
A∩A=A ∪A=A
A∪∅=A∧A∩∅=∅
𝐴∪𝐵=𝐵∪𝐴∧𝐴∩𝐵=𝐵∩A
(𝐴 ∪ 𝐵) ∪ 𝐶 = 𝐴 ∪ (𝐵 ∪ 𝐶) ∧ (𝐴 ∩ 𝐵) ∩ 𝐶 = 𝐴 ∩ (𝐵 ∩ 𝐶)
𝐴 ∩ (𝐵 ∪ 𝐶) = (𝐴 ∩ 𝐵) ∪ (𝐴 ∩ 𝐶) ∧ 𝐴 ∪ (𝐵 ∩ 𝐶) = (𝐴 ∪ 𝐵) ∩ (𝐴 ∪ 𝐶)
The set difference is the set of all things that belong to A but not B. Especially
when B is a subset of A, we denoted A \ B (also written A − B).
A − B = {𝑥: 𝑥 ∈ 𝐴 ∧ 𝑥 ∉ 𝐵}
The symmetric difference is the set of all things that belongs to 𝐴 ∪ 𝐵 and not
belongs to 𝐴 ∩ 𝐵, we denoted A Δ B .
A∆B = (A − B) ∪ (𝐵 − 𝐴) = (𝐴 ∪ 𝐵) − (𝐴 ∩ 𝐵)
Properties:
𝐴 − (𝐴 − 𝐵) = 𝐴 ∩ 𝐵
𝐴−𝐵=∅⇔𝐴⊂𝐵
𝐴−𝐴=∅
𝐴∆(𝐵∆𝐶) = (𝐴∆𝐵)∆𝐶
The complement:
The complement of A is the set of all elements of E that not belongs to the A, we denoted A c or
CEA, we write:
𝐶𝐸𝐴 = {𝑥: 𝑥 ∈ 𝐸 ∧ 𝑥 ∉ 𝐴}
Properties:
𝐶𝐸 (𝐶𝐸𝐴) = 𝐴
𝐶 𝐸𝐸 = ∅ ∧ 𝐶𝐸∅ = 𝐸
𝐴 ⊂ 𝐵 ⇔ 𝐶 𝐸𝐵 ⊂ 𝐶𝐸 𝐴
Subsets of a Set:
Let be E a set, then the set that contains all the subsets of E called subsets of a set E, we
denoted 𝒫(𝐸), which means:
𝒫(𝐸) = {𝑋: 𝑋 ⊂ 𝐸}
Example:
𝐸 = {𝑎, 𝑏, 𝑐}
Note: subsets of a set is not empty ((𝐸)≠ ∅) because it contains at least the empty set.
Note: the Cartesian product is not commutative which means: 𝐸 × 𝐹 ≠ 𝐹 × 𝐸 and in case
of equality:
𝐸×𝐹=𝐹×𝐸⇔𝐸=𝐹
Properties:
𝐴⊂𝐸∧𝐵⊂𝐹⇔𝐴×𝐵⊂𝐸×𝐹
𝐴 × (𝐵 ∪ 𝐶) = (𝐴 × 𝐵) ∪ (𝐴 × 𝐶) ∧ 𝐴 × (𝐵 ∩ 𝐶) = (𝐴 × 𝐵) ∩ (𝐴 × 𝐶)
𝐴×𝐵=∅⇔𝐴=∅∨𝐵=∅
𝐴×𝐵≠∅⇔𝐴≠∅∧𝐵≠∅
Note: if we have 𝐸 = 𝐹 then we put: 𝐸 × 𝐹 = 𝐸 × 𝐸 = 𝐸2
Generalization:
The Cartesian product can be generalized to a finite number of sets, if we have 𝐸1, 𝐸2 …,
𝐸n then:
∏𝑛𝑖=1 Ei= 𝐸1 × 𝐸2 × … × 𝐸𝑛 = {(𝑥1, 𝑥2, … , 𝑥𝑛 ): 𝑥1 ∈ 𝐸1 and 𝑥2 ∈ 𝐸2 … ∧ 𝑥𝑛 ∈ 𝐸𝑛 }
Cardinality:
The cardinality of a set E is the number of members of E, we denoted Card(E).
If Card(E) was infinite we say that E is infinite, and if Card(E) was not infinite we say
that E is not infinite.
Properties:
Card(A∪ 𝐵) = Card(A) + Card(B) − Card(A ∩ 𝐵)
Card(A × 𝐵) = Card(A) × Card(B)
𝐴 ⊂ 𝐵 ⟹ Card(A) < Card(B)
Card(A) = 𝑛 ⟹ Card (𝒫(𝐴)) = 2𝑛
II Relations: العــالقــات
Definition:
Given a set X, a relation G over X is a set of ordered pairs of elements from X, formally: G ⊆ {(x,y):
x,y ∈ X}.
The statement (x, y) ∈ R reads "x is R-related to y" and is written as xℜy.
Example:
Let be ℜ a relation defined with:
∀𝑥, 𝑦 ∈ ℝ: 𝑥ℜ𝑦 ⇔ 𝑥 + 𝑦 = 0
then: G = {(𝑥, −𝑥)\𝑥 ∈ ℝ}
Properties of relations:
Some important properties that a relation ℜ over a set 𝐸 may have are:
Reflexive :
for all 𝑥 ∈ E, 𝑥ℜ𝑥. For e𝑥ample, “≥” is a reflexive relation but “>” is not.
Symmetric :
for all 𝑥, 𝑦 ∈ 𝐸, if 𝑥ℜ𝑦 then 𝑦ℜ𝑥 (∀𝑥, 𝑦 ∈ 𝐸: 𝑥ℜ𝑦 ⟹ 𝑦ℜ𝑥).
Antisymmetric :
for all 𝑥, 𝑦 ∈ 𝐸, if 𝑥ℜ𝑦 and 𝑦ℜ𝑥 then 𝑥 = 𝑦, which means:
∀𝑥, 𝑦 ∈ 𝐸: 𝑥ℜ𝑦 ∧ 𝑦ℜ𝑥 ⟹ 𝑥 =𝑦.
For example, “≥” is an antis𝑦mmetric relation.
Transitive :
for all 𝑥, 𝑦, z ∈ 𝐸, if 𝑥ℜ𝑦 and 𝑦ℜz then 𝑥ℜz , which means:
∀𝑥, 𝑦 ∈ 𝐸: 𝑥ℜ𝑦 ∧ 𝑦ℜ𝑧 ⟹ 𝑥ℜ𝑦
Example:
Let be 𝐸 ≠ ∅ and 𝒫 (𝐸) sub-sets of the set 𝐸 we defined the relation ℜ with:
∀𝐴, 𝐵 ∈ 𝒫 (𝐸): 𝐴ℜ𝐵 ⇔ 𝐴 ⊆ B
1. ℜ is reflexive relation:
∀𝐴 ∈ 𝒫(𝐸): 𝐴ℜ𝐴 ⇔ 𝐴 ⊆ 𝐴
2. ℜ is an antisymmetric relation:
∀𝐴, 𝐵 ∈ 𝒫(𝐸): 𝐴ℜ𝐵 ∧ 𝐵ℜ𝐴 ⟹ 𝐴 = 𝐵?
𝐴ℜ𝐵 ⇔ 𝐴 ⊆ 𝐵 … … … (1)
𝐵ℜ𝐴 ⇔ 𝐵 ⊆ 𝐴 … … … (2)
from (1) and (2): 𝐴 = 𝐵
3. ℜ is a transitive relation because the inclusion is transitive:
∀𝐴, 𝐵, 𝐶 ∈ 𝒫(𝐸): 𝐴ℜ𝐵 ∧ 𝐵ℜ𝐶 ⟹ 𝐴ℜ𝐶?
𝐴ℜ𝐵 ⇔ 𝐴 ⊆ 𝐵 … … … (1)
𝐵ℜ𝐶 ⇔ 𝐵 ⊆ 𝐶 … … … (2)
from (1) and (2): 𝐴 ⊆ 𝐵 ⊆ 𝐶 then 𝐴 ⊆ 𝐶 so 𝐴ℜ𝐶
Equivalence Relation:
Definition:
A binary relation ℜ defined over a set E is an equivalence relation if and only if it is
ℜ reflexive.
ℜ symmetric.
ℜ transitive.
Example1:
Let be ℜ a relation defined :
∀𝑥, 𝑦 ∈ ℝ ∶ 𝑥ℜ𝑦 ⇔ 𝑥2 − 𝑥 = 𝑦2 – 𝑦
this is an equivalence relation because:
ℜ is reflexive:
∀𝑥 ∈ ℝ ∶ 𝑥2 − 𝑥 = 𝑥2 – 𝑥.
ℜ is symmetric :
∀𝑥, 𝑦 ∈ ℝ ∶ 𝑥ℜ𝑦 ⟹ 𝑦ℜ𝑥?
𝑥ℜ𝑦 ⇔ 𝑥2 − 𝑥 = 𝑦2 − 𝑦 ⇔ 𝑦2 − 𝑦 = 𝑥2 − 𝑥
⇔ 𝑦ℜ𝑥
ℜ is transitive:
∀𝑥, 𝑦, 𝑧 ∈ ℝ ∶ 𝑥ℜ𝑦 ∧ 𝑦ℜ𝑧 ⟹ 𝑥ℜ𝑧?
𝑥ℜ𝑦 ⇔ 𝑥2 − 𝑥 = 𝑦2 − 𝑦 … … . (1)
𝑦ℜ𝑧 ⇔ 𝑦2 − 𝑦 = 𝑧2 − 𝑧 … … . (2)
By collecting (1) and (2) we find:
𝑥2 − 𝑥 = 𝑧2 − 𝑧 ⇔ 𝑥ℜ𝑧
Example2:
Over the set ℤ set of integers we defined the relation:
𝑥ℜ𝑦 ⇔ ∃𝑘 ∈ ℤ: 𝑥 − 𝑦 = 3𝑘
ℜ is reflexive:
∀𝑥 ∈ ℤ: 𝑥ℜ𝑥?
∀𝑥 ∈ ℤ: 𝑥 − 𝑥 = 0 = 3 × 0
ℜ is symmetric :
∀𝑥, 𝑦 ∈ ℤ: 𝑥ℜ𝑦 ⟹ 𝑦ℜ𝑥?
⇔ 𝑦ℜ𝑥
ℜ is transitive:
∀𝑥, 𝑦, 𝑧 ∈ ℤ: 𝑥ℜ𝑦 ∧ 𝑦ℜ𝑧 ⟹ 𝑥ℜ𝑧?
𝑥ℜ𝑦 ⇔ ∃𝑘 ∈ ℤ: 𝑥 − 𝑦 = 3k … … . (1)
Equivalence class:
Formally, given a set E and an equivalence relation ℜ over E, the equivalence class of an
element a in E denoted by [a] is the set:
[a] = {𝑥 ∈ S: 𝑥 ℜ a}
Order Relation:
Definition:
A binary relation ℜ defined over a set E is an order relation if and only if it is
ℜ reflexive.
ℜ antisymmetric.
ℜ transitive.
Example:
1. (ℝ, ≤) is an order relation.
2. Let be E a set, ((𝐸), ⊂) is an order relation.
Definition:
A mapping from a set E to a set F is a binary relation on E×F which associates each element of E with
exactly one element of F.
In other words:
𝑓 is a map ⇔ ∀𝑥 ∈ E; ∃! 𝑦 ∈ F: 𝑦 = 𝑓 (𝑥)
Example:
Let be the two maps:
𝑓: ℝ ⟶ ℝ and g: ℝ+ ⟶ ℝ+
𝑥 ⟼ 2𝑥 + 1 𝑥 ⟼ √𝑥
The graph of a map:
Or:
∀𝑥1, 𝑥2 ∈ 𝐸: 𝑓 (𝑥1) = 𝑓 (𝑥2) ⟹ 𝑥1 = 𝑥2
Note: to approve that 𝑓 is not an injection it`s enough to find two elements 𝑥1, 𝑥2 from E such
𝑥1≠𝑥2 and 𝑓 (𝑥1) = (𝑥2)
Example 1: let be:
𝑓: ℝ ⟶ ℝ
𝑥⟼𝑥−1
𝜋𝜋
𝑠𝑖𝑛: [− 2 , 2 ] → [−1,1] Is a bijection.
𝑥 ⟼ √𝑥
This map is a bijection because:
∀𝑦 ∈ ℝ+; ∃! 𝑥 =𝑦 2 ∈ ℝ+: 𝑦 = √𝑥
The inverse mapping:
Let 𝑓: E→F and g: F→E be two maps.
Such as:
g∘𝑓=IE and 𝑓∘g=IF.
Then:
g is the inverse mapping of 𝑓 we denoted 𝑓-1
f is the inverse mapping of g we denoted g-1
Theorem:
Let 𝑓: E→F be map.
If f is bijective then it has an inverse mapping.
Example: Let 𝑓 be a map such as:
𝑓: ℝ ⟶ ℝ
𝑥 ↦ 𝑥3 – 1
It is a bijection (the student must approve it) therefore it has an inverse mapping we can
find it by put
y= 𝑓 (𝑥)
3
⇔ y= 𝑥3 – 1 ⇒ 𝑥= √𝑥 + 1
In the end we write:
𝑓-1: ℝ ⟶ ℝ
𝑥 ↦ 3√(𝑥 + 1)
We have:
1 3 3
0 ≤ 𝑥 ≤2⇒2≤ 2 − 𝑥 ≤ 2 ⇒ 𝑓 (𝐴) = [2, 2]