7 Equivalence Relations

7.2 Equivalence Relations

7.2.1 Beginning Activity 1 (Properties of Relations)

In previous mathematics courses, we have worked with the equality relation. For example, let R be the relation on defined as follows: For all a,b,aRb if and only if a=b. We know this equality relation on has the following properties:

  • For each a,a=a and so aRa.

  • For all a,b, if a=b, then b=a. That is, if aRb, then bRa.

  • For all a,b,c, if a=b and b=c, then a=c. That is, if aRb and bRc, then aRc.

In mathematics, when something satisfies certain properties, we often ask if other things satisfy the same properties. Before investigating this, we will give names to these properties.

Definition. Let A be a nonempty set and let R be a relation on A.

  • The relation R is reflexive on 𝑨 provided that for each xA,xRx or, equivalently, (x,x)R.

  • The relation R is symmetric provided that for every x,yA, if xRy, then yRx or, equivalently, for every x,yA, if (x,y)R, then (y,x)R.

  • The relation R is transitive provided that for every x,y,zA, if xRy and yRz, then xRz or, equivalently, for every x,y,zA, if (x,y)R and (y,z)R, then (x,z)R.

Before exploring examples, for each of these properties, it is a good idea to understand what it means to say that a relation does not satisfy the property. So let A be a nonempty set and let R be a relation on A.

  1. 1.

    Carefully explain what it means to say that the relation R is not reflexive on the set A.

  2. 2.

    Carefully explain what it means to say that the relation R is not symmetric.

  3. 3.

    Carefully explain what it means to say that the relation R is not transitive.

To illustrate these properties, we let A={1,2,3,4} and define the relations R and T on A as follows:

  1. 1.

    Draw a directed graph for the relation R. Then explain why the relation R is reflexive on A, is not symmetric, and is not transitive.

  2. 2.

    Draw a directed graph for the relation T. Is the relation T reflexive on A? Is the relation T symmetric? Is the relation T transitive? Explain.

7.2.2 Beginning Activity 2 (Review of Congruence Modulo n)

  1. 1.

    Let a,b and let n. In Section 3.1, we defined what it means to say that a is congruent to b modulo n. Write this definition and state two different conditions that are equivalent to the definition.

  2. 2.

    Explain why congruence modulo n is a relation on .

  3. 3.

    Carefully review Theorem 3.30 and the proofs given below it in Section 3.5. In terms of the properties of relations introduced in Beginning Activity 1, what does this theorem say about the relation of congruence modulo n on the integers?

  4. 4.

    Write a complete statement of Theorem 3.31 and Corollary 3.32.

  5. 5.

    Write a proof of the symmetric property for congruence modulo n. That is, prove the following:

Let a,b and let n. If ab(modn), then ba(modn).

7.2.3 Directed Graphs and Properties of Relations

In Section 7.1, we used directed graphs, or digraphs, to represent relations on finite sets. Three properties of relations were introduced in Beginning Activity 1 and will be repeated in the following descriptions of how these properties can be visualized on a directed graph.

Let A be a nonempty set and let R be a relation on A.

  • The relation R is reflexive on 𝑨 provided that for each xA,xRx or, equivalently, (x,x)R.

This means that if a reflexive relation is represented on a digraph, there would have to be a loop at each vertex, as is shown in the following figure.
a loop starting and ending at one vertex

  • The relation R is symmetric provided that for every x,yA, if xRy, then yRx or, equivalently, for every x,yA, if (x,y)R, then (y,x)R.

This means that if a symmetric relation is represented on a digraph, then anytime there is a directed edge from one vertex to a second vertex, there would be a directed edge from the second vertex to the first vertex, as is shown in the following figure.
two arrows pointing between two vertices going each direction

  • The relation R is transitive provided that for every x,y,zA, if xRy and yRz, then xRz or, equivalently, for every x,y,zA, if (x,y)R and (y,z)R, then (x,z)R. So if a transitive relation is represented by a digraph, then anytime there is a directed edge from a vertex x to a vertex y and a directed edge from y to a vertex z, there would be a directed edge from x to z.

In addition, if a transitive relation is represented by a digraph, then anytime there is a directed edge from a vertex x to a vertex y and a directed edge from y to the vertex x, there would be loops at x and y. These two situations are illustrated as follows:
a right triangle of vertices, arrows connecting x to y, y to z, and x to z
a combination of previous graphs with loops and double arrows

7.2.4 Progress Check 7.7 (Properties of Relations)

Let A={a,b,c,d} and let R be the following relation on A :

Draw a directed graph for the relation R and then determine if the relation R is reflexive on A, if the relation R is symmetric, and if the relation R is transitive.

