Katana VentraIP

Cartesian product

In mathematics, specifically set theory, the Cartesian product of two sets A and B, denoted A × B, is the set of all ordered pairs (a, b) where a is in A and b is in B.[1] In terms of set-builder notation, that is

"Cartesian square" redirects here. For Cartesian squares in category theory, see Cartesian square (category theory).

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).[4]


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,[5] whose formulation of analytic geometry gave rise to the concept, which is further generalized in terms of direct product.

A is equal to B, or

A or B is the .

empty set

Cartesian products of several sets[edit]

n-ary Cartesian product[edit]

The Cartesian product can be generalized to the n-ary Cartesian product over n sets X1, ..., Xn as the set

Other forms[edit]

Abbreviated form[edit]

If several sets are being multiplied together (e.g., X1, X2, X3, ...), then some authors[12] choose to abbreviate the Cartesian product as simply ×Xi.

Cartesian product of functions[edit]

If f is a function from X to A and g is a function from Y to B, then their Cartesian product f × g is a function from X × Y to A × B with

Definitions outside set theory[edit]

Category theory[edit]

Although the Cartesian product is traditionally applied to sets, category theory provides a more general interpretation of the product of mathematical structures. This is distinct from, although related to, the notion of a Cartesian square in category theory, which is a generalization of the fiber product.


Exponentiation is the right adjoint of the Cartesian product; thus any category with a Cartesian product (and a final object) is a Cartesian closed category.

Graph theory[edit]

In graph theory, the Cartesian product of two graphs G and H is the graph denoted by G × H, whose vertex set is the (ordinary) Cartesian product V(G) × V(H) and such that two vertices (u,v) and (u′,v′) are adjacent in G × H, if and only if u = u and v is adjacent with v′ in H, or v = v and u is adjacent with u′ in G. The Cartesian product of graphs is not a product in the sense of category theory. Instead, the categorical product is known as the tensor product of graphs.

(to prove the existence of the Cartesian product)

Axiom of power set

Direct product

Empty product

Finitary relation

Join (SQL) § Cross join

Orders on the Cartesian product of totally ordered sets

Outer product

Product (category theory)

Product topology

Product type

Cartesian Product at ProvenMath

, Encyclopedia of Mathematics, EMS Press, 2001 [1994]

"Direct product"

How to find the Cartesian Product, Education Portal Academy