A={1,2,3,4,5}R={(a,b):|a−b|is even}It is clear that for any element
a∈A, we have
|a−a|=0(which is even).
∴R is reflexive.
Let
(a,b)∈R⇒|a−b| is even.
⇒|−(a−b)|=|b−a| is also even.
⇒(b,a)∈R∴R is symmetric.
Now, let
(a,b)∈R and
(b,c)∈R.
⇒|a−b| is even and
|b−c| is even.
⇒(a−c) is even and
(b−c) is even.
⇒(a−c)=(a−b)+(b−c) is even. [Sum of two even integers is even]
⇒|a−c| is even.
⇒(a,c)∈R∴R is transitive.
Hence,
R is an equivalence relation.
Now,
all elements of the set
{1,2,3} are related to each
other as all the elements of this subset are odd. Thus, the modulus of
the difference between any two elements will be even.
Similarly, all
elements of the set
{2,4} are related to each other as
all the elements of this subset are even.
Also, no element of the
subset
{1,3,5} can be related to any element of
{2,4} as all elements of
{1,3,5}
are odd and all elements of
{2,4} are even. Thus, the
modulus of the difference between the two elements (from each of these
two subsets) will not be even.
Hence, R is an equivalence relation.