Cartesian product · Exercise-CARTESIAN-PRODUCT-002

Step-by-step solved exercise: Relations and functions

If |A| = 2 and |B| = 3, what is |A × B|?

Step by step with comments, a check and common mistakes.

Step-by-step solution

  1. A pair \(\displaystyle (a,b)\) is formed by first choosing \(\displaystyle a\) in \(\displaystyle A\) and then \(\displaystyle b\) in \(\displaystyle B\).

    \[\displaystyle (a,b) \in A \times B\]
  2. There are \(\displaystyle |A| = 2\) choices for the first coordinate.

    \[\displaystyle |A| = 2\]
  3. For each of those choices there are \(\displaystyle |B| = 3\) choices for the second coordinate.

    \[\displaystyle |B| = 3\]
  4. Independent choices multiply: \(\displaystyle |A \times B| = |A| \cdot |B|\).

    \[\displaystyle |A \times B| = |A| \cdot |B| = 2 \cdot 3\]
  5. The result is \(\displaystyle |A \times B| = 6\).

    \[\displaystyle |A \times B| = 6\]

Answer

6

🎯 Build my path to this exercise