Skip to content
M
hscscience Maths Ext 1 · Y11
0/100daily goal
0
0
0 due
0
L1 · 0 XP
KJ
Your weak spots
Insights load after your first practice round.
Module 4 · L12 of 15 ~35 min ⚡ +95 XP available

Principle of Inclusion–Exclusion

When you count how many people study Maths or Physics, you can't just add — those who study both get counted twice. The Principle of Inclusion–Exclusion is the systematic fix: add individual sets, subtract pairwise overlaps, add back triple overlaps, and so on. It's the engine behind Venn diagrams and a surprisingly powerful combinatorial tool.

Today's challenge — In a class of 30, 18 study Maths and 15 study Physics. A student says "so at least $18 + 15 - 30 = 3$ study both." Another says "at most $\min(18,15) = 15$ study both." Who is right? Can you figure out how many study at least one if you know exactly 8 study both? Work it out before we start.
0/5QUESTS
01
Recall — your gut answer first
+5 XP warm-up

In a class of 30 students, 18 study Maths and 15 study Physics. Without using any formula — do you think it's possible that all 15 Physics students also study Maths? Is it possible that none of them do? If you're told exactly 8 study both, how many study at least one subject? Write your reasoning.

auto-saved
02
The two moves
+5 XP to read

Every inclusion–exclusion problem asks you to do one of two things: find the union given the individual sets and their overlaps, or find an intersection or missing piece given the union and other information.

The entire lesson turns on one idea: when you add two sets, you double-count their overlap. So you subtract it once. For three sets, you over-subtract the triple overlap, so you add it back. The formula alternates: add singles, subtract pairs, add triples, subtract quadruples, and so on.

A B |A∪B| = |A|+|B|−|A∩B| |A∪B∪C| = singles−pairs+triple
$|A \cup B| = |A| + |B| - |A \cap B|$
Two-set rule
$|A \cup B| = |A| + |B| - |A \cap B|$. Always subtract the intersection — it was counted twice when you added $|A|$ and $|B|$.
Three-set rule
$|A \cup B \cup C| = |A|+|B|+|C| - |A\cap B| - |B\cap C| - |A\cap C| + |A\cap B\cap C|$. Add back the triple — it was subtracted one time too many.
Venn diagram check
Always draw a Venn diagram. Fill regions from the inside out (triple overlap first, then pairwise, then singles-only). Check your total equals the given universe size.
03
What you'll master
Know

Key facts

  • $|A \cup B| = |A| + |B| - |A \cap B|$
  • $|A \cup B \cup C| = |A|+|B|+|C| - |A\cap B| - |B\cap C| - |A\cap C| + |A\cap B\cap C|$
  • Union = OR; intersection = AND; neither = outside all sets
Understand

Concepts

  • Why adding two sets double-counts the intersection
  • Why the triple intersection is subtracted once too many in the three-set formula and must be added back
  • How Venn diagrams make inclusion–exclusion calculations visual and error-free
Can do

Skills

  • Apply the two-set formula to solve word problems
  • Apply the three-set formula with all pairwise and triple intersections
  • Draw and label Venn diagrams to verify results
04
Key terms
Union $A \cup B$Elements in $A$ OR $B$ (or both). Always $\geq$ each individual set.
Intersection $A \cap B$Elements in both $A$ AND $B$. Always $\leq$ each individual set.
Inclusion–ExclusionThe principle that corrects for double-counting when combining overlapping sets.
Pairwise intersection$|A\cap B|$, $|B\cap C|$, or $|A\cap C|$ — the overlap of exactly two sets (may include the triple).
Triple intersection$|A\cap B\cap C|$ — elements in all three sets simultaneously. Must be added back in the three-set formula.
Complement$|A^c| = |U| - |A|$ where $|U|$ is the universal set (total). "Neither" = $|U| - |A \cup B|$.
05
Inclusion–exclusion for two sets
core concept

Suppose you want to count how many elements are in $A$ or $B$ (at least one of the two sets). If you simply add $|A| + |B|$, every element in both sets gets counted twice. So you subtract the overlap once:

$$|A \cup B| = |A| + |B| - |A \cap B|$$

Rearranging, you can also find the intersection if you know the union: $|A \cap B| = |A| + |B| - |A \cup B|$. And the number in neither set is $|U| - |A \cup B|$.

U A B A ∩ B counted twice — subtract once A only B only neither |A ∪ B| = |A| + |B| − |A ∩ B|

The overlap region $A \cap B$ is subtracted once so it is counted exactly once in the union.

