Lecture 02 -Relations
Lecture 02 -Relations
Relations
Relations are used to describe a connection between the elements of
two sets.
Range
Collection of elements of B related to A
Set {a, c, n} represents the range.
Example
Let A and B two sets. A binary relation R from A to B is a subset of A x B.
R⊆ Ax B
A x B ={(a,b), a ∈ A and b ∈ B}
aRb to donate (a,b) ∈ R
▪ Roster Form
R = {(5, 25), (6, 36), (7, 49)}
▪ Arrow Diagram
▪ Tabular Form
X Y
5 25
6 36
7 49
Exercise
1. Identify the domain and range of the following relation.
▪ Empty Relation
An empty relation (or void relation) is one in which there is no
relation between any elements of a set.
Eg:
P = {3, 7, 9} and the relation on P, R = {(x, y) where x + y = 76}
▪ Universal Relation
A universal (or full relation) is a type of relation in which every
element of a set is related to each other.
Eg:
P = {3, 7, 9}, Q = {12, 18, 20} and R = {(x, y) where x < y}
▪ Identity Relation
In an identity relation, every element of a set is related to itself only.
I = {(x, x) | for all x ∈ X}
Eg:
P = {3, 7, 9} then I = {(3, 3), (7, 7), (9, 9)}
▪ Inverse Relation
Inverse relation is seen when a set has elements which are inverse
pairs of another set.
R-1 = {(y, x) | (x, y) ∈ R}
Eg:
A = {(a, b), (c, d)}, then inverse relation will be R-1 = {(b, a), (d, c)}
▪ Reflexive Relation
In a reflexive relation, every element maps to itself.
x ∈ X then (x, x) ∈ R
Eg:
P = {7, 1} then R = {(7, 7), (1, 1),(7,1)}
▪ Symmetric Relation
A relation is said to be a symmetric relation if one set, X, contains
ordered pairs, (x, y) as well as the reverse of these pairs, (y, x).
(x, y) ∈ R then (y, x) ∈ R
Eg:
P = {3, 4}, then R = {(3, 4), (4, 3)}
▪ Transitive Relation
Suppose (x, y) ∈ R and (y, z) ∈ R then R is a transitive relation if and
only if (x, z) ∈ R.
Eg:
P = {p, q, r}, then R = {(p, q), (q, r), (p, r)}
▪ Equivalence Relation
An equivalence relation is a type of relation that is symmetric,
transitive, and reflexive.
Exercise
1. If R = {(-15, -4), (-18, -8), (-6, 2), (-12, 3)}.
a) Draw arrow diagram.
b) Write domain and range of the relation.
c) Find the inverse relation of R (R-1).
d) Write the domain and range of the inverse relation.
RoS
Example 01
A B C
R S R ={(1,3),(1,4),(1,5),(2,3),(3,3)}
1
1 3
2 S = {(3,1),(3,2),(3,3),(4,3),(4,4)}
2 4
3
3 5 RoS = {(1,1),(1,2),(1,3),(1,4),
4 (2,1),(2,2),(2,3),
(3,1),(3,2),(3,3)}
RoS
Let R is a relation on a set A, that is, R is a relation from a set A to itself. Then
R◦R, the composition of R with itself, is always represented.
Solution:
R = {(1, 1), (1, 2), (1, 3 ),(2,3),(2,4)}
R = {(1, 1), (1, 2), (1, 3 ),(2,3),(2,4)}
Consider the second element of first relation and first element of
second relation. If both are same make an ordered pair of RoR.
Find R3.
Exercise