HOME

TheInfoList



OR:

In
mathematics Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, specifically
set theory Set theory is the branch of mathematical logic that studies Set (mathematics), sets, which can be informally described as collections of objects. Although objects of any kind can be collected into a set, set theory – as a branch of mathema ...
, the Cartesian product of two sets and , denoted , is the set of all ordered pairs where is an element of and is an element of . In terms of set-builder notation, that is A\times B = \. A table can be created by taking the Cartesian product of a set of rows and a set of columns. If the Cartesian product is taken, the cells of the table contain ordered pairs of the form . One can similarly define the Cartesian product of sets, also known as an -fold Cartesian product, which can be represented by an -dimensional array, where each element is an -
tuple In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
. An ordered pair is a 2-tuple or couple. More generally still, one can define the Cartesian product of an
indexed family In mathematics, a family, or indexed family, is informally a collection of objects, each associated with an index from some index set. For example, a family of real numbers, indexed by the set of integers, is a collection of real numbers, wher ...
of sets. The Cartesian product is named after
René Descartes René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
, 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 \, an appropriate domain is the set \mathcal(\mathcal(A\cup B)) where \mathcal denotes the power set. Then the Cartesian product of the sets A and B would be defined as A\times B=\.


Examples


A deck of cards

An illustrative example is the standard 52-card deck. The standard playing card ranks form a 13-element set. The card suits form a four-element set. The Cartesian product of these sets returns a 52-element set consisting of 52 ordered pairs, which correspond to all 52 possible playing cards. returns a set of the form . returns a set of the form . These two sets are distinct, even disjoint, but there is a natural
bijection In mathematics, a bijection, bijective function, or one-to-one correspondence is a function between two sets such that each element of the second set (the codomain) is the image of exactly one element of the first set (the domain). Equival ...
between them, under which (3, ♣) corresponds to (♣, 3) and so on.


A two-dimensional coordinate system

The main historical example is the Cartesian plane in analytic geometry. In order to represent geometrical shapes in a numerical way, and extract numerical information from shapes' numerical representations,
René Descartes René Descartes ( , ; ; 31 March 1596 – 11 February 1650) was a French philosopher, scientist, and mathematician, widely considered a seminal figure in the emergence of modern philosophy and Modern science, science. Mathematics was paramou ...
assigned to each point in the plane a pair of
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s, called its coordinates. Usually, such a pair's first and second components are called its and coordinates, respectively (see picture). The set of all such pairs (i.e., the Cartesian product \R\times\R, with \R denoting the real numbers) is thus assigned to the set of all points in the plane.


Most common implementation (set theory)

A formal definition of the Cartesian product from set-theoretical principles follows from a definition of ordered pair. The most common definition of ordered pairs, Kuratowski's definition, is (x, y) = \. Under this definition, (x, y) is an element of \mathcal(\mathcal(X \cup Y)), and X\times Y is a subset of that set, where \mathcal represents the power set operator. Therefore, the existence of the Cartesian product of any two sets in ZFC follows from the axioms of pairing, union, power set, and specification. Since functions are usually defined as a special case of relations, and relations are usually defined as subsets of the Cartesian product, the definition of the two-set Cartesian product is necessarily prior to most other definitions.


Non-commutativity and non-associativity

Let , , , and be sets. The Cartesian product is not
commutative In mathematics, a binary operation is commutative if changing the order of the operands does not change the result. It is a fundamental property of many binary operations, and many mathematical proofs depend on it. Perhaps most familiar as a pr ...
, A \times B \neq B \times A, because the ordered pairs are reversed unless at least one of the following conditions is satisfied: * is equal to , or * or is the
empty set In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
. For example: : ; :: :: : :: : :: :: Strictly speaking, the Cartesian product is not associative (unless one of the involved sets is empty). (A\times B)\times C \neq A \times (B \times C) If for example , then .


Intersections, unions, and subsets

