Ordered Pairs and Cartesian Products
Learning objectives
- Define ordered pairs and state their equality condition
- Compute Cartesian products of finite and infinite sets
- Determine the cardinality of a Cartesian product
- Prove basic identities involving Cartesian products and set operations
Why introduce a brand-new kind of pair when sets already exist? Because sets throw away order: is the same as . The instant you want to record "first item then second" — a coordinate, an arrow, a function value, a database row — you need a structure that remembers which slot each element sits in. The ordered pair does exactly that. From this one tiny scaffold we build Cartesian products, relations, functions, graphs, even the entire -plane. Everything in Chapters 4 and 5 depends on getting comfortable with ordered pairs — they are the smallest container that knows about order.
The ordered pair
An ordered pair is a mathematical object that records two elements in a specific order. The defining feature is its equality rule:
Order matters: even though as sets. Internally, Kuratowski showed you can build ordered pairs out of plain sets via , but for working math you only need the equality rule.
The Cartesian product
The Cartesian product of two sets and is the set of all ordered pairs whose first slot lives in and second slot in :
If and then : for each of the first-slot choices there are second-slot choices. Familiar example: is the -plane. Generalising, ( times) is the set of -tuples drawn from .
Useful identities
The Cartesian product is not commutative: in general (they are equinumerous but their pairs are reversed). It interacts cleanly with unions, intersections and the empty set:
(The Venn widget above visualises the unions and intersections that feed the Cartesian-product identities; ordered pairs themselves do not Venn-diagram, but the set operations on the right-hand sides of the identities above do.)
Pause and think: If and , how many elements live in ? In ? Are those two sets equal? (Hint: same cardinality, different pairs.)
Try it
- Predict first: list all elements of before you check — you should get exactly pairs.
- If , what are and ? Match components before doing algebra.
- Is ? Is ? Argue from the definition, not from a picture.
- Why is no matter what is? Sketch the proof in one sentence.
- Compare and . Do they share any element?
A trap to watch for
Beginners often write or . Both are wrong. The product is a set of ordered pairs, not a flattened union, and the components inside each pair are wrapped in , not . The correct answer is . The brace-vs-paren distinction matters: but .
What you now know
You can build the Cartesian product of any two sets, count its elements, recognise it inside a SQL join or a type signature, and prove identities involving it via component-level reasoning. In the next section you will see that any subset of a Cartesian product is called a relation — and that gives you the language to talk about every mathematical structure built from "this is connected to that."
References
- Velleman, D. J. (2019). How to Prove It: A Structured Approach (3rd ed.). Cambridge University Press, §4.1.
- Halmos, P. R. (1960). Naive Set Theory. Springer, §6.
- Enderton, H. B. (1977). Elements of Set Theory. Academic Press, ch. 3.
- Date, C. J. (2003). An Introduction to Database Systems (8th ed.). Addison-Wesley, ch. 6 (relational algebra and Cartesian product).
- Hammack, R. (2018). Book of Proof, ch. 8.