Math Lab
Home/Class XI/Ch 1/Practical problems on union and intersection

Practical problems on union and intersection

Counting with sets is everywhere , surveys, polls, exam statistics, sports data. The key formula is the inclusion–exclusion principle: if we add the sizes of overlapping sets we overcount the overlap, so we must subtract it back. Drawing a Venn diagram in every problem keeps the bookkeeping clean.

Definitions and formulas

For finite sets A,BUA, B \subseteq U: AB=A+BAB.\boxed{|A \cup B| = |A| + |B| - |A \cap B|.}

For three sets: ABC=A+B+CABBCCA+ABC.\boxed{|A \cup B \cup C| = |A| + |B| + |C| - |A \cap B| - |B \cap C| - |C \cap A| + |A \cap B \cap C|.}

If A,BA, B are disjoint then AB=A+B|A \cup B| = |A| + |B|, recovering the easier rule.

Also useful: AB=AAB|A - B| = |A| - |A \cap B| and A=UA|A'| = |U| - |A|.

Derivation of the two-set formula

Split ABA \cup B into three disjoint pieces:

  • ABA - B (in AA only),
  • BAB - A (in BB only),
  • ABA \cap B (in both).

These three are pairwise disjoint and their union is ABA \cup B. So AB=AB+BA+AB.|A \cup B| = |A - B| + |B - A| + |A \cap B|.

Now A=AB+AB|A| = |A - B| + |A \cap B| (since AA splits as "only in AA" and "in both"). Similarly B=BA+AB|B| = |B - A| + |A \cap B|. Adding, A+B=AB+BA+2AB.|A| + |B| = |A - B| + |B - A| + 2|A \cap B|. Hence AB=A+BAB.|A \cup B| = |A| + |B| - |A \cap B|.

Derivation of the three-set formula

Apply the two-set formula to AA and BCB \cup C: ABC=A+BCA(BC).|A \cup B \cup C| = |A| + |B \cup C| - |A \cap (B \cup C)|. Expand BC=B+CBC|B \cup C| = |B| + |C| - |B \cap C| and use the distributive law A(BC)=(AB)(AC),A \cap (B \cup C) = (A \cap B) \cup (A \cap C), so A(BC)=AB+AC(AB)(AC)=AB+ACABC.|A \cap (B \cup C)| = |A \cap B| + |A \cap C| - |(A \cap B) \cap (A \cap C)|= |A \cap B| + |A \cap C| - |A \cap B \cap C|. Substitute: ABC=A+B+CBCABAC+ABC.\qed|A \cup B \cup C| = |A| + |B| + |C| - |B \cap C| - |A \cap B| - |A \cap C| + |A \cap B \cap C|. \qed

A working strategy

For a survey problem with two groups, three groups, or "at least one / exactly one":

  1. Read carefully and label each given count as A,B,AB,U|A|, |B|, |A \cap B|, |U| etc.
  2. Draw a Venn diagram and fill in the innermost region first (ABCA \cap B \cap C). Then work outwards using subtraction.
  3. For "at least one of A,BA, B": AB|A \cup B|. For "in AA only": AB=AAB|A - B| = |A| - |A \cap B|. For "neither": UAB|U| - |A \cup B|.
  4. For "exactly one": ABAB|A \cup B| - |A \cap B| (or for three sets, sum the three single-only regions).

Worked examples

Example 1. In a class of 5050 students, 3030 play cricket, 2020 play football, and 1010 play both. How many play at least one of the two? How many play neither?

AB=30+2010=40|A \cup B| = 30 + 20 - 10 = 40. Neither: 5040=1050 - 40 = 10.

Example 2. Of 100100 students, 6060 like Maths, 5050 like Science, and 2020 like both. How many like Maths only? Only Science? Neither?

Maths only: 6020=4060 - 20 = 40. Science only: 5020=3050 - 20 = 30. At least one: 60+5020=9060 + 50 - 20 = 90. Neither: 10090=10100 - 90 = 10.

Example 3. In a survey of 200200 people, 130130 read newspaper AA, 100100 read BB, and 6060 read both. How many read exactly one?

Read at least one: 130+10060=170130 + 100 - 60 = 170. Read both: 6060. Exactly one: 17060=110170 - 60 = 110.