7.2.5 Definition of an Equivalence Relation

In mathematics, as in real life, it is often convenient to think of two different things as being essentially the same. For example, when you go to a store to buy a cold soft drink, the cans of soft drinks in the cooler are often sorted by brand and type of soft drink. The Coca Colas are grouped together, the Pepsi Colas are grouped together, the Dr. Peppers are grouped together, and so on. When we choose a particular can of one type of soft drink, we are assuming that all the cans are essentially the same. Even though the specific cans of one type of soft drink are physically different, it makes no difference which can we choose. In doing this, we are saying that the cans of one type of soft drink are equivalent, and we are using the mathematical notion of an equivalence relation.

An equivalence relation on a set is a relation with a certain combination of properties that allow us to sort the elements of the set into certain classes. In this section, we will focus on the properties that define an equivalence relation, and in the next section, we will see how these properties allow us to sort or partition the elements of the set into certain classes.

Definition. Let A be a nonempty set. A relation on the set A is an equivalence relation provided that is reflexive, symmetric, and transitive. For a,bA, if is an equivalence relation on A and ab, we say that 𝒂 is equivalent to 𝒃.

Most of the examples we have studied so far have involved a relation on a small finite set. For these examples, it was convenient to use a directed graph to represent the relation. It is now time to look at some other type of examples, which may prove to be more interesting. In these examples, keep in mind that there is a subtle difference between the reflexive property and the other two properties. The reflexive property states that some ordered pairs actually belong to the relation R, or some elements of A are related. The reflexive property has a universal quantifier and, hence, we must prove that for all xA,xRx. Symmetry and transitivity, on
the other hand, are defined by conditional sentences. We often use a direct proof for these properties, and so we start by assuming the hypothesis and then showing that the conclusion must follow from the hypothesis.

7.2.6 Example 7.8 (A Relation that Is Not an Equivalence Relation)

Let M be the relation on defined as follows:
For a,b,aMb if and only if a is a multiple of b.
So aMb if and only if there exists a k such that a=bk.

  • The relation M is reflexive on since for each x,x=x1 and, hence, xMx.

  • Notice that 4 M 2, but 2 4. So there exist integers x and y such that xMy but yMx. Hence, the relation M is not symmetric.

  • Now assume that xMy and yMz. Then there exist integers p and q such that

Using the second equation to make a substitution in the first equation, we see that x=z(pq). Since pq, we have shown that x is a multiple of z and hence xMz. Therefore, M is a transitive relation.

The relation M is reflexive on and is transitive, but since M is not symmetric, it is not an equivalence relation on .

7.2.7 Progress Check 7.9 (A Relation that Is an Equivalence Relation)

Define the relation on as follows: For all a,b,ab if and only if ab. For example:

To prove that is reflexive on , we note that for all a, aa=0. Since 0, we conclude that aa. Now prove that the relation is symmetric and transitive, and hence, that is an equivalence relation on .

7.2.8 Congruence Modulo n

One of the important equivalence relations we will study in detail is that of congruence modulo n. We reviewed this relation in Beginning Activity 2 .

Theorem 3.30 tells us that congruence modulo n is an equivalence relation on . Recall that by the Division Algorithm, if a, then there exist unique integers q and r such that

Theorem 3.31 and Corollary 3.32 then tell us that ar(modn). That is, a is congruent modulo n to its remainder r when it is divided by n. When we use the term "remainder" in this context, we always mean the remainder r with 0r<n that is guaranteed by the Division Algorithm. We can use this idea to prove the following theorem.

Theorem 7.10. Let n and let a,b. Then ab(modn) if and only if a and b have the same remainder when divided by n.

Proof. Let n and let a,b. We will first prove that if a and b have the same remainder when divided by n, then ab(modn). So assume that a and b have the same remainder when divided by n, and let r be this common remainder. Then, by Theorem 3.31,

Since congruence modulo n is an equivalence relation, it is a symmetric relation. Hence, since br(modn), we can conclude that rb(modn). Combining this with the fact that ar(modn), we now have

We can now use the transitive property to conclude that ab(modn). This proves that if a and b have the same remainder when divided by n, then ab(modn).

We will now prove that if ab(modn), then a and b have the same remainder when divided by n. Assume that ab(modn), and let r be the least nonnegative remainder when b is divided by n. Then 0r<n and, by Theorem 3.31,

Now, using the facts that ab(modn) and br(modn), we can use the transitive property to conclude that

This means that there exists an integer q such that ar=nq or that

