Skip to content

Cartesian Product

Definition

The Cartesian product of two sets AA and BB is the set of all ordered pairs whose first component comes from AA and whose second component comes from BB:

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

Interpretation

The Cartesian product A×BA\times B collects every possible pairing of an element of AA with an element of BB, recorded as an ordered pair with the element of AA first.

A grid of the six ordered pairs (a, 1) to (c, 2), with the elements a, b and c of A along the top and 1 and 2 of B along the side.

With A={a,b,c}A=\{a,b,c\} along the top and B={1,2}B=\{1,2\} along the side, each cell of the grid holds one pair: one column for each element of AA and one row for each element of BB, so A×BA\times B has 3⋅2=63\cdot2=6 elements.

Order matters in two ways. Within a pair, (a,1)(a,1) and (1,a)(1,a) are different objects. Between the factors, A×BA\times B and B×AB\times A are different sets unless A=BA=B or one of the sets is empty; here (a,1)∈A×B(a,1)\in A\times B but (a,1)∉B×A(a,1)\notin B\times A.

The Cartesian coordinate system is the case R×R=R2\mathbb{R}\times\mathbb{R}=\mathbb{R}^2, where every point of the plane is a pair (x,y)(x,y) of real numbers, and the sample space of two dice is {1,…,6}×{1,…,6}\{1,\ldots,6\}\times\{1,\ldots,6\}.


Key Results

  • If AA and BB are finite, then card⁡(A×B)=card⁡(A)card⁡(B)\operatorname{card}(A\times B)=\operatorname{card}(A)\operatorname{card}(B).
  • Cartesian products are used to define binary operations, since a binary operation on AA is a function from A×AA\times A to AA.

Examples

  • 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)\}.
  • The set R2\mathbb{R}^2 can be understood as R×R\mathbb{R}\times\mathbb{R}, the set of all ordered pairs of real numbers.

Prerequisites

Sources

Aliases: product set, product of sets Keywords: direct product Symbols: element of, real numbers

Last updated: 20 October 2026 03:02