Professional Documents
Culture Documents
RELATIONS
Partition
Let S be a nonempty set. A partition of S is a subdivision of S into nonoverlapping,
nonempty subsets. Precisely, a partition of S is a collection of P = {Ai} of nonempty
subsets of S such that
i. Each a ∈ S belongs to one of the Ai.
ii. The sets {Ai} are mutually disjoint; that is,
If Ai ≠ Aj, then Ai ∩ Aj = Ø
The subsets in a partition are called cells. Thus each 𝑎 ∈ S belongs to exactly one of
the cells. The figure is is a Venn diagram of a partition of the rectangular set S of points
into five cells: A1, A2, A3, A4, A5.
A1 A2 A3
A4 A5
a. The sets {1,2,3} and {4,5} form a partition of S. Observe that {1,2,3} ∪
{4,5} and {1,2,3} ∩ {4,5}= ∅.
The set of even numbers and the set of odd numbers which can be written as
sets E= {2,4,6,…} and O= {1, 3, 5, …}. Hence, P = {E, O} is a partition of Z+.
The set of positive integers divisible by 3 , the set of positive integers leaving a
remainder of 2 when divided by 3 and the set of positive integers leaving a
remainder of 1 when divided by 3.
Note:
For each positive integer, we can partition Z+ into n cells according to whether
the remainder 0, 1 , 2 , ..., n-1 when a positive integer is divided by n. These cells
are the residue classes modulo n in Z+.
Ordered Pairs
We will defined relations in terms of ordered pairs (a, b) of elements where a as the first
element and b as the second element. Specifically:
Cartesian Product
Definition: Let 𝐴 and 𝐵 be two sets. The product set or cartesian product of and 𝐵,
denoted by AxB and read as “A cross B” is the set of all ordered pairs (a, b) such that
a ∈ A and b ∈ B. In symbol,
AxB = {(a,b): a ∈ A , b ∈ B }
We write A2 instead of A x A.
A x B = {(1, a), (1, b), (1, c), (2,a), (2, b), (2, c)}
The idea of a product of sets can be extended to any finite number of sets. Specifically, for
any sets A1, A2, A3, …, Am, the set of m-elements lists (a1 , a2 , a3 , …, am) , where ai ∈ Ai is
called the cartesian product of the sets A1, A2, A3, …, Am, ; it is denoted by
A1 x A2 x A3 x …x Am = ∏𝑚𝑖=1 𝐴𝑖 .
Relations
Definition: Let A and B be sets. A binary relation or, simply a relation from A to B is
a subset of A x B.
The domain of a relation R from A to B is the set of all first elements of the ordered
pairs which belong to R , and so it is subset of A; and the range of R is the set of all
second elements, and so it is subset of B.
Let A be any set. Then A x A and ∅ are subset of AxA and hence are relations on A called
the universal relation and empty relation, respectively. Thus for any relation R on A, we
have
∅ ⊆R ⊆ 𝑨𝒙𝑨.
Inverse Relation
Let R be any relation from a set A to a set B. The inverse of A, denoted by R -1, is the
relation from B to A which consists of those ordered pairs which, when reversed, belong
to R; that is,
R -1 = {(b,a); (a,b) ∈ R}
Example:1. If R = {(2, x) (3, y), (5, a), (7, z)}, then R -1 = {(x, 2) (y, 3), (a, 5), (z, 7)} .
2. If R = {(2, 4), (4, 16), (6, 36), (8, 64), (10, 100)} , then
R -1 = {(4, 2), (16, 4), (36, 6), (64, 8), (100, 10)}.
Note: If R is any relation, then (R-1) -1= R. Also, the domain of R -1 is the range of R,
and vice versa, Moreover, if R is a relation on A, i.e., R is a subset of A x A then R -1
is also a relation on A.
Composition of Relations
Let A, B, C be sets and let R be a relation from A to B and let S be a relation from B
to C. Then R and S give rise to a relation from A to C denoted by R ∘ S and defined
as follows:
R∘ S = {(a, c): there exists b∈ B for which (a, b ∈R) and (b,c) ∈S}
3 (R ∘ 𝐒) x and 3 (R ∘ 𝐒) z
No other element of A is connected to an element of C. Accordingly
Types of Relations
Let A be a given set. The following are important types of relations defined on A.
Reflexive Relations. A relation R on a set A is reflexive if aRa for every a ∈A, that is,
if (a, a) ∈ R for every a∈A. Thus R is not reflexive if there exists an a ∈A such that (a,
a) ∉ R.
Symmetric Relations. A relation R on a set A is reflexive if aRb then bRa, that is, if
whenever (a, b) ∈ R then (b, a) ∈ R . Thus R is not symmetric if there exists a, b ∈ A
such (a, b) ∈ R but (b, a) ∉ R.
Example: Consider set A = {1, 2, 3}. Let R1, R2, R3, R4 defined below are relations
defined on set A.
Symmetric: R1 is not symmetric since (1, 2)∈ R1, but (2,1) ∉ R1.
R2 is not symmetric since (1, 3)∈ R1, but (3,1) ∉ R2.
R3 is symmetric.
R4 is symmetric.
Antisymmetric: R1 is antisymmetric.
R2 is antisymmetric.
R3 is antisymmetric.
R4 is not antisymmetric since (1,2), (2,1) )∈ R4, but 1≠2.
Transitive: R1 is transitive.
R2 is transitive.
R3 is transitive.
R4 is transitive.
Remarks: 1. The properties of being symmetric and antisymmetric are not negatives
of each other.
Example: The relation R = {(1,2), (2, 1), (1,3)} are neither symmetric and antisymmetric.
Equivalence Relations
i. Reflexive Property: x R x
Example 1. Let R be a relation on Z defined by nRm if and only if nm>0. Prove that
R is an equivalence relation.
Proof: Let a, b, c ∈ Z.
i. Reflexive Property
aRa, because a2 > 0 for all a ∈ Z
Hence, R is reflexive.
Example 2.
To show that R is an equivalence relation, we must show that R satisfies the three
properties : reflexive, symmetric, and transitive.
Proof:
To show:
i. Reflexive:
Let x∈Q. Since x-x = 0∈Z; hence R is reflexive.
iii. Transitive: Let x,y, z∈Q. We need to show that if x-y∈Z and y-z∈Z, then
x-z∈Z.
Since x-y∈Z and y-z∈Z, then
(x-y)+ (y-z)= x-z ∈Z (since Z is closed under addition)
Example 3: Let S= {0,1,2,3,….}. Define a relation R on S as xRy if and only if x<y for
every x, y ∈ S . Determine whether a relation R on S is an equivalence relation
Proof:
To show:
i. Reflexive:
Note: For a relation to be an equivalence relation, it should satisfy all the three
properties. If any of these properties is not satisfied then it suffices to say that the
relation is not an equivalence relation.