Real-world example. Netflix reports 180 million subscribers watch drama and 140 million watch comedy. Can you conclude 320 million watch at least one? No — some watch both. If 60 million watch both, then $|D \cup C| = 180 + 140 - 60 = 260$ million. The overlap matters enormously.

|A B| = |A| + |B| - |A B|. Always subtract the intersection.; Rearrangement: |A B| = |A| + |B| - |A B| (find overlap if you know the rest)

Pause — copy the two-set inclusion-exclusion formula into your book: $|A \cup B| = |A| + |B| - |A \cap B|$; rearrangement: $|A \cap B| = |A| + |B| - |A \cup B|$.

Quick check: In a class of 30 students, 18 study Maths, 15 study Physics, and 8 study both. How many study at least one of these subjects?

06
Inclusion–exclusion for three sets
core concept

We just saw that $|A \cup B| = |A| + |B| - |A \cap B|$ corrects for the double-counting of elements in both sets. That raises a question: when three sets overlap, elements in all three are counted in three different pairwise intersections — how does inclusion-exclusion extend to remove all excess counting? This card answers it → $|A \cup B \cup C| = |A|+|B|+|C| - |A \cap B| - |B \cap C| - |A \cap C| + |A \cap B \cap C|$.

For three overlapping sets, the double-counting problem is more complex. Each element in exactly two sets gets counted twice (once for each set it belongs to); each element in all three sets gets counted three times. Applying inclusion–exclusion carefully:

$$|A \cup B \cup C| = |A| + |B| + |C|$$
$$- |A \cap B| - |B \cap C| - |A \cap C|$$
$$+ |A \cap B \cap C|$$

Why add back $|A \cap B \cap C|$? When you subtract the three pairwise intersections, you subtract the triple intersection three times — once in each pairwise term. But it should only be subtracted twice (since it was added three times). Net: subtract $3 - 3 + 1 = 1$ time total. The triple intersection ends up counted exactly once. ✓

Memory aid: singles (add), pairs (subtract), triple (add). Alternating signs, starting positive.

|A B C| = |A|+|B|+|C| - |A B| - |B C| - |A C| + |A B C|; Each element in exactly one set is counted 1-0+0=1 ✓

Pause — copy the three-set inclusion-exclusion formula into your book: $|A \cup B \cup C| = |A|+|B|+|C| - |A \cap B| - |B \cap C| - |A \cap C| + |A \cap B \cap C|$.

Did you get this? True or false: in the three-set inclusion–exclusion formula, $|A \cap B \cap C|$ is added (not subtracted).

PROBLEM 1 · TWO SETS

In a class of 30 students, 18 study Maths ($M$), 15 study Physics ($P$), and 8 study both. How many study at least one of these subjects? How many study neither?

1
$|M \cup P| = |M| + |P| - |M \cap P| = 18 + 15 - 8 = 25$
Apply the two-set formula. The 8 students who study both are counted once in $|M|$ and once in $|P|$, so we subtract them once.
PROBLEM 2 · FIND THE INTERSECTION

In a survey, 40 people like tea, 35 like coffee, and 55 like at least one of the two. How many like both? How many like neither if the survey had 60 people?

1
Rearrange: $|T \cap C| = |T| + |C| - |T \cup C| = 40 + 35 - 55 = 20$
We know the union (55) but not the intersection. Rearrange the formula to solve for the overlap: $|A\cap B| = |A|+|B|-|A\cup B|$.
PROBLEM 3 · THREE SETS

Find $|A \cup B \cup C|$ if $|A|=20$, $|B|=25$, $|C|=18$, $|A \cap B|=8$, $|B \cap C|=6$, $|A \cap C|=5$, $|A \cap B \cap C|=2$.

1
Singles: $|A|+|B|+|C| = 20+25+18 = 63$
Start by summing all three individual set sizes.

Fill the gap: If $|A|=30$, $|B|=40$, and $|A\cap B|=12$, then $|A\cup B| = $ .

Trap 01
Forgetting to add back the triple intersection
For three sets, many students write $|A|+|B|+|C|-|A\cap B|-|B\cap C|-|A\cap C|$ and stop. But $|A\cap B\cap C|$ has been subtracted three times (once in each pair) when it should be subtracted only twice. Always add it back. Missing it costs marks every time.
Trap 02
Confusing union and intersection in words
"At least one" means union ($\cup$); "both" or "all three" means intersection ($\cap$). Under exam pressure, students swap these. Read each word question twice: "how many own a car OR a bike" is a union; "how many own a car AND a bike" is an intersection.
Trap 03
Using pairwise totals instead of exclusive regions
When filling a Venn diagram, note that $|A\cap B|$ includes the triple overlap. The region of A and B but NOT C is $|A\cap B| - |A\cap B\cap C|$. Forgetting to subtract the triple from each pairwise count leads to a total that exceeds $|U|$.

