Cartesian product · Exercise-CARTESIAN-PRODUCT-002
Step-by-step solved exercise: Relations and functions
If |A| = 2 and |B| = 3, what is |A × B|?
Cartesian product · Exercise-CARTESIAN-PRODUCT-002
If |A| = 2 and |B| = 3, what is |A × B|?
A pair \(\displaystyle (a,b)\) is formed by first choosing \(\displaystyle a\) in \(\displaystyle A\) and then \(\displaystyle b\) in \(\displaystyle B\).
There are \(\displaystyle |A| = 2\) choices for the first coordinate.
For each of those choices there are \(\displaystyle |B| = 3\) choices for the second coordinate.
Independent choices multiply: \(\displaystyle |A \times B| = |A| \cdot |B|\).
The result is \(\displaystyle |A \times B| = 6\).
6