UNIHIVE

Study Hub UNIPORT MTH 114

MTH 114 · Introduction to Sets, Logic and Algebra

Cardinality, power sets and product sets

Counting with the inclusion-exclusion principle and Venn diagrams, power sets and their size, and Cartesian product sets.

Our notes

1 min read

Inclusion-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

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.