Since we already know that 0r<n, the last equation tells us that r is the least nonnegative remainder when a is divided by n. Hence we have proven that if ab(modn), then a and b have the same remainder when divided by n.

7.2.9 Examples of Other Equivalence Relations

  1. 1.

    The relation on from Progress Check 7.9 is an equivalence relation.

  2. 2.

    Let A be a nonempty set. The equality relation on 𝑨 is an equivalence relation. This relation is also called the identity relation on 𝑨 and is denoted by IA, where

  3. 3.

    Define the relation on as follows:

    For a,b,ab if and only if there exists an integer k such that ab=2kπ.

    We will prove that the relation is an equivalence relation on . The relation is reflexive on since for each a,aa=0=20π.

    Now, let a,b and assume that ab. We will prove that ba. Since ab, there exists an integer k such that

    By multiplying both sides of this equation by -1, we obtain

    Since k, the last equation proves that ba. Hence, we have proven that if ab, then ba and, therefore, the relation is symmetric.

    To prove transitivity, let a,b,c and assume that ab and bc. We will prove that ac. Now, there exist integers k and n such that

    By adding the corresponding sides of these two equations, we see that

    By the closure properties of the integers, k+n. So this proves that ac and, hence the relation is transitive.

    We have now proven that is an equivalence relation on . This equivalence relation is important in trigonometry. If ab, then there exists an integer k such that ab=2kπ and, hence, a=b+k(2π). Since the sine and cosine functions are periodic with a period of 2π, we see that

    Therefore, when ab, each of the trigonometric functions have the same value at a and b.

  4. 4.

    For an example from Euclidean geometry, we define a relation P on the set of all lines in the plane as follows:

    For l1,l2,l1Pl2 if and only if l1 is parallel to l2 or l1=l2.
    We added the second condition to the definition of P to ensure that P is reflexive on . Theorems from Euclidean geometry tell us that if l1 is parallel to l2, then l2 is parallel to l1, and if l1 is parallel to l2 and l2 is parallel to l3, then l1 is parallel to l3. (Drawing pictures will help visualize these properties.) This tells us that the relation P is reflexive, symmetric, and transitive and, hence, an equivalence relation on .

7.2.10 Progress Check 7.11 (Another Equivalence Relation)

Let U be a finite, nonempty set and let 𝒫(U) be the power set of U. Recall that 𝒫(U) consists of all subsets of U. Define the relation on 𝒫(U) as follows:

For A,B𝒫(U),AB if and only if card(A)=card(B).
Review the definition of the cardinality of a finite set in Section 5.1. This relation states that two subsets of U are equivalent provided that they have the same number of elements. Prove that is an equivalence relation on the power set 𝒫(U).

