Ordered Pairs and the Cartesian Product of Sets
Quick answer An ordered pair (a, b) has a fixed order, and the Cartesian product A × B collects all such pairs formed by taking a from A and b from B.
An ordered pair is a pair of elements written in a fixed order, denoted (a, b), where a is called the first component and b the second component. Unlike a set, order matters here: (2, 3) and (3, 2) are different ordered pairs, whereas {2, 3} and {3, 2} are the same set.
Equality of ordered pairs: Two ordered pairs (a, b) and (c, d) are equal if and only if a = c and b = d.
Given two non-empty sets A and B, the Cartesian product A × B is the set of all ordered pairs (a, b) such that a ∈ A and b ∈ B. In set-builder form, A × B = {(a, b) : a ∈ A, b ∈ B}. If A = ∅ or B = ∅, then A × B = ∅ by definition.
If A and B are finite sets with n(A) = p and n(B) = q, then A × B has exactly pq ordered pairs, so n(A × B) = n(A) × n(B). In general A × B ≠ B × A unless A = B or one of the sets is empty, because the order of components is different. More generally, for three sets A, B, C, the Cartesian product A × B × C consists of ordered triplets (a, b, c).
Worked example. Let A = {1, 2} and B = {3, 4}. Then:
- A × B = {(1, 3), (1, 4), (2, 3), (2, 4)}
- B × A = {(3, 1), (3, 2), (4, 1), (4, 2)}
Clearly A × B ≠ B × A, and n(A × B) = n(A) × n(B) = 2 × 2 = 4, which matches the 4 pairs listed.
- Ordered pairs preserve order; (a, b) = (c, d) if and only if a = c and b = d.
- A × B = {(a, b) : a ∈ A, b ∈ B}; if either set is empty, A × B is empty.
- n(A × B) = n(A) × n(B) for finite sets.
- In general A × B ≠ B × A.
- A × (B ∩ C) = (A × B) ∩ (A × C), and the same distributive pattern holds for union.
