Set Notation
& Operations
Master the language of sets: learn to describe collections using set-builder notation, then combine them with union, intersection, and complement.
What Is a Set?
A set is a well-defined collection of distinct objects called elements (or members). We write sets with curly braces and list elements separated by commas.
Special Sets & the Universal Set
Why Sets Matter
Sets are the foundation of modern mathematics. They appear everywhere: probability, logic, databases, and computer science. Understanding set operations lets you solve counting problems systematically.
Union: \( A \cup B \)
The union of two sets \( A \) and \( B \) is the set of all elements that belong to \( A \) or \( B \) (or both).
Intersection: \( A \cap B \)
The intersection of two sets \( A \) and \( B \) is the set of all elements that belong to both \( A \) and \( B \).
Complement: \( A' \)
The complement of a set \( A \) (written \( A' \) or \( \bar{A} \) or \( A^c \)) is the set of all elements in the universal set \( U \) that are not in \( A \).
Set Difference: \( A \setminus B \)
The set difference \( A \setminus B \) (also written \( A - B \)) contains elements in \( A \) that are not in \( B \). It equals \( A \cap B' \).
Union vs Intersection
| Union \( A \cup B \) | Intersection \( A \cap B \) | |
|---|---|---|
| Meaning | In \( A \) or \( B \) (or both) | In \( A \) and \( B \) |
| Logic equivalent | OR | AND |
| Size | Always \( \ge \max(|A|, |B|) \) | Always \( \le \min(|A|, |B|) \) |
| Venn diagram | Both full circles | Only the overlap |
| Symbol | \( \cup \) (cup: opens up) | \( \cap \) (cap: opens down) |
De Morgan's Laws
Two powerful identities that connect complement with union and intersection:
The complement of a union is the intersection of the complements.
The complement of an intersection is the union of the complements.
The Inclusion-Exclusion Principle
When counting elements in a union, you must subtract the overlap to avoid double-counting:
How to Solve Set Problems
Example 1: Basic Operations
Let \( U = \{1,2,3,4,5,6,7,8,9,10\} \), \( A = \{1,3,5,7,9\} \), \( B = \{2,3,5,7\} \).
Example 2: Venn Diagram
Using the same sets, place every element of \( U \) in the correct Venn diagram region.
Example 3: De Morgan's Laws
With \( U = \{1,...,10\} \), \( A = \{1,3,5,7,9\} \), \( B = \{2,3,5,7\} \), verify De Morgan's First Law: \( (A \cup B)' = A' \cap B' \).
Common Mistakes
Operations Summary
| Operation | Symbol | Meaning | Venn Region |
|---|---|---|---|
| Union | \( A \cup B \) | In \( A \) or \( B \) | Both circles |
| Intersection | \( A \cap B \) | In \( A \) and \( B \) | Overlap only |
| Complement | \( A' \) | Not in \( A \) | Outside the circle |
| Difference | \( A \setminus B \) | In \( A \) but not \( B \) | Left crescent |
Question 1 of 5
Let \( A = \{2,4,6,8\} \) and \( B = \{1,2,3,4\} \). What is \( A \cap B \)?
Question 2 of 5
If \( U = \{1,2,3,4,5,6,7,8\} \) and \( A = \{1,3,5,7\} \), what is \( A' \)?
Question 3 of 5
Let \( A = \{a,b,c,d\} \) and \( B = \{c,d,e,f\} \). What is \( A \cup B \)?
Question 4 of 5
If \( |A| = 12 \), \( |B| = 9 \), and \( |A \cap B| = 4 \), what is \( |A \cup B| \)?
Question 5 of 5
By De Morgan's Law, \( (A \cap B)' \) equals: