Complement
\(A'=U-A\), all elements of U not in A.
Laws
- \((A')'=A\), \(A\cup A'=U\), \(A\cap A'=\varnothing\).
- De Morgan: \((A\cup B)'=A'\cap B'\), \((A\cap B)'=A'\cup B'\).
Counting with sets
\(n(A\cup B)=n(A)+n(B)-n(A\cap B)\). For three sets: \(n(A\cup B\cup C)=n(A)+n(B)+n(C)-n(A\cap B)-n(B\cap C)-n(A\cap C)+n(A\cap B\cap C)\).
Example 1. \(U=\{1,\dots,10\}\), \(A=\{1,\dots,6\}\). Find \(A'\).\(\{7,8,9,10\}\).Example 2. In a class 30 play cricket, 20 play football, 10 play both. How many play at least one?
\(30+20-10=40\).Example 3. In a group of 100, 60 like tea, 50 like coffee, 20 like neither. How many like both?
At least one: \(100-20=80\); both \(=60+50-80=30\).Example 4. Verify De Morgan for \(U=\{1..6\},A=\{1,2\},B=\{2,3\}\).
\((A\cup B)'=\{4,5,6\}\); \(A'\cap B'=\{3,4,5,6\}\cap\{1,4,5,6\}=\{4,5,6\}\) ✓.
Common mistakes
- Forgetting to subtract the overlap and double counting.