KS Maths
Year 10 Extended · Unit 4 Sets, Venn diagrams and conditional probability · Lesson 2 of 6

Counting a union of three sets

How do you count each person exactly once?

Three overlapping sets need a rule for the size of their union. This lesson builds the rule step by step and proves that it counts every element exactly once.

Statistics and ProbabilityNo calculator

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

set
A group of things, like numbers, written in curly brackets.The set of even numbers.
union
Everything in either set or both.The union joins two sets together.
element
One thing in a set.3 is an element of the set of odd numbers.
exact
Not rounded. Completely correct.The exact answer is one third, not 0.33.
add
Put numbers together to find the total.Add 3 and 4 to get 7.
region
An area on a graph or diagram.Shade the region above the line.
at least
This number or more.At least 5 means 5 or more.
twice
Two times as much.Twice 4 is 8.
survey
Asking many people the same questions to collect data.We did a survey of class favourites.
subtract
Take one number away from another.Subtract 3 from 10 to get 7.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Three quick ones from earlier work. Try each in your head or on paper before you open the answer.

  1. From lesson 1: simplify (A ∪ B)′ using De Morgan's law.
    AnswerA′ ∩ B′. Break the line and flip the sign.
  2. From Year 10 Standard, Unit 4, lesson 2: n(A) = 17, n(B) = 12 and n(A ∩ B) = 5. Find n(A ∪ B).
    Answer24. 17 + 12 − 5: the 5 in both were counted twice.
  3. From Year 8, Unit 2, lesson 2: how many different pairs can be made from the three letters X, Y, Z?
    Answer3: XY, XZ and YZ.
Words used in this lesson
union
all elements in at least one of the sets. For example: club members in robotics or choir or both.
intersection
elements in all the sets named. For example: members of both robotics and choir.
at least one
one or more of the sets. For example: a student in one, two or three clubs.
exactly two
in two of the sets and not in the third. For example: in robotics and choir only.
multiplicity
how many times an element has been counted so far. For example: an element counted twice so far has multiplicity 2.
pairwise disjoint
no two of the sets share an element. For example: three clubs with no student in two of them.

Three clubs, one announcement

At a school in Dhaka there are three clubs: robotics, debating and choir. Each club secretary reports the number of members. The head teacher adds the three numbers and announces that this many students belong to at least one club. The secretaries know that some students belong to two clubs, and a few belong to all three.

Predict first: is the head teacher's total too high, too low, or right? If it is wrong, what must be taken off? Test your prediction on the figure, one step at a time.

UABC912×17×15×210×14×26×23×3Step1 add singlesRunning total68Direct count47Counted once3 of 7
68running total
47direct count of the union
3 of 7regions counted once

Survey 1, step 1 (add the three set totals): the running total is 68 and the union holds 47. 3 of the 7 regions are counted exactly once.

Show me the steps
  1. Survey 1, step 1: n(A) + n(B) + n(C) = 24 + 21 + 23 = 68. The union holds only 47, because the three pair regions are counted twice and the centre three times. Only 3 of the 7 regions are counted once.
  2. Step 2, take off the three pair totals 8, 7 and 9, which sum to 24: 68 − 24 = 44. The pair-only regions are now counted once, but the centre was added three times and taken off three times, so it is counted 0 times and the total is 3 short of 47.
  3. Step 3, add the triple: 44 + 3 = 47. Every region is counted exactly once, 7 of 7, and the total equals the direct count.
  4. Choose survey 4, where no element is in all three sets. Step 1 gives 7 + 7 + 14 = 28 and step 2 gives 28 − 5 = 23, which already equals the direct count. Step 3 adds 0, so nothing changes.

The three-set rule. n(A ∪ B ∪ C) = n(A) + n(B) + n(C) − n(A ∩ B) − n(A ∩ C) − n(B ∩ C) + n(A ∩ B ∩ C).

Why it works. Count how many times each kind of element is counted. In exactly one set: 1 time. In exactly two sets: 2 − 1 = 1 time. In all three: 3 − 3 + 1 = 1 time. Every element is counted once, so the total is the union.

Elements in exactly two sets = (sum of the three pair totals) − 3 × n(A ∩ B ∩ C), because each pair total includes the centre once.

Read what Keith says

The three-set rule adds the three sets, subtracts the three pair overlaps, and adds back the centre. Why does that work? Count how many times each element is counted. In exactly one set, once. In exactly two sets, two minus one, which is once. In all three, three minus three plus one, which is once. Every element is counted once, so the total is the union. Try checking one region of the diagram that way.

Subtracting the pairs is not enough. Take A = {1, 2, 3}, B = {3, 4} and C = {3, 5}. n(A) + n(B) + n(C) = 3 + 2 + 2 = 7, and each pair intersection is {3}, so the pairs sum to 3. Then 7 − 3 = 4, but the union {1, 2, 3, 4, 5} has 5 elements. The element 3 was added three times and taken off three times, so it vanished and must be put back once.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Worked examples
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 10 revision pack, $19BuyPlan $59