โˆžIntro to the Theory of Sets

De Morgan's Laws

Study smarter with Fiveable

Get study guides, practice questions, and cheatsheets for all your subjects. Join 500,000+ students with a 96% pass rate.

Get Started

Why This Matters

De Morgan's Laws are among the most powerful tools in your set theory toolkitโ€”they reveal the hidden symmetry between union and intersection when complements enter the picture. You're being tested on your ability to transform expressions, simplify complex set operations, and recognize equivalent forms. These laws bridge set theory with Boolean algebra and propositional logic, meaning mastering them here pays dividends across mathematics and computer science.

Don't just memorize the two formulas. Understand why complementation "flips" unions to intersections and vice versa. Know how to prove these relationships using element arguments, visualize them with Venn diagrams, and apply them to simplify expressions. When an exam question gives you a complicated set expression involving complements, De Morgan's Laws are almost always the key to unlocking it.


The Core Laws: Complementation Swaps Operations

The fundamental insight of De Morgan's Laws is that taking the complement of a combined set operation reverses the operation type. When you complement a union, you get an intersection of complementsโ€”and vice versa.

First Law: Complement of Union

  • (AโˆชB)โ€ฒ=Aโ€ฒโˆฉBโ€ฒ( A \cup B )' = A' \cap B'โ€”the complement of a union equals the intersection of the complements
  • Intuition: an element is outside "A or B" only when it's outside A and outside B simultaneously
  • Exam tip: when you see a complemented union, immediately rewrite it as an intersection of complements

Second Law: Complement of Intersection

  • (AโˆฉB)โ€ฒ=Aโ€ฒโˆชBโ€ฒ( A \cap B )' = A' \cup B'โ€”the complement of an intersection equals the union of the complements
  • Intuition: an element is outside "A and B" when it's outside A or outside B (or both)
  • Duality principle: notice how union and intersection swap roles symmetrically between the two laws

Compare: First Law vs. Second Lawโ€”both involve complementation "flipping" the operation, but the first converts union to intersection while the second does the reverse. If an FRQ asks you to simplify an expression, identify which law applies by looking at what's inside the complement.


Proving the Laws: Element Arguments

Understanding how to prove De Morgan's Laws reinforces why they work. The standard approach uses element argumentsโ€”showing set equality by proving mutual subset inclusion.

Element Argument Method

  • Strategy: prove xโˆˆ(AโˆชB)โ€ฒx \in (A \cup B)' if and only if xโˆˆAโ€ฒโˆฉBโ€ฒx \in A' \cap B' by unpacking definitions
  • Key step: xโˆˆ(AโˆชB)โ€ฒx \in (A \cup B)' means xโˆ‰Ax \notin A and xโˆ‰Bx \notin B, which is exactly xโˆˆAโ€ฒโˆฉBโ€ฒx \in A' \cap B'
  • Biconditional structure: the "if and only if" chain establishes that both sets contain exactly the same elements

Definition-Based Reasoning

  • Foundation: proofs rely entirely on definitions of union (in at least one), intersection (in both), and complement (not in)
  • Logical translation: "not (in A or in B)" becomes "not in A and not in B" by propositional logic
  • Exam application: be prepared to write out element arguments step-by-step on proof-based questions

Compare: Element arguments vs. Venn diagramsโ€”element arguments provide rigorous proof while Venn diagrams offer visual verification. Use Venn diagrams to check your intuition, but rely on element arguments for formal proofs.


Visual Understanding: Venn Diagrams

Venn diagrams transform abstract set relationships into geometric intuition. Shading the correct regions confirms that both sides of De Morgan's Laws represent identical areas.

Visualizing the First Law

  • Left side: shade everything outside the union of A and Bโ€”the region untouched by either circle
  • Right side: shade Aโ€ฒA' (outside A), shade Bโ€ฒB' (outside B), then find their overlap
  • Result: both approaches shade exactly the same region, confirming (AโˆชB)โ€ฒ=Aโ€ฒโˆฉBโ€ฒ(A \cup B)' = A' \cap B'

Visualizing the Second Law

  • Left side: shade everything outside the intersectionโ€”everywhere except where both circles overlap
  • Right side: shade Aโ€ฒโˆชBโ€ฒA' \cup B'โ€”the combined region that's outside A or outside B
  • Verification: the shaded regions match, providing visual proof of (AโˆฉB)โ€ฒ=Aโ€ฒโˆชBโ€ฒ(A \cap B)' = A' \cup B'

Compare: First Law diagram vs. Second Law diagramโ€”in the first, you're looking for the "empty space" outside both circles; in the second, you're shading everything except the central lens. Practice drawing both to build intuition.


Applications: Boolean Algebra and Logic

De Morgan's Laws aren't confined to abstract set theoryโ€”they're workhorses in logic, computer science, and circuit design. The same structural relationships govern how negation interacts with AND/OR operations.

