MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
2 min readThe 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
| Law | Form |
|---|---|
| Commutative | A ∪ B = B ∪ A; A ∩ B = B ∩ A |
| Associative | (A ∪ B) ∪ C = A ∪ (B ∪ C), same for ∩ |
| Distributive | A ∩ (B ∪ C) = (A ∩ B) ∪ (A ∩ C); A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) |
| Identity | A ∪ ∅ = A; A ∩ U = A |
| Complement | A ∪ A′ = U; A ∩ A′ = ∅; (A′)′ = A |
| Idempotent | A ∪ 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′.
- 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′.
- Let x ∈ A′ ∩ B′. Then x ∉ A and x ∉ B, so x ∉ A ∪ B, that is x ∈ (A ∪ B)′. Hence A′ ∩ B′ ⊆ (A ∪ B)′.
- 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
-
Best pick Contemporary Mathematics, 1.4 Set Operations with Two Sets
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 1.4 Set Operations with Two Sets, CC BY-NC-SA 4.0 · licence
-
NOUN MTH 101: Elementary Mathematics I
NOUN course book (PDF, about 1.6 MB). Module 1 is sets: notation, set operations, Venn diagrams and sets of numbers; module 2 has mathematical induction. NOUN publishes this one under CC BY-SA 4.0.
(opens nou.edu.ng in a new tab)
National Open University of Nigeria, NOUN MTH 101: Elementary Mathematics I · licence
-
Levin, Discrete Mathematics: An Open Introduction, Section 5.1 Sets
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 5.1 Sets, CC BY-NC-SA 4.0 · licence
-
De Morgan's laws
(opens en.wikipedia.org in a new tab)
Wikipedia, De Morgan's laws, CC BY-SA 4.0 · licence
-
Contemporary Mathematics, 1.5 Set Operations with Three Sets
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 1.5 Set Operations with Three Sets, CC BY-NC-SA 4.0 · licence
-
Hammack, Book of Proof, 3rd edition (whole free textbook)
A free proof textbook used in many universities (PDF, about 1.8 MB): sets, logic, direct and contrapositive proof, contradiction, induction, relations, functions, cardinality.
(opens richardhammack.github.io in a new tab)
Hammack, Book of Proof, CC BY-NC-ND 4.0 · licence
-
OpenStax, Contemporary Mathematics (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Contemporary Mathematics (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Intersection of Sets, Union of Sets and Venn Diagrams
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
How to do a PROOF in SET THEORY - Discrete Mathematics
17 min · ≈ 77 MB · about ₦43
(opens youtube.com in a new tab)
-
Lecture 1: Sets, Set Operations and Mathematical Induction
1 h 14 min · ≈ 333 MB · about ₦187
(opens youtube.com in a new tab)
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.