Section 6.1 Basic Definitions
In Chapter 1 we introduced the concept of the Cartesian product of sets. Let’s assume that a person owns three shirts and two pairs of slacks. More precisely, let and Then is the set of all six possible combinations of shirts and slacks that the individual could wear. However, an individual may wish to restrict himself or herself to combinations which are color coordinated, or “related.” This may not be all possible pairs in but will certainly be a subset of For example, one such subset may be
Subsection 6.1.1 Relations between two sets
Example 6.1.2. A simple example.
Let and Then is a relation from into Of course, there are many others we could describe; 64, to be exact.
Example 6.1.3. Divisibility Example.
Let and define a relation from into by if and only if divides evenly into The set of pairs that qualify for membership is
Subsection 6.1.2 Relations on a Set
Definition 6.1.4. Relation on a Set.
The relation “divides” in Example 6.1.3 will appear throughout the book. Here is a general definition on the whole set of integers.
Definition 6.1.5. Divides.
Be very careful in writing about the relation “divides.” The vertical line symbol use for this relation, if written carelessly, can look like division. While is either true or false, is a number.
Based on the equation we can say that is equivalent to or divides evenly into In fact the “divides” is short for “divides evenly into.” You might find the equation initially easier to understand, but in the long run we will find the equation more convenient.
Sometimes it is helpful to illustrate a relation with a graph. Consider Example 6.1.2. A graph of can be drawn as in Figure 6.1.6. The arrows indicate that 1 is related to 4 under Also, 2 is related to 4 under and 3 is related to 5, while the upper arrow denotes that is a relation from the whole set into the set

A typical element in a relation is an ordered pair In some cases, can be described by actually listing the pairs which are in as in the previous examples. This may not be convenient if is relatively large. Other notations are used with certain well-known relations. Consider the “less than or equal” relation on the real numbers. We could define it as a set of ordered pairs this way:
However, the notation is clear and self-explanatory; it is a more natural, and hence preferred, notation to use than
Many of the relations we will work with “resemble” the relation so is a common way to express the fact that is related to through the relation
Relation Notation Let be a relation from a set into a set Then the fact that is frequently written
Subsection 6.1.3 Composition of Relations
Notice that in Figure 6.1.8 that we can, for certain elements of go through elements in to results in That is:

Based on this observation, we can define a new relation, call it from into In order for to be in it must be possible to travel along a path in Figure 6.1.8 from to In other words, if and only if The name was chosen because it reminds us that this new relation was formed by the two previous relations and The complete listing of all elements in is We summarize in a definition.
Definition 6.1.9. Composition of Relations.
Let be a relation from a set into a set and let be a relation from into a set The composition of with written is the set of pairs of the form where if and only if there exists such that and
Remark: A word of warning to those readers familiar with composition of functions. (For those who are not, disregard this remark. It will be repeated at an appropriate place in the next chapter.) As indicated above, the traditional way of describing a composition of two relations is where is the first relation and the second. However, function composition is traditionally expressed in the opposite order: where is the first function and is the second.
Exercises 6.1.4 Exercises
1.
For each of the following relations defined on determine which of the given ordered pairs belong to
iff (2, 3), (2, 4), (2, 8), (2, 17) iff (2, 3), (3, 2), (2, 4), (5, 8) iff ; (1,1), (2, 3), (2, 4), (2, 6)
Answer.
2.
- List all elements in
- List all elements in
- Illustrate
and via a diagraph. - In one version of the game of nim players A and B take turns removing one or two stones from a pile. The player who manages to remove the last stone wins. Explain how these two relations describe the winning moves for B if A plays first with nine stones in the pile at the start of the game.
3.
Answer.
4.
Given and relations on and what are and Hint: Even when a relation involves infinite sets, you can often get insights into them by drawing partial graphs.
5.
- Consider the specific case
and determine the cardinality of the set - What is the cardinality of
for an arbitrary Express your answer in terms of (Hint: There are three places that each element of S can go in building an element of )
Answer.
- When
there are 27 pairs in the relation. - Imagine building a pair of disjoint subsets of
For each element of there are three places that it can go: into the first set of the ordered pair, into the second set, or into neither set. Therefore the number of pairs in the relation is by the product rule.
6.
Consider the two relations on people: where if ’s mother is and where if and are siblings. Describe, in words, the two relations and in simple English terms.
7.
Solution.
Assume This implies that there exist such that and We are given that which implies that Combining this with implies that which proves that
You have attempted 1 of 1 activities on this page.