Mathematics · Ch 1 — Sets
Union and Intersection of Sets
Union and Intersection of Sets
Given two sets, the two most fundamental ways of combining them are union and
intersection.
Union. The union of two sets and , written , is the set of all
elements that belong to , or to , or to both:
Here "or" is used in the inclusive sense (as always in mathematics) — an element that
belongs to both sets is still only listed once in the union, since a set never
repeats an element.
Intersection. The intersection of and , written , is the set of
all elements that belong to both and simultaneously:
Disjoint sets. If — that is, and share no elements
at all — then and are called disjoint sets.
Worked illustration. Let and . Then
Since , these two sets are not disjoint.
Basic properties. For any sets , , :
- Commutative laws: , and .
- Associative laws: , and similarly for .
- Idempotent laws: , .
- and .
- If , then and (drawing this as a Venn diagram — a smaller circle entirely inside a bigger one — makes both facts immediate: the "union" of the two circles is just the bigger one, and their "overlap" is the whole of the smaller one).
Counting formula (finite sets). For two finite sets,
The subtraction corrects for double-counting: elements in get counted once
in and once again in , so one copy must be removed. …