C1.2; E1.2 - Sets and Venn diagrams
Of 12 students, 7 swim, 6 cycle and 3 do both. How many do neither? Sets let you organise overlapping groups without counting anyone twice. Learn the shared C1.2 and E1.2 language of sets, unions, intersections, complements and counts using diagrams with two sets.
Sets and universal set
To answer the opening question, first decide who is included in the survey. “Does not swim” means something different among the 12 surveyed students than among everyone in the school.
Set and universal set
A set is a well-defined collection of objects, called its elements. The universal set, written , contains all the objects being considered in a particular problem. Curly brackets enclose a listed set: for example, .
List each element only once. Order does not matter: and are the same set. A condition can define a set instead of a list. In , the vertical line means “such that”; take only values allowed by the stated universal set.
Worked example 1: a condition using natural numbers
Question. Let . List the elements of .
Plan. Check the numbers in against the definition of prime.
Zero and 1 are not prime, and the other allowed positive integers have extra factors.
Answer. .
Check. Each listed number has exactly two positive factors, and all are in . The next prime, 11, is outside .
Now keep the same universe but change the condition to an interval. The boundary symbols determine whether endpoints are included.
Worked example 2: an interval within a finite universe
Question. With , list .
Plan. Select the allowed whole numbers at least 2 and less than 6.
Answer. .
Check. The value 2 satisfies the inclusive lower bound. The value 6 fails the strict upper bound. A value such as 2.5 fits the inequality but is excluded by this .
If instead allowed every number between 0 and 10, the same interval condition would include 2.5 and infinitely many other values. The universe is part of the definition. Natural numbers in this course are , so a natural-number condition does not itself exclude zero.
Key idea
A set's rule must tell you unambiguously whether each allowed object belongs. “The nice numbers” is not a well-defined mathematical condition.
Use both the condition and its universe.
Union and intersection
A Venn diagram uses a rectangle for and a closed curve for each set. An element in both sets belongs in their overlap, written once. An element in neither set stays inside the rectangle but outside both curves.
Union and intersection
The union, , contains elements in A or B or both. The intersection, , contains elements in both A and B. The notation means the number of elements in A.
In a union, “or” includes “both”. This picture places each element of exactly once.
[DIAGRAM: asset_name: Two overlapping sets of numbers; asset_slug: two_sets_elements; caption: The overlap contains 6, while the union contains everything inside either circle.; description: A universal-set rectangle contains numbers one to ten exactly once. Set A is the even numbers two, four, six, eight and ten. Set B is three, six and nine. A-only contains two, four, eight and ten, the overlap contains six, B-only contains three and nine, and outside both are one, five and seven.]

Worked example 3: read the two operations
Question. Let and . Find , and .
Plan. First select the shared elements, then combine both lists without repeating an element.
Answer. , , and 7 respectively.
Check. The two original lists contain entries, but 6 is counted twice. Removing one repeated entry gives 7.
The next sets are given by number properties rather than ready-made lists. List them first, then use the same operations.
Worked example 4: operations on defined sets
Question. Let . A is the set of factors of 12, and B is the set of multiples of 3 in . Find and .
Plan. Write each set explicitly, then identify common and combined elements.
Answer. ; .
Check. The union has elements: the 3 shared elements are included once, not twice.
The count of a union comes from adding each non-overlapping region once. This is why the overlap must be subtracted once if you start with .
Watch out
is a set; is a number. For example, but .
List every required element once.
Complement and counts
“Not in A” selects all the allowed elements outside A, including any that belong to B. It does not mean only the region outside both sets.
Complement
The complement of A, written , contains all elements of that are not in A. Thus . The set contains elements in neither A nor B.
When survey data give how many do both activities, put that number in the overlap first. Each set's total already includes the overlap.
Worked example 5: complete the opening survey
Question. Of 12 students, 7 swim (S), 6 cycle (C), and 3 do both. Find the four Venn-region counts and .
Plan. Fill the overlap, subtract it from each set total, then use the whole class total.
Answer. Swim only 4, both 3, cycle only 3, neither 2; .
Check. The four regions sum to 12. The swimming circle totals , and do not swim.
The completed picture shows that the 3 students who cycle only also belong to .
[DIAGRAM: asset_name: Swimming and cycling survey; asset_slug: two_sets_counts; caption: The four disjoint regions total 12. The complement of S contains 3 plus 2 students.; description: A universal-set rectangle of twelve students contains two overlapping circles S and C. The S-only region is four, the overlap is three, the C-only region is three, and the region outside both is two. These are counts rather than lists of individual students.]

Now read counts already given in disjoint regions, including a complement combined with an intersection.
Worked example 6: select the correct regions
Question. In a survey, 6 people belong to A only, 5 to both A and B, 7 to B only and 2 to neither. Find , and .
Plan. Translate each expression into the regions it includes.
Answer. 11, 9 and 6 respectively.
Check. , the total of the four regions. Of the 11 in A, removing the 5 also in B leaves 6.
A Venn diagram can display either individual elements or region counts. Its labels and question tell you which: a written 4 might identify the number 4 or count four people.
Watch out
If 7 swim and 3 do both, the “swim only” region is , not 7. Putting 7 outside the overlap would incorrectly make the swimming total 10.
Start with the overlap and check the total.
Quick Recap
- State the universal set; it controls every listed set and complement.
- A union means either set or both; an intersection means both.
- Count overlap elements once in a union. The notation counts elements rather than listing them.
- A complement includes everything in outside that set.
In the opening survey, students do at least one activity, so do neither.