
A relation turns a condition such as “is connected to” into a set of ordered pairs. First specify the sets involved, then decide which pairs satisfy the condition. To classify a relation, use the quantifiers in each definition rather than relying on its name or an informal impression.
1. Basic Concepts
Ordered Pairs, Cartesian Products, and Binary Relations
An ordered pair distinguishes its first and second components:
When , we have . For example, and represent different points in the plane.
The Cartesian product of sets and contains every possible ordered pair with first component in and second component in :
A binary relation from to is any subset of . Write for , and for . The Cartesian product supplies the possible pairs; the relation selects those satisfying its condition.
If , it is a relation on . The notation means , not the set obtained by squaring individual elements.
Example: Listing a relation from its defining condition. Let . Define if and only if , meaning that for some integer . List all ordered pairs in .
Show solution and steps
Group the pairs by their first component. The number 1 divides every element of ; 2 divides 2 and 4; 3 divides only 3; and 4 divides only 4. Hence
The direction matters: the first component divides the second. Thus , whereas . Only positive integers occur here, so conventions about divisibility involving zero do not affect the answer.
Relations, Functions, and Inverse Relations
The graph of a function is the relation
It is a special relation in which every is associated with exactly one . “Every” requires a value for each input; “exactly one” requires uniqueness. A general relation may leave an input unrelated to any output or associate it with several outputs. Several inputs sharing one output are allowed in a function.
Example: Is a relation the graph of a function? Let , , and . Determine whether is the graph of a function from to , and find .
Show solution and steps
It is not a function graph. The input has two distinct outputs, and has no output, violating uniqueness and the requirement that every input have a value.
Swap the components of each pair:
This is not the graph of a function from all of to either, because 3 has no output.
In general, the inverse relation is
Every binary relation has an inverse relation. For the inverse relation of a function to be an inverse function defined on all of , must be a bijection.
Special Relations and the Underlying Set
For a specified set , the empty relation is , the identity relation is , and the universal relation is .
Properties depend on the underlying set. For instance, is reflexive on , but not on because is missing. Always state the set on which a relation is being considered.
2. Properties and How to Test Them
Six Properties
In the following table, all variables range over , and .
| Property | Definition | A counterexample must show |
|---|---|---|
| Reflexive | Some with | |
| Irreflexive | At least one | |
| Symmetric | but | |
| Antisymmetric | Two distinct elements related in both directions | |
| Asymmetric | A pair and its reverse both present, including a loop | |
| Transitive | but |
Proving a property requires accounting for every possible choice of elements. Disproving it requires only one instance where the premise holds and the conclusion fails. Finite relations can be checked by enumeration; infinite relations usually require a general argument or an explicit counterexample.

