Home page for accesible maths 6 Equivalence relations and their applications

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

6.2 Equivalence relations

In this section we shall introduce a tool which is very useful in mathematics because it provides a way of reducing a complicated situation to a simpler one.

Definition 6.2.1

An equivalence relation is a relation which is reflexive, symmetric and transitive.

Thus we have already seen two examples of equivalence relations:

  1. (i)

    ‘‘congruence modulo 55’’ on the set of integers;

  2. (ii)

    ‘‘being in the same college’’ on the set of MATH111 students.

Let us take the first of these. Given any aa\in\mathbb{Z}, we may consider the subset of \mathbb{Z} consisting of numbers which are congruent to aa modulo 55. For example, if a=2a=2 we obtain the subset {,-8,-3,2,7,12,}\{\dots,-8,-3,2,7,12,\dots\}, while if instead a=9a=9 we obtain the subset {,-6,-1,4,9,14,}\{\dots,-6,-1,4,9,14,\dots\}. This prompts the following definition.

Definition 6.2.2

Given an equivalence relation \sim on a non-empty set SS, for any aSa\in S we call the set {bS:ba}\{b\in S:b\sim a\} the equivalence class of aa with respect to \sim; we denote it by a^\widehat{a}.

Thus for the relation of congruence modulo 55 on the set \mathbb{Z}, we have

2^={,-8,-3,2,7,12,}and9^={,-6,-1,4,9,14,}.\widehat{2}=\{\dots,-8,-3,2,7,12,\dots\}\quad\hbox{and}\quad\widehat{9}=\{% \dots,-6,-1,4,9,14,\dots\}.

We note several things about each of these equivalence classes:

  1. (i)

    aa is an element of the equivalence class of aa (e.g., 22^2\in\widehat{2});

  2. (ii)

    if bb is any element of the equivalence class of aa, then the equivalence classes of aa and bb are the same (e.g., 72^7\in\widehat{2}, and 7^={,-8,-3,2,7,12,}=2^\widehat{7}=\{\dots,-8,-3,2,7,12,\dots\}=\widehat{2});

  3. (iii)

    if bb is any element of SS not in the equivalence class of aa, then the equivalence classes of aa and bb are disjoint (e.g., 92^9\;\not\in\widehat{2}, and

    2^9^={,-8,-3,2,7,12,}{,-6,-1,4,9,14,}=).\widehat{2}\cap\widehat{9}=\{\dots,-8,-3,2,7,12,\dots\}\cap\{\dots,-6,-1,4,9,1% 4,\dots\}=\emptyset).

These also hold for the ‘‘college’’ relation on the set SS of MATH111 students, as is easy to see; in fact we shall prove that they are true for equivalence classes in general.

Proposition 6.2.3

Let \sim be an equivalence relation on a non-empty set SS. Then for each pair a,bSa,b\in S, we have the following:

  1. (i)

    aa^;a\in\widehat{a};

  2. (ii)

    if ba^b\in\widehat{a} then b^=a^;\widehat{b}=\widehat{a};

  3. (iii)

    if ba^b\not\in\widehat{a} then b^a^=\widehat{b}\cap\widehat{a}=\emptyset.

Proof. (i) Since \sim is reflexive, aaa\sim a and so aa^.a\in\widehat{a}.

(ii) Suppose that ba^b\in\widehat{a}, so that bab\sim a; as \sim is symmetric, we also have ab.a\sim b.

If we take cb^c\in\widehat{b}, then cbc\sim b; as \sim is transitive, from bab\sim a we deduce cac\sim a and so ca^c\in\widehat{a} — thus b^a^\widehat{b}\subseteq\widehat{a}.

On the other hand if we take ca^c\in\widehat{a}, then ca;c\sim a; as \sim is transitive, from aba\sim b we deduce cbc\sim b and so cb^c\in\widehat{b} — thus a^b^.\widehat{a}\subseteq\widehat{b}. Therefore b^=a^\widehat{b}=\widehat{a} as required.

(iii) We prove this by contraposition. Suppose that b^a^\widehat{b}\cap\widehat{a}\neq\emptyset, and take cb^a^.c\in\widehat{b}\cap\widehat{a}. We then have cbc\sim b and cac\sim a; from the former we have bcb\sim c because \sim is symmetric, and then using the latter as well we have bab\sim a since \sim is transitive. Hence ba^b\in\widehat{a}, and the result is proved. \Box

Corollary 6.2.4

Let \sim be an equivalence relation on a non-empty set SS. Then each element of SS lies in a unique equivalence class.

