Counting Elements
Count Members, Then Correct for Structure
Cardinality, written |A|, counts distinct elements. A set has membership rather than slots, so listing the same element repeatedly does not increase its cardinality. Before counting, identify which objects are actually different.
For two finite sets, naive addition counts every shared element twice. Inclusion–exclusion corrects this exactly: |A∪B|=|A|+|B|−|A∩B|. The subtraction is not a penalty; it removes one of the two counts for each shared member.
A complement is always relative to a universe. If A is contained in U, then A and its complement are disjoint regions that cover U, so |Aᶜ|=|U|−|A|. Without a stated universe, complement size is not determined.
Region thinking keeps formulas honest. For two sets, separate the A-only, shared, B-only, and neither regions. A union uses the first three; an intersection uses only shared; exactly-one uses the two exclusive regions.
Check finite counts against bounds. A union cannot be smaller than either input set, cannot exceed their sum, and cannot exceed the universe when one is specified. Those simple checks often expose an uncorrected overlap.
A finite set P has 18 elements, set Q has 14 elements, and their intersection has 5 elements. What is |P ∪ Q|?
A universal set U has 40 elements and B is a subset of U with 13 elements. What is |Bc|, where the complement is taken in U?