MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
1 min readInclusion-exclusion
For two finite sets: |A ∪ B| = |A| + |B| − |A ∩ B| (the overlap was counted twice).
For three: |A ∪ B ∪ C| = |A| + |B| + |C| − |A ∩ B| − |A ∩ C| − |B ∩ C| + |A ∩ B ∩ C|.
Worked example (two sets). In a class of 120, 70 take MTH, 50 take PHY and 30 take both. Either: 70 + 50 − 30 = 90. Neither: 120 − 90 = 30. MTH only: 70 − 30 = 40.
Worked example (three sets). 100 students: 45 play football (F), 40 basketball (B), 30 volleyball (V); 15 play F and B, 10 F and V, 12 B and V, and 5 play all three.
- At least one: 45 + 40 + 30 − 15 − 10 − 12 + 5 = 83; none: 100 − 83 = 17.
- Fill the Venn diagram from the centre out: all three 5; F and B only 15 − 5 = 10; F and V only 10 − 5 = 5; B and V only 12 − 5 = 7.
- Football only: 45 − 10 − 5 − 5 = 25; basketball only: 40 − 10 − 7 − 5 = 18; volleyball only: 30 − 5 − 7 − 5 = 13.
- Check: 25 + 18 + 13 + 10 + 5 + 7 + 5 = 83. ✓
Power set
The power set P(A) is the set of all subsets of A. If |A| = n, then |P(A)| = 2ⁿ (each element is either in or out of a subset).
Example. A = {a, b, c}: P(A) = {∅, {a}, {b}, {c}, {a, b}, {a, c}, {b, c}, {a, b, c}}: 2³ = 8 subsets. The number of subsets with exactly r elements is nCr: here 1, 3, 3, 1.
Cartesian (product) sets
A × B = {(a, b) : a ∈ A, b ∈ B}, the set of ordered pairs. |A × B| = |A| × |B|.
Example. A = {1, 2}, B = {x, y, z}: A × B = {(1, x), (1, y), (1, z), (2, x), (2, y), (2, z)}, 6 pairs. B × A has the pairs the other way round, so A × B ≠ B × A in general. R × R = R² is the coordinate plane.
Exams usually ask: a two- or three-set word problem with "only", "neither" and "at least one"; list P(A) and state its size; write A × B.
Common mistake: in three-set problems, putting the "F and B" figure (15) straight into the F-and-B-only region. Subtract the centre first.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick 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
-
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
-
Inclusion–exclusion principle
(opens en.wikipedia.org in a new tab)
Wikipedia, Inclusion–exclusion principle, CC BY-SA 4.0 · licence
-
Power set
(opens en.wikipedia.org in a new tab)
Wikipedia, Power set, CC BY-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
Watch
-
3.5.3 Inclusion-Exclusion Example: Video
13 min · ≈ 59 MB · about ₦33
(opens youtube.com in a new tab)
-
What is a Power Set? | Set Theory, Subsets, Cardinality
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
Cartesian Product of Two Sets A x B
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
SET THEOREM 1: Definition, Set Notation, Types of Sets, Subset, Superset, Power Set, Cardinality.
49 min · ≈ 221 MB · about ₦124
(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.