Each panel illustrates the named property and may have other properties as well. In the antisymmetric panel, loops are allowed: only opposite edges between distinct vertices are forbidden. In the symmetric panel, the isolated vertex shows that symmetry alone does not require every vertex to have a loop.
Reflexivity and Irreflexivity
“Not reflexive” means at least one loop is missing. “Irreflexive” means all loops are absent. These are different conditions.
On a nonempty set, a relation cannot be both reflexive and irreflexive, but it can be neither. On the empty set, the unique empty relation satisfies both conditions: there is no element violating either universal statement.
Example: Some, all, or no loops. Let and
Determine whether each relation is reflexive and whether it is irreflexive.
Show solution and steps
| Relation | Reflexive? | Irreflexive? | Reason |
|---|---|---|---|
| No | No | is missing, but is present | |
| Yes | No | All three required loops are present | |
| No | Yes | No loop is present |
Symmetry, Antisymmetry, and Asymmetry
Symmetry requires the reverse of every existing pair. Antisymmetry forbids pairs in both directions between distinct elements, but permits loops. Asymmetry also forbids loops. Therefore,
To prove this, first assume asymmetry. Setting rules out loops, and the definition also rules out both directions between distinct elements. Conversely, suppose is antisymmetric and irreflexive. If , irreflexivity gives , and antisymmetry then rules out .
Symmetry and antisymmetry are not logical opposites. They may both hold, in which case only loops can be present, so . They may also both fail.
Example: Distinguishing the three symmetry properties. On , classify the following relations as symmetric, antisymmetric, or asymmetric:
Show solution and steps
| Relation | Symmetric? | Antisymmetric? | Asymmetric? | Key observation |
|---|---|---|---|---|
| Yes | Yes | No | Only loops occur; loops violate asymmetry | |
| Yes | No | No | Both directions occur between 1 and 2 | |
| No | Yes | Yes | No reverse pair or loop is present | |
| No | No | No | has no reverse, but 1 and 2 are related in both directions |
“Not symmetric” means only that symmetry fails. It does not imply the stronger property “asymmetric.”
Transitivity and Vacuous Truth
Transitivity asks whether every two-step connection already has a direct edge . The elements need not be distinct. In particular, requires a loop at .
Example: Testing transitivity with digraphs. The edge sets in Figure 2 are , , and , on , , and , respectively. Determine whether each relation is transitive and explain why.
Show solution and steps
is transitive because no two edges can be followed consecutively. The premise of the implication is always false, so the implication is true. This is vacuous truth, which also explains why the empty relation is transitive.
is not transitive: , but .
is not transitive: , but . The reverse two-step connection also requires the missing . Adding both loops produces the universal relation on , which is transitive.
Having no two-step connection makes transitivity hold vacuously. Finding one edge that cannot be continued does not settle the property: a violating two-step connection may occur elsewhere.
Classifying Relations on an Infinite Set
Example: Six relations on the integers. Define the following relations on :
Determine whether each is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, and transitive.
Show solution and steps
| Relation | Reflexive? | Irreflexive? | Symmetric? | Antisymmetric? | Asymmetric? | Transitive? |
|---|---|---|---|---|---|---|
| : | Yes | No | No | Yes | No | Yes |
| : | No | Yes | No | Yes | Yes | Yes |
| : | Yes | No | Yes | No | No | Yes |
| : | Yes | No | Yes | Yes | No | Yes |
| : | No | Yes | No | Yes | Yes | No |
| : | No | No | Yes | No | No | No |
The main arguments are:
- For , and imply , giving antisymmetry. The transitivity of gives transitivity of . For , neither loops nor pairs in both directions can occur.
- For , exchanging preserves the condition, and , imply . However, 1 and are distinct and related in both directions, disproving antisymmetry.
- contains only loops. It is symmetric, antisymmetric, and transitive.
- For , and imply , not . Specifically, and belong, but does not.
- For , is present but is absent, so it is neither reflexive nor irreflexive. Commutativity of addition gives symmetry. Both and are present, disproving antisymmetry; they also require the missing for transitivity.
3. Counting Relations on Finite Sets
If and , then . Each possible pair can independently be included or excluded. Thus there are relations from to .
On a set with elements, there are relations. A reflexive relation must include all diagonal pairs; the remaining pairs are freely chosen. The number of reflexive relations is therefore
An irreflexive relation instead excludes every diagonal pair, leaving the same number of free choices and hence the same count.
Example: Relations on three elements. For , how many relations are there in total? How many are reflexive, and how many are irreflexive?
Show solution and steps
There are nine possible pairs, giving relations. Fixing the three diagonal positions leaves six free positions, so there are reflexive relations and 64 irreflexive relations. The remaining are neither reflexive nor irreflexive.
Extension: Count diagonal positions and unordered pairs separately. For each pair of distinct elements , a symmetric relation may include both directions or neither. An antisymmetric relation has three choices: neither direction, only , or only .
| Property | Number of relations |
|---|---|
| Symmetric | |
| Antisymmetric | |
| Asymmetric | |
| Reflexive and symmetric |
Asymmetry forces every diagonal position to be zero. Transitivity links choices at different positions, so the “choose each position independently” argument does not apply to counting transitive relations.
4. Review and Self-Check
A useful checking order is: specify the underlying set, check loops, check reversed pairs between distinct elements, and finally examine all two-step connections. Use arbitrary elements to prove a property and specific elements to disprove it.
- Which properties does the empty relation have when ?
- Does symmetry together with transitivity imply reflexivity?
- Is divisibility on the positive integers reflexive, symmetric, antisymmetric, and transitive?
Show self-check answers
- It is irreflexive, symmetric, antisymmetric, asymmetric, and transitive, but not reflexive. Premises requiring a pair in the relation cannot hold.
- No. The empty relation on a nonempty set is a counterexample. Even a nonempty relation may leave some elements isolated; for an arbitrary , one cannot simply assume the existence of with .
- It is reflexive, antisymmetric, and transitive, but not symmetric. If and , write and to get . Positivity ensures that mutual divisibility implies equality. The pair is present while is absent.
Glossary and Sources
| Term | Meaning or notation |
|---|---|
| Ordered pair | ; component order matters |
| Cartesian product | |
| Binary relation | |
| Inverse relation | ; reverse the components of every pair |
| Identity relation | ; all loops on |
| Vacuous truth | An implication is true when its premise cannot hold |
-
Course slides. Figure 1 is cropped from the original digraph property illustrations.
-
Rosen, 8th edition, Section 9.1: printed pages 600–605, PDF pages 623–628. The counting extension corresponds to Exercise 49 on printed page 610; the invalid reflexivity argument in the self-check corresponds to Exercise 51.
-
Figure 2 is drawn from the definition of transitivity and the counterexamples stated in the text. Its complete edge sets are stated in the text. The irreflexive and asymmetric columns in the integer example, and the expanded reasoning, are supplementary derivations.
Assigned textbook exercises: Section 9.1, Exercises 4 and 6, on properties of real-world relations and relations on the real numbers. Both are on printed page 608, PDF page 631. The remaining operation exercises are listed in the next note.
Updated: