Imagine a chessboard. Its columns (known as files) are labeled by letters from a to h, its rows (known as ranks) are labeled by numbers from 1 to 8. So, every square is identified by a combination of a letter and a number. The set of squares (or, rather, its identifiers) is obtained from the sets and through the operation known as Cartesian product. In fact, every coordinate system can be described as a Cartesian product, so this concept is basic for computer graphics and navigation. Cartesian products are also fundamental for theory of relations, and, so, for database theory.
Definition of Cartesian product
The Cartesian product of two sets creates a set of ordered pairs. For example, suppose we have two sets: We select an element from and pair it with an element from , e.g. the elements are enclosed in parenthesis and separated by a comma.
The order in which the elements of an ordered pair are listed is important.
Unless these two elements are the same, switching their order creates a different ordered pair. So, . The Cartesian product is denoted by : . Thus, we can write:
The number of elements in a Cartesian product is equal to the number of elements in each operand set multiplied together. So, if , , then .
Cartesian product of 3 or more sets
A Cartesian product can also be formed from more than two sets. For instance, we can form the Cartesian product of 3 sets: , and , by repeatedly selecting one element from each set to form ordered triples.
To create every possible ordered triple from three sets, we can start by forming the Cartesian product of the sets and , and then choose one element from the set as a third element of the ordered triple. Then we repeat this, each time choosing a different element from .
Thus, if then
We can further generalize the concept of the Cartesian product and define it for any (of course, any positive integer) number of sets . If are sets, their product will be the set
of all ordered collections of elements where the first element is taken from the first set, the second element from the second set and so on.
We refer to ordered collections having elements as -tuples. A tuple is any finite ordered collection of elements.
Note that if any of the sets is empty, the Cartesian product of those sets is also empty.
If and , then and .
Properties of Cartesian product
For two non-empty and unique sets and , is not equal to . For example, if and , then and Here, .
For two sets and , the Cartesian products and are equal if either of the following condition is satisfied:
- both sets are equal
- or
Conclusion
In this topic, we have learned about a Cartesian product of two or more sets. The concept of a Cartesian product is widely used in mathematics. For example, we can define the concept of a binary relation using a Cartesian product. Also, the Cartesian product is used very often to denote a set of numerical sets, especially in mathematical analysis.