Lably
Skip to content

Cartesian product

Mathematical set formed from two given sets

  • 10 min read
  • 6 chapters
  • 2 labs on Lably

Learn it on Lably

A table can be created by taking the Cartesian product of a set of rows and a set of columns. If the Cartesian product rows × columns is taken, the cells of the table contain ordered pairs of the form (row value, column value).

One can similarly define the Cartesian product of n sets, also known as an n-fold Cartesian product, which can be represented by an n-dimensional array, where each element is an n-tuple. An ordered pair is a 2-tuple or couple. More generally still, one can define the Cartesian product of an indexed family of sets.

The Cartesian product is named after René Descartes, whose formulation of analytic geometry gave rise to the concept, which is further generalized in terms of direct product.

Set-theoretic definition

A rigorous definition of the Cartesian product requires a domain to be specified in the set-builder notation. In this case the domain would have to contain the Cartesian product itself. For defining the Cartesian product of the sets A and B, with the typical Kuratowski's definition of a pair (a,b) as {{a},{a,b}}, an appropriate domain is the set P(P(A∪B)) where P denotes the power set. Then the Cartesian product of the sets A and B would be defined as A×B={x∈P(P(A∪B))∣∃a∈A∃b∈B:x=(a,b)}.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Foundations