Did you get this? True or false: for three sets, the number of elements in at least one set equals $|A|+|B|+|C|-|A\cap B|-|B\cap C|-|A\cap C|$ (with no other correction needed).

Work mode · how are you completing this lesson?
1

In a survey, 40 people like tea, 35 like coffee, and 20 like both. How many like at least one? How many like neither if 60 were surveyed?

2

In a group of 50 people, 30 speak French and 25 speak Spanish. If 45 speak at least one language, how many speak both?

3

Find $|A \cup B \cup C|$ if $|A|=20$, $|B|=25$, $|C|=18$, $|A \cap B|=8$, $|B \cap C|=6$, $|A \cap C|=5$, $|A \cap B \cap C|=2$.

4

How many integers from 1 to 100 are divisible by 2 or 3? (Hint: $|A| = \lfloor 100/2 \rfloor$, $|B| = \lfloor 100/3 \rfloor$, $|A\cap B| = \lfloor 100/6 \rfloor$.)

5

Explain why the formula for $|A \cup B \cup C|$ has a positive $|A \cap B \cap C|$ term. What would go wrong if you omitted it?

Odd one out: Which statement about the three-set inclusion–exclusion formula is NOT correct?

11
Revisit your thinking

Earlier you were asked: if 18 study Maths, 15 study Physics, and 8 study both — how many study at least one?

$|M \cup P| = 18 + 15 - 8 = 25$ students study at least one subject. This is why you can't just add 18 and 15: the 8 students who study both would be counted twice, giving the wrong answer of 33.

Both students in the hook were partially right: at least $18+15-30=3$ study both (if all 30 study at least one) and at most $\min(18,15)=15$ study both. Since exactly 8 study both, the union is exactly 25.

auto-saved
01
Multiple choice
+5 XP per correct · +25 XP all-correct

Pick your answer, then rate your confidence — that tells the system what to drill next. Each retry pulls a fresh mix from the bank.

02
Short answer
ApplyBand 42 marks

Q1. In a survey, 40 people like tea, 35 like coffee, and 20 like both. How many like at least one? (2 marks)

auto-saved
ApplyBand 53 marks

Q2. Find $|A \cup B \cup C|$ if $|A|=20$, $|B|=25$, $|C|=18$, $|A \cap B|=8$, $|B \cap C|=6$, $|A \cap C|=5$, $|A \cap B \cap C|=2$. (3 marks)

auto-saved
AnalyseBand 53 marks

Q3. How many integers from 1 to 120 are divisible by 2 or 3 or 5? Use inclusion–exclusion. Let $A$, $B$, $C$ be the sets of multiples of 2, 3, 5 respectively. (3 marks)

auto-saved
Comprehensive answers (click to reveal)

Activities: 1. $40+35-20=55$; neither $=60-55=5$ · 2. $|F\cap S|=30+25-45=10$ · 3. $20+25+18-8-6-5+2=46$ · 4. $50+33-16=67$ · 5. Without $+|A\cap B\cap C|$, the triple overlap is subtracted three times instead of two, so elements in all three sets are counted zero times instead of one — the union is under-counted by $|A\cap B\cap C|$.

Q1 (2 marks): $|T\cup C|=40+35-20=55$ [2].

Q2 (3 marks): Singles $=63$; pairs $=8+6+5=19$; triple $=2$. $|A\cup B\cup C|=63-19+2=46$ [3].

Q3 (3 marks): $|A|=60$, $|B|=40$, $|C|=24$ [0.5]. $|A\cap B|=20$, $|A\cap C|=12$, $|B\cap C|=8$ [1]. $|A\cap B\cap C|=4$ [0.5]. $|A\cup B\cup C|=60+40+24-20-12-8+4=88$ [1].

01
Boss battle · The Venn Master
earn bronze · silver · gold

Five timed questions drawn from the Module 4 bank. Beat the boss to bank a tier — gold (90% + speed), silver (75%), or bronze (50%). Replays welcome.

⚔ Enter the arena
02
Science Jump · platform challenge

Climb platforms by answering Combinatorics questions. Lighter alternative to the boss.

Mark lesson as complete

Tick when you've finished the practice and review.

🎓
Want help with Principle of Inclusion–Exclusion?

Work through this topic 1-on-1 with an experienced HSC tutor.

Book a free session →