How many stu­dents in a class play cricket or foot­ball, if we know how many play each and how many play both? Ques­tions like this are answered by a small set of results about car­di­nal num­bers. Each one comes from look­ing at the regions of a Venn dia­gram and count­ing every ele­ment exactly once. This les­son col­lects the results; the next two lessons use them to solve prob­lems.

The regions of a Venn dia­gram

For two sets AA and BB in a uni­ver­sal set UU, label the num­ber of ele­ments in each region:

Region Num­ber of ele­ments
AA only, that is A−BA - B aa
both, that is A∩BA \cap B bb
BB only, that is B−AB - A cc
nei­ther, that is (A∪B)′(A \cup B)' dd

Then n(A)=a+bn(A) = a + b, n(B)=b+cn(B) = b + c, n(A∪B)=a+b+cn(A \cup B) = a + b + c, and n(U)=a+b+c+dn(U) = a + b + c + d. Every result below can be checked from these four num­bers.

Results for two sets

1. n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B)

Adding n(A)n(A) and n(B)n(B) counts the over­lap twice: (a+b)+(b+c)=a+2b+c(a + b) + (b + c) = a + 2b + c. Sub­tract­ing n(A∩B)=bn(A \cap B) = b once cor­rects this.

2. n(A∪B)=n(A)+n(B)n(A \cup B) = n(A) + n(B) when AA and BB are dis­joint, since then there is no over­lap.

