Sets: formulas
Try questions on this topic ▶Number of elements in the union of two sets
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
Also: n(A ∩ B) = n(A) + n(B) − n(A ∪ B) · n(U) = n(A ∪ B) + n(neither)
- n(A)
- number of elements in set A
- n(A ∪ B)
- number in A or B or both
- n(A ∩ B)
- number in both A and B
- n(U)
- total number in the universal set
When a question gives how many are in each of two groups, how many are in both or in neither, and asks for a missing number.
Elements in one set only
n(A only) = n(A) − n(A ∩ B)
Also: Exactly one of A and B = n(A ∪ B) − n(A ∩ B)
- n(A only)
- number in A but not in B
- n(A ∩ B)
- number in both
When a question asks how many are in only one group, or in exactly one of two groups.
Union of three sets
n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(A ∩ C) − n(B ∩ C) + n(A ∩ B ∩ C)
Also: n(none) = n(U) − n(A ∪ B ∪ C)
- n(A ∩ B ∩ C)
- number in all three sets
- n(U)
- total number in the universal set
When a problem has three overlapping groups (best drawn as a three-circle Venn diagram).
Number of subsets
Number of subsets = 2n
Also: Number of proper subsets = 2n − 1 · Number of elements in the power set = 2n
- n
- number of elements in the set
When a question asks how many subsets, proper subsets or elements of the power set a set has.
Counting whole numbers in a range
Number of integers from a to b inclusive = b − a + 1
Also: Leave out an end point when the sign is < instead of ≤
- a
- smallest integer included
- b
- largest integer included
When a set or inequality is given as a range and you must count the integers in it.