Cardinality of Sets
Counting finite sets and matching their elements
A finite set contains a limited number of members, and its cardinality is the number of distinct elements in that set. Listing order and repeated entries do not change the count. Before counting, decide what constitutes one outcome and whether order matters.
Count each member once
For example, the list {red, blue, red, green} represents a set with three members because the second red is the same element. The union A∪B includes anything in either set, while the intersection A∩B includes members of both.
Adding ∣A∣ and ∣B∣ counts each shared member twice, so for finite sets ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣. If the sets are disjoint, their intersection has size zero and ordinary addition works.
Worked example
Suppose a club lists eight students in a music group and six in a drama group, with three students in both. There are five music-only students, three in both groups, and three drama-only students.
These disjoint parts total 5+3+3=11, which agrees with 8+6−3=11 students in at least one group. The overlap correction removes one duplicate count; it does not remove shared students from the union.
Match elements and form pairs
A bijection pairs every source member with exactly one different target member and reaches every target member. Those two properties are called one-to-one and onto.
For example, matching {a, b, c} with {1, 2, 3} by a to 1, b to 2, and c to 3 proves that the two finite sets have equal cardinality. The labels and numerical values of the elements do not determine the size.
The Cartesian product A×B contains every ordered pair (a,b) with a∈A and b∈B. If A has four choices and B has two, each first-coordinate choice has two second-coordinate choices, giving 4×2=8 pairs. The coordinate roles matter, even when the same value could occur in both sets. If either factor is empty, there are no pairs.
Finite sets A and B have |A|=14, |B|=11, and |A∩B|=4. What is |A∪B|?
Let A={1,2,3,4,5} and B={10,20,30,40,50}. Which rule establishes |A|=|B|?