Boolean Algebra Translation

  • Correspondence: sets become logical propositions, union becomes OR, intersection becomes AND, complement becomes NOT
  • Circuit design: the laws enable conversion between NAND and NOR gates, simplifying digital logic
  • Expression simplification: transform ยฌ(PโˆจQ)\neg(P \lor Q) into ยฌPโˆงยฌQ\neg P \land \neg Q to find equivalent forms

Propositional Logic Connection

  • Negating conjunctions: "not (P and Q)" is equivalent to "not P or not Q"
  • Negating disjunctions: "not (P or Q)" is equivalent to "not P and not Q"
  • Practical value: essential for writing logically equivalent statements and simplifying complex conditions

Compare: Set notation vs. logical notationโ€”(AโˆฉB)โ€ฒ=Aโ€ฒโˆชBโ€ฒ(A \cap B)' = A' \cup B' becomes ยฌ(PโˆงQ)โ‰กยฌPโˆจยฌQ\neg(P \land Q) \equiv \neg P \lor \neg Q. Same structure, different symbols. Exam questions may test your ability to translate between them.


Extensions and Simplification Techniques

De Morgan's Laws scale up to handle multiple sets and serve as the foundation for simplifying complex expressions. The same "flip the operation, complement the parts" principle applies regardless of how many sets are involved.

Extension to Multiple Sets

  • Generalized first law: (A1โˆชA2โˆชโ‹ฏโˆชAn)โ€ฒ=A1โ€ฒโˆฉA2โ€ฒโˆฉโ‹ฏโˆฉAnโ€ฒ(A_1 \cup A_2 \cup \cdots \cup A_n)' = A_1' \cap A_2' \cap \cdots \cap A_n'
  • Generalized second law: (A1โˆฉA2โˆฉโ‹ฏโˆฉAn)โ€ฒ=A1โ€ฒโˆชA2โ€ฒโˆชโ‹ฏโˆชAnโ€ฒ(A_1 \cap A_2 \cap \cdots \cap A_n)' = A_1' \cup A_2' \cup \cdots \cup A_n'
  • Pattern recognition: complementing any union of sets yields the intersection of all their complements, and vice versa

Simplifying Complex Expressions

  • Strategy: apply De Morgan's Laws to "push" complements inside parentheses while flipping operations
  • Nested expressions: work from the outermost complement inward, applying the laws systematically
  • Goal: transform expressions into forms that are easier to evaluate or compare

Compare: Two-set case vs. n-set extensionโ€”the principle is identical, but the extended version requires careful tracking of multiple complements. Practice with three sets before tackling arbitrary n.


Historical Context

Augustus De Morgan's Contribution

  • Named after British mathematician Augustus De Morgan (1806โ€“1871), who formalized these relationships
  • 19th-century development: part of the broader effort to establish rigorous foundations for logic and mathematics
  • Lasting influence: the laws remain fundamental in set theory, logic, computer science, and electrical engineering

Quick Reference Table

ConceptKey Facts
First Law (Union)(AโˆชB)โ€ฒ=Aโ€ฒโˆฉBโ€ฒ(A \cup B)' = A' \cap B'
Second Law (Intersection)(AโˆฉB)โ€ฒ=Aโ€ฒโˆชBโ€ฒ(A \cap B)' = A' \cup B'
Proof MethodElement arguments with biconditional reasoning
Visual ToolVenn diagrams showing equivalent shaded regions
Boolean TranslationNOT(OR) = AND(NOTs); NOT(AND) = OR(NOTs)
Logic Notationยฌ(PโˆจQ)โ‰กยฌPโˆงยฌQ\neg(P \lor Q) \equiv \neg P \land \neg Q
ExtensionLaws generalize to unions/intersections of n sets
Simplification UsePush complements inward while flipping operations

Self-Check Questions

  1. If you need to simplify (AโˆชBโˆชC)โ€ฒ(A \cup B \cup C)', what does the extended De Morgan's Law give you, and why does complementation change union to intersection?

  2. Compare and contrast the two De Morgan's Laws: what do they share structurally, and how do they differ in application?

  3. Using element arguments, explain why xโˆˆ(AโˆฉB)โ€ฒx \in (A \cap B)' implies xโˆˆAโ€ฒโˆชBโ€ฒx \in A' \cup B'. What definitions must you invoke?

  4. How would you translate (Aโ€ฒโˆชB)โ€ฒ(A' \cup B)' into an equivalent expression using De Morgan's Laws? Show your reasoning step-by-step.

  5. An FRQ asks you to prove that two set expressions are equal. One expression contains (XโˆฉY)โ€ฒ(X \cap Y)' and the other contains Xโ€ฒโˆชYโ€ฒX' \cup Y'. What's your approach, and which verification method (element argument or Venn diagram) would you use for a formal proof?