WIPIVERSE All articles

Cartesian product

In mathematics, specifically set theory, the Cartesian product of two sets $A$ and $B$, denoted $A \times B$, is the set of all ordered pairs $(a, b)$ where $a \in A$ and $b \in B$. Formally:

$$A \times B = {(a, b) \mid a \in A \text{ and } b \in B}$$

The concept generalizes to the n-ary Cartesian product over $n$ sets $X_1, X_2, \dots, X_n$, which is the set of all $n$-tuples $(x_1, x_2, \dots, x_n)$ such that $x_i \in X_i$ for each $i = 1, \dots, n$. This is denoted $\prod_{i=1}^n X_i$ or $X_1 \times X_2 \times \cdots \times X_n$.

Properties

  • Non-commutativity: In general, $A \times B eq B \times A$ unless $A = B$ or one of the sets is empty. The ordered pair $(a, b)$ is distinct from $(b, a)$.
  • Non-associativity: $(A \times B) \times C eq A \times (B \times C)$ strictly speaking, as the former contains pairs of the form $((a, b), c)$ while the latter contains pairs of the form $(a, (b, c))$. However, there is a natural bijection between them, and both are naturally identified with the set of triples $A \times B \times C$.
  • Interaction with Set Operations: The Cartesian product distributes over union, intersection, and set difference:
    • $A \times (B \cup C) = (A \times B) \cup (A \times C)$
    • $A \times (B \cap C) = (A \times B) \cap (A \times C)$
    • $A \times (B \setminus C) = (A \times B) \setminus (A \times C)$
  • Cardinality: If $A$ and $B$ are finite sets, $|A \times B| = |A| \cdot |B|$.
  • Empty Set: $A \times \emptyset = \emptyset \times A = \emptyset$ for any set $A$.

Cartesian Power

The Cartesian power of a set $X$ is the Cartesian product of $X$ with itself $n$ times, denoted $X^n$. $$X^n = \underbrace{X \times X \times \cdots \times X}_{n \text{ times}}$$ The set $X^n$ consists of all $n$-tuples of elements of $X$. Notably, $\mathbb{R}^n$ (the set of all $n$-tuples of real numbers) forms the standard $n$-dimensional Euclidean space.

Infinite Cartesian Products

The Cartesian product of an arbitrary indexed family of sets ${X_i}{i \in I}$ is defined as the set of all functions $f: I \to \bigcup{i \in I} X_i$ such that $f(i) \in X_i$ for every $i \in I$. This is denoted $\prod_{i \in I} X_i$. The Axiom of Choice is equivalent to the statement that the Cartesian product of a non-empty family of non-empty sets is non-empty.

History and Etymology

The term honors the French philosopher and mathematician René Descartes (Latinized as Cartesius). Descartes' development of analytic geometry established a systematic link between Euclidean geometry and algebra by representing geometric points as ordered pairs (or triples) of real numbers—effectively identifying the Euclidean plane with $\mathbb{R}^2$ and space with $\mathbb{R}^3$.

Applications

  • Coordinate Systems: The standard representation of the Euclidean plane ($\mathbb{R}^2$) and $n$-dimensional space ($\mathbb{R}^n$).
  • Relations and Functions: A binary relation from set $A$ to set $B$ is defined as a subset of $A \times B$. A function $f: A \to B$ is a special type of relation (a subset of $A \times B$ satisfying the functional property).
  • Database Theory: In relational databases, the Cartesian product (cross join) combines every row of one table with every row of another.
  • Category Theory: The Cartesian product is the categorical product in the category of sets.
  • Graph Theory: The Cartesian product of graphs $G$ and $H$ produces a graph whose vertex set is $V(G) \times V(H)$.
Browse

More topics to explore

    Browse all articles