Mathematics and Statistics · Ch 1 — Sets and Relations
Ordered Pairs and Cartesian Product
Ordered Pairs and Cartesian Product
So far the order of elements inside a set did not matter. But many real situations pair two things in a definite order — a product with its price, a year with its sales figure, an -coordinate with a -coordinate. For these we need the idea of an ordered pair.
Ordered pair. An ordered pair is a pairing of two objects in which is the first component and the second. Unlike a set, order is essential:
So , whereas the sets and are equal. This is exactly why a point in the plane is written as an ordered pair of coordinates.
Cartesian product. Given two non-empty sets and , the Cartesian product (read " cross ") is the set of all ordered pairs whose first component comes from and second component from :
For example, if and , then
Counting the pairs. Since each of the choices for the first component can be paired with each of the choices for the second:
Number of ordered pairs
…
A pair with a definite first and second component; iff $a = …
The set of all ordered pairs with and …
$n(A \times B) = n(A) \times …