Subsection Relations Generally
A graph is a way to represent some ways that different objects are related. We have seen how to use graphs to represent which people are friends, or which classes have time conflicts, or which radio stations are too close to have the same frequency. Not all ways in which things can be related can be represented by a graph, however. In this section, we will consider the more general concept of a relation and see how those might be related to graphs.
Consider the example of the relation between students and classes that holds when a student is in that class (in a particular semester). This is a relation between two different sets (the students and the classes). If we used a graph to illustrate this relation, the graph would be bipartite, since two students are never related to each other, and two classes are never related to each other.
A graph is really a set of vertices and a set of edges: \(G = (V, E)\text{;}\) each element of the set \(E\) is a two-element subset of \(V\text{.}\) If we want to draw attention to the bipartiteness of the graph, we can split up \(V\) into its two sets and write \(G = ((A, B), E)\text{.}\) In this notation, for the graph to be bipartite, we want each edge to be a pair \((a,b)\) where \(a\) is an element of \(A\) and \(b\) is an element of \(B\text{.}\) In other words, each edge is an element of the Cartesian product of \(A\) and \(B\text{,}\) written,
\begin{equation*}
A \times B = \{(a,b) \st a \in A,~b \in B\}.
\end{equation*}
(Another way to say this is that \(A \times B\) is “the set of all ordered pairs of elements from \(A\) and \(B\text{.}\)”)
This example exactly illustrates what a general binary relation is. Here is the careful definition.
Definition 2.6.2.
A binary relation is a set of ordered pairs. We say the binary relation is a relation on sets \(A\) and \(B\) provided the ordered pairs are a subset of \(A \times B\text{.}\) We say a binary relation is a relation on a set \(A\) provided the ordered pairs are a subset of \(A \times A\text{.}\)
Note that \(A \times A\) is just the set of all ordered pairs where both coordinates are elements from \(A\text{.}\)
Example 2.6.3.
Consider a set \(A\) of students and a set \(B\) of classes. Say \(A = \{\text{Al, Bob, Cat, Dirk, Eva}\}\) and \(B = \{\text{Calculus, Discrete, Statistics}\}\text{.}\) Everyone except Dirk is in Calculus, Bob and Eva are in Discrete, and Al, Cat, and Dirk are in Statistics.
We can define a relation \(T\) of “is taking” \(A\) and \(B\) that holds of a student and class precisely if that student is taking that class. Write this relation as a subset of \(A\times B\) and draw its bipartite graph.
Solution.
To write the relation precisely, we just give the set of ordered pairs:
\begin{align*}
T = \{\amp (\text{Al}, \text{Calculus}), (\text{Al}, \text{Statistics}),\\
\amp (\text{Bob}, \text{Calculus}), (\text{Bob}, \text{Discrete})\\
\amp (\text{Cat}, \text{Calculus}), (\text{Cat}, \text{Statistics})\\
\amp (\text{Dirk}, \text{Statistics})\\
\amp (\text{Eva}, \text{Calculus}), (\text{Eva}, \text{Discrete})\}
\end{align*}
We can draw this relation as a bipartite graph:
Example 2.6.4.
Consider the relation \(M\) for “is a multiple of” on the set \(A = \{1,2,3,4,5,6\}\text{.}\) Write this as a set of ordered pairs. Does this relation create a graph?
Solution.
First, let’s think about which elements should be related and which should not. We know that \(6\) is a multiple of \(2\text{,}\) so the relation is true of the pair \((6,2)\text{,}\) but \(6\) is not a multiple of \(4\text{,}\) so the pair \((6,4)\) does not satisfy the relation. More precisely, we say that \((6,2) \in M\) but \((6,4) \notin M\text{.}\)
Let’s list all the elements of \(M\text{:}\)
\begin{align*}
M = \{\amp(1,1), (2,1), (2,2), (3,1), (3,3), (4,1), (4,2), (4,4), \\
\amp (5,1), (5,5), (6,1), (6,2) (6,3), (6,6)\}\text{.}
\end{align*}
This relation is not a graph for two reasons: first, elements are related to themselves, and second, the order of elements in the relation is not symmetric (\(6\) is related to \(2\text{,}\) but \(2\) is not related to \(6\text{,}\) for example).
We can, however, still draw something like a graph to illustrate this relation: Since the direction of the relation matters, we will have directed edges. This alone would create a directed graph. Since vertices can have edges going to themselves, we would call the structure a multigraph, so the relation can be thought of as a directed multigraph
A binary relation \(R\) on sets \(A\) and \(B\) can always be “turned around” to give a relation on sets \(B\) and \(A\text{.}\) That is, \(R\) says how things in \(A\) are related to things in \(B\text{;}\) those things in \(B\) are related to things in \(A\text{,}\) just in an inverse (backward) way. We will call this new relation the inverse of \(R\text{.}\)
Definition 2.6.5.
Given a binary relation \(R\text{,}\) define \(R\inv\) to be the inverse of \(R\) as the set
\begin{equation*}
R\inv = \{(b,a) \st (a,b) \in R\}\text{.}
\end{equation*}
The relation
\(T\) from
Example 2.6.3 said that a given student was in a particular class. The inverse relation
\(T\inv\) says that a given class has a particular student in it. For example,
\((\text{Calculus}, \text{Al})\) is an element of
\(T\inv\text{.}\) Graphically, there won’t be any difference in the picture, although we could put the set of classes on top and students on bottom.
The relation
\(M\) from
Example 2.6.4 game us that, for example,
\(6\) is a multiple of
\(2\text{,}\) since
\((6,2) \in M\text{.}\) For the inverse, we have
\((2,6) \in M\inv\text{,}\) which means that
\(2\) is a factor of
\(6\text{.}\) For this example, we have represented a relation as a directed multigraph. The graph of the inverse will look exactly the same, but all the arrows will point in the opposite direction.
Another way to create a new relation is to combine two relations. Suppose in addition to the “is taking” relation from
Example 2.6.3, we define a relation “is taught by” that matches up each course with its instructor. Perhaps Professor X teaches Calculus. In that case, since Al is taking Calculus, and Calculus is taught by Professor X, we can conclude that Al is taking a class with Professor X.
Definition 2.6.6.
Let \(R\) be a relation from set \(A\) to \(B\) and \(S\) be a relation from \(B\) to \(C\text{.}\) The composition of \(R\) and \(S\) is
\begin{equation*}
S \circ R = \{(a,c) \in A \times C \st (a,b) \in R \text{ and } (b,c) \in S \text{ for some } b \in B\}
\end{equation*}
Note the order in which we wrote the two relations: it’s \(S \circ R\text{,}\) not \(R \circ S\text{.}\) The reason we do this (which might seem backward) is that it agrees with the usual notation for composition of functions. In fact, functions are nothing but a specific type of relation!
Example 2.6.7.
Write out the relation
\(P \circ T\text{,}\) composing the relations of
Example 2.6.3 and
\(P = \{(\text{Calculus}, \text{Prof X}), (\text{Discrete}, \text{Prof L}), (\text{Statistics}, \text{Prof X}), (\text{Statistics}, \text{Prof S})\} \text{.}\) Note that here we are saying the statistic course is co-taught by professors X and S.
Solution.
The relation we are looking for is a relation between students and professors. We can start with each element of \(T\text{,}\) and extend it by following the course to the professor(s) via \(P\text{.}\) So for example, start with Cat, and notice that \((\text{Cat}, \text{Calculus}) \in T\text{.}\) Now look at what Calculus is related to via \(P\text{:}\) \((\text{Calculus}, \text{Prof X}) \in P \text{.}\) Thus we can push these together to conclude that \((\text{Cat}, \text{Prof X}) \in P \circ T\text{.}\)
An alternative approach would be to simply consider which pairs of students and professors are linked by a common class. Should the pair \((\text{Al}, \text{Prof L})\) be an element of the composition? No, because there is no class that is both taken by Al and taught by Professor L. On the other hand, we can conclude the \((\text{Al}, \text{Prof X}) \in P \circ T\) since there is a common course. In fact, the common course could be Calculus or Statistics (it doesn’t matter how many common middle steps there are, as long as there is at least one).
Here is the complete relation:
\begin{align*}
P \circ T = \{\amp (\text{Al}, \text{Prof X}), (\text{Al}, \text{Prof S}), (\text{Bob}, \text{Prof X}), (\text{Bob}, \text{Prof L}), \\
\amp (\text{Cat}, \text{Prof X}), (\text{Cat}, \text{Prof S}), (\text{Dirk}, \text{Prof X}), (\text{Dirk}, \text{Prof S}),\\
\amp (\text{Eva}, \text{Prof X}), (\text{Eva}, \text{Prof L})\}
\end{align*}
Something interesting often happens when you compose a relation with its inverse. You might have seen something like this for functions in calculus or algebra: \(f(x) = e^x\) has an inverse function \(f\inv(x) = \ln(x)\text{,}\) and we know that \(f(f\inv(x)) = e^{\ln(x)} = x\text{.}\) But functions are relations in which every “input” has exactly one “output”, so perhaps it is not surprising that composing with an inverse just gives you the identity function. When inputs can have multiple outputs, and outputs can have multiple inputs, then we get something more.
Example 2.6.8.
Describe the relation
\(T\inv \circ T\) (using our familiar relation
\(T\) from
Example 2.6.3). What does this tell us about students and classes?
Solution.
By following the relation, we could start by saying Al is in Calculus, and Calculus is taken by Al, so Al is related to Al. But also , Calculus is taken by Bob, so now Al is also related to Bob. Is Bob related to Al as well? Yes, since Bob is taking Calculus and Calculus is taken by Al.
The composition is telling us which pairs of students have at least one class in common. That’s almost all pairs of students, except that Dirk is not related to Bob or Eva, since they don’t take Statistics, and that is the only class he takes.
Instead of writing out the relation (which will almost be all of \(A \times A\)), here is the graph representation.
While we drew a directed multigraph here, the arrows going both ways mean that we really could have drawn just a multigraph.
Subsection Properties of Relations
From this point on, we will just consider relations on a single set (so from a set to itself). To help understand these relations, let’s consider some basic properties a relation might or might not have.
Definition 2.6.9. Reflexive, Symmetric, and Transitive.
Ler \(R\) be a relation on the set \(A\text{.}\) We say,
\(R\) is reflexive provided \((a,a) \in A\) for all \(a \in A\text{.}\)
\(R\) is symmetric provided, for all \(a, b \in A\text{,}\) if \((a,b) \in R\) then \((b,a) \in R\text{.}\)
\(R\) is transitive provided, for all \(a, b,c \in A\text{,}\) if \((a,b) \in R\) and \((b,c) \in R\text{,}\) then \((a,c)\in R\text{.}\)
Let’s examine each of these properties carefully.
It will be helpful to consider a few standard examples of relations on sets as we go. Most relations we consider here will be written using infix notation, just meaning that we put the relation symbol between the two things it is relating. For example, the less than relation is almost always written as \(2 \lt 6\) rather than writing \((2,6) \in \lt\text{.}\)
Example 2.6.10. Reflexive and non-reflexive relations.
A relation is reflexive when every element is related to itself. The following are reflexive relations:
The “less-that-or-equal-to” relation on any set of numbers. Is it the case that \(3 \le 3\text{?}\) More importantly, is every number no greater than itself? Since the answer is yes, this relation is reflexive
The “within 3” relation, that holds of two numbers \(a\) and \(b\) provided \(|a-b| \le 3\text{.}\) To prove that this is reflexive, we simply note that \(|a-a| = 0 \le 3\text{.}\)
The “is a multiple of” relation from
Example 2.6.4. Note that the directed multigraph for this relation had loops at every vertex.
However, these relations are not reflexive:
The “sums to zero” relation, that holds on numbers \(a\) and \(b\) if \(a+b = 0\text{.}\) Note that while \(0 + 0 = 0\text{,}\) so \((0,0)\) is an element of the relation, every other number is not related to itself.
Any relation that is described by a graph. Remember, graphs cannot have edges looping back to a single vertex, so the edge relation on a graph is not reflexive. (A multigraph could be reflexive or not).
If no element is related to itself (such as in the edge relation for a graph), then we call the relation irreflexive. Of course, some relations are neither reflexive nor irreflexive.
Checking that a relation is reflexive is relatively easy. The other two properties are phrased as implications, which makes them a little more complex.
Example 2.6.11. Symmetric and non-symmetric relations.
Essentially, symmetric relations are the ones that work “both ways.” More precisely, if \(a\) is related to \(b\text{,}\) then \(b\) is also related to \(a\text{.}\)
The following relations are symmetric.
The “within 3” relation: if \(|a-b| \le 3\) then \(|b-a| \le 3\text{.}\)
The “sums to zero” relation: if \(a+b = 0\text{,}\) then certainly \(b + a = 0\text{.}\)
For any graph, the edge relation is symmetric. Of course, for directed graphs this is usually not true.
On the other hand, these relations are not symmetric.
\(\le\) is not symmetric. All we need to do to prove that a relation is not symmetric is to find some \(a\) and \(b\) such that \(a \le b\) ut \(b \not\le a\text{.}\) Well, \(3 \le 4\text{,}\) but \(4 \not\le 3\text{.}\) QED.
The “is a multiple of” relation is not symmetric. \(6\) is a multiple of \(2\) but \(2\) is not a multiple of \(6\text{.}\)
Relations that are not symmetric could in fact be antisymmetric, meaning the only elements for which both \((a,b)\) and \((b,a)\) are in the relation is when \(a = b\text{.}\) Note that there are relations that are neither symmetric nor antisymmetric.
Using the language of inverse relations, a relation is symmetric if and only if the relation is equal to its inverse.
Example 2.6.12. Transitive and non-transitive relations.
If \(a\) is related to \(b\text{,}\) and \(b\) is related to \(c\text{,}\) does that mean \(a\) is related to \(c\text{?}\) If this is true no matter what \(a\text{,}\) \(b\text{,}\) and \(c\) are, then we say the relation is transitive.
Here are some transitive relations.
\(\le\text{.}\) Suppose \(a \le b\) and \(b \le c\text{.}\) Then clearly \(a \le c\text{.}\)
The “is a multiple of” relation. This is a good one to write a proof for: Suppose \(a\) is a multiple of \(b\) and that \(b\) is a multiple of \(c\text{.}\) Then \(a = bk\) for some integer \(k\) and \(b = cj\) for some integer \(j\text{.}\) By substitution, \(a = cjk\text{,}\) so \(a\) is a multiple of \(c\text{.}\)
However, the following relations are not transitive.
The “within 3” relation is not transitive. All we need to do is find three numbers that fail to meet the condition. How about \(1\text{,}\) \(3\text{,}\) and \(5\text{.}\) Here \(1\) is within 3 of \(3\text{,}\) and \(3\) is within 3 of \(5\text{,}\) but \(|1 - 5| = 4\) so the relation does not hold of \((1,5)\text{.}\)
The “sums to zero” relation is not transitive. Notice that we never claimed that \(a\text{,}\) \(b\text{,}\) and \(c\) need to be different numbers. Let \(a = 5\text{,}\) \(b = -5\) and \(c = 5\text{.}\) Then \(a+b = 0\) and \(b + c = 0\text{,}\) so the relation holds of \((a,b)\) and \((b,c)\text{.}\) But \(a + c = 10\) so the relation does not hold of \((a,c)\text{.}\)
The edge relation for a graph might or might not be transitive. What would a graph look like if its edge relation was transitive?
Subsection Equivalence Relations
Now we will do something very typical for mathematics: we will look at our most common types of relations, consider what properties these have, and then classify other relations that also have these properties as a specific class of relations.
The relation we are all most familiar with is equality. Which properties of relations does the equality relation possess? Certainly everything is equal to itself, so equality is reflexive. If \(a = b\text{,}\) then \(b = a\text{,}\) so equality is symmetric. If \(a = b\) and \(b = c\text{,}\) then \(a = c\text{,}\) so equality is transitive.
What other relations are all three of reflexive, symmetric, and transitive? Exactly those relations that behave like equality. We call such relations equivalence relations.
Definition 2.6.13. Equivalence Relation.
A relation that is reflexive, symmetric, and transitive is called an equivalence relation.
None of the examples we have considered so far in this section have been equivalence relations, but they are ubiquitous in mathematics. They are so common, it is easy to overlook them as anything worth saying something about at all. Let’s see some examples.
Example 2.6.15.
Prove that the relation \(\equiv_2\text{,}\) which holds of two integers if their difference is even, is an equivalence relation. That is, \(a \equiv_2 b\) if and only if \(b-a = 2k\) for some integer \(k\text{.}\)
Solution.
We simply check the three required properties.
\(\equiv_2\) is reflexive: for any integer \(a\text{,}\) we have \(a - a = 0\) and \(0 = 2k\) for \(k = 0\text{,}\) so \(a \equiv_2 a\text{.}\)
\(\equiv_2\) is symmetric: Fix arbitrary integers \(a\) and \(b\text{,}\) and assume \(a \equiv_2 b\text{.}\) That means that \(b-a = 2k\) for some integer \(k\text{.}\) What about \(a - b\text{?}\) Well, we will have \(a-b = 2(-k)\text{,}\) and \(-k\) is an integer, so we have \(b \equiv_2 a\text{.}\)
\(\equiv_2\) is transitive: Fix arbitrary integers \(a\text{,}\) \(b\text{,}\) and \(c\) and assume \(a \equiv_2 b\) and \(b \equiv_2 c\text{.}\) This means that \(b-a = 2k\) and \(c-b = 2j\) for some integers \(k\) and \(j\text{.}\) What about \(c - a\text{?}\) Well,
\begin{equation*}
c - a = (c- b) + (b - a) = 2k+2j = 2(k+j)\text{.}
\end{equation*}
Since \(k+j\) is an integer, we see that \(a \equiv_2 c\) as required.
Example 2.6.16.
Let’s call two graphs “degree-sequence-equivalent” if they have the same degree sequence. Is this an equivalence relation?
Solution.
Yes it is. Clearly every graph has the same degree sequence as itself, so the relation is reflexive. If \(G_1\) has the same degree sequence as \(G_2\text{,}\) then \(G_2\) has the same degree sequence as \(G_1\text{,}\) so the relation is transitive. Finally, if \(G_1\) has the same degree sequence as \(G_2\text{,}\) which has the same degree sequence as \(G_3\text{,}\) then they all have the same degree sequence, so \(G_1\) has the same degree sequence as \(G_3\) (i.e., the relation is transitive).
This example is almost too obvious. That’s because we said that two things are related if a well-defined property of those things was equal, and equality satisfies the properties of an equivalence relation. Our next goal is to try to make better sense of this and see that it is exactly what gives us an equivalence relation.
Subsection Equivalence Classes and Partitions
Given any relation \(R\text{,}\) we can look at the set of elements that are related to a particular element. For the “is taking” relation, we can ask what classes is Al taking (i.e., the classes related to Al). For the “is a multiple of”, we can ask which numbers 6 a multiple of. One way to study the relation is to study the sets of things related to each element.
Definition 2.6.17.
Let \(R\) be a relation on the set \(A\) and let \(a\) be an element of \(A\text{.}\) The relation class of \(a\text{,}\) written \([a]\) is the set of all elements \(b\) such that \((a,b) \in R\) (the set of \(b\) that are related to \(a\) by \(R\)). That is,
\begin{equation*}
[a] = \{b \in A \st (a,b) \in R\}\text{.}
\end{equation*}
When \(R\) is an equivalence relation, we call relation classes equivalence classes.
Example 2.6.18.
Find the relation classes for the “is a multiple of” relation on the set \(A = \{1,2,3,4,5,6\}\text{.}\)
Solution.
There will be six relation classes since each element has a relation class. They are:
\begin{align*}
[1] = \amp \{1\}\\
[2] = \amp \{1,2\}\\
[3] = \amp \{1,3\}\\
[4] = \amp \{1,2,4\}\\
[5] = \amp \{1,5\}\\
[6] = \amp \{1,2,3,6\}.
\end{align*}
For example, we found \([4]\) by considering all pairs \((4,b)\) that satisfied the relation: 4 is a multiple of 1, 2, and 4, so those are the possible values of \(b\) that we find.
Look back at the directed multigraph for this relation shown in the solution to
Example 2.6.4. What are the relation classes? They are nothing but the neighbors of each vertex (where neighbor means you follow the arrows in the correct direction).
Example 2.6.19.
Find the equivalence classes for the \(\equiv_2\) relation on the integers.
Solution.
On no! Our set is infinite, so we will have infinitely many relation classes? Well, we better get started...
What numbers are related to 1? Remember, we want integers whose difference with 1 is a multiple of 2. So 3 for sure. Also 5, and 7, and -1, and -3, and... all the odds? Yes, because the difference of any two odd numbers is even. We can also say that the difference between any two even numbers is even, so the equivalence class of 2 will contain all the even numbers. So far we have:
\begin{align*}
[1] = \amp \{\ldots, -3, -1, 1, 3, 5, \ldots\}\\
[2] = \amp \{\ldots, -4, -2, 2, 4, 6, \ldots\}
\end{align*}
Actually, I think we are done. While \([3]\text{,}\) \([4]\text{,}\) \([5]\text{,}\) and so on are all completely valid equivalence classes, the elements that are related to \(3\) will be exactly the elements related to \(1\text{,}\) since \(1 \equiv_2 3\text{.}\) This is because the relation is transitive! If \(3 \equiv_2 b\text{,}\) then we know \(1 \equiv_2 b\text{.}\)
So we have exactly two equivalence classes. Every integer is in exactly one of these two equivalence classes, and the equivalence class of any integer is exactly the class it belongs to.
Examine the two examples above carefully. For the “is a multiple of” relation, which is NOT an equivalence relation, some elements belong to more than one (different) relation class. But for \(\equiv_2\text{,}\) which is an equivalence relation, every element is in exactly one equivalence class. This is no accident. To make sense of this, we will define a new term.
Definition 2.6.20.
Given a non-empty set \(A\text{,}\) a partition of \(A\) is a set \(P\) of non-empty subsets of \(A\) such that every element of \(A\) is in exactly one element of \(P\text{.}\)
That definition has a lot of symbols and sets involved. It’s really not complicated though: a partition is a way to break up a set into disjoint subsets that cover the whole set. That the subsets are disjoint means no element is in more than one subset. That the subsets cover the set means every element is in at least one subset.
Example 2.6.21.
Give a few different partitions of the set \(A = \{1,2,3,4,5\}\text{.}\)
Solution.
There are so many choices here! One choice is:
\begin{equation*}
P_1 = \{\{1,2,3\}, \{4,5\}\}\text{.}
\end{equation*}
That’s a partition of \(A\) into two subsets. Another partition:
\begin{equation*}
P_2 = \{\{1\}, \{2\}, \{3\}, \{4\}, \{5\}\}\text{.}
\end{equation*}
Another:
\begin{equation*}
P_3 = \{\{1,3,5\}, \{2,4\}\}\text{,}
\end{equation*}
which happens to be a partition into even and odd numbers. We also have the trivial partition:
\begin{equation*}
P_4 = \{\{1,2,3,4,5\}\}\text{.}
\end{equation*}
Note that is a single set inside the set \(P_4\text{.}\)
It is sometimes a little confusing the think of the elements of a partition as subsets since the partition is a set, and a set of sets can be difficult to talk about. We sometimes call the partition a collection and each of the elements of the partition parts or blocks.
Now the big idea: for any equivalence relation, the equivalence classes form a partition, and for any partition, we can define a relation “are in the same subset” which will be an equivalence relation. We have already seen that the equivalence classes of \(\equiv_2\) form a partition. Let’s go the other direction.
Example 2.6.22.
Define an equivalence relation \(\sim\) on the set \(A = \{1,2,3,4,5\}\) from the partition \(P = \{\{1,4\}, \{2,3,5\}\}\text{.}\)
Solution.
Say two elements of \(A\) are equivalent provided they belong to the same element of \(P\text{.}\) That is, \(1 \sim 4\) and \(4\sim 1\text{,}\) and \(2 \sim 3\text{,}\) \(2 \sim 5\text{,}\) \(3 \sim 5\text{,}\) \(3\sim 2\text{,}\) \(5\sim 2\text{,}\) and \(5\sim 3\text{.}\) Wait, we also have \(1\sim 1\text{,}\) \(2\sim 2\text{,}\) and so on, since every number is in the same subset as itself.
It is clear from looking that this relation is reflexive, symmetric, and transitive, so is an equivalence relation.
Theorem 2.6.23.
Given any equivalence relation \(R\) on a set \(A\text{,}\) the equivalence classes form a partition of \(A\text{.}\)
Given any partition \(P = \{B_1, B_2, \ldots, \}\) of a set \(A\text{,}\) the relation \(\equiv_P\) defined by \(a \equiv_P b\) if and only if \(a\) and \(b\) belong to the same block of \(P\text{,}\) is an equivalence relation.
Further, the equivalence classes for the equivalence relation formed by a partition are exactly the original partition, and the equivalence relation built by the partition of its equivalence classes is exactly the original equivalence relation.
Exercises Additional Exercises
1.
Consider the relation \(\gt\) on the set \(\{1,2,\ldots,8\}\text{.}\)
(a)
Draw the directed graph of the relation \(\gt\text{.}\)
(b)
Draw the directed graph for the inverse relation \(\gt\inv\text{.}\)
(c)
Is the inverse relation of \(\gt\) the same as the relation \(\le\text{?}\) Explain.
2.
True or false: for any relation \(R\) on a set \(A\text{,}\) the relation \(R\inv\) is symmetric if and only if \(R\) is symmetric. Justify your answer.
3.
True or false: for any relation \(R\) on a set \(A\text{,}\) the composition of \(R\) with its inverse, \(R\circ R\inv\text{,}\) is always reflexive. Justify your answer.
4.
Find, if possible, an example of a relation on the set \(\{1,2,3,4\}\) that is reflexive and symmetric, but not transitive. If such a relation exists, draw the directed multigraph of the relation and list the ordered pairs that define it. Explain your answers.
5.
Find, if possible, an example of a relation on the set \(\{1,2,3,4\}\) that is reflexive and transitive, but not symmetric. If such a relation exists, draw the directed multigraph of the relation and list the ordered pairs that define it. Explain your answers.
6.
Find, if possible, an example of a relation on the set \(\{1,2,3,4\}\) that is symmetric and transitive, but not reflexive. If such a relation exists, draw the directed multigraph of the relation and list the ordered pairs that define it. Explain your answers.
7.
What is wrong with the following argument that any relation that is symmetric and transitive must be reflexive?
Suppose \(R\) is a relation on a set \(A\) that is symmetric and transitive. Since \(R\) is symmetric, if \(aRb\text{,}\) then \(bRa\) holds. Since \(R\) is transitive, if \(aRb\) and \(bRa\text{,}\) then \(aRb\) holds. Since this is true for all elements \(a\text{,}\) we have that \(aRa\) is true for all \(a\) in \(A\text{,}\) so \(R\) is reflexive.
8.
Suppose \(R\) is an equivalence relation on the set \(A = \{1,2,\ldots,6\}\text{.}\) What could the directed multigraph for \(R\) look like? Give at least two different examples of such \(R\) and their graphs to illustrate your answer.
9.
Consider the relation \(R\) on the set \(A = \{1,2,3,4,5\}\) defined by \(R = \{(1,2), (2,3), (3,4), (4,5), (5,1), (2,1), (3,1), (4,1), (5,1)\}\text{.}\) Is \(R\) an equivalence relation? Justify your answer.
Regardless of your answer, what do the relation classes \([a]\) for \(a \in R\) look like? Can you tell whether \(R\) is an equivalence relation from this information?
10.
Consider the “loner” relation on a set of students that describes friendships, and holds only between a student and themselves (i.e., nobody is friends with anyone other than themselves). Is this an equivalence relation? Justify your answer. If it is an equivalence relation, what do the equivalence classes look like?