This lesson explains how to solve two-set word problems using the inclusion-exclusion principle. You will learn to find unions, intersections, and 'neither' counts, with fully worked examples and common pitfalls.
Set operations are fundamental in mathematics and appear in everyday reasoning. The inclusion-exclusion principle lets you count elements in overlapping sets without double-counting. This lesson covers the key formulas for two sets, their derivations, and how to apply them to word problems. You will also learn to avoid common mistakes and use Venn diagrams as a visual aid.
| Given | Find | Formula |
|---|---|---|
| n(A), n(B), n(A∩B) | n(A∪B) | n(A) + n(B) - n(A∩B) |
| Total, n(A), n(B), n(A∩B) | n(neither) | Total - [n(A) + n(B) - n(A∩B)] |
| Total, n(A), n(B), n(neither) | n(A∩B) | n(A) + n(B) + n(neither) - Total |
| n(A), n(B), n(A∪B) | n(A∩B) | n(A) + n(B) - n(A∪B) |
A set is a collection of distinct objects. The universal set (often denoted U) contains all elements under consideration. For two sets A and B, we define: n(A) = number of elements in A, n(B) = number in B, n(A∩B) = number in both (intersection), n(A∪B) = number in either A or B or both (union). A Venn diagram uses overlapping circles inside a rectangle (the universal set) to show these relationships. The overlap region represents A∩B, while the combined area of the circles represents A∪B. The region outside both circles represents 'neither A nor B'.
The number of elements in the union of two sets is given by n(A∪B) = n(A) + n(B) - n(A∩B). This formula corrects for double-counting: when we add n(A) and n(B), elements in the intersection are counted twice, so we subtract n(A∩B) once. This principle is the foundation for all two-set counting problems. It works for any finite sets.
In many word problems, you are given the total number of elements in the universal set and asked how many are in neither A nor B. Since the universal set is partitioned into those in A∪B and those outside it, we have: Total = n(A∪B) + n(neither). Therefore, n(neither) = Total - n(A∪B). Substituting the inclusion-exclusion formula gives n(neither) = Total - [n(A) + n(B) - n(A∩B)]. This is the key formula for 'neither' problems.
Sometimes you know the total, the sizes of A and B, and the number in neither, but you need the intersection. Starting from Total = n(A∪B) + n(neither) and n(A∪B) = n(A) + n(B) - n(A∩B), we get: Total = n(A) + n(B) - n(A∩B) + n(neither). Solving for n(A∩B): n(A∩B) = n(A) + n(B) + n(neither) - Total. This rearranged form is very useful when the overlap is the unknown.
Choose the formula based on what is given and what is asked. If you need the union and know both sets and their intersection, use n(A∪B) = n(A)+n(B)-n(A∩B). If you need 'neither' and know total, both sets, and intersection, use n(neither) = Total - [n(A)+n(B)-n(A∩B)]. If you need the intersection and know total, both sets, and 'neither', use n(A∩B) = n(A)+n(B)+n(neither)-Total. Always identify the knowns and the unknown first.
The inclusion-exclusion principle can be proven by partitioning the union into three disjoint regions: elements only in A, only in B, and in both. Let x = n(only A), y = n(only B), z = n(A∩B). Then n(A) = x + z, n(B) = y + z, and n(A∪B) = x + y + z. Adding n(A) and n(B) gives x + y + 2z, which counts the intersection twice. Subtracting z once gives x + y + z = n(A∪B). Thus n(A∪B) = n(A) + n(B) - n(A∩B). This proof shows why the formula works for any finite sets.
For two-set problems, you can often solve by filling in a Venn diagram. Start with the intersection, then find the 'only A' and 'only B' counts by subtracting the intersection from each set size. The sum of these three regions is the union. The 'neither' count is total minus union. This method is equivalent to the formulas but can be faster and less error-prone. Another shortcut: if you know n(A), n(B), and n(A∪B), then n(A∩B) = n(A)+n(B)-n(A∪B). This is just the inclusion-exclusion formula rearranged.
A frequent mistake is to add n(A) and n(B) without subtracting the intersection, leading to an overcount. Another is to confuse 'neither' with 'not in A or not in B' (which is the complement of the intersection). Also, ensure that the intersection is not larger than either set. When using the formula for intersection given 'neither', check that the result is non-negative. Always verify that the sum of all regions equals the total. Drawing a Venn diagram helps catch these errors.
Identify: Total = 50, n(C) = 30, n(F) = 25, n(C∩F) = 10.
Use n(neither) = Total - [n(C) + n(F) - n(C∩F)]. Compute: n(C∪F) = 30 + 25 - 10 = 45. Then n(neither) = 50 - 45 = 5.
Total = 60, n(C) = 40, n(F) = 30, n(C∩F) = 20. n(C∪F) = 40 + 30 - 20 = 50. n(neither) = 60 - 50 = 10.
Total = 80, n(M) = 50, n(S) = 40, n(M∩S) = 30. n(M∪S) = 50 + 40 - 30 = 60. Failed in both = neither = 80 - 60 = 20.
Total = 60, n(C) = 40, n(F) = 30, n(neither) = 10.
Use n(C∩F) = n(C) + n(F) + n(neither) - Total = 40 + 30 + 10 - 60 = 20.
List elements common to both sets. A has 1,2,3; B has 2,3,4. Common elements are 2 and 3.
Total = 100, n(T) = 60, n(C) = 50, n(T∩C) = 30. n(T∪C) = 60 + 50 - 30 = 80. n(neither) = 100 - 80 = 20.
Total = 40, n(C) = 25, n(F) = 20, n(C∩F) = 10. n(C∪F) = 25 + 20 - 10 = 35. n(neither) = 40 - 35 = 5.
It is a counting technique that finds the size of the union of two sets by adding their individual sizes and subtracting the size of their intersection. This corrects for double-counting elements that belong to both sets.
Subtract the union from the total: n(neither) = Total - n(A∪B). If the union is not given, first compute it using n(A∪B) = n(A) + n(B) - n(A∩B).
Yes, a Venn diagram is often easier. Fill in the intersection first, then compute 'only A' and 'only B' by subtracting the intersection from each set size. The sum of these three regions is the union, and the remainder to the total is 'neither'.
That is impossible for valid data. The intersection cannot exceed the size of either set. If your calculation gives such a result, recheck the given numbers or your arithmetic.
Use the rearranged formula: n(A∩B) = n(A) + n(B) + n(neither) - Total. This comes from combining Total = n(A∪B) + n(neither) with the inclusion-exclusion principle.
'Neither' means outside both sets, i.e., not in A and not in B. 'Not in A or not in B' is the complement of the intersection, which includes elements only in A, only in B, and neither. They are different regions.