Proof. Let aSa\in S. Then aa^a\in\widehat{a}, so aa lies in at least one equivalence class. Now suppose that b^\widehat{b} is any other equivalence class containing aa. Then b^=a^\widehat{b}=\widehat{a} by Proposition 6.2.3(ii), and thus a^\widehat{a} is the unique equivalence class containing aa. \Box

Motivated by the above results, we make the following definition.

Definition 6.2.5

A partition of a set SS is a collection of non-empty subsets of SS such that each element of SS lies in exactly one of the subsets.

We may think of a partition of SS as a way of dividing SS up into pieces. We have shown that the equivalence classes corresponding to any equivalence relation on SS form a partition of SS; the pieces into which SS is divided are the equivalence classes. In fact given any partition of a non-empty set SS we may define a relation \sim on SS by stipulating that aba\sim b if aa and bb lie in the same subset of SS (as in the ‘‘college’’ example, above). An easy check shows that \sim is an equivalence relation, whose equivalence classes are exactly the subsets making up the partition. Thus the concepts of ‘‘equivalence relation’’ and ‘‘partition’’ are very closely linked; each gives rise to the other in a natural way.

Another consequence of our results is that we can make the following definition.

Definition 6.2.6

Given an equivalence relation on a non-empty set SS, any element of SS lying in a given equivalence class is called a representative of that class.

From Proposition 6.2.3(i), we see that aa is a representative of a^\widehat{a}; from (ii) and (iii) we see that bb is a representative of a^\widehat{a} if and only if b^=a^\widehat{b}=\widehat{a}.

Example 6.2.7
  1. (i)

    For the equivalence relation of congruence modulo 55 on the set \mathbb{Z}, we see that it is easy to obtain the full set of equivalence classes (or congruence classes, as they are called in this case). We already know that every integer is congruent to exactly one of 00, 11, 22, 33 and 44, and the corresponding congruence classes are

    0^\displaystyle\widehat{0} ={5q:q}=\displaystyle\!\!\!=\{5q:q\in\mathbb{Z}\}\phantom{{}+0}= {,-10,-5,0,5,10,},\displaystyle\{\dots,-10,-5,0,5,10,\dots\},
    1^\displaystyle\widehat{1} ={5q+1:q}=\displaystyle\!\!\!=\{5q+1:q\in\mathbb{Z}\}= {,-9,-4,1,6,11,},\displaystyle\{\dots,-9,-4,1,6,11,\dots\},
    2^\displaystyle\widehat{2} ={5q+2:q}=\displaystyle\!\!\!=\{5q+2:q\in\mathbb{Z}\}= {,-8,-3,2,7,12,},\displaystyle\{\dots,-8,-3,2,7,12,\dots\},
    3^\displaystyle\widehat{3} ={5q+3:q}=\displaystyle\!\!\!=\{5q+3:q\in\mathbb{Z}\}= {,-7,-2,3,8,13,},\displaystyle\{\dots,-7,-2,3,8,13,\dots\},
    4^\displaystyle\widehat{4} ={5q+4:q}=\displaystyle\!\!\!=\{5q+4:q\in\mathbb{Z}\}= {,-6,-1,4,9,14,}.\displaystyle\{\dots,-6,-1,4,9,14,\dots\}.

    Note that 0^1^2^3^4^=\widehat{0}\cup\widehat{1}\cup\widehat{2}\cup\widehat{3}\cup\widehat{4}=% \mathbb{Z}, while any two classes are disjoint.

  2. (ii)

    For the ‘‘college’’ equivalence relation above, the equivalence classes are the sets

    {MATH111 students in C college},\{\hbox{MATH111 students in }C\hbox{ college}\},

    where CC is Bowland, Cartmel, County, Furness, Fylde, Grizedale, Lonsdale or Pendle; their union is the set of all MATH111 students, and any two are disjoint.

Thus if we have an equivalence relation on a set SS, we may consider the set of equivalence classes; often this is ‘‘simpler’’ than SS itself, because it has fewer elements (each equivalence class may contain many elements of SS). We shall see later that sometimes the equivalence classes provide enough detail for the task at hand, allowing us to ignore much that is irrelevant and concentrate on what is essential.

We conclude this section by mentioning two equivalence relations which exist on any non-empty set SS. The first is the relation defined by aba\sim b for all a,bSa,b\in S, in which any two elements of SS are related; here there is a single equivalence class consisting of the whole of SS. The second is the relation of equality, defined by aba\sim b if a=ba=b; this time each equivalence class consists of a single element of SS. These two relations are not very useful, as the first oversimplifies the structure of SS to a single class while the second does not simplify SS at all; interesting equivalence relations lie between these two extremes.