The Cartesian product satisfies the following property with respect to intersections (see middle picture). (A \cap B) \times (C \cap D) = (A \times C) \cap (B \times D) In most cases, the above statement is not true if we replace intersection with union (see rightmost picture). (A \cup B) \times (C \cup D) \neq (A \times C) \cup (B \times D) In fact, we have that: (A \times C) \cup (B \times D) = A \setminus B) \times C\cup A \cap B) \times (C \cup D)\cup B \setminus A) \times D/math> For the set difference, we also have the following identity: (A \times C) \setminus (B \times D) = \times (C \setminus D)\cup A \setminus B) \times C/math> Here are some rules demonstrating distributivity with other operators (see leftmost picture):Singh, S. (August 27, 2009). ''Cartesian product''. Retrieved from the Connexions Web site: http://cnx.org/content/m15207/1.5/ \begin A \times (B \cap C) &= (A \times B) \cap (A \times C), \\ A \times (B \cup C) &= (A \times B) \cup (A \times C), \\ A \times (B \setminus C) &= (A \times B) \setminus (A \times C), \end (A \times B)^\complement = \left(A^\complement \times B^\complement\right) \cup \left(A^\complement \times B\right) \cup \left(A \times B^\complement\right)\!, where A^\complement denotes the absolute complement of . Other properties related with
subset In mathematics, a Set (mathematics), set ''A'' is a subset of a set ''B'' if all Element (mathematics), elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they a ...
s are: : \text A \subseteq B \text A \times C \subseteq B \times C; \text A,B \neq \emptyset \text A \times B \subseteq C \times D \!\iff\! A \subseteq C \text B \subseteq D.


Cardinality

The
cardinality The thumb is the first digit of the hand, next to the index finger. When a person is standing in the medical anatomical position (where the palm is facing to the front), the thumb is the outermost digit. The Medical Latin English noun for thum ...
of a set is the number of elements of the set. For example, defining two sets: and . Both set and set consist of two elements each. Their Cartesian product, written as , results in a new set which has the following elements: : . where each element of is paired with each element of , and where each pair makes up one element of the output set. The number of values in each element of the resulting set is equal to the number of sets whose Cartesian product is being taken; 2 in this case. The cardinality of the output set is equal to the product of the cardinalities of all the input sets. That is, : . In this case, Similarly, : and so on. The set is infinite if either or is infinite, and the other set is not the empty set.


Cartesian products of several sets


''n''-ary Cartesian product

The Cartesian product can be generalized to the -ary Cartesian product over sets as the set X_1\times\cdots\times X_n = \ of -tuples. If tuples are defined as nested ordered pairs, it can be identified with . If a tuple is defined as a function on that takes its value at to be the -th element of the tuple, then the Cartesian product is the set of functions \.


''n''-ary Cartesian power

The Cartesian square of a set is the Cartesian product . An example is the 2-dimensional plane where is the set of
real number In mathematics, a real number is a number that can be used to measure a continuous one- dimensional quantity such as a duration or temperature. Here, ''continuous'' means that pairs of values can have arbitrarily small differences. Every re ...
s: is the set of all points where and are real numbers (see the
Cartesian coordinate system In geometry, a Cartesian coordinate system (, ) in a plane (geometry), plane is a coordinate system that specifies each point (geometry), point uniquely by a pair of real numbers called ''coordinates'', which are the positive and negative number ...
). The -ary Cartesian power of a set , denoted X^n, can be defined as X^n = \underbrace_= \. An example of this is , with again the set of real numbers, and more generally . The -ary Cartesian power of a set is isomorphic to the space of functions from an -element set to . As a special case, the 0-ary Cartesian power of may be taken to be a singleton set, corresponding to the empty function with codomain .


Intersections, unions, complements and subsets

