7 Equivalence Relations

7.1 Relations

7.1.1 Beginning Activity 1 (The United States of America)

Recall from Section 5.4 that the Cartesian product of two sets A and B, written A×B, is the set of all ordered pairs (a,b), where aA and bB. That is, A×B={(a,b)aA and bB}.

Let A be the set of all states in the United States and let

For example, since California and Oregon have a land border, we can say that (California, Oregon) R and (Oregon, California) R. Also, since California and Michigan do not share a land border, (California, Michigan) R and (Michigan, California) R.

  1. 1.

    Use the roster method to specify the elements in each of the following sets:

    1. (a)

      B={yA(Michigan, y)R}

    2. (b)

      C={xA(x, Michigan)R}

    3. (c)

      D={yA(Wisconsin, y)R}

  2. 2.

    Find two different examples of two ordered pairs, (x,y) and (y,z) such that (x,y)R,(y,z)R, but (x,z)R, or explain why no such example exists. Based on this, is the following conditional statement true or false?

    For all x,y,zA, if (x,y)R and (y,z)R, then (x,z)R.

  3. 3.

    Is the following conditional statement true or false? Explain.

7.1.2 Beginning Activity 2 (The Solution Set of an Equation with Two Variables)

In Section 2.3, we introduced the concept of the truth set of an open sentence with one variable. This was defined to be the set of all elements in the universal set that can be substituted for the variable to make the open sentence a true proposition. Assume that x and y represent real numbers. Then the equation

is an open sentence with two variables. An element of the truth set of this open sentence (also called a solution of the equation) is an ordered pair (a,b) of real numbers so that when a is substituted for x and b is substituted for y, the predicate becomes a true statement (a true equation in this case). We can use set builder notation to describe the truth set S of this equation with two variables as follows:

When a set is a truth set of an open sentence that is an equation, we also call the set the solution set of the equation.

  1. 1.

    List four different elements of the set S.

  2. 2.

    The graph of the equation 4x2+y2=16 in the xy-coordinate plane is an ellipse. Draw the graph and explain why this graph is a representation of the truth set (solution set) of the equation 4x2+y2=16.

  3. 3.

    Describe each of the following sets as an interval of real numbers:

    1. (a)

      A={x there exists a y such that 4x2+y2=16}.

    2. (b)

      B={y there exists an x such that 4x2+y2=16}.

7.1.3 Introduction to Relations

In Section 6.1, we introduced the formal definition of a function from one set to another set. The notion of a function can be thought of as one way of relating the elements of one set with those of another set (or the same set). A function is a
special type of relation in the sense that each element of the first set, the domain, is "related" to exactly one element of the second set, the codomain.

This idea of relating the elements of one set to those of another set using ordered pairs is not restricted to functions. For example, we may say that one integer, a, is related to another integer, b, provided that a is congruent to b modulo 3. Notice that this relation of congruence modulo 3 provides a way of relating one integer to another integer. However, in this case, an integer a is related to more than one other integer. For example, since

we can say that 5 is related to 5,5 is related to 2, and 5 is related to -1. Notice that, as with functions, each relation of the form ab(mod3) involves two integers a and b and hence involves an ordered pair (a,b), which is an element of ×.

Definition. Let A and B be sets. A relation 𝑹 from the set 𝑨 to the set 𝑩 is a subset of A×B. That is, R is a collection of ordered pairs where the first coordinate of each ordered pair is an element of A, and the second coordinate of each ordered pair is an element of B.

A relation from the set A to the set A is called a relation on the set 𝑨. So a relation on the set A is a subset of A×A.

In Section 6.1, we defined the domain and range of a function. We make similar definitions for a relation.

Definition. If R is a relation from the set A to the set B, then the subset of A consisting of all the first coordinates of the ordered pairs in R is called the domain of R. The subset of B consisting of all the second coordinates of the ordered pairs in R is called the range of R.

We use the notation dom(R) for the domain of R and range(R) for the range of R. So using set builder notation,

7.1.4 Example 7.1 (Domain and Range)

A relation was studied in each of the beginning activities for this section. For

Beginning Activity 2, the set S={(x,y)×4x2+y2=16} is a subset of × and, hence, S is a relation on . In Problem (3) of Beginning Activity 2, we actually determined the domain and range of this relation.

So from the results in Beginning Activity 2, we can say that the domain of the relation S is the closed interval [2,2] and the range of S is the closed interval [4,4].

7.1.5 Progress Check 7.2 (Examples of Relations)

  1. 1.

    Let T={(x,y)×x2+y2=64}.

    1. (a)

      Explain why T is a relation on .

    2. (b)

      Find all values of x such that (x,4)T. Find all values of x such that (x,9)T.

    3. (c)

      What is the domain of the relation T? What is the range of T?

    4. (d)

      Since T is a relation on , its elements can be graphed in the coordinate plane. Describe the graph of the relation T.

  2. 2.

    From Beginning Activity 1, A is the set of all states in the United States, and

  1. 1.

    Explain why R is a relation on A.

  2. 2.

    What is the domain of the relation R? What is the range of the relation R?

  3. 3.

    Are the following statements true or false? Justify your conclusions.

    1. (a)

      For all x,yA, if (x,y)R, then (y,x)R.

    2. (b)

      For all x,y,zA, if (x,y)R and (y,z)R, then (x,z)R.