Example 4 (three sets). In a group of 400400 students, 100100 study Physics, 8080 Chemistry and 6060 Maths. 3030 study Physics and Chemistry, 2525 Chemistry and Maths, 2020 Physics and Maths, and 1010 study all three. How many study at least one subject? How many study none?

PCM=100+80+60302520+10=175|P \cup C \cup M| = 100 + 80 + 60 - 30 - 25 - 20 + 10 = 175. None: 400175=225400 - 175 = 225.

Example 5 (harder). In a survey, 7070 people speak Hindi, 5050 speak English, 4040 speak Tamil. 2525 speak Hindi and English, 2020 English and Tamil, 1515 Hindi and Tamil, and 1010 all three. How many speak (a) at least one of the three languages? (b) exactly one of the three? (c) exactly two of the three?

(a) HET=70+50+40252015+10=110|H \cup E \cup T| = 70 + 50 + 40 - 25 - 20 - 15 + 10 = 110.

(b) Region counts (using Venn diagram, working inwards–outwards):

  • All three: 1010.
  • HEH \cap E only: 2510=1525 - 10 = 15. Similarly ETE \cap T only: 2010=1020 - 10 = 10. HTH \cap T only: 1510=515 - 10 = 5.
  • Hindi only: 7015510=4070 - 15 - 5 - 10 = 40. English only: 50151010=1550 - 15 - 10 - 10 = 15. Tamil only: 4010510=1540 - 10 - 5 - 10 = 15.

Exactly one: 40+15+15=7040 + 15 + 15 = 70.

(c) Exactly two: 15+10+5=3015 + 10 + 5 = 30.

Sanity check: 70+30+10=11070 + 30 + 10 = 110, matching part (a).

Try it yourself

  1. In a class of 6060, 3535 play hockey, 2525 play badminton, 1515 play both. How many play at least one? Neither?
  2. Out of 10001000 voters, 700700 favour candidate AA, 500500 favour BB, 300300 favour both. How many favour neither?
  3. In a group of 8080, 5050 like tea, 4040 like coffee, 2020 like both. Find the number who like only tea, only coffee, neither.
  4. A=30|A| = 30, B=25|B| = 25, AB=45|A \cup B| = 45. Find AB|A \cap B|.
  5. U=100|U| = 100, A=50|A| = 50, B=30|B| = 30, AB=10|A \cap B| = 10. Find AB|A' \cap B'|.
  6. In a group of 700700, 200200 like apples, 150150 like bananas, 100100 like cherries. 4040 like apples and bananas, 3030 bananas and cherries, 2525 apples and cherries, 1010 all three. Find at least one and exactly one.
  7. In a survey of 6060 students, 3030 play cricket, 2525 tennis, 2020 both. How many play exactly one game?
  8. Of 400400 households, 250250 subscribe to newspaper XX, 180180 to YY, 8080 to both. Find: (a) at least one; (b) exactly one; (c) neither.
  9. In a class, every student studies at least one of Maths, Physics or Chemistry. 2525 study Maths, 2424 Physics, 1919 Chemistry, 1010 Maths and Physics, 77 Physics and Chemistry, 55 Maths and Chemistry, 33 all three. How many students are in the class?
  10. Of 200200 students, 8080 play football, 6060 cricket, 5050 basketball. 3030 play football and cricket, 2020 cricket and basketball, 2525 football and basketball, 1515 all three. How many play none?
  11. Show using inclusion–exclusion: if A=40|A| = 40, B=35|B| = 35, AB=10|A \cap B| = 10, then AB=55|A \triangle B| = 55.
  12. In a class of 3030, 2020 passed Maths, 1515 passed Science, and 55 failed both. How many passed both?

Pitfalls / Tricks

  • Always check that ABmin(A,B)|A \cap B| \le \min(|A|, |B|) and ABA+B|A \cup B| \le |A| + |B|. If your computed values violate either, you have an arithmetic error or a misread of the problem.
  • Fill the Venn diagram from the innermost region outwards. Putting numbers in the wrong region is the single biggest source of mistakes.
  • "At least one" \ne "exactly one". Read the question precisely.
  • Insight. Inclusion–exclusion is the same formula in counting and probability , replacing |\cdot| by P()P(\cdot) gives the addition rule for probability. We will meet it again in Chapter 14.

Practice quiz

Quick check on this topic.

Quiz
Quick check : Counting with sets
6 questions · pick the best answer
Q1

Q2

Q3

Q4

Q5

Q6