Let Cartesian products be given A = A_1 \times \dots \times A_n and B = B_1 \times \dots \times B_n. Then # A \sube B, if and only if A_i \sube B_i for all i = 1, 2,\ldots, n; # A \cap B = (A_1 \cap B_1) \times \dots \times (A_n \cap B_n), at the same time, if there exists at least one i such that A_i \cap B_i = \varnothing, then A \cap B = \varnothing; # A \cup B \sube (A_1 \cup B_1) \times \dots \times (A_n \cup B_n), moreover, equality is possible only in the following cases: ## A \sube B or B \sube A; ## for all i = 1, 2,\ldots, n \quad A_i = B_i \quad except for one from i. #The complement of a Cartesian product A = A_1 \times \dots \times A_n can be calculated, if a ''universe'' is defined U = X_1 \times \dots \times X_n. To simplify the expressions, we introduce the following notation. Let us denote the Cartesian product as a tuple bounded by square brackets; this tuple includes the sets from which the Cartesian product is formed, e.g.: : A = A_1 \times A_2 \times \dots \times A_n = _1\quad A_2\quad \dots \quad A_n. In ''n-tuple algebra'' (NTA), such a matrix-like representation of Cartesian products is called a ''C-n-tuple''. With this in mind, the union of some Cartesian products given in the same universe can be expressed as a matrix bounded by square brackets, in which the rows represent the Cartesian products involved in the union: : A \cup B = (A_1 \times A_2 \times \dots \times A_n) \cup (B_1 \times B_2 \times \dots \times B_n) = \left begin A_1 & A_2 & \dots & A_n\\ B_1 & B_2 & \dots & B_n \end\right . Such a structure is called a ''C-system'' in NTA. Then the complement of the Cartesian product A will look like the following ''C''-system expressed as a matrix of the dimension n \times n : : A^\complement =\left [\begin A_1^\complement & X_2 & \dots & X_ & X_n \\ X_1 & A_2^\complement & \dots & X_ & X_n \\ \dots & \dots & \dots & \dots & \dots \\ X_1 & X_2 & \dots & A_^\complement & X_n \\ X_1 & X_2 & \dots & X_ & A_n^\complement \end\right ] . The diagonal components of this matrix A_i^\complement are equal correspondingly to X_i \setminus A_i. In NTA, a diagonal ''C''-system A^\complement , that represents the complement of a ''C-n''-tuple A, can be written concisely as a tuple of diagonal components bounded by inverted square brackets: : A^\complement = ] A_1^\complement \quad A_2^\complement \quad \dots \quad A_n^\complement [ . This structure is called a ''D-n-tuple''. Then the complement of the ''C''-system R is a structure R^\complement , represented by a matrix of the same dimension and bounded by inverted square brackets, in which all components are equal to the complements of the components of the initial matrix R. Such a structure is called a ''D''-system and is calculated, if necessary, as the intersection of the ''D-n''-tuples contained in it. For instance, if the following ''C''-system is given: : R_1 = \left begin A_1 & A_2 & \dots & A_n\\ B_1 & B_2 & \dots & B_n \end\right , then its complement will be the ''D''-system : R_1^\complement = \left ]\begin A_1^\complement & A_2^\complement & \dots & A_n^\complement \\ B_1^\complement & B_2^\complement & \dots & B_n^\complement \end\right [ . Let us consider some new relations for structures with Cartesian products obtained in the process of studying the properties of NTA. The structures defined in the same universe are called ''homotypic'' ones. # ''The intersection of C-systems''. Assume the homotypic ''C''-systems are given P and Q. Their intersection will yield a ''C''-system containing all non-empty intersections of each ''C-n''-tuple from P with each ''C-n''-tuple from Q. # ''Checking the inclusion of a C-n-tuple into a D-n-tuple''. For the ''C-n''-tuple P = _1 \quad P_2 \quad \cdots \quad P_N/math> and the ''D-n''-tuple Q = ]Q_1 \quad Q_2 \quad \cdots \quad Q_N[ holds P \sube Q, if and only if, at least for one i holds P_i \sube Q_i. # ''Checking the inclusion of a C-n-tuple into a D-system''. For the ''C-n''-tuple P and the ''D''-system Q is true P \sube Q, if and only if, for every ''D-n''-tuple Q_i from Q holds P \sube Q_i.


Infinite Cartesian products

