Skip to content

Mathematics and Statistics · Ch 1 — Sets and Relations

Ordered Pairs and Cartesian Product

4

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 xx-coordinate with a yy-coordinate. For these we need the idea of an ordered pair.

Ordered pair. An ordered pair (a,b)(a, b) is a pairing of two objects in which aa is the first component and bb the second. Unlike a set, order is essential:

(a,b)=(c,d)if and only ifa=c and b=d.(a, b) = (c, d) \quad \text{if and only if} \quad a = c \ \text{and}\ b = d.

So (2,3)≠(3,2)(2, 3) \ne (3, 2), whereas the sets {2,3}\{2, 3\} and {3,2}\{3, 2\} 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 AA and BB, the Cartesian product A×BA \times B (read "AA cross BB") is the set of all ordered pairs whose first component comes from AA and second component from BB:

A×B={(a,b):a∈A, b∈B}.A \times B = \{(a, b) : a \in A,\ b \in B\}.

For example, if A={1,2}A = \{1, 2\} and B={x,y}B = \{x, y\}, then

A×B={(1,x), (1,y), (2,x), (2,y)}.A \times B = \{(1, x),\ (1, y),\ (2, x),\ (2, y)\}.

Counting the pairs. Since each of the n(A)n(A) choices for the first component can be paired with each of the n(B)n(B) choices for the second:

Note

Number of ordered pairs

n(A×B)=n(A)×n(B).n(A \times B) = n(A) \times n(B). …

Definition 1Ordered pair

A pair (a,b)(a, b) with a definite first and second component; (a,b)=(c,d)(a, b) = (c, d) iff $a = …

Definition 2Cartesian product $A imes B$

The set of all ordered pairs (a,b)(a, b) with a∈Aa \in A and …

Definition 3Number of pairs

$n(A \times B) = n(A) \times …