7.1.6 Some Standard Mathematical Relations

There are many different relations in mathematics. For example, two real numbers can be considered to be related if one number is less than the other number. We
call this the "less than" relation on . If x,y and x is less than y, we often write x<y. As a set of ordered pairs, this relation is R<, where

With many mathematical relations, we do not write the relation as a set of ordered pairs even though, technically, it is a set of ordered pairs. Table 7.1 describes some standard mathematical relations.

Name Open Sentence Relation as a Set of Ordered Pairs
The "less than" relation on x<y {(x,y)×x<y}
The "equality" relation on x=y {(x,y)×x=y}
The "divides" relation on mn {(m,n)×m divides n}
The "subset" relation on 𝒫(U) ST {(S,T)𝒫(U)×𝒫(U)ST}
The "element of" relation from U to 𝒫(U) xS {(x,S)U×𝒫(U)xS}
The "congruence modulo n" relation on ab(modn) {(a,b)×ab(modn)}
Table 7.1: Standard Mathematical Relations

7.1.7 Notation for Relations

The mathematical relations in Table 7.1 all used a relation symbol between the two elements that form the ordered pair in A×B. For this reason, we often do the same thing for a general relation from the set A to the set B. So if R is a relation from A to B, and xA and yB, we use the notation

In some cases, we will even use a generic relation symbol for defining a new relation or speaking about relations in a general context. Perhaps the most commonly
used symbol is "˜", read "tilde" or "squiggle" or "is related to." When we do this, we will write

7.1.8 Progress Check 7.3 (The Divides Relation)

Whenever we have spoken about one integer dividing another integer, we have worked with the "divides" relation on . In particular, we can write

In this case, we have a specific notation for "divides," and we write

  1. 1.

    What is the domain of the "divides" relation? What is the range of the "divides" relation?

  2. 2.

    Are the following statements true or false? Explain.

    1. (a)

      For every nonzero integer a,aa.

    2. (b)

      For all nonzero integers a and b, if ab, then ba.

    3. (c)

      For all nonzero integers a,b, and c, if ab and bc, then ac.

7.1.9 Functions as Relations

If we have a function f:AB, we can generate a set of ordered pairs f that is a subset of A×B as follows:

This means that f is a relation from A to B. Since, dom(f)=A, we know that
(1) For every aA, there exists a bB such that (a,b)f.

When (a,b)f, we write b=f(a). In addition, to be a function, each input can produce only one output. In terms of ordered pairs, this means that there will never be two ordered pairs (a,b) and (a,c) in the function f, where aA,b,cB, and bc. We can formulate this as a conditional statement as follows:
(2) For every aA and every b,cB, if (a,b)f and (a,c)f, then b=c.

This means that a function f from A to B is a relation from A to B that satisfies conditions (1) and (2). (See Theorem 6.22 in Section 6.5.) Not every relation, however, will be a function. For example, consider the relation T in Progress Check 7.2.

This relation fails condition (2) above since a counterexample comes from the facts that (0,8)T and (0,8)T and 88.

7.1.10 Progress Check 7.4 (A Set of Ordered Pairs)

Let F={(x,y)×y=x2}. The set F can then be considered to be relation on since it is a subset of ×.

  1. 1.

    List five different ordered pairs that are in the set F.

  2. 2.

    Use the roster method to specify the elements of each of the following the sets:

    1. (a)

      A={x(x,4)F}

    2. (b)

      B={x(x,10)F}

    3. (c)

      C={y(5,y)F}

    4. (d)

      D={y(3,y)F}

  3. 3.

    Since each real number x produces only one value of y for which y=x2, the set F can be used to define a function from the set to . Draw a graph of this function.

7.1.11 Visual Representations of Relations

In Progress Check 7.4, we were able to draw a graph of a relation as a way to visualize the relation. In this case, the relation was a function from to . In addition, in Progress Check 7.2, we were also able to use a graph to represent a relation. In this case, the graph of the relation T={(x,y)×x2+y2=64} is a circle of radius 8 whose center is at the origin.

When R is a relation from a subset of the real numbers to a subset of , we can often use a graph to provide a visual representation of the relation. This is especially true if the relation is defined by an equation or even an inequality. For example, if

Directed graph with vertices 1, 2, 3, 4. Edges exist from 1 to 1, 1 to 2, 2 to 4, 4 to 2, 4 to 4, 3 to 2, and 3 to 4.
Figure 7.2: Directed Graph for a Relation

7.1.12 Progress Check 7.5 (The Directed Graph of a Relation)

