01 / 21

Venn Diagrams &
Set Identities

Master the visual language of sets: learn to draw, interpret, and prove fundamental set identities using Venn diagrams.

Discrete Math

What Is a Set?

A set is a well-defined collection of distinct objects, called elements. We write \( A = \{1, 2, 3\} \) to mean that \( A \) contains exactly the elements 1, 2, and 3.

Universal Set \( U \)
The set of all elements under consideration, often drawn as the outer rectangle.
Empty Set \( \varnothing \)
The set with no elements: \( \varnothing = \{\} \). It is a subset of every set.

Core Set Operations

Union \( A \cup B \)
All elements in \( A \) or \( B \) (or both).
Intersection \( A \cap B \)
All elements in both \( A \) and \( B \).
Complement \( A^c \)
All elements in \( U \) that are not in \( A \).

Anatomy of a Venn Diagram

\( U \)
\( A \)
\( B \)
A only
\( A \cap B \)
B only Outside: neither

Why Set Identities Matter

Set identities are algebraic rules that let you simplify and transform set expressions, just like algebraic identities simplify number expressions. They are the backbone of proofs in discrete math, probability, and database theory.

1
Simplify complex expressions: Reduce \( (A \cup B) \cap (A \cup B^c) \) to just \( A \).
2
Prove logical equivalences: Set identities mirror Boolean algebra and propositional logic.
3
Verify with diagrams: Venn diagrams provide a visual proof technique for two or three sets.

Fundamental Set Identities

Identity Union Form Intersection Form
Commutative \( A \cup B = B \cup A \) \( A \cap B = B \cap A \)
Associative \( (A \cup B) \cup C = A \cup (B \cup C) \) \( (A \cap B) \cap C = A \cap (B \cap C) \)
Distributive \( A \cup (B \cap C) = (A \cup B) \cap (A \cup C) \) \( A \cap (B \cup C) = (A \cap B) \cup (A \cap C) \)
Identity \( A \cup \varnothing = A \) \( A \cap U = A \)
Complement \( A \cup A^c = U \) \( A \cap A^c = \varnothing \)

De Morgan's Laws

\( U \)
\( A \)
\( B \)
\( (A \cup B)^c \)
shaded = outside both
\( U \)
\( A \)
\( B \)
\( A^c \cap B^c \)
shaded = outside both =

Union vs Intersection

\( A \)
\( B \)
\( A \cup B \)
Everything shaded
\( A \)
\( B \)
\( A \cap B \)
Only the overlap
Union \( \cup \)
Combines elements from either or both sets. Think "OR".
Intersection \( \cap \)
Keeps only elements in both sets simultaneously. Think "AND".

Absorption & Idempotent Laws

Absorption
\( A \cup (A \cap B) = A \)
\( A \cap (A \cup B) = A \)

A "absorbs" the extra operation.
Idempotent
\( A \cup A = A \)
\( A \cap A = A \)

A set combined with itself is unchanged.
Double Complement
\( (A^c)^c = A \)

Complementing twice returns you to the original set.

How to Prove with Venn Diagrams

1
Draw the universal set as a rectangle and the named sets as overlapping circles inside it.
2
Shade the left-hand side of the identity step by step, applying each operation from the inside out.
3
Shade the right-hand side on a separate diagram using the same process.
4
Compare: If both diagrams have the same shaded regions, the identity holds for all sets.

Example: Distributive Law

Verify: \( A \cap (B \cup C) = (A \cap B) \cup (A \cap C) \) using a Venn diagram with three sets.

\( U \)
\( A \)
\( B \)
\( C \)

Example: De Morgan's Verified

Show \( (A \cap B)^c = A^c \cup B^c \) with a concrete example.

1
LHS: \( A \cap B = \{2,3\} \), so \( (A \cap B)^c = \{1,4,5,6\} \).
2
RHS: \( A^c = \{4,5,6\} \), \( B^c = \{1,5,6\} \), so \( A^c \cup B^c = \{1,4,5,6\} \).
3
Conclusion: Both sides equal \( \{1,4,5,6\} \). ✓ Identity verified.

Example: Simplifying an Expression

Simplify \( (A \cup B) \cap (A \cup B^c) \) using set identities.

1
Distributive Law (in reverse): \( A \cup (B \cap B^c) \).
2
Complement Law: \( B \cap B^c = \varnothing \).
3
Identity Law: \( A \cup \varnothing = A \).

Three-Set Regions

\( U \)
\( A \)
\( B \)
\( C \)
1 2 3 4 5 6 7 8: outside

Common Mistakes

✕ Confusing \( \cup \) and \( \cap \)
Union means "or" (at least one set), intersection means "and" (both sets). Mixing them up flips the shaded region.
✕ Forgetting the Universal Set
The complement \( A^c \) is meaningless without specifying \( U \). Always define or draw the universal set.
✕ Distributing Incorrectly
\( A \cap (B \cup C) \neq (A \cap B) \cup C \). You must distribute \( A \cap \) over both terms inside the parentheses.

Identity Reference Table

Law Statement Dual
Domination \( A \cup U = U \) \( A \cap \varnothing = \varnothing \)
Idempotent \( A \cup A = A \) \( A \cap A = A \)
Absorption \( A \cup (A \cap B) = A \) \( A \cap (A \cup B) = A \)
De Morgan \( (A \cup B)^c = A^c \cap B^c \) \( (A \cap B)^c = A^c \cup B^c \)
Double Complement \( (A^c)^c = A \)

Question 1 of 5

Which expression is equivalent to \( (A \cup B)^c \) by De Morgan's Law?

Question 2 of 5

Simplify: \( A \cup (A \cap B) \)

Question 3 of 5

If \( U = \{1,2,3,4,5\} \) and \( A = \{2,4\} \), what is \( A^c \)?

Question 4 of 5

Which identity states that \( A \cap (B \cup C) = (A \cap B) \cup (A \cap C) \)?

Question 5 of 5

How many distinct regions does a three-set Venn diagram have (including the region outside all sets)?