7.2.11 Exercises 7.2

  1. 1.

    () Let A={a,b} and let R={(a,b)}. Is R an equivalence relation on A? If not, is R reflexive, symmetric, or transitive? Justify all conclusions.

  2. 2.

    Let A={a,b,c}. For each of the following, draw a directed graph that represents a relation with the specified properties.

    1. (a)

      A relation on A that is symmetric but not transitive

    2. (b)

      A relation on A that is transitive but not symmetric

    3. (c)

      A relation on A that is symmetric and transitive but not reflexive on A

    4. (d)

      A relation on A that is not reflexive on A, is not symmetric, and is not transitive

    5. (e)

      A relation on A, other than the identity relation, that is an equivalence relation on A

  3. 3.

    () Let A={1,2,3,4,5}. The identity relation on A is

    Determine an equivalence relation on A that is different from IA or explain why this is not possible.

  4. 4.

    () Let R={(x,y)×||x|+|y|=4}. Then R is a relation on . Is R an equivalence relation on ? If not, is R reflexive, symmetric, or transitive? Justify all conclusions.

  5. 5.

    A relation R is defined on as follows: For all a,b,aRb if and only if |ab|3. Is R an equivalence relation on ? If not, is R reflexive, symmetric, or transitive? Justify all conclusions.

  6. 6.

    () Let f: be defined by f(x)=x24 for each x. Define a relation on as follows:

    For a,b,ab if and only if f(a)=f(b).

    1. (a)

      Is the relation an equivalence relation on ? Justify your conclusion.

    2. (b)

      Determine all real numbers in the set C={xx5}.

  7. 7.

    Repeat Exercise (6) using the function f: that is defined by f(x)=x23x7 for each x.

  8. 8.
    1. (a)

      Repeat Exercise (6a) using the function f: that is defined by f(x)=sinx for each x.

    2. (b)

      Determine all real numbers in the set C={xxπ}.

  9. 9.

    Define the relation on as follows: For a,b,ab if and only if ab. In Progress Check 7.9, we showed that the relation is an equivalence relation on .

    1. (a)

      List four different elements of the set C={xx57}.

    2. (b)

      Use set builder notation (without using the symbol ) to specify the set C.

    3. (c)

      Use the roster method to specify the set C.

  10. 10.

    Let and be relations on defined as follows:

    • For a,b,ab if and only if 2 divides a+b.

    • For a,b,ab if and only if 3 divides a+b.

    1. (a)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

    2. (b)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

  11. 11.

    Let U be a finite, nonempty set and let 𝒫(U) be the power set of U. That is, 𝒫(U) is the set of all subsets of U. Define the relation on 𝒫(U) as follows: For A,B𝒫(U),AB if and only if AB=. That is, the ordered pair (A,B) is in the relation if and only if A and B are disjoint.

    Is the relation an equivalence relation on 𝒫(U)? If not, is it reflexive, symmetric, or transitive? Justify all conclusions.

  12. 12.

    Let U be a nonempty set and let 𝒫(U) be the power set of U. That is, 𝒫(U) is the set of all subsets of U.

    For A and B in 𝒫(U), define AB to mean that there exists a bijection f:AB. Prove that is an equivalence relation on 𝒫(U).

    Hint: Use results from Sections 6.4 and 6.5.

  13. 13.

    Let and be relations on defined as follows:

    • For a,b,ab if and only if 2a+3b0(mod5).

    • For a,b,ab if and only if a+3b0(mod5).

    1. (a)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

    2. (b)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

  14. 14.

    Let and be relations on defined as follows:

    • For x,y,xy if and only if xy0.

    • For x,y,xy if and only if xy0.

    1. (a)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

    2. (b)

      Is an equivalence relation on ? If not, is this relation reflexive, symmetric, or transitive?

  15. 15.

    Define the relation on × as follows: For (a,b),(c,d)×, (a,b)(c,d) if and only if a2+b2=c2+d2.

    1. (a)

      Prove that is an equivalence relation on ×.

    2. (b)

      List four different elements of the set

    3. (c)

      () Give a geometric description of the set C.

  16. 16.

    Evaluation of proofs. See the instructions for Exercise (19) from Section 3.1.

    1. (a)

      Proposition. Let R be a relation on a set A. If R is symmetric and transitive, then R is reflexive.

      Proof. Let x,yA. If xRy, then yRx since R is symmetric. Now, xRy and yRx, and since R is transitive, we can conclude that xRx. Therefore, R is reflexive.

    2. (b)

      Proposition. Let be a relation on where for all a,b,ab if and only if (a+2b)0(mod3). The relation is an equivalence relation on .

      Proof. Assume aa. Then (a+2a)0(mod3) since (3a)0(mod3). Therefore, is reflexive on . In addition, if ab, then (a+2b)0(mod3), and if we multiply both sides of this congruence by 2, we get

      This means that ba and hence, is symmetric.
      We now assume that (a+2b)0(mod3) and (b+2c)0(mod3). By adding the corresponding sides of these two congruences, we obtain

      Hence, the relation is transitive and we have proved that is an equivalence relation on .

7.2.12 Explorations and Activities

  1. 17.

    Other Types of Relations. In this section, we focused on the properties of a relation that are part of the definition of an equivalence relation. However, there are other properties of relations that are of importance. We will study two of these properties in this activity.

A relation R on a set A is a circular relation provided that for all x,y, and z in A, if xRy and yRz, then zRx.

  1. 1.

    Carefully explain what it means to say that a relation R on a set A is not circular.

  2. 2.

    Let A={1,2,3}. Draw a directed graph of a relation on A that is circular and draw a directed graph of a relation on A that is not circular.

  3. 3.

    Let A={1,2,3}. Draw a directed graph of a relation on A that is circular and not transitive and draw a directed graph of a relation on A that is transitive and not circular.

  4. 4.

    Prove the following proposition:

    A relation R on a set A is an equivalence relation if and only if it is reflexive and circular.

    A relation R on a set A is an antisymmetric relation provided that for all x,yA, if xRy and yRx, then x=y.

  5. 5.

    Carefully explain what it means to say that a relation on a set A is not antisymmetric.

  6. 6.

    Let A={1,2,3}. Draw a directed graph of a relation on A that is antisymmetric and draw a directed graph of a relation on A that is not antisymmetric.

  7. 7.

    Are the following propositions true or false? Justify all conclusions.

    • If a relation R on a set A is both symmetric and antisymmetric, then R is transitive.

    • If a relation R on a set A is both symmetric and antisymmetric, then R is reflexive.