Skip to content

Business Mathematics and Statistics · Ch 3 — Set Theory

Cartesian Product of Sets

8

Cartesian Product of Sets

Given two non-empty sets AA and BB, the Cartesian product A×BA \times B collects every possible ordered pair with its first entry from AA and second entry from BB:

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

Order matters here — (a,b)(a, b) and (b,a)(b, a) count as different pairs unless a=ba = b. If A={S,M}A = \{S, M\} (two garment sizes) and B={Red,Blue,Green}B = \{\text{Red}, \text{Blue}, \text{Green}\} (three available colours), then

A×B={(S,Red),(S,Blue),(S,Green),(M,Red),(M,Blue),(M,Green)},A \times B = \{(S,\text{Red}), (S,\text{Blue}), (S,\text{Green}), (M,\text{Red}), (M,\text{Blue}), (M,\text{Green})\},

representing every size-colour combination a shop would need to stock — six SKUs from two sizes and three colours. Reversing the product, B×AB \times A, would instead list colour-first pairs, and A×B≠B×AA \times B \ne B \times A in general.

If AA and BB are finite, every one of AA's elements pairs with every one of BB's elements exactly once, giving

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

For the sizes-and-colours example, n(A×B)=2×3=6n(A \times B) = 2 \times 3 = 6, matching the direct listing above without needing to write out a single pair. …

Definition 1Ordered Pair

A pair of elements (a,b)(a, b) written in a fixed order, where (a,b)=(c,d)(a, b) = (c, d) only if a=ca = c and b=db = d; in general $(a, b) \ne …

Definition 2Cartesian Product

For sets AA and BB, the set A×B={(a,b):a∈A,b∈B}A \times B = \{(a, b) : a \in A, b \in B\} of all ordered pairs formed by taking one element from AA and one from BB; $n(A \times B) = n(A …