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 pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
s 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 In mathematics, analytic geometry, also known as coordinate geometry or Cartesian geometry, is the study of geometry using a coordinate system. This contrasts with synthetic geometry. Analytic geometry is used in physics and engineering, and als ...
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 In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
. 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 52-card deck of French-suited playing cards is the most common pack of playing cards used today. The main feature of most playing card decks that empower their use in diverse games and other activities is their double-sided design, w ...
. 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 pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
s, 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 mathematics, analytic geometry, also known as coordinate geometry or Cartesian geometry, is the study of geometry using a coordinate system. This contrasts with synthetic geometry. Analytic geometry is used in physics and engineering, and als ...
. 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 In geometry, a coordinate system is a system that uses one or more numbers, or coordinates, to uniquely determine and standardize the Position (geometry), position of the Point (geometry), points or other geometric elements on a manifold such as ...
. 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 In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
. 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 In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
operator. Therefore, the existence of the Cartesian product of any two sets in ZFC follows from the axioms of
pairing In mathematics, a pairing is an ''R''- bilinear map from the Cartesian product of two ''R''- modules, where the underlying ring ''R'' is commutative. Definition Let ''R'' be a commutative ring with unit, and let ''M'', ''N'' and ''L'' be '' ...
, union,
power set In mathematics, the power set (or powerset) of a set is the set of all subsets of , including the empty set and itself. In axiomatic set theory (as developed, for example, in the ZFC axioms), the existence of the power set of any set is po ...
, and
specification A specification often refers to a set of documented requirements to be satisfied by a material, design, product, or service. A specification is often a type of technical standard. There are different types of technical or engineering specificati ...
. 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 pair In mathematics, an ordered pair, denoted (''a'', ''b''), is a pair of objects in which their order is significant. The ordered pair (''a'', ''b'') is different from the ordered pair (''b'', ''a''), unless ''a'' = ''b''. In contrast, the '' unord ...
s 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 In mathematics, the associative property is a property of some binary operations that rearranging the parentheses in an expression will not change the result. In propositional logic, associativity is a valid rule of replacement for express ...
(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 In mathematics, an isomorphism is a structure-preserving mapping or morphism between two structures of the same type that can be reversed by an inverse mapping. Two mathematical structures are isomorphic if an isomorphism exists between the ...
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 In mathematics, a singleton (also known as a unit set or one-point set) is a set with exactly one element. For example, the set \ is a singleton whose single element is 0. Properties Within the framework of Zermelo–Fraenkel set theory, the a ...
, corresponding to the
empty function In mathematics, a function from a set to a set assigns to each element of exactly one element of .; the words ''map'', ''mapping'', ''transformation'', ''correspondence'', and ''operator'' are sometimes used synonymously. The set is called ...
with
codomain In mathematics, a codomain, counter-domain, or set of destination of a function is a set into which all of the output of the function is constrained to fall. It is the set in the notation . The term '' range'' is sometimes ambiguously used to ...
.


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 In mathematics, an index set is a set whose members label (or index) members of another set. For instance, if the elements of a set may be ''indexed'' or ''labeled'' by means of the elements of a set , then is an index set. The indexing consists ...
, 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 In mathematics, an index set is a set whose members label (or index) members of another set. For instance, if the elements of a set may be ''indexed'' or ''labeled'' by means of the elements of a set , then is an index set. The indexing consists ...
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 In mathematics, the axiom of choice, abbreviated AC or AoC, is an axiom of set theory. Informally put, the axiom of choice says that given any collection of non-empty sets, it is possible to construct a new set by choosing one element from e ...
, 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 In mathematics, a projection is an idempotent mapping of a set (or other mathematical structure) into a subset (or sub-structure). In this case, idempotent means that projecting twice is the same as projecting once. The restriction to a subspa ...
. 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 In mathematics, a cardinal number, or cardinal for short, is what is commonly called the number of elements of a set. In the case of a finite set, its cardinal number, or cardinality is therefore a natural number. For dealing with the case ...
. 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 Vector most often refers to: * Euclidean vector, a quantity with a magnitude and a direction * Disease vector, an agent that carries and transmits an infectious pathogen into another living organism Vector may also refer to: Mathematics a ...
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 In category theory, a branch of mathematics, a pullback (also called a fiber product, fibre product, fibered product or Cartesian square) is the limit of a diagram consisting of two morphisms and with a common codomain. The pullback is writte ...
.
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 In category theory, a Category (mathematics), category is Cartesian closed if, roughly speaking, any morphism defined on a product (category theory), product of two Object (category theory), objects can be naturally identified with a morphism defin ...
.


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 In mathematics, the axiom of power set is one of the Zermelo–Fraenkel axioms of axiomatic set theory. It guarantees for every set x the existence of a set \mathcal(x), the power set of x, consisting precisely of the subsets of x. By the axio ...
(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 In linear algebra, the outer product of two coordinate vectors is the matrix whose entries are all products of an element in the first vector with an element in the second vector. If the two coordinate vectors have dimensions ''n'' and ''m'', the ...
*
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 In topology and related areas of mathematics, a product space is the Cartesian product of a family of topological spaces equipped with a natural topology called the product topology. This topology differs from another, perhaps more natural-seemin ...
*
Product type In programming languages and type theory, a product of ''types'' is another, compounded, type in a structure. The "operands" of the product are types, and the structure of a product type is determined by the fixed order of the operands in the produ ...


References


External links


Cartesian Product at ProvenMath
*

{{Mathematical logic Axiom of choice Operations on sets