Sets & Set Operations
Sets & Set Operations
A well-defined collection of distinct objects called elements. Written $A = \{1, 2, 3\}$ or by set-builder notation $A = \{x \mid x > 0\}$.
- Union: $A \cup B = \{x \mid x \in A \text{ or } x \in B\}$
- Intersection: $A \cap B = \{x \mid x \in A \text{ and } x \in B\}$
- Complement: $A' = \{x \in U \mid x \notin A\}$
- Difference: $A - B = \{x \mid x \in A \text{ and } x \notin B\}$
$$(A \cup B)' = A' \cap B' \qquad (A \cap B)' = A' \cup B'$$
$|A|$ = number of elements. For finite sets: $|A \cup B| = |A| + |B| - |A \cap B|$.
$A = \{1,2,3,4\}$, $B = \{3,4,5,6\}$. Find $A \cup B$, $A \cap B$, $A - B$.
$A \cup B = \{1,2,3,4,5,6\}$, $A \cap B = \{3,4\}$, $A - B = \{1,2\}$.
$U = \{1,...,10\}$, $A = \{2,4,6,8,10\}$. Find $A'$.
$A' = \{1,3,5,7,9\}$.
$|A| = 15$, $|B| = 12$, $|A \cap B| = 5$. Find $|A \cup B|$.
$|A \cup B| = 15 + 12 - 5 = 22$.
Practice Problems
Show Answer Key
1. $\{a,b,c,d\}$
2. $\{b,c\}$
3. $\{2,4,6\}$
4. $\{1\}$
5. True
6. $42$
7. $(A \cup B)' = \{4\}$; $A' \cap B' = \{3,4\} \cap \{1,4\} = \{4\}$ ✓
8. $\{x \in \mathbb{Z} \mid x > 0 \text{ and } 2 \mid x\}$
9. Yes
10. $\{\emptyset, \{a\}, \{b\}, \{a,b\}\}$
11. $\emptyset$
12. $2^n$