Sub topic 4
Drawing and Reading Two-Set Venn Diagrams
This chapter assumes you know basic set notation and the four operations: union, intersection, difference and complement. You should also be comfortable with simple linear equations. Here you will learn to turn a two-group problem into a diagram, fill each region in the right order, and read the answer off it.
Why a diagram helps
A Venn diagram is a picture in which each set is a closed shape, usually a circle, drawn inside a rectangle that stands for the universal set. Elements inside a circle belong to that set. Elements outside every circle still belong to the universal set but to none of the named sets.
In CAT questions the picture does two jobs. It keeps overlapping groups from being counted twice. It also gives each phrase in the problem ("only", "both", "at least one", "neither") a fixed place to live.
The four regions
Two overlapping circles A and B inside a rectangle U divide the plane into four non-overlapping regions. Every element of U falls in exactly one of them.
| Region | Meaning | Set expression |
|---|---|---|
| Only A | In A, not in B | A − B |
| Both | In A and in B | A ∩ B |
| Only B | In B, not in A | B − A |
| Neither | In U, in neither circle | (A ∪ B)′ |
Because the regions do not overlap, the total is the sum of all four:
n(U) = n(only A) + n(both) + n(only B) + n(neither)
This is the most useful equation in the chapter. Most two-set problems reduce to it.
Circle totals versus region counts
The most common error is mixing up a circle total with a region count. Compare these two statements.
- "60 students study Maths" means n(A) = 60. This is the whole circle A, so it includes the students who also study Physics.
- "35 students study only Maths" means n(A − B) = 35. This is the crescent of A outside B.
The relationship is:
n(A) = n(only A) + n(both)
So when a problem gives you a circle total, do not write it in the crescent. Write it as a sum of two regions, or work out the overlap first and subtract.
Filling the diagram: innermost region first
The reliable method is to fill the diagram from the inside out.
- Draw the rectangle and two overlapping circles. Label the circles and write the total n(U) beside the rectangle.
- Put the intersection (the "both" region) in first. If it is unknown, call it x.
- Fill the crescents by subtraction: only A = n(A) − both, only B = n(B) − both.
- Fill the outside region from the total: neither = n(U) − (only A + both + only B).
- Check that every region is zero or positive and that all four regions add up to n(U).
The order matters because the circle totals cannot be placed directly in the crescents. The overlap must be settled first.
Worked example 1: the overlap is given
In a class of 80 students, 45 play cricket, 40 play football, and 15 play both. How many play neither?
- Both = 15.
- Only cricket = 45 − 15 = 30.
- Only football = 40 − 15 = 25.
- At least one sport = 30 + 15 + 25 = 70.
- Neither = 80 − 70 = 10.
The same steps in code make the order explicit:
total = 80
cricket, football, both = 45, 40, 15
only_cricket = cricket - both
only_football = football - both
at_least_one = only_cricket + both + only_football
neither = total - at_least_one
print(only_cricket, only_football, at_least_one, neither) # 30 25 70 10Worked example 2: the overlap is unknown
In a group of 100 people, 60 study Maths and 50 study Physics. 15 study neither. Find how many study both, and how many study only one subject.
Here the unknown is the overlap, so we use "neither" to pin it down.
- People studying at least one subject = 100 − 15 = 85.
- Put the overlap as x. Then only Maths = 60 − x and only Physics = 50 − x.
- The three non-empty regions must total 85: (60 − x) + x + (50 − x) = 85.
- This simplifies to 110 − x = 85, so x = 25.
- Only Maths = 35, only Physics = 25. Exactly one subject = 35 + 25 = 60.
total = 100
n_a = 60 # study Maths
n_b = 50 # study Physics
neither = 15
union = total - neither # 85
both = n_a + n_b - union # 25
only_a = n_a - both # 35
only_b = n_b - both # 25
print(union, both, only_a, only_b) # 85 25 35 25Notice that the line both = n_a + n_b - union is the equation from step 3 solved for x. The next chapter turns it into the named two-set formula. The diagram gets you there without memorising it.
Reading special diagrams
Not every pair of sets overlaps in the standard way. Recognising the shape of a diagram tells you what the data implies.
| Situation | Picture | Consequence |
|---|---|---|
| Overlapping | Circles partly cross | All four regions can be non-empty |
| B is a subset of A | Circle B fully inside A | Both = n(B), only B = 0 |
| Disjoint (mutually exclusive) | Circles do not touch | Both = 0, so n(A ∪ B) = n(A) + n(B) |
| A ∪ B = U | Circles cover the rectangle | Neither = 0 |
Phrases that signal these cases include "every student who plays chess also plays carrom" (chess is a subset of carrom), "no one does both" (disjoint), and "everyone likes at least one" (neither = 0).
Translating common phrases into regions
Each phrase in a problem points to a specific region or combination of regions.
| Phrase | Region(s) | Expression |
|---|---|---|
| "A or B", "at least one" | Only A, both, only B | n(A ∪ B) |
| "Both A and B" | Both | n(A ∩ B) |
| "Only A", "A but not B" | Only A | n(A) − n(A ∩ B) |
| "Exactly one of the two" | Only A and only B | n(A) + n(B) − 2n(A ∩ B) |
| "Neither", "none of them" | Outside both circles | n(U) − n(A ∪ B) |
| "Not A" | Only B and neither | n(U) − n(A) |
The "exactly one" row deserves care. The overlap is subtracted twice because it sits inside both n(A) and n(B), and neither of those overlap copies belongs in "exactly one". You can confirm it with Example 2: 60 + 50 − 2 × 25 = 60.
A tip for "or": in everyday speech "A or B" sometimes means "one but not both". In set problems the default reading is inclusive, so it includes the overlap. Read the problem for words like "either … or … but not both" before you assume otherwise.
Worked example 3: percentages and an unknown total
In a town, 40% of people read newspaper X, 30% read newspaper Y, and 10% read both. What percentage read neither? If 2,400 people read neither, how large is the town?
- Only X = 40 − 10 = 30%.
- Only Y = 30 − 10 = 20%.
- At least one = 30 + 10 + 20 = 60%.
- Neither = 100 − 60 = 40%.
- If 40% of the town is 2,400 people, the town has 2,400 ÷ 0.40 = 6,000 people.
Percentage problems work the same way, with the universal set equal to 100%. When the total is unknown, solve in percentages and convert at the end using a region whose actual count is given.
Checking the diagram
A finished diagram should pass four checks.
- Every region is zero or positive. A negative region means the data is inconsistent, or a circle total was placed in a crescent by mistake.
- The four regions add up to n(U).
- Each circle's two regions add back to its stated total.
- The overlap is no larger than the smaller circle and no smaller than n(A) + n(B) − n(U).
The last check is worth stating clearly. The overlap can never exceed min(n(A), n(B)). If the two circles together are larger than the universe, the excess must be overlap, which gives the lower bound. A later chapter develops this into minimum and maximum overlap problems.
def check_two_sets(total, n_a, n_b, both):
only_a = n_a - both
only_b = n_b - both
neither = total - (only_a + both + only_b)
regions = [only_a, both, only_b, neither]
return regions, all(r >= 0 for r in regions)
print(check_two_sets(100, 60, 50, 25)) # ([35, 25, 25, 15], True)
print(check_two_sets(100, 70, 80, 40)) # ([30, 40, 40, -10], False)In the second call, 70 + 80 − 40 = 110 exceeds the total of 100, so the "neither" region comes out as −10. That tells you an overlap of 40 is impossible. The overlap must be at least 50.
Common traps
- Writing a circle total in the crescent and then adding the overlap again, so the overlap is counted twice.
- Forgetting the region outside both circles, which makes the regions fail to add up to the total.
- Treating "only A" as the same as "A". Only A excludes the overlap.
- Reading "neither" as "not both". Neither means outside both circles. "Not both" means everything except the overlap.
- Assuming the circles must overlap. If the problem says "no student studies both", the overlap is zero.
Exercises
Exercise
In a group of 120 people, 70 like tea, 55 like coffee, and 20 like neither. How many like both? How many like only tea?
Show answer
At least one drink = 120 − 20 = 100. Both = 70 + 55 − 100 = 25. Only tea = 70 − 25 = 45.
Exercise
In a survey of 200 people, 90 own a car and 120 own a bike. Everyone who owns a car also owns a bike. How many own neither?
Show answer
Car owners are a subset of bike owners, so both = 90 and at least one = 120 (the bike circle contains the car circle). Neither = 200 − 120 = 80.
Exercise
In a class of 60, 35 take French and 30 take German. Without knowing how many take neither, find the least and the greatest possible number who take both.
Show answer
The greatest overlap is the smaller circle, so max = 30. The least overlap occurs when the circles cover as much of the class as possible: 35 + 30 = 65 exceeds 60, so at least 65 − 60 = 5 take both. Range: 5 to 30.