3. n(A−B)=n(A)−n(A∩B)=n(A∪B)−n(B)=n(A∩B′)n(A - B) = n(A) - n(A \cap B) = n(A \cup B) - n(B) = n(A \cap B'). Each of these equals aa.

4. n(B−A)=n(B)−n(A∩B)=n(A∪B)−n(A)=n(B∩A′)n(B - A) = n(B) - n(A \cap B) = n(A \cup B) - n(A) = n(B \cap A'). Each equals cc.

5. n(A Δ B)=n(A−B)+n(B−A)=n(A)+n(B)−2n(A∩B)=n(A∪B)−n(A∩B)n(A \,\Delta\, B) = n(A - B) + n(B - A) = n(A) + n(B) - 2n(A \cap B) = n(A \cup B) - n(A \cap B). Each equals a+ca + c.

6. n(A′)=n(U)−n(A)n(A') = n(U) - n(A), since A′=U−AA' = U - A.

7. n(A′∪B′)=n((A∩B)′)=n(U)−n(A∩B)n(A' \cup B') = n\left((A \cap B)'\right) = n(U) - n(A \cap B), using De Mor­gan's law.

8. n(A′∩B′)=n((A∪B)′)=n(U)−n(A∪B)n(A' \cap B') = n\left((A \cup B)'\right) = n(U) - n(A \cup B), also by De Mor­gan's law. This counts the ele­ments in nei­ther set.

Exam­ple 1

If n(U)=700n(U) = 700, n(A)=200n(A) = 200, n(B)=300n(B) = 300 and n(A∩B)=100n(A \cap B) = 100, find n(A′∩B′)n(A' \cap B').

n(A′∩B′)=n((A∪B)′)=n(U)−n(A∪B)=n(U)−[n(A)+n(B)−n(A∩B)]=700−(200+300−100)=700−400=300\begin{aligned} n(A' \cap B') &= n\left((A \cup B)'\right) \\ &= n(U) - n(A \cup B) \\ &= n(U) - \left[n(A) + n(B) - n(A \cap B)\right] \\ &= 700 - (200 + 300 - 100) \\ &= 700 - 400 = 300 \end{aligned}

Exam­ple 2

If n(A)=50n(A) = 50, n(B)=20n(B) = 20 and n(A∩B)=10n(A \cap B) = 10, find n(A Δ B)n(A \,\Delta\, B).

n(A Δ B)=n(A−B)+n(B−A)=[n(A)−n(A∩B)]+[n(B)−n(A∩B)]=n(A)+n(B)−2n(A∩B)n(A \,\Delta\, B) = n(A - B) + n(B - A) = \left[n(A) - n(A \cap B)\right] + \left[n(B) - n(A \cap B)\right] = n(A) + n(B) - 2n(A \cap B)

So n(A Δ B)=50+20−2×10=50n(A \,\Delta\, B) = 50 + 20 - 2 \times 10 = 50.

How large can a union or inter­sec­tion be?

9. n(A∩B)≤n(A)n(A \cap B) \le n(A) and n(A∩B)≤n(B)n(A \cap B) \le n(B), because A∩BA \cap B is a sub­set of both. So n(A∩B)n(A \cap B) is at most the smaller of n(A)n(A) and n(B)n(B).

10. Let n(A)=pn(A) = p and n(B)=qn(B) = q. Then:

Quan­tity Small­est pos­si­ble Largest pos­si­ble
n(A∪B)n(A \cup B) max⁡{p,q}\max\{p, q\} p+qp + q
n(A∩B)n(A \cap B) 00 min⁡{p,q}\min\{p, q\}

The union is small­est when the smaller set lies inside the larger one, and largest when the sets are dis­joint. The inter­sec­tion is largest when one set lies inside the other, and small­est (0) when they are dis­joint. For instance, with p=2p = 2 and q=3q = 3:

AA BB A∩BA \cap B A∪BA \cup B
{1,2}\{1, 2\} {1,2,3}\{1, 2, 3\} {1,2}\{1, 2\}, 2 ele­ments {1,2,3}\{1, 2, 3\}, 3 ele­ments
{1,2}\{1, 2\} {2,3,4}\{2, 3, 4\} {2}\{2\}, 1 ele­ment {1,2,3,4}\{1, 2, 3, 4\}, 4 ele­ments
{1,2}\{1, 2\} {3,4,5}\{3, 4, 5\} ϕ\phi, 0 ele­ments {1,2,3,4,5}\{1, 2, 3, 4, 5\}, 5 ele­ments

Exam­ple 3

Sets AA and BB have 3 and 6 ele­ments. What is the least num­ber of ele­ments in A∪BA \cup B? The great­est?

The least is max⁡{3,6}=6\max\{3, 6\} = 6, when A⊆BA \subseteq B. The great­est is 3+6=93 + 6 = 9, when AA and BB are dis­joint.

Results for three sets

11. n(A∪B∪C)=n(A)+n(B)+n(C)−n(A∩B)−n(B∩C)−n(C∩A)+n(A∩B∩C)n(A \cup B \cup C) = n(A) + n(B) + n(C) - n(A \cap B) - n(B \cap C) - n(C \cap A) + n(A \cap B \cap C)

Adding the three sets counts the pair­wise over­laps twice; sub­tract­ing the three pair­wise inter­sec­tions cor­rects that, but the cen­tral region A∩B∩CA \cap B \cap C has now been added three times and sub­tracted three times, so it is added back once.

Label the seven regions of the three-cir­cle dia­gram: x1x_1, x5x_5, x7x_7 for "only AA", "only BB", "only CC"; x2x_2, x6x_6, x4x_4 for "AA and BB only", "BB and CC only", "AA and CC only"; and x3x_3 for the cen­tre, in all three.

12. Ele­ments in exactly one of the sets:

n(A)+n(B)+n(C)−2[n(A∩B)+n(B∩C)+n(A∩C)]+3n(A∩B∩C)n(A) + n(B) + n(C) - 2\left[n(A \cap B) + n(B \cap C) + n(A \cap C)\right] + 3n(A \cap B \cap C)

Check with the regions: n(A)+n(B)+n(C)n(A) + n(B) + n(C) counts each "only" region once, each "two only" region twice, and the cen­tre three times. Sub­tract­ing twice the pair­wise inter­sec­tions removes each "two only" region twice and the cen­tre six times. Adding 3x33x_3 restores the cen­tre to zero. What is left is x1+x5+x7x_1 + x_5 + x_7.

13. Ele­ments in exactly two of the sets:

n(A∩B)+n(B∩C)+n(C∩A)−3n(A∩B∩C)n(A \cap B) + n(B \cap C) + n(C \cap A) - 3n(A \cap B \cap C)

Each pair­wise inter­sec­tion is a "two only" region plus the cen­tre, so the three of them add up to the three "two only" regions plus three times the cen­tre.

Exam­ple 4

Given n(A)=20n(A) = 20, n(B)=25n(B) = 25, n(C)=30n(C) = 30, n(A∩B)=8n(A \cap B) = 8, n(B∩C)=10n(B \cap C) = 10, n(A∩C)=7n(A \cap C) = 7 and n(A∩B∩C)=3n(A \cap B \cap C) = 3, find n(A∪B∪C)n(A \cup B \cup C) and the num­bers of ele­ments in exactly one and in exactly two of the sets.

n(A∪B∪C)=75−25+3=53n(A \cup B \cup C) = 75 - 25 + 3 = 53.

Exactly two: 25−3×3=1625 - 3 \times 3 = 16.

Exactly one: 75−2×25+3×3=3475 - 2 \times 25 + 3 \times 3 = 34.

Check: exactly one, exactly two and all three together give 34+16+3=5334 + 16 + 3 = 53, which is n(A∪B∪C)n(A \cup B \cup C).

Prac­tice

  1. If n(A)=12n(A) = 12, n(B)=17n(B) = 17 and n(A∪B)=21n(A \cup B) = 21, find n(A∩B)n(A \cap B).
  2. If AA and BB are dis­joint, with n(A)=15n(A) = 15 and n(B)=10n(B) = 10, find n(A∪B)n(A \cup B).
  3. If n(U)=50n(U) = 50, n(A)=20n(A) = 20, n(B)=25n(B) = 25 and n(A∩B)=8n(A \cap B) = 8, find n(A′∩B′)n(A' \cap B') and n(A′∪B′)n(A' \cup B').
  4. If n(A)=30n(A) = 30, n(B)=18n(B) = 18 and n(A∩B)=6n(A \cap B) = 6, find n(A−B)n(A - B), n(B−A)n(B - A) and n(A Δ B)n(A \,\Delta\, B).
  5. If n(A)=8n(A) = 8 and n(B)=5n(B) = 5, find the least and great­est pos­si­ble val­ues of n(A∪B)n(A \cup B) and of n(A∩B)n(A \cap B).
  6. If n(A)=n(B)=n(C)=10n(A) = n(B) = n(C) = 10, each pair­wise inter­sec­tion has 4 ele­ments and n(A∩B∩C)=2n(A \cap B \cap C) = 2, find n(A∪B∪C)n(A \cup B \cup C).
  7. For the sets in ques­tion 6, how many ele­ments are in exactly one set, and how many in exactly two?
  8. If n(U)=40n(U) = 40 and n(A)=15n(A) = 15, find n(A′)n(A').
  9. If n(A∪B)=40n(A \cup B) = 40, n(A)=25n(A) = 25 and n(B)=22n(B) = 22, find n(A Δ B)n(A \,\Delta\, B).
  10. If n(U)=60n(U) = 60, n(A′)=35n(A') = 35, n(B′)=30n(B') = 30 and n(A∩B)=10n(A \cap B) = 10, find n((A∪B)′)n\left((A \cup B)'\right).

Answers

Show answers
  1. 12+17−21=812 + 17 - 21 = 8
  2. 2525
  3. n(A∪B)=37n(A \cup B) = 37, so n(A′∩B′)=50−37=13n(A' \cap B') = 50 - 37 = 13; n(A′∪B′)=50−8=42n(A' \cup B') = 50 - 8 = 42.
  4. n(A−B)=24n(A - B) = 24, n(B−A)=12n(B - A) = 12, n(A Δ B)=36n(A \,\Delta\, B) = 36.
  5. n(A∪B)n(A \cup B): least 8, great­est 13. n(A∩B)n(A \cap B): least 0, great­est 5.
  6. 30−12+2=2030 - 12 + 2 = 20
  7. Exactly two: 12−6=612 - 6 = 6. Exactly one: 30−24+6=1230 - 24 + 6 = 12. (Check: 12+6+2=2012 + 6 + 2 = 20.)
  8. 40−15=2540 - 15 = 25
  9. n(A∩B)=25+22−40=7n(A \cap B) = 25 + 22 - 40 = 7, so n(A Δ B)=40−7=33n(A \,\Delta\, B) = 40 - 7 = 33.
  10. n(A)=25n(A) = 25 and n(B)=30n(B) = 30, so n(A∪B)=25+30−10=45n(A \cup B) = 25 + 30 - 10 = 45 and n((A∪B)′)=60−45=15n\left((A \cup B)'\right) = 60 - 45 = 15.