It is possible to define the Cartesian product of an arbitrary (possibly infinity, infinite)
indexed family In mathematics, a family, or indexed family, is informally a collection of objects, each associated with an index from some index set. For example, a family of real numbers, indexed by the set of integers, is a collection of real numbers, wher ...
of sets. If is any index set, and \_ is a family of sets indexed by , then the Cartesian product of the sets in \_ is defined to be \prod_ X_i = \left\, that is, the set of all functions defined on the index set such that the value of the function at a particular index is an element of ''Xi''. Even if each of the ''Xi'' is nonempty, the Cartesian product may be empty if the axiom of choice, which is equivalent to the statement that every such product is nonempty, is not assumed. \prod_X_i may also be denoted \mathsf_X_i. For each in , the function \pi_: \prod_ X_i \to X_, defined by \pi_(f) = f(j) is called the -th projection map. Cartesian power is a Cartesian product where all the factors ''Xi'' are the same set . In this case, \prod_ X_i = \prod_ X is the set of all functions from to , and is frequently denoted ''XI''. This case is important in the study of cardinal exponentiation. An important special case is when the index set is \mathbb, the
natural number In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s: this Cartesian product is the set of all infinite sequences with the -th term in its corresponding set ''Xi''. For example, each element of \prod_^\infty \mathbb R = \mathbb R \times \mathbb R \times \cdots can be visualized as a vector with countably infinite real number components. This set is frequently denoted \mathbb^\omega, or \mathbb^.


Other forms


Abbreviated form

If several sets are being multiplied together (e.g., ), then some authorsOsborne, M., and Rubinstein, A., 1994. ''A Course in Game Theory''. MIT Press. choose to abbreviate the Cartesian product as simply .


Cartesian product of functions

If is a function from to and is a function from to , then their Cartesian product is a function from to with (f\times g)(x, y) = (f(x), g(y)). This can be extended to
tuple In mathematics, a tuple is a finite sequence or ''ordered list'' of numbers or, more generally, mathematical objects, which are called the ''elements'' of the tuple. An -tuple is a tuple of elements, where is a non-negative integer. There is o ...
s and infinite collections of functions. This is different from the standard Cartesian product of functions considered as sets.


Cylinder

Let A be a set and B \subseteq A. Then the ''cylinder'' of B with respect to A is the Cartesian product B \times A of B and A. Normally, A is considered to be the
universe The universe is all of space and time and their contents. It comprises all of existence, any fundamental interaction, physical process and physical constant, and therefore all forms of matter and energy, and the structures they form, from s ...
of the context and is left away. For example, if B is a subset of the natural numbers \mathbb, then the cylinder of B is B \times \mathbb.


Definitions outside set theory


Category theory

Although the Cartesian product is traditionally applied to sets,
category theory Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. 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 In mathematics, exponentiation, denoted , is an operation (mathematics), operation involving two numbers: the ''base'', , and the ''exponent'' or ''power'', . When is a positive integer, exponentiation corresponds to repeated multiplication ...
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

In
graph theory In mathematics and computer science, graph theory is the study of ''graph (discrete mathematics), graphs'', which are mathematical structures used to model pairwise relations between objects. A graph in this context is made up of ''Vertex (graph ...
, the Cartesian product of two graphs and is the graph denoted by , whose vertex set is the (ordinary) Cartesian product and such that two vertices and are adjacent in , if and only if and is adjacent with ′ in , ''or'' and is adjacent with ′ in . 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.


See also

* Axiom of power set (to prove the existence of the Cartesian product) * Direct product *
Empty product In mathematics, an empty product, or nullary product or vacuous product, is the result of multiplication, multiplying no factors. It is by convention equal to the multiplicative identity (assuming there is an identity for the multiplication operat ...
*
Finitary relation In mathematics, a finitary relation over a sequence of sets is a subset of the Cartesian product ; that is, it is a set of ''n''-tuples , each being a sequence of elements ''x'i'' in the corresponding ''X'i''. Typically, the relation descri ...
* Join (SQL) § Cross join * Orders on the Cartesian product of totally ordered sets * Outer product *
Product (category theory) In category theory, the product of two (or more) object (category theory), objects in a category (mathematics), category is a notion designed to capture the essence behind constructions in other areas of mathematics such as the Cartesian product ...
* Product topology * Product type


References


External links


Cartesian Product at ProvenMath
*

{{Mathematical logic Axiom of choice Operations on sets