A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Cartesian Product and Ordered Pairs

College Depth 59 in the knowledge graph ☐ I know this ☆ Set as goal
1,862topics build on this
281prerequisites beneath it
See this on the map →
Set Membership and Notation→→Relations as Subsets of Cartesian Products
cartesian-product ordered-pairs relations

Core Idea

The Cartesian product A × B is the set of all ordered pairs (a,b) where a ∈ A and b ∈ B. Two ordered pairs are equal iff (a,b) = (c,d) means a = c and b = d. This construction provides the formal foundation for relations, functions, and multi-dimensional structures in set theory.

Explainer

Start from something you already know: a set is an unordered collection of distinct elements. The set {1, 2} is exactly the same as {2, 1}. But many mathematical objects are inherently ordered — the point (3, 5) in a coordinate plane is not the same as the point (5, 3). To talk about ordered structure within set theory, we need a new construction, and that is what the ordered pair provides.

The formal definition of an ordered pair is (a, b) = {{a}, {a, b}}. This encoding (due to Kuratowski) looks strange at first, but it achieves precisely one thing: it forces the two components to be distinguishable. You can verify that (a, b) = (c, d) if and only if a = c and b = d, while unordered sets {a, b} = {c, d} whenever the elements match in any order. The set-theoretic encoding is mostly scaffolding — what matters is the equality rule. Once you have ordered pairs, everything else follows from your prerequisite concept of set membership: you already know how to test whether something belongs to a set, and that is all you need to build the Cartesian product.

The Cartesian product A × B is defined as the set of all ordered pairs (a, b) where a ∈ A and b ∈ B. If A = {1, 2} and B = {x, y}, then A × B = {(1,x), (1,y), (2,x), (2,y)} — every element of A paired with every element of B, in that order. The name honors René Descartes, whose coordinate geometry pairs real numbers exactly this way: ℝ × ℝ is the Cartesian plane, where every point is an ordered pair of real numbers. The size of A × B is |A| · |B|, since each of |A| choices from A independently combines with each of |B| choices from B.

The payoff of this construction is that it makes relations and functions set-theoretic objects. A binary relation between A and B is simply a subset of A × B — a collection of ordered pairs. The relation "less than" on ℕ is the set {(0,1), (0,2), (1,2), (0,3), ...}. A function f: A → B is a special kind of relation — a subset of A × B where every element of A appears as a first component exactly once. This means everything you want to say about functions and relations can be reduced to membership questions about sets of ordered pairs, giving set theory its remarkable expressive power.

The construction extends naturally: the n-fold Cartesian product A₁ × A₂ × ... × Aₙ is the set of ordered n-tuples, and A × A × A can be written A³. Sequences, vectors, databases rows — all of these are instances of Cartesian products. Once you understand that ordered pairs are just a device for encoding position into a set, the entire tower of relational mathematics becomes accessible: relations build on ordered pairs, functions build on relations, and virtually every mathematical structure you will study is, at bottom, a set with some distinguished relations and functions on it.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Variables in Logic → Set Notation Basics → Set Membership and Notation → Cartesian Product and Ordered Pairs

Longest path: 60 steps · 281 total prerequisite topics

Prerequisites (1)

Leads To (1)