Let A={1,2,3,4,5,6}. Draw a directed graph for the following two relations on the set A. For each relation, it may be helpful to arrange the vertices of A as shown in Figure 7.3.
R={(x,y)A×Ax divides y},T={(x,y)A×Ax+y is even }.

Six vertices labeled 1 through 6 arranged in a hexagon shape. 1 is at the top, proceeding clockwise to 6 at top-left.
Figure 7.3: Vertices for A

7.1.13 Exercises 7.1

  1. 1.

    () Let A={a,b,c},B={p,q,r}, and let R be the set of ordered pairs defined by R={(a,p),(b,q),(c,p),(a,q)}.

    1. (a)

      Use the roster method to list all the elements of A×B. Explain why A×B can be considered to be a relation from A to B.

    2. (b)

      Explain why R is a relation from A to B.

    3. (c)

      What is the domain of R? What is the range of R?

  2. 2.

    () Let A={a,b,c} and let R={(a,a),(a,c),(b,b),(b,c),(c,a),(c,b)} (so R is a relation on A). Are the following statements true or false? Explain.

    1. (a)

      For each xA,xRx.

    2. (b)

      For every x,yA, if xRy, then yRx.

    3. (c)

      For every x,y,zA, if xRy and yRz, then xRz.

    4. (d)

      R is a function from A to A.

  3. 3.

    Let A be the set of all female citizens of the United States. Let D be the relation on A defined by

    That is, xDy means that x is a daughter of y.

    1. (a)

      () Describe those elements of A that are in the domain of D.

    2. (b)

      () Describe those elements of A that are in the range of D.

    3. (c)

      Is the relation D a function from A to A? Explain.

  4. 4.

    () Let U be a nonempty set, and let R be the "subset relation" on 𝒫(U). That is,

    1. (a)

      Write the open sentence (S,T)R using standard subset notation.

    2. (b)

      What is the domain of this subset relation, R?

    3. (c)

      What is the range of this subset relation, R?

    4. (d)

      Is R a function from 𝒫(U) to 𝒫(U)? Explain.

  5. 5.

    Let U be a nonempty set, and let R be the "element of" relation from U to 𝒫(U). That is,

    1. (a)

      What is the domain of this "element of" relation, R?

    2. (b)

      What is the range of this "element of" relation, R?

    3. (c)

      Is R a function from U to 𝒫(U)? Explain.

  6. 6.

    () Let S={(x,y)×x2+y2=100}.

    1. (a)

      Determine the set of all values of x such that (x,6)S, and determine the set of all values of x such that (x,9)S.

    2. (b)

      Determine the domain and range of the relation S and write each set using set builder notation.

    3. (c)

      Is the relation S a function from to ? Explain.

    4. (d)

      Since S is a relation on , its elements can be graphed in the coordinate plane. Describe the graph of the relation S. Is the graph consistent with your answers in Exercises (6a) through (6c)? Explain.

  7. 7.

    Repeat Exercise (6) using the relation on defined by

    What is the connection between this relation and the relation in Exercise (6)?

  8. 8.

    Determine the domain and range of each of the following relations on and sketch the graph of each relation.

    1. (a)

      R={(x,y)×x2+y2=10}

    2. (b)

      S={(x,y)×y2=x+10}

    3. (c)

      T={(x,y)×||x|+|y|=10}

    4. (d)

      R={(x,y)×x2=y2}

  9. 9.

    Let R be the relation on where for all a,b,aRb if and only if |ab|2.

    1. (a)

      () Use set builder notation to describe the relation R as a set of ordered pairs.

    2. (b)

      () Determine the domain and range of the relation R.

    3. (c)

      Use the roster method to specify the set of all integers x such that xR5 and the set of all integers x such that 5Rx.

    4. (d)

      If possible, find integers x and y such that xR8,8Ry, but xy.

    5. (e)

      If b, use the roster method to specify the set of all x such that xRb.

  10. 10.

    Let R<={(x,y)×x<y}. This means that R<is the "less than" relation on .

    1. (a)

      What is the domain of the relation R<?

    2. (b)

      What is the range of the relation R<?

    3. (c)

      Is the relation R<a function from to ? Explain.

Note: Remember that a relation is a set. Consequently, we can talk about one relation being a subset of another relation. Another thing to remember is that the elements of a relation are ordered pairs.

7.1.14 Explorations and Activities

  1. 11.

    The Inverse of a Relation. (The results of this section will be termed Theorem 7.6.) In Section 6.5, we introduced the inverse of a function. If A and B are nonempty sets and if f:AB is a function, then the inverse of f, denoted by f1, is defined as

Now that we know about relations, we see that f1 is always a relation from B to A. The concept of the inverse of a function is actually a special case of the more general concept of the inverse of a relation, which we now define.

Definition. Let R be a relation from the set A to the set B. The inverse of R, written R1 and read "R inverse," is the relation from B to A defined by

That is, R1 is the subset of B×A consisting of all ordered pairs (y,x) such that xRy.

For example, let D be the "divides" relation on . See Progress Check 7.3.
So