Math Lab
Home/Class XI/Ch 1/Complement and De Morgan's laws

Complement and De Morgan's laws

Once we fix a universal set UU, every subset AUA \subseteq U has a natural partner , the set of all elements of UU that are not in AA. This is the complement. It looks innocent, but it is the operation that lets us flip "everyone who plays cricket" into "everyone who does not play cricket" , and the two De Morgan laws tell us how complement interacts with union and intersection.

Definitions

Fix a universal set UU. For AUA \subseteq U, the complement of AA in UU is A=UA={xU:xA}.A' = U - A = \{x \in U : x \notin A\}. Other common notations: AcA^c, A\overline{A}, UA\complement_U A. In a Venn diagram, AA' is everything inside the rectangle but outside the circle for AA.

Properties of complement

Let A,BUA, B \subseteq U.

  1. Double complement: (A)=A(A')' = A.
  2. Universal: =U\varnothing' = U, U=U' = \varnothing.
  3. Self-disjointness: AA=A \cap A' = \varnothing.
  4. Cover: AA=UA \cup A' = U.
  5. Reversal of inclusion: if ABA \subseteq B then BAB' \subseteq A'.
  6. Difference via complement: AB=ABA - B = A \cap B'.

All can be checked element by element. For (5): if ABA \subseteq B and xBx \in B', then xBx \notin B, hence xAx \notin A (since ABA \subseteq B), so xAx \in A'.

De Morgan's laws

The two De Morgan laws for sets are: (AB)=AB,(AB)=AB.\boxed{(A \cup B)' = A' \cap B', \qquad (A \cap B)' = A' \cup B'.}

In words: "not (A or B)" = "(not A) and (not B)", and "not (A and B)" = "(not A) or (not B)". The complement swaps union and intersection.

Proof of (AB)=AB(A \cup B)' = A' \cap B'

(\subseteq) Let x(AB)x \in (A \cup B)'. Then xUx \in U and xABx \notin A \cup B. Hence xAx \notin A and xBx \notin B (if either held, then xx would be in ABA \cup B). So xAx \in A' and xBx \in B', i.e. xABx \in A' \cap B'.

(\supseteq) Let xABx \in A' \cap B'. Then xAx \in A' and xBx \in B', so xAx \notin A and xBx \notin B. Therefore xABx \notin A \cup B, i.e. x(AB)x \in (A \cup B)'.

Both inclusions give equality. The second law follows by applying the first to AA' and BB' and using (A)=A(A')' = A. \qed\qed

De Morgan generalised

For any family A1,A2,,AnUA_1, A_2, \dots, A_n \subseteq U: (i=1nAi)=i=1nAi,(i=1nAi)=i=1nAi.\left(\bigcup_{i=1}^n A_i\right)' = \bigcap_{i=1}^n A_i', \qquad \left(\bigcap_{i=1}^n A_i\right)' = \bigcup_{i=1}^n A_i'.

The proof is by induction using the two-set version.

Why De Morgan is fundamental

The laws are not just notation: they are the algebra of "and / or / not". You will see exactly the same shape in:

  • Logic: ¬(pq)(¬p)(¬q)\neg(p \lor q) \equiv (\neg p) \land (\neg q).
  • Probability: P(AB)=P(AB)P(\overline{A \cup B}) = P(A' \cap B'); the chance that neither event happens.
  • Circuits: a NAND-gate equals an inverter on each input followed by an OR.

Mastering De Morgan now will save you headaches throughout Class XII, JEE and beyond.

Worked examples

Example 1. Take U={1,2,,10}U = \{1, 2, \dots, 10\}, A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\}, B={1,2,3,4,5}B = \{1, 2, 3, 4, 5\}. Find AA', BB', (AB)(A \cup B)' and verify De Morgan.

A={1,3,5,7,9}A' = \{1, 3, 5, 7, 9\}, B={6,7,8,9,10}B' = \{6, 7, 8, 9, 10\}. AB={1,2,3,4,5,6,8,10}A \cup B = \{1, 2, 3, 4, 5, 6, 8, 10\}, so (AB)={7,9}(A \cup B)' = \{7, 9\}. Also AB={7,9}A' \cap B' = \{7, 9\}. They agree.

Example 2. Simplify (AB)A(A \cap B)' \cap A.

(AB)=AB(A \cap B)' = A' \cup B' (De Morgan). So (AB)A=(AB)A=(AA)(BA)=(AB)=AB(A \cap B)' \cap A = (A' \cup B') \cap A = (A' \cap A) \cup (B' \cap A) = \varnothing \cup (A \cap B') = A - B.

Example 3. If A={xR:x0}A = \{x \in \mathbb{R} : x \ge 0\} and U=RU = \mathbb{R}, find AA'.

A={xR:x<0}=(,0)A' = \{x \in \mathbb{R} : x < 0\} = (-\infty, 0).

Example 4. Prove AA=UA \cup A' = U and AA=A \cap A' = \varnothing.

Take any xUx \in U. By the law of the excluded middle, either xAx \in A or xAx \notin A. The first puts xx in AAAA \subseteq A \cup A'; the second puts xx in AAAA' \subseteq A \cup A'. Hence UAAU \subseteq A \cup A', and the reverse is obvious. For the intersection: no xx can be both in AA and not in AA.

Example 5 (harder). Use De Morgan to simplify (AB)(AB)(A' \cap B') \cup (A' \cap B).

Factor out AA': (AB)(AB)=A(BB)=AU=A(A' \cap B') \cup (A' \cap B) = A' \cap (B' \cup B) = A' \cap U = A'.

Try it yourself

  1. Let U={1,2,,10}U = \{1, 2, \dots, 10\} and A={1,3,5,7,9}A = \{1, 3, 5, 7, 9\}. Find AA'.
  2. Verify De Morgan's law (AB)=AB(A \cap B)' = A' \cup B' for A={1,2,3}A = \{1, 2, 3\}, B={2,3,4}B = \{2, 3, 4\}, U={1,2,3,4,5}U = \{1, 2, 3, 4, 5\}.
  3. Simplify (A)B(A')' \cup B'.
  4. Show AB=ABA - B = A \cap B'.
  5. Prove ABA \subseteq B iff BAB' \subseteq A'.
  6. Simplify (AB)A(A \cup B) \cap A'.
  7. If AB=A \cap B = \varnothing, prove ABA \subseteq B'.
  8. With U=RU = \mathbb{R}, find the complement of [2,5)[2, 5).
  9. Show (ABC)=ABC(A \cup B \cup C)' = A' \cap B' \cap C' by induction on the number of sets.
  10. Simplify (AB)=?(A - B)' = ? (express using ,,\cup, \cap, ').
  11. Show A(AB)=ABA \cap (A' \cup B) = A \cap B.
  12. Prove AB=(AB)A \cup B = (A' \cap B')'.

Pitfalls / Tricks

  • The complement depends on UU. The complement of {0}\{0\} in N\mathbb{N} is empty; in Z\mathbb{Z} it is huge.
  • (AB)=AB(A \cup B)' = A' \cup B' is WRONG. The correct rule swaps the operation: (AB)=AB(A \cup B)' = A' \cap B'.
  • AB=ABA - B = A \cap B' is the bridge identity. Use it to convert any difference into intersection-with-complement, then apply algebra.
  • Insight. Complement is an involution , applying it twice returns the original. Union and intersection are dual under complement. These two facts together generate every identity you will ever need on sets.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Complement and De Morgan
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6