Mathematics · Ch 2 — Relations and Functions
Cartesian Products of Sets
Cartesian Products of Sets
Ordered Pairs — The Building Block
Before we can talk about the Cartesian product, we need to be absolutely clear about what an ordered pair is. You have seen pairs of numbers before, like coordinates on a graph. The key word here is ordered.
An ordered pair is a pair of elements written in a fixed order, usually inside parentheses: . The element is called the first component (or first element), and is called the second component. The order matters completely: is different from unless .
Equality of ordered pairs: Two ordered pairs and are equal if and only if and . Both components must match in their respective positions.
This is the first formal property the book establishes. It is the foundation for everything that follows. If you ever solve for unknowns in ordered pairs, you set the first components equal and the second components equal — that is the only rule.
The Cartesian Product — Definition and First Examples
Given two non-empty sets and , the Cartesian product (read as "P cross Q") is the set of all possible ordered pairs where the first element comes from and the second element comes from .
If either or is the empty set , then is also the empty set: and .
Let us see this with concrete sets. Suppose and (where is a bag, a coat, a shirt). To form , you take each colour from and pair it with every object from :
There are ordered pairs. Notice that and are not the same thing — the first has a colour first, the second has an object first. They belong to different Cartesian products entirely.
Another example: let (state codes) and (licence plate number codes). Then:
There are pairs. This is exactly how licence plate codes are structured — the state code comes first, then the number. The order is not negotiable.
One more: and gives:
That is ordered pairs. If and are subsets of the real numbers, these pairs represent points in the plane — and the point is clearly different from .
Four Key Remarks (Properties)
The textbook lists four important observations about Cartesian products. Each one is a property you must know.
Remark (i) — Equality of ordered pairs (restated): Two ordered pairs are equal iff their corresponding first elements are equal and their second elements are equal. This is the definition we already covered, but it is worth repeating because it is the single most used rule when solving problems.
Remark (ii) — Cardinality of a Cartesian product: If and , then .
This is straightforward: for each of the choices for the first component, there are choices for the second component. The total number of ordered pairs is the product .
This formula only works when both sets are finite. If either set is infinite, the product is infinite — that is the next remark.
Remark (iii) — Infinite sets: If and are non-empty and at least one of them is infinite, then is also infinite. …
Definition
Given two non-empty sets and , the Cartesian product is the set of all ordered pairs where belongs to and belongs to . In symbols:
If either or is the empty set , then is also the empty set: .
The order inside the pair matters. is not the same as unless and the sets are the same. Two ordered pairs are equal only when their first elements match and their second elements match.
Intuition
Think of a menu: if is a set of 2 drinks (tea, coffee) and is a set of 3 snacks (biscuit, cake, sandwich), then lists every possible drink–snack combination. You get distinct combos, each written as an ordered pair like (tea, biscuit). The order is fixed — (tea, biscuit) is different from (biscuit, tea), which wouldn't even be in the set because biscuit isn't a drink.
Tiny Concrete Example …
Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.
Fig 2.1 is a visual representation of the Cartesian product of two small sets. The grid has two columns, labelled red and blue at the bottom, and three rows, labelled b, c, s up the left side. At each of the six intersections — where a column and a row meet — there is a dot. The slate frame around the grid gives it the look of a lattice or a coordinate system.
The physical idea is straightforward: every possible pairing of a colour from the set with an object from the set (bag, coat, shirt) is represented by exactly one dot. The dot at the intersection of the red column and the b row, for instance, corresponds to the ordered pair (red, b). The grid makes it obvious that there are such pairs, and that the order matters — (red, b) is a different dot from (b, red), which would require a different grid entirely.
This figure is the textbook’s concrete introduction to the definition of the Cartesian product. The key formula it leads to is:
Here and are any two non-empty sets. The symbol is read “cross” — it does not mean multiplication of numbers, but the formation of all ordered pairs. The notation is an ordered pair: the first element comes from , the second from . Because the pair is ordered, is different from unless .
From the grid, the textbook immediately extracts a counting rule: if and , then the number of elements in is . In the figure, and , so . This is not a coincidence — it is a direct consequence of the fact that each of the choices for the first coordinate can be paired with each of the choices for the second, giving a rectangular array of dots. …
Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.
Fig 2.2 is a visual representation of the Cartesian product , where and . The figure is a 3×3 grid. Along the bottom (horizontal axis) are the three column labels: DL, MP, KA — these are the elements of set , the states. Along the left side (vertical axis) are the three row labels: 01, 02, 03, listed from bottom to top — these are the elements of set , the licence plate codes. At each of the nine intersections of a row and a column, an indigo dot is placed. The entire grid is enclosed by slate-coloured frame lines.
The physical idea is straightforward: every possible ordered pair (state, code) is represented by exactly one point in this grid. The dot at the intersection of the row labelled 02 and the column labelled MP, for example, corresponds to the ordered pair (MP, 02). Because the grid has 3 rows and 3 columns, there are such dots, matching the 9 ordered pairs listed in the textbook.
The key formula this figure illustrates is the cardinality of a Cartesian product:
Here is the number of elements in set , and is the number of elements in set . In this case, and , so .
The figure also drives home a crucial point about ordered pairs: the pair (DL, 01) is not the same as (01, DL). In the grid, (DL, 01) is the dot at the intersection of column DL and row 01. The pair (01, DL) would require a different grid — one where the set of first elements is and the set of second elements is — and would occupy a different position. The grid layout makes this order-dependence visually obvious: the row and column labels are not interchangeable.
A common mistake is to think that and contain the same pairs. They do not — the order of the elements in each pair matters. The figure for has the states on the bottom and the codes on the left; swapping the sets would swap the axes, producing a different set of ordered pairs. …
Drawn by us to help you understand the concept clearly, and verified to make sure it's accurate. For exams, practice from your textbook's own diagram.
Fig. 2.3 is a visual representation of the Cartesian product for the specific sets and . The figure is a simple grid: a 2‑column by 4‑row lattice. The two columns are labelled at the bottom with and (the elements of ). The four rows are labelled on the left with , listed from bottom to top. At each of the intersections of a column and a row, a dot is placed. Each dot corresponds to exactly one ordered pair: the column gives the first coordinate (from ), and the row gives the second coordinate (from ).
The physical idea is that the Cartesian product can be thought of as a grid of points — a lattice — in a plane. If and are subsets of the real numbers, then each ordered pair is the coordinate of a point in the plane. The figure makes it clear that the pair is a different point from ; the order matters. The grid layout also makes it obvious that the total number of ordered pairs is the product of the number of elements in and the number in .
Here , , so . This is the central counting formula the textbook develops with this figure. The figure itself is a concrete, visual proof of that formula: you can count the dots.
The grid in Fig. 2.3 is not a standard -coordinate plane. The axes are not numerical; they are labelled with set elements. The vertical axis uses (in that order from bottom to top), and the horizontal axis uses . The figure is a schematic of the product set, not a graph of a function. …