UNIHIVE

Study Hub UNIPORT MTH 114

MTH 114 · Introduction to Sets, Logic and Algebra

Set operations and De Morgan's laws

Union, intersection, complement and difference, Venn diagrams, the laws of set algebra and how to prove a set identity.

Our notes

2 min read

The operations

  • Union A ∪ B = {x : x ∈ A or x ∈ B}.
  • Intersection A ∩ B = {x : x ∈ A and x ∈ B}. A and B are disjoint if A ∩ B = ∅.
  • Complement A′ = {x ∈ U : x ∉ A}.
  • Difference A − B (or A \ B) = {x : x ∈ A and x ∉ B} = A ∩ B′.
  • Symmetric difference A Δ B = (A − B) ∪ (B − A).

Worked example. U = {1, 2, ..., 10}, A = {1, 2, 3, 4, 5}, B = {4, 5, 6, 7}.

  • A ∪ B = {1, 2, 3, 4, 5, 6, 7}; A ∩ B = {4, 5}.
  • A − B = {1, 2, 3}; B − A = {6, 7}; A Δ B = {1, 2, 3, 6, 7}.
  • A′ = {6, 7, 8, 9, 10}; (A ∪ B)′ = {8, 9, 10}.
  • Check De Morgan: A′ ∩ B′ = {6, 7, 8, 9, 10} ∩ {1, 2, 3, 8, 9, 10} = {8, 9, 10} = (A ∪ B)′. ✓

Laws of set algebra

LawForm
CommutativeA ∪ B = B ∪ A; A ∩ B = B ∩ A
Associative(A ∪ B) ∪ C = A ∪ (B ∪ C), same for ∩
DistributiveA ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C); A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C)
IdentityA ∪ ∅ = A; A ∩ U = A
ComplementA ∪ A′ = U; A ∩ A′ = ∅; (A′)′ = A
IdempotentA ∪ A = A; A ∩ A = A
De Morgan(A ∪ B)′ = A′ ∩ B′; (A ∩ B)′ = A′ ∪ B′

Proving a set identity (element method)

Prove (A ∪ B)′ = A′ ∩ B′.

  1. Let x ∈ (A ∪ B)′. Then x ∉ A ∪ B, so x is in neither A nor B: x ∉ A and x ∉ B. So x ∈ A′ and x ∈ B′, that is x ∈ A′ ∩ B′. Hence (A ∪ B)′ ⊆ A′ ∩ B′.
  2. Let x ∈ A′ ∩ B′. Then x ∉ A and x ∉ B, so x ∉ A ∪ B, that is x ∈ (A ∪ B)′. Hence A′ ∩ B′ ⊆ (A ∪ B)′.
  3. Both inclusions hold, so the sets are equal.

You can also prove an identity using the laws above step by step, naming the law at each step.

Exams usually ask: compute unions, intersections, complements and differences; shade regions on a Venn diagram; prove De Morgan's laws or a distributive law by the element method.

Common mistake: "proving" an identity with one example or one Venn diagram. An example only checks it; a proof must work for every element.

Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.

Read

Watch

We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.

All MTH 114 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.