This lesson covers the essential formulas of set theory, including cardinality relations, De Morgan's laws, and inclusion-exclusion. You will learn derivations, worked examples, and common traps to solve problems confidently.
Set theory is the language of mathematics. It describes collections of objects and their relationships. Mastering its formulas helps in probability, logic, and data analysis. This lesson builds from basic definitions to advanced counting, with clear derivations and worked examples.
| Concept | Formula | When to Use |
|---|---|---|
| Two-set union | |A ∪ B| = |A| + |B| - |A ∩ B| | When two sets overlap and you need total count. |
| Three-set union | |A ∪ B ∪ C| = sum singles - sum pairs + triple | When three sets overlap and you need total count. |
| Exactly one set | |A| + |B| + |C| - 2(sum pairs) + 3(triple) | When you need elements in exactly one of three sets. |
| Neither | |U| - |A ∪ B| | When you need elements outside the union. |
| Subsets | 2^n | When counting all possible subsets of a set. |
A set is a well-defined collection of distinct objects, called elements. We write a ∈ A if a is an element of A, and a ∉ A otherwise. The universal set U contains all elements under consideration. The empty set ∅ has no elements. A set can be described by roster form (listing elements) or set-builder form (rule). The cardinality |A| is the number of elements in A. Two sets are equal if they have exactly the same elements. Subset: A ⊆ B if every element of A is in B. Proper subset: A ⊂ B if A ⊆ B and A ≠ B. The power set P(A) is the set of all subsets of A; if |A| = n, then |P(A)| = 2^n.
Union (A ∪ B) contains elements in A or B or both. Intersection (A ∩ B) contains elements in both A and B. Difference (A \ B) contains elements in A but not in B. Complement (A') contains elements in U but not in A. These operations satisfy commutative, associative, and distributive laws. Key identities: A ∪ A = A, A ∩ A = A, A ∪ ∅ = A, A ∩ ∅ = ∅, A ∪ U = U, A ∩ U = A. Also, A \ B = A ∩ B'. The symmetric difference A Δ B = (A \ B) ∪ (B \ A) = (A ∪ B) \ (A ∩ B).
For two finite sets A and B, the number of elements in their union is |A ∪ B| = |A| + |B| - |A ∩ B|. This avoids double-counting the overlap. Rearranged: |A ∩ B| = |A| + |B| - |A ∪ B|. Also, |A \ B| = |A| - |A ∩ B|, and |A Δ B| = |A| + |B| - 2|A ∩ B|. If A and B are disjoint, |A ∪ B| = |A| + |B|. The formula extends to complements: |A' ∩ B'| = |U| - |A ∪ B|.
For three sets A, B, C: |A ∪ B ∪ C| = |A| + |B| + |C| - |A ∩ B| - |A ∩ C| - |B ∩ C| + |A ∩ B ∩ C|. The pattern: add singles, subtract pairwise intersections, add triple intersection. This is inclusion-exclusion. Rearranged forms help find missing values. For example, |A ∩ B ∩ C| = |A ∪ B ∪ C| - |A| - |B| - |C| + |A ∩ B| + |A ∩ C| + |B ∩ C|. Also, the number of elements in exactly one set is |A| + |B| + |C| - 2(|A ∩ B| + |A ∩ C| + |B ∩ C|) + 3|A ∩ B ∩ C|.
De Morgan's laws connect unions, intersections, and complements: (A ∪ B)' = A' ∩ B' and (A ∩ B)' = A' ∪ B'. For three sets: (A ∪ B ∪ C)' = A' ∩ B' ∩ C' and (A ∩ B ∩ C)' = A' ∪ B' ∪ C'. These laws are used to simplify expressions and solve counting problems involving 'neither' or 'not both'. Also, (A')' = A, A ∪ A' = U, A ∩ A' = ∅. The complement of a difference: (A \ B)' = A' ∪ B.
If |A| = n, then the number of subsets of A is 2^n. The number of proper subsets is 2^n - 1. The number of non-empty subsets is 2^n - 1. The number of subsets of size k is C(n, k) = n! / (k!(n-k)!). The total number of subsets is the sum of C(n, k) for k = 0 to n, which equals 2^n. For two sets A and B with |A| = m and |B| = n, the number of functions from A to B is n^m. The number of relations from A to B is 2^{mn}.
The Cartesian product A × B is the set of all ordered pairs (a, b) with a ∈ A and b ∈ B. If |A| = m and |B| = n, then |A × B| = m × n. A relation from A to B is any subset of A × B. The number of relations is 2^{mn}. A function from A to B is a special relation where each element of A maps to exactly one element of B. The number of functions is n^m. The number of one-to-one functions (if m ≤ n) is P(n, m) = n! / (n-m)!.
Venn diagrams visually represent sets as circles inside a rectangle (universal set). For two sets, there are four regions: only A, only B, both A and B, neither. For three sets, there are eight regions. To solve word problems, assign variables to each region and use given cardinalities to form equations. Start with the innermost intersection (triple), then work outward. The sum of all regions equals |U|. This method avoids formula confusion and is especially useful for 'exactly one', 'at least one', and 'neither' questions.
Let F = football, C = cricket. |F| = 25, |C| = 20, |F ∩ C| = 10.
Use |F ∪ C| = |F| + |C| - |F ∩ C| = 25 + 20 - 10 = 35. Neither = |U| - |F ∪ C| = 40 - 35 = 5.
|A ∩ B| = |A| + |B| - |A ∪ B| = 12 + 15 - 20 = 7. |A \ B| = |A| - |A ∩ B| = 12 - 7 = 5.
Use inclusion-exclusion: |A ∪ B ∪ C| = 60 + 50 + 40 - 30 - 20 - 25 + 10 = 85. None = 100 - 85 = 15.
|A| = 4. Subsets = 2^4 = 16. Proper subsets = 16 - 1 = 15. Subsets of size 2 = C(4,2) = 6.
|A × B| = 3 × 4 = 12. Number of relations = 2^{12} = 4096. Number of functions = 4^3 = 64.
Let T = tea, C = coffee. |T ∪ C| = 50 - 10 = 40. |T ∩ C| = |T| + |C| - |T ∪ C| = 30 + 25 - 40 = 15.
A subset includes the set itself, while a proper subset excludes the set itself. If |A| = n, there are 2^n subsets and 2^n - 1 proper subsets.
Only when A and B are disjoint, meaning A ∩ B = ∅. Otherwise, you must subtract |A ∩ B| to avoid double-counting.
Use the formula: |A| + |B| + |C| - 2(|A ∩ B| + |A ∩ C| + |B ∩ C|) + 3|A ∩ B ∩ C|. This counts elements that belong to only one set.
It forms all ordered pairs between two sets. It is used in coordinate geometry, relations, and functions. The cardinality is |A| × |B|.
If |A| = m and |B| = n, the number of functions is n^m. Each of the m elements in A has n choices in B.
For three sets, (A ∪ B ∪ C)' = A' ∩ B' ∩ C' and (A ∩ B ∩ C)' = A' ∪ B' ∪ C'. It generalizes to any number of sets.