Sub topic 5
The Two-Set Formula: n(A∪B) = n(A) + n(B) − n(A∩B)
What the formula counts
Assume you already know basic set notation, union, intersection, and complements. Also assume you can solve simple equations and translate phrases such as “both,” “at least one,” and “neither.”
For two sets:
A ∪ Bmeans elements inA, inB, or in both.A ∩ Bmeans elements in bothAandB.n(A)means the number of elements inA.
The two-set inclusion-exclusion formula is:
n(A ∪ B) = n(A) + n(B) − n(A ∩ B)
The subtraction is essential. When n(A) and n(B) are added, every element in the intersection is counted twice. Subtracting n(A ∩ B) once corrects this double count.
flowchart TD
A["n(A)"] --> S["n(A) + n(B)"]
B["n(B)"] --> S
S --> D["Subtract n(A ∩ B)"]
D --> U["n(A ∪ B)"]Reading a two-set Venn diagram
A Venn diagram represents each set as a circle inside a larger universal set. The central overlap is A ∩ B.
| Region | Set statement | Meaning |
|---|---|---|
| A only | `A − B` | In A but not B |
| Overlap | `A ∩ B` | In both A and B |
| B only | `B − A` | In B but not A |
| Inside either circle | `A ∪ B` | In at least one set |
Suppose a class has 80 students. Forty-five study Economics, thirty-five study Mathematics, and 20 study both subjects.
The number studying at least one subject is:
n(E ∪ M) = n(E) + n(M) − n(E ∩ M)
= 45 + 35 − 20 = 60
So, 60 students study at least one subject.
The individual Venn regions provide a useful check:
- Economics only:
45 − 20 = 25 - Mathematics only:
35 − 20 = 15 - Both:
20 - At least one:
25 + 15 + 20 = 60
The phrase “at least one” means the union. It includes the overlap.
Rearranging the formula
CAT questions often give the union and ask for the overlap. Rearrange the formula:
n(A ∩ B) = n(A) + n(B) − n(A ∪ B)
For example, in a survey of 100 people, 60 use service A and 50 use service B. If 15 use neither service, first find the union:
n(A ∪ B) = 100 − 15 = 85
Then find the overlap:
n(A ∩ B) = 60 + 50 − 85 = 25
The remaining regions are:
- A only:
60 − 25 = 35 - B only:
50 − 25 = 25 - Neither:
15
Their total is 35 + 25 + 25 + 15 = 100, matching the survey size.
Common errors and consistency checks
Do not subtract the intersection when the question asks for the total of two separate categories. Subtract it only when finding the union after adding n(A) and n(B).
Check that every Venn region is non-negative. The overlap cannot exceed either individual set:
n(A ∩ B) ≤ min(n(A), n(B))
Also, the union cannot exceed the universal set. If a calculation gives a union larger than the total population, a phrase was translated incorrectly or some data are inconsistent.
Exercise
In a group of 120 candidates, 70 know Excel, 55 know SQL, and 30 know both. How many know neither skill?
Show answer
At least one skill = 70 + 55 − 30 = 95. Therefore, neither = 120 − 95 = 25.