01 / 20

Cartesian Products
& Power Sets

Master two foundational operations in set theory: building ordered pairs from Cartesian products and enumerating all subsets with power sets.

Discrete Mathematics

What Is a Cartesian Product?

The Cartesian product of two sets \(A\) and \(B\), written \(A \times B\), is the set of all ordered pairs \((a, b)\) where \(a \in A\) and \(b \in B\).

Order matters: the pair \((a, b)\) is not the same as \((b, a)\) unless \(a = b\). This means \(A \times B \neq B \times A\) in general.

Visualizing \(A \times B\)

Let \(A = \{1, 2\}\) and \(B = \{x, y, z\}\). We can lay out every ordered pair in a grid:

\(x\)
\(y\)
\(z\)
\(1\)
\(2\)
\((1, x)\)
\((1, y)\)
\((1, z)\)
\((2, x)\)
\((2, y)\)
\((2, z)\)
\(A\)
\(B\)

Why Cartesian Products Matter

Relations
Every relation \(R\) from \(A\) to \(B\) is a subset of \(A \times B\). Functions are special relations.
Coordinate Planes
The \(xy\)-plane is \(\mathbb{R} \times \mathbb{R} = \mathbb{R}^2\): every point is an ordered pair.
Databases
A SQL JOIN operation computes a Cartesian product before filtering rows.

Cartesian products are the building block for functions, graphs, probability sample spaces, and relational databases.

What Is a Power Set?

The power set of a set \(S\), written \(\mathcal{P}(S)\), is the set of all subsets of \(S\), including the empty set \(\emptyset\) and \(S\) itself.

For a set with \(n\) elements, the power set contains exactly \(2^n\) subsets. Each element is either included or excluded: two choices per element.

Visualizing \(\mathcal{P}(\{a, b, c\})\)

\(\emptyset\)
\(\{a\}\)
\(\{b\}\)
\(\{c\}\)
\(\{a, b\}\)
\(\{a, c\}\)
\(\{b, c\}\)
\(\{a, b, c\}\)
8 subsets total: \(|\mathcal{P}(S)| = 2^3 = 8\)

Core Cardinality Theorems

Cartesian Product
\( |A \times B| = |A| \cdot |B| \)
Each element of \(A\) pairs with every element of \(B\).
Power Set
\( |\mathcal{P}(S)| = 2^{|S|} \)
Each element is independently in or out of each subset.

Properties of \(A \times B\)

1
Not commutative: \(A \times B \neq B \times A\) unless \(A = B\) (the pairs are reversed).
2
Not associative: \((A \times B) \times C \neq A \times (B \times C)\), but there is a natural bijection between them.
3
Distributes over union: \(A \times (B \cup C) = (A \times B) \cup (A \times C)\).
4
Empty absorber: \(A \times \emptyset = \emptyset\). No pairs can be formed with nothing.

Properties of \(\mathcal{P}(S)\)

1
Always contains \(\emptyset\) and \(S\): The empty set and the set itself are always subsets.
2
Monotonic: If \(A \subseteq B\), then \(\mathcal{P}(A) \subseteq \mathcal{P}(B)\).
3
Power of empty set: \(\mathcal{P}(\emptyset) = \{\emptyset\}\), which has exactly 1 element (\(2^0 = 1\)).
4
Union identity: \(\mathcal{P}(A) \cup \mathcal{P}(B) \subseteq \mathcal{P}(A \cup B)\), but equality does not always hold.

Cartesian Product vs. Power Set

\(A \times B\) \(\mathcal{P}(S)\)
Input Two sets \(A, B\) One set \(S\)
Output elements Ordered pairs \((a, b)\) Subsets \(T \subseteq S\)
Size formula \(|A| \cdot |B|\) \(2^{|S|}\)
Growth rate Polynomial Exponential
Order matters? Yes (pairs are ordered) No (subsets are sets)

How to Compute Each

Cartesian Product
1. List every element of \(A\).
2. For each \(a \in A\), pair it with every \(b \in B\).
3. Collect all pairs \((a, b)\).
4. Verify: you should have \(|A| \cdot |B|\) pairs.
Power Set
1. Start with \(\{\emptyset\}\).
2. For each element \(s \in S\), take every existing subset and create a copy with \(s\) added.
3. Combine old and new subsets.
4. Verify: you should have \(2^{|S|}\) subsets.

Example: \(\{1, 2\} \times \{a, b\}\)

Let \(A = \{1, 2\}\) and \(B = \{a, b\}\). Find \(A \times B\).

1
Pair 1 with every element of \(B\): \((1, a)\) and \((1, b)\).
2
Pair 2 with every element of \(B\): \((2, a)\) and \((2, b)\).
3
Collect all pairs: \(A \times B = \{(1,a),(1,b),(2,a),(2,b)\}\).

Example: \(\mathcal{P}(\{1, 2, 3\})\)

Let \(S = \{1, 2, 3\}\). Find every subset of \(S\).

1
Start: \(\{\emptyset\}\).
2
Add 1: \(\emptyset, \{1\}\).
3
Add 2: \(\emptyset, \{1\}, \{2\}, \{1,2\}\).
4
Add 3: \(\emptyset, \{1\}, \{2\}, \{1,2\}, \{3\}, \{1,3\}, \{2,3\}, \{1,2,3\}\).

Example: \(\mathcal{P}(A) \times B\)

Let \(A = \{1, 2\}\) and \(B = \{x\}\). Find \(\mathcal{P}(A) \times B\).

1
Compute \(\mathcal{P}(A)\): \(\{\emptyset, \{1\}, \{2\}, \{1,2\}\}\) (4 subsets).
2
Form pairs with \(B = \{x\}\): pair each subset with \(x\).
3
Result: \(\{(\emptyset, x), (\{1\}, x), (\{2\}, x), (\{1,2\}, x)\}\).

Common Mistakes

✕ Ignoring Order
Treating \((a, b)\) and \((b, a)\) as the same pair. In \(A \times B\), order always matters.
✕ Forgetting \(\emptyset\)
Omitting the empty set from \(\mathcal{P}(S)\). The empty set is a subset of every set.
✕ Wrong Size Formula
Confusing \(|A| \cdot |B|\) with \(2^{|A|+|B|}\). Cartesian products multiply; power sets exponentiate.

Question 1 of 5

If \(A = \{1, 2, 3\}\) and \(B = \{x, y\}\), what is \(|A \times B|\)?

Question 2 of 5

How many elements are in \(\mathcal{P}(\{a, b, c, d\})\)?

Question 3 of 5

Which of the following is true about Cartesian products?

Question 4 of 5

Which element is always in \(\mathcal{P}(S)\) for any set \(S\)?

Question 5 of 5

Let \(A = \{1\}\) and \(B = \{2, 3\}\). Which set equals \(B \times A\)?