Definition and Properties: Examples
Definition and Properties: Examples
https://www.tutorialspoint.com/discrete_mathematics/discrete_mathematics_relations.htm
Copyright © tutorialspoint.com
Advertisements
Whenever sets are being discussed, the relationship between the elements of the sets is the
next thing that comes up. Relations may exist between objects of the same set or between
objects of two or more sets.
Examples
Let, A={1,2,9}A={1,2,9} and B={1,3,7}B={1,3,7}
● Case 1 − If relation R is 'equal to' then R={(1,1),(3,3)}R={(1,1),(3,3)}
DomRR = {
1,3},Ran(R)={1,3}{1,3},Ran(R)={1,3}
● Case 2 − If relation R is 'less than' then
R={(1,3),(1,7),(2,3),(2,7)}R={(1,3),(1,7),(2,3),(2,7)}
DomRR = { 1,2},Ran(R)={3,7}{1,2},Ran(R)={3,7}
● Case 3 − If relation R is 'greater than' then
R={(2,1),(9,1),(9,3),(9,7)}R={(2,1),(9,1),(9,3),(9,7)}
DomRR = { 2,9},Ran(R)={1,3,7}{2,9},Ran(R)={1,3,7}
Representation of Relations using Graph
A relation can be represented using a directed graph.
The number of vertices in the graph is equal to the number of elements in the set from which the
relation has been defined. For each ordered pair x ,yx,y in the relation R, there will be a directed
edge from the vertex ‘x’ to vertex ‘y’. If there is an ordered pair x ,xx,x, there will be self- loop on
vertex ‘x’.
Suppose, there is a relation R
={(1,1),(1,2),(3,2)}R={(1,1),(1,2),(3,2)} on set
S={1,2,3}S={1,2,3}, it can be represented by the following graph −
Types of Relations
● The Empty Relation between sets X and Y, or on E, is the empty set ∅∅
● The Full Relation between sets X and Y is the set X×YX×Y
● The Identity Relation on set X is the set { (x,x)|x∈X}{(x,x)|x∈X}
● The Inverse Relation R' of a relation R is defined as −
R′={(b,a)|(a,b)∈R}R′={(b,a)|(a,b)∈R}
Example − If R ={(1,2),(2,3)}R={(1,2),(2,3)} then R′R′ will be
{(2,1),(3,2)}{(2,1),(3,2)}
● A relation R on set A is called Reflexive if ∀ a∈A∀a∈A is related to a
aRaholdsaRaholds
Example − The relation R ={(a,a),(b,b)}R={(a,a),(b,b)} on set X ={a,b}X={a,b} is
reflexive.
● A relation R on set A is called Irreflexive if no a ∈Aa∈A is related to a
aRadoesnotholdaRadoesnothold.
Example − The relation R ={(a,b),(b,a)}R={(a,b),(b,a)} on set X ={a,b}X={a,b} is
irreflexive.
● A relation R on set A is called Symmetric if x RyxRy implies y
RxyRx, ∀
x∈A∀x∈A
and ∀ y∈A∀y∈A.
Example − The relation R ={(1,2),(2,1),(3,2),(2,3)}R={(1,2),(2,1),(3,2),(2,3)} on
set A ={1,2,3}A={1,2,3} is symmetric.
● A relation R on set A is called Anti-Symmetric if x RyxRy and y RxyRx implies
x=y∀x∈Ax=y∀x∈A and ∀ y∈A∀y∈A.
Example − The relation R ={(x,y)→N|x≤y}R={(x,y)→N|x≤y} is anti-symmetric since
x≤yx≤y and y ≤xy≤x implies x =yx=y.
● A relation R on set A is called Transitive if x RyxRy and y RzyRz implies
xRz,∀x,y,z∈AxRz,∀x,y,z∈A.
Example − The relation R ={(1,2),(2,3),(1,3)}R={(1,2),(2,3),(1,3)} on set
A={1,2,3}A={1,2,3} is transitive.
● A relation is an Equivalence Relation if it is reflexive, symmetric, and transitive.
Example − The relation
R={(1,1),(2,2),(3,3),(1,2),(2,1),(2,3),(3,2),(1,3),(3,1)}R={(1,1),(2,2),(3,3)
,(1,2),(2,1),(2,3),(3,2),(1,3),(3,1)} on set A ={1,2,3}A={1,2,3} is an equivalence relation
since it is reflexive, symmetric, and transitive.