Relations
Relations
Relations
3.1. Relations.
Example 3.2. Let A 1, 2 . Then A 2 (1,1), (1, 2), (2,1), (2, 2) . Since
A 2 has 4 elements, (A 2 ) has 24 16 subsets, thus 16 relations on
A 1, 2 . Here are several relations on A .
25
R1 (1,1), (2, 2)
R 2 (1,1), (1, 2)
R 3 (1,1), (1, 2), (2, 2)
R 4 (1, 2)
R 5 (2,1), (2, 2)
Example 3.3. Let A 1, 2,3 and B a , b .
Then
R1 (1, a ), (1, b ), (2, a ), (2, b )
R 2 (3, a ), (3, b )
R 3 (1, a ), (1, b ), (3, a )
are relations from A to B . It is clear that 1R1a, and 1R 3a , but 1 R 2 a .
Example 3.5. Let A 1, 2,3 . Then I A (1,1), (2, 2), (3,3) A 2 is the
identity relation on A .
26
We note that the identity relation I A (a, a ) a A A 2 is
reflexive.
Example 3.7. Let A 1, 2,3 . Then R1 (1,1), (1, 2), (2, 2), (2,3), (3,3) is
a reflexive relation, but R 2 (1,1), (1, 2) is not a reflexive relation.
Example 3.10. Let A 1, 2,3, 4 . Then R1 (1,3), (2, 4), (3,1), (4, 2) is
a symmetric relation, but R 2 (1,3), (2, 4), (3,1) is not a symmetric
relation, for (2, 4) R 2 , but (4, 2) R 2 .
27
Example 3.12. Let R be the relation on the real numbers
defined by the sentence x y for all x , y . Then R is
reflexive, for a b , and b c , then a c .
Example 3.14. Let A 1, 2,3, 4 . Then R1 (1,3), (3, 4), (1, 4) is a
transitive relation, but R 2 (1,3), (3, 4) is not a transitive relation,
for (1, 4) R 2 .
Example 3.15. Let A 1, 2,3, 4 . Then R1 (1,1), (1,3), (3, 4), (4, 4) is
an anti-symmetric relation, but R 2 (1,3), (3,1), (3, 4) is not anti-
symmetric, since (1,3) R 2 and (3,1) R 2 , but 1 3 .
28
Hence R is asymmetric if a is related to b imply b is not related
to a .
Example 3.19. Let A 1, 2,3, 4,5, 6 and consider the relation
R (1,1), (2, 2), (3,3), (4, 4), (5,5), (6, 6), (2,3), (3, 2)
Then R is an equivalence relation on A .
29
Sometimes, we write
[x y (mod n )] [n (x y )]
[x y (mod n )] [x y kn , for some k ]
[x y (mod n )] [x y kn , for some k ]
30
Example 3.21. Let A 1, 2,3, 4,5, 6 . Let X 1 , Y 2, 4, 6 ,
and Z 3,5 . Then, X Y Z , and A X Y Z . So
P X ,Y , Z .
with respect to R .
5. The set P a a A is a partition of A .
Proof.
1. Let a A . Since R is reflexive, we have aRa Hence,
a a [a ] and so a .
2. Let b A such that b a . Then bRa and by symmetric
property of R , we have aRb . Now, if x a , then xRa .
But aRb and R is transitive for R is an equivalence
relation. Then xRb , and hence x b . Therefore, a b .
Similarly, x b , then xRb . But bRa and R is transitive
for R is an equivalence relation. Then xRa , and hence
x a . Therefore, b a . Thus a b for all a , b R .
3. Let a, b R and a b . Then there exist x a b and
hence, x a and x b . Thus xRa and xRb . Since R is
symmetric, we have bRx , and by transitivity, we have
bRa , and b a . Hence, by (2), a b .
4. Let a A . Then a a a . Thus A a . Also, a A
aA aA aA
. Hence, A a .
aA
31
As in Example 3.20. Let n
a a . By Theorem 3.1, we have
n is a partition of . Then n 0,1, 2,..., n 1 , where,
0 0 kn kn k
1 1 kn k
2 2 kn k
n 1 (n 1) kn k
Suppose that n 5. Then
0 5k k ..., 10, 5, 0,5,10,... 10 5 5 10
1 1 6k k ..., 9, 4,1, 6,11,... 9 4 6 11
2 2 kn k ..., 8, 3, 2, 7,12,... 8 3 7 12
3 3 kn k ..., 7, 2,3,8,13,... 7 2 8 13
4 3 kn k ..., 6, 1, 4,9,14,... 6 1 9 14
Hence, 5 0,1, 2,3, 4 .Similarly, we find that 8 0,1, 2,3, 4,5, 6, 7 .
Example 3.23. Let A 1, 2,3, 4 . The
R (1,1), (2, 2), (3,3)(4, 4), (4, 2), (2, 4) . Then R is an equivalence
relation on A . The distinct equivalence relations are
a [a ] x A (a, x ) R
1 [1] x A (1, x ) R 1
2 [2] x A (2, x ) R 2, 4 4
3 [3] x A (3, x ) R 3
Example 3.24. Let A 0,1, 2,3, 4 .Then
R (0, 0), (1,1), (2, 2), (3,3), (4, 4), (0, 4), (1,3), (4, 0), (3,1)
is an equivalence relation, and the distinct equivalence classes
are:
a [a ] x A (a, x ) R
0 [0] x A (1, x ) R 0, 4 4
1 [1] x A (1, x ) R 1,3 3
2 [2] x A (2, x ) R 2
Example 3.25. Consider the set of all real numbers , and the
relation
R (x , y ) x2y2 0
32
1. We want to show that R is reflexive. Let x . Then
0 x 2 x 2 . Thus (x , x ) R , that is xRx . Therefore, R is
reflexive.
2. Now, we show that R is symmetric. Let x , y such that
(x , y ) R . Then x 2 y 2 0 , and this implies that y 2 x 2 0 .
Hence ( y , x ) R , that is yRx . Therefore, R is symmetric.
3. Finally, we show that R is transitive. Let x , y , z such
that (x , y ) R and ( y , z ) R . Thus x 2 y 2 0 and y 2 z 2 0
.So x 2 y 2 y 2 z 2 0 , and x 2 z 2 0 . Thus (x , z ) R , that is
xRz . Therefore, R is transitive.
Therefore, R is reflexive, symmetric and transitive, and
hence, R is an equivalence relation. The equivalence classes
has the form
x [x ] y yRx
y (y , x ) R
y y 2 x 2 0
y y2 x2
y y x
x , x
For any x . If x 4 , then
4 [4] y ( y , 4) R
y y 4
4, 4
Similarly, 3 [3] 3,3 .
Example 3.26. Let A be any set. Then the identity relation
I A (a, a ) a A A 2
is an equivalence relation and the equivalence classes are
a [a ] b A a I A b
b A (a , b ) I A
b A a b
a
for any a A . If a, b A such that a b , then a b , that is
a b and the two classes are distinct.
33
If A 1, 2,3, 4 , then the equivalence classes for the identity
relation I A are 1 , 2 , 3 , and 4 .
Rang R 2, 4 .
1
(x , y ) x , y ,9 y 2 36 4x 2
4
( x , y ) x , y ,y 2 4 x 2
9
4
( x , y ) x , y ,y 4 x 2
9
4
( x , y ) x , y , 4 x 2 0
9
4 2
( x , y ) x , y ,4 x
9
(x , y ) x , y , x 2 9
(x , y ) x , y , x [ 3,3]
Thus D R [3,3] . Similarly,
34
R (x , y ) x , y , 4x 2 9 y 2 36
(x , y ) x , y , 4x 2 36 9 y 2
9 2
( x , y ) x , y ,x 2 9 y
4
9 2
( x , y ) x , y ,x 9 y
4
9 2
( x , y ) x , y ,9 y 0
4
9
( x , y ) x , y ,9 y 2
4
(x , y ) x , y , y 2 4
(x , y ) x , y , y [ 2, 2]
Thus, Rang R [2, 2] . Furthermore,
R 1 (x , y ) x , y ,9x 2 4 y 2 36
Hence D R 1 [2, 2] , and Rang R 1 [3,3] .
35
2. Ris anti-symmetric, that is if aRb and bRa , then a b for all
a, b A .
3. R is transitive, that is if aRb and bRc , then aRc for all
a, b , c A .
36
Definition 3.14. (i) Let R be a partially ordered relation on a
set A . Elements a, b A are said to be comparable if and only
if either aRb or bRa . Otherwise, a and b are non-
comparable.
(ii) A partially ordered relation R on a set A is called a
totally order relation, if either aRb or bRa for any a, b A .
(x , y ) x , y A , x y
(1,1), (1, 2), (1,3), (1, 4), (1,5), (1, 6), (2, 2), (2, 4), (2, 6), (3,3), (3, 6), (4, 4), (5,5), (6, 6)
Then R is a partial order relation , but not a total order, since
(3,5) R and (5,3) R .
Solved Problems
37