6.1: Cartesian Product
- Last updated
-
Oct 18, 2021
-
Save as PDF
-
We discussed unions and intersections in Section . The Cartesian product is another important set operation. Before introducing it, let us recall the notation for an ordered pair.
Notation .
For any objects and , mathematicians use to denote the ordered pair whose first coordinate is and whose second coordinate is . It is important to know that the order matters: is usually not the same as . (That is why these are called ordered pairs. Notice that sets are not like this: sets are unordered, so is always the same as .) It is important to realize that:
Example .
A special case of the Cartesian product is familiar to all algebra students: recall that
is the set of all ordered pairs of real numbers. This is the “coordinate plane” (or “-plane”) that is used to draw the graphs of functions.
The formula often appears in elementary algebra, and, in that subject, the variables and represent real numbers. However, advanced math courses allow and to be elements of any sets and , not just from . Therefore, it is important to generalize the above example by replacing the two appearances of in the right-hand side of Equation with arbitrary sets and :
Definition .
For any sets and , we let
This notation means, for all , that
The set is called the Cartesian product of and .
Example .
- .
- .
- .
By comparing (2) and (3), we see that is not commutative: is usually not equal to .
Exercise .
Specify each set by listing its elements.
- {♣, ♦, ♥, ♠} =
Remark .
We will prove in Theorem that
In other words:
For now, let us just give an informal justification:
Suppose and . Then, by listing the elements of these sets, we may write
The elements of are:
In this array,
- each row has exactly elements, and
- there are rows,
so the number of elements is the product
Here are some examples of proofs involving Cartesian products.
Example .
If and are nonempty sets, and , then .
Solution
PROOF.
Assume and are nonempty sets, such that . It suffices to show and . By symmetry, we need only show .
Let be an arbitrary element of . Since is nonempty, there exists some . Then
so there exist and , such that . Therefore, (and , but we do not need that fact). Hence .
Example .
If is disjoint from , then is disjoint from .
Solution
PROOF.
We prove the contrapositive: Assume is not disjoint from , and we will show is not disjoint from .
By assumption, the intersection of and is not empty, so we may choose some
Then:
- Since , there exist and , such that .
- Since , there exist and , such that .
Hence , so . Now and , so . Therefore , so, as desired, and are not disjoint.
Remark .
When reading the proof above, you may have noticed that the variable (a single letter) was used to represent an ordered pair . There is nothing wrong with this, because the ordered pair is a single object, and a variable can represent any mathematical object at all, whether it is an element of a set, or an entire set, or a function, or an ordered pair, or something else.
Example .
Assume , , and are sets. Prove .
Solution
PROOF.
() Given , we have or . By symmetry, we may assume , so for some and . Note that , so we have and . Therefore
Since is an arbitrary element of , this implies .
() Given , we have , and either or . By symmetry, we may assume . Then , so . Since is an arbitrary element of , this implies .
Exercise .
- Suppose , , and are sets.
- Show that if , then .
- Show that if , and , then .
- Suppose is a set.
- Show .
- Show if and only if .
- To say that is distributive over means that, for all sets , , and , we have
The first equation was established in Example . Complete the proof that is distributive over by proving the second equation.
- Show that is distributive over . That is, for all sets , , and , we have
- , and
- .