Recommended resources
The freely available resources this lesson will direct you to.
Hello! Last lesson, you counted elements that belonged to at least one of several sets. Now we will make a different kind of set: one whose elements are ordered pairs. This lets us describe not just which objects exist, but which objects are connected. You will construct a Cartesian product, select pairs to form a relation, and show that relation in three ways: as a list of pairs, a mapping diagram, and a directed graph.
Every possible pairing: the Cartesian product
Suppose and . If the first entry must come from and the second from , the complete set of possibilities is
This is the Cartesian product:
Unlike an ordinary two-element set, an ordered pair has a designated first and second entry. In general, . Two ordered pairs are equal only when their corresponding entries are equal.
Watch the opening of Khan Academy India’s Cartesian product of sets for the construction and counting idea. The brief final segment shows why reversing the two sets matters.
Cartesian product of sets | Relations and Functions | Grade 11 | Math | Khan Academy
Watch Cartesian product of sets from Khan Academy India - English to see how a pair of choices becomes a set of ordered pairs.
Follow the construction from the choices example through the definition and count. Then watch the listed pairs, paying attention to why the first entry must come from the first set. Skip the intervening special cases and finish with reversing sets: compare the pairs, not just how many there are.
The grid below is a way to check that none of the possibilities has been missed. Each row fixes one first entry; each column fixes one second entry.

For finite sets, each of the first entries can be paired with each of the second entries. Therefore,
This is a count of possible pairs, not a claim that the sets themselves have been merged. Also, and have the same number of pairs but generally contain different pairs. If either set is empty, no complete pair can be made, so its product with the other set is empty.
A relation selects some of those pairs
A Cartesian product includes every permitted pairing. A relation from to selects whichever of those pairs satisfy a stated condition. Formally, a relation from to is a subset of . When the first and second entries both come from a set , we call it a relation on , with .
Read the definition in Relations and Functions, the Class 11 mathematics exemplar. Stop at its note about arrow diagrams; the subsequent material on functions belongs to a later lesson.
Read the definition of a relation in the Class 11 Relations and Functions exemplar to connect the idea of “selecting pairs” with its formal set notation.
In Section 2.1.2, “Relations” (around pp. 19–20), begin with the definition. Continue through the first numbered remark, ending with arrow diagrams. Focus on why the relation is a subset of the product; you need not continue into Section 2.1.3, “Functions.”
Take , and let mean “the first number is a factor of the second.” Testing the nine pairs in gives
For example, because is a factor of , while . We can also write to say that is related to . Notice the distinction between the allowed pairs in and the selected pairs in : a pair can belong to the product without satisfying the relation.
A reliable way to construct a finite relation is to keep the first entry fixed, check every possible second entry, and then move to the next first entry. The product tells you how many candidate pairs there are—nine here—so it provides an immediate check on whether your list could be complete.
A mapping diagram keeps the two roles visible
The same five pairs can be drawn with two copies of : one copy for possible first entries and one for possible second entries. Draw an arrow from the left-hand to the right-hand exactly when .
Watch the mapping-diagram portion of What is a FUNCTION? Using Mapping Diagrams from The Magic Of Math. Use it for the change of representation; the video’s later test for functions is not needed yet.
What is a FUNCTION? Using Mapping Diagrams 🖤
Watch the opening relation-and-mapping section of What is a FUNCTION? Using Mapping Diagrams from The Magic Of Math. It shows how a list of pairs determines the arrows.
Watch mapping diagrams. Focus on how each ordered pair supplies one left-to-right arrow and how a value appearing in several pairs is still written only once within its set. Stop before the discussion of functions.
Here is the mapping diagram for our factor relation:
The arrow from the left-hand to the right-hand represents . There is no arrow from the left-hand to the right-hand , because . A relation is allowed to have several arrows leaving one element, or none; do not add or remove arrows to make the picture look more balanced.
Although both columns happen to contain , they represent different positions in a pair. For a relation from different sets and , place the elements of on the left and those of on the right in the same way.
A directed graph uses one copy of the set
When a relation is on , we can instead draw each element of just once. An arrow from vertex to vertex again means . This is a directed graph, or digraph, of the relation.
Read the diagram discussion in Mathematics LibreTexts’ 6.1: Relations. It explains why a two-column picture is convenient, and why a one-copy directed graph is particularly appropriate when both entries come from the same set.
6.1: Relations - Mathematics LibreTexts
Read the diagram discussion in 6.1: Relations from Mathematics LibreTexts to distinguish a relation between two sets from a relation on one set.
In Section 6.1, “Relations,” find the paragraph beginning “A diagram such as we have given in Figure 6.1.1,” just after Figure 6.1.1. Read the diagram discussion through the sentence introducing the directed graph, near Figure 6.1.2. Focus on why drawing two separate copies does not mean that the underlying sets must be different.
Our five-pair relation becomes:
An arrow returning to the same vertex is a loop. The loop at , for example, records . An arrow from to does not also supply an arrow from to : direction records the order of the pair.
Be careful with the word graph. Plotting as a point on coordinate axes is another possible picture of a numerical relation. In the directed graph above, and are vertices, and is represented by an arrow between them. Those pictures encode the same pair in different ways.
Choosing and checking a representation
Suppose , , and a pair belongs to when its first entry is smaller than its second. The six candidates in can be checked by first entry. The selected pairs are
A mapping diagram would have arrows from to both and , from to , and from to . It would not have an arrow from to : “smaller than” does not include equality. Because this relation goes from to a different set , the two-column mapping diagram keeps its roles clearer than a one-set digraph.
Use the representation that answers the question most directly. A roster of pairs makes membership easy to check; a mapping diagram shows which first entries connect to which second entries; and a directed graph displays the connections of a relation on one set without duplicating its elements. In every case, you can recover the relation by recording one ordered pair per arrow.
The central distinction is all possible pairs versus selected pairs: contains every ordered pair with the prescribed entry order, while a relation contains only pairs meeting its condition. Mapping diagrams and directed graphs change how you display those pairs, not which pairs belong.
Next, you will use directed graphs and ordered pairs to test structural properties of relations, such as whether every element is related to itself and whether reversing an arrow preserves the relation.