Lecture Note 05 - Relations
Lecture Note 05 - Relations
SMT5201-Foundation of Mathematics
Unit II
Relations
If a set A is given explicitly, it is immaterial in which order the elements of A are listed, e.g. the set
{x,y} is the same as the set {y,x}. In many instances, however, one would like, and, indeed, needs,
to have some order in the appearance of the elements. As an example, consider a coordinate plane
with an x-axis and a y-axis; then we can identify any point in the plane by its coordinates <x, y>. If
you wanted to find the point, <a,b>, you would move on the x-axis a units to the right or to the left
from the origin (depending on the sign of a), and then you would move b units up or down. If a and
b are different, then <a,b> and <b,a> denote different points. So, in this example the order in which
the elements appear is relevant.
The decisive property of ordered pairs is that two ordered pairs are equal if the respective
components are the same.
Introduction to Relations
Sometimes it is necessary not to look at the full Cartesian product of two sets A and B, but rather at
a subset of the Cartesian product. This leads to the following Definition. Any subset of A × B is
called a relation between A and B. Any subset of A × A is called a relation on A.
In other words, if A is a set, any set of ordered pairs with components in A is a relation on A. Since
a relation R on A is a subset of A × A, it is an element of the powerset of A × A, i.e. R ⊆ P(A × A).
If R is a relation on A and <x,y> ∈ R, then we also write xRy, read as “x is in R-relation to y”, or
simply, x is in relation to y, if R is understood.
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
1. Example
2.Example Let A and B be any two sets, then any non empty subset R of
is called a binary relation.
Now
then
Let
Let S be any binary relation. The domain of S is the set of all elements x such
that for some
Similarly, the range of S is the set of all elements y such that, for some
x,
Let
18 1
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Since relations are sets, then we can have their union and intersection and so on.
1. Reflexive
Example:
Let
and
are defined on X.
192
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
2. Symmetric
Example:
Let
and
are defined on X.
3. Transitive
Example:
Let
and
4.Irreflexive
20
3
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Example:
Let
and
5. Antisymmetric
Example:
Let
Therefore R is antisymmetric in X.
6. Relation matrix
Example 1:
Let
4
21
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Example 2: Let
be a relation on .
Then
Definition:
Example.
Let
. Then
Note that
etc.,
225
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Definition:
Example:
Let
. Then
236
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Definition
247
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Example:
If
1.
2.
3.
Example:
Let
We have
8
25
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
EQUIVALENCE RELATION
Definition:
Example 1:
Let
and
is an equivalence relation
on X.
Example 2:
Example 3:
Let
Now, is divisible by 3.
Therefore (reflexive)
For any
(symmetric)
Let
269
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
)+ ) is divisible by 3.
is divisible by 3.
Therefore (Transitive)
EQUIVALENCE CLASSES
Definition:
Example:
Let Z be the set of all integers and R be the relation called “congruence modulo
4” defined by
(or )
Now, we determine the equivalence classes generated by R.
Note that
27
10
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Therefore
Example:
1. Closures of a relation
2. Reflexive closure
is contained in R.
i.e. R is reflexive
Definition:
2811
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
3. Symmetric closure
Definition:
4. Transitive closure
Definition:
I.
II. is transitive on X
III. There is no transitive relation on X, such that
Remarks:
29
12
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
PROBLEMS
1. If ,
Solution:
Domain of
Domain of
Domain of
Range of
3013
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Range of
Range of
It is clear that
and
In general and .
2.Let and
. Find and
Solution:
Remarks:
Solution:
31
14
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
and
(Now and
Solution:
Let and
3215
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Then pass to , find the transitive pairs of and so on, for all pairs in
T. Hence T is a transitive relation.
The relation S is not transitive, since for , the transitive pairs are and
then we must and in S but .
6. Let R denotes a relation on the set of pairs of positive integers such that
if and only if . Show that R is an equivalence relations.
Solution:
Let
33
16
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
for
Let and
I. R is reflexive:
We have
(RHS) is true.
II. R is symmetric:
Let
III. R is transitive:
Let and
and
and
34
17
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Solution:
Let and
Therefore is symmetric.
(iii) Let and
and and and
and and and
and
Therefore is transitive.
Hence is equivalence.
8. Prove that the relation “congruence modulo m” over the set of positive integers
is an equivalence relation?
Solution:
Let N be the set of all positive integers we have “congruence modulo m” relation
on N as for
Let
3518
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
(i) We have
Therefore for
“Congruence modulo m” is reflexive.
(ii) Let
Let and .
Then and
i.e., and
Now
36
19
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
9. Let
and
Solution:
37
20
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
Hence
ASSIGNMENT PROBLEMS
Part -A
1. If and
be any relations on . Find
.
2. Give an example for reflexive, symmetric, transitive and irreflexive
relations.
3. Give an example of a relation which is neither reflexive nor irreflexive.
4. Give an example of a relation which is neither symmetric not
antisymmetric?
5. Find the graph of the relation
3821
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
7. If and
. Find , , , ,
and
8. Define equivalence relation and equivalence classes?
9. Define Poset?
10. Define reflexive closure?
11. Define transitive closure of the relation R?
12. Let be a relation .
Identify the root of the tree of R.
13. Determine whether the relation R is a partial ordered on the set Z, where Z
is set of positive integer, and aRb if and only if a=2b.
14. The following relations are on . Let R be a relation, xRy if and only
if , and let S be a relation, xSy if and only if . Find
and
15. True or False: The relation on is not a partial order since it is not
reflexive.
Part B
3922
SATHYABAMA INSTITUTE OF SCIENCE AND TECHNOLOGY, DISCRETE MATHEMATICS-SMTA1302, UNIT II
4023