Cambridge IGCSE Mathematics 0580 · Number

Sets

Set language and notation: listing and describing sets, n(A), the universal set, complements, unions and intersections, and two-set Venn diagrams for listing, counting and shading. Extended adds ∈, ∉, ∅, subsets, three-set problems and sets of points.

C1.2E1.2Core and ExtendedFree lesson
What the syllabus says

C1.2 (Core)

  • Understand and use set language, notation and Venn diagrams to describe sets.

Notes and examples

  • Venn diagrams are limited to two sets.
  • The following set notation will be used:
  • n(A) Number of elements in set A
  • A′ Complement of set A
  • ℰ Universal set
  • A∪B Union of A and B
  • A∩B Intersection of A and B.
  • Example definition of sets: A={x:x is a natural number} B={a,b,c,…} C={x:a⩽x⩽b}.

E1.2 (Extended)

  • Understand and use set language, notation and Venn diagrams to describe sets and represent relationships between sets.

Notes and examples

  • Venn diagrams are limited to two or three sets.
  • The following set notation will be used:
  • n(A) Number of elements in set A
  • ∈ “… is an element of …”
  • ∉ “… is not an element of …”
  • A′ Complement of set A
  • ∅ The empty set
  • ℰ Universal set
  • A⊆B A is a subset of B
  • A⊈B A is not a subset of B
  • A∪B Union of A and B
  • A∩B Intersection of A and B.
  • Example definition of sets: A={x:x is a natural number} B={(x,y):y=mx+c} C={x:a⩽x⩽b} D={a,b,c,…}.

Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.

What a set is

A set is a collection of objects, called its elements or members. Sets are named with capital letters and written in curly brackets, with the elements separated by commas: A={2,4,6,8}. Order does not matter, and no element is written twice, so {2,4,6,8} and {8,6,4,2} are the same set.

A set can be described in three ways:

  • By listing its elements: B={a,b,c,d,e}. For a long pattern you may write {a,b,c,…}, where the dots mean the pattern carries on.
  • In words: P={prime numbers less than 12}, which is {2,3,5,7,11}.
  • With a rule, in set-builder notation: A={x:x is a natural number} is read as the set of all x such that x is a natural number. The colon means such that. C={x:2⩽x⩽6} is every number from 2 to 6, including both ends. If the universal set says x is an integer, C is {2,3,4,5,6}.

n(A) means the number of elements in A. For A={2,4,6,8}, n(A)=4. Read inequality signs carefully when you count: {x:2<x⩽6} leaves 2 out but keeps 6.

The universal set and the complement

The universal set, ℰ, contains everything being considered in the question. Every other set in the question is part of it.

The complement of A, written A′, is everything in ℰ that is not in A. If ℰ={1,2,3,…,10} and A={2,4,6,8}, then A′={1,3,5,7,9,10}.

A set and its complement together make up the whole of ℰ, with no overlap, so n(A)+n(A′)=n(ℰ). Here 4+6=10. This gives a quick way to count a complement without listing it.

Union and intersection

The intersection A∩B is the set of elements in both A and B.

The union A∪B is the set of elements in A or B or both.

To remember which is which, think of ∪ as a cup that holds everything from both sets, and ∩ as the narrow part that the two sets share.

With A={1,2,3,4,6,12} and B={2,4,6,8,10,12}:

  • A∩B={2,4,6,12}
  • A∪B={1,2,3,4,6,8,10,12}. Each element is written once, even though 2, 4, 6 and 12 are in both sets.

The symbols combine. (A∪B)′ is everything outside both sets. A∩B′ is everything in A that is not in B: here {1,3}. Work from the inside of any brackets outwards.

Venn diagrams

A Venn diagram shows the universal set as a rectangle, marked ℰ, and each set as a circle inside it. Two overlapping circles make four regions:

  • in A only, which is A∩B′;
  • in both, which is A∩B;
  • in B only, which is A′∩B;
  • in neither, which is (A∪B)′.

Every element of ℰ goes in exactly one region. Place the elements of the overlap first, then the rest of each circle, then everything left over outside the circles. Cambridge Core questions use two sets.

A completed Venn diagram

ℰAB1, 32, 64, 8, 105, 7, 9

ℰ={1,2,…,10}, A={factors of 6}={1,2,3,6} and B={even numbers}={2,4,6,8,10}. Reading from the diagram: A∩B={2,6}, n(A∪B)=7 and (A∪B)′={5,7,9}.

Worked example 1

ℰ={x:x is an integer,1⩽x⩽15}, P={prime numbers} and Q={multiples of 3}.

(a) List the elements of P∩Q. (b) Find n(P∪Q). (c) List the elements of (P∪Q)′.

  1. List each set first. P={2,3,5,7,11,13} and Q={3,6,9,12,15}. Remember that 1 is not prime.

  2. (a) The only element in both is 3, so P∩Q={3}.

  3. (b) P∪Q={2,3,5,6,7,9,11,12,13,15}, writing 3 once. So n(P∪Q)=10.

  4. Check with the counting rule: 6+5−1=10.

  5. (c) The integers from 1 to 15 not yet used: (P∪Q)′={1,4,8,10,14}. Check: 10+5=15=n(ℰ).

Answer: (a) {3} (b) 10 (c) {1,4,8,10,14}

Check yourself

Use the completed Venn diagram above, where A={1,2,3,6} and B={2,4,6,8,10}. List the elements of A∪B.

Answer it in the portal, where your answer is checked as you type →

Counting with Venn diagrams

Often a Venn diagram shows how many elements are in each region rather than the elements themselves. Then the regions add up to n(ℰ), and

n(A∪B)=n(A)+n(B)−n(A∩B)

The overlap is subtracted because adding n(A) and n(B) counts the elements in both sets twice.

For a survey question:

  1. Put the number in both sets in the overlap first.
  2. Subtract it from each set's total to get A only and B only.
  3. Subtract everything inside the circles from n(ℰ) to get the number outside.

If the overlap is not given, find it from the totals: n(A∩B)=n(A)+n(B)−n(A∪B). If a region is unknown, call it x, write the other regions in terms of x, and set the total equal to n(ℰ).

Worked example 2

In a group of 40 students, 23 play hockey (H), 19 play netball (N) and 5 play neither. Find the number of students who play both, and the number who play netball but not hockey.

  1. Students in H∪N: 40−5=35.

  2. Both: n(H∩N)=23+19−35=7.

  3. Hockey only: 23−7=16. Netball only, n(H′∩N): 19−7=12.

  4. Check that the four regions add to 40: 16+7+12+5=40.

Answer: 7 play both; 12 play netball but not hockey

The diagram for Worked example 2

ℰHN167125

The numbers in the four regions add to n(ℰ)=40. The circle for H holds 16+7=23 students and the circle for N holds 7+12=19.

Check yourself

n(ℰ)=50, n(A)=28, n(B)=30 and n(A∩B)=15. Find n((A∪B)′).

Answer it in the portal, where your answer is checked as you type →

Shading regions

Questions ask you to shade a region given in set notation, or to describe a shaded region. Decide region by region: for each of the four regions, ask whether it belongs to the set, and shade it only if the answer is yes.

  • A∩B: the overlap.
  • A∩B′: in A and not in B, the part of A outside the overlap.
  • A′∩B: B only.
  • A∪B: both circles completely.
  • (A∪B)′: outside both circles.
  • (A∩B)′: everything except the overlap.
  • A′: everything outside A, which includes B only and the outside.
  • A∪B′: in A, or outside B. That is everything except B only.

A common slip is to shade A′ as only the outside region. A′ also contains the part of B that is not in A.

Shading for A union B complement

ℰABshadedshadedshaded

The regions in A∪B′ are marked shaded. B only is left blank, because an element there is not in A and is in B, so it is in neither A nor B′.

Elements, the empty set and subsets Extended

Extended candidates also use these symbols.

  • ∈ means is an element of: 3∈{1,3,5}.
  • ∉ means is not an element of: 4∉{1,3,5}.
  • ∅ is the empty set, the set with no elements, so n(∅)=0. If two sets have no element in common, A∩B=∅. Do not write {0} for the empty set: {0} has one element, the number 0.
  • A⊆B means A is a subset of B: every element of A is also in B. For example {2,4}⊆{1,2,3,4}. Every set is a subset of itself, and ∅ is a subset of every set.
  • A⊈B means A is not a subset of B: at least one element of A is missing from B. One counter-example is enough to show it.

Elements and subsets are different things: 3∈{1,3,5}, but {3}⊆{1,3,5}.

These symbols describe how sets are related, and the Venn diagram is drawn to match. If A⊆B, the circle for A is drawn inside the circle for B, and then A∩B=A and A∪B=B. If A∩B=∅, the two circles are drawn apart, not overlapping.

Check yourself Extended

A={1,3,5,7} and B={1,3,5,7,9}. Which of these statements are true? Choose all that apply.

Answer it in the portal, where your answer is checked as you type →

Three sets Extended

Extended questions can use three sets, A, B and C. Three overlapping circles make eight regions, counting the outside. Fill them from the middle outwards:

  1. the centre, A∩B∩C;
  2. the three regions where exactly two sets overlap, such as A∩B∩C′: subtract the centre from each two-set total;
  3. the three regions for one set only: subtract everything already placed in that circle from the set's total;
  4. the outside: subtract everything inside the circles from n(ℰ).

Read the wording closely. Taking both A and B includes the centre, so n(A∩B) is the centre plus the A and B only region. Taking A and B only, or exactly two of them, excludes the centre.

If a region is unknown, call it x, write all eight regions in terms of x and form an equation with the total.

Worked example 3 Extended

80 people were asked which of three streaming services, A, B and C, they use. 4 use all three. 6 use A and B only, 3 use A and C only, and 5 use B and C only. n(A)=30, n(B)=25 and n(C)=20. How many use none of the three?

  1. Centre: 4. Two-set-only regions: 6, 3 and 5.

  2. A only: 30−(4+6+3)=17.

  3. B only: 25−(4+6+5)=10.

  4. C only: 20−(4+3+5)=8.

  5. Inside the circles: 4+6+3+5+17+10+8=53.

  6. None: 80−53=27.

Answer: 27

The eight regions of Worked example 3 Extended

Number of people in each region
RegionNumber
A∩B∩C4
A∩B∩C′6
A∩B′∩C3
A′∩B∩C5
A∩B′∩C′17
A′∩B∩C′10
A′∩B′∩C8
(A∪B∪C)′27

The eight numbers add to 80. When you draw the three-set Venn diagram, these are the numbers in the eight regions, from the centre outwards.

Check yourself Extended

n(ℰ)=40. For three sets, n(A∩B∩C)=2, and each of the three regions where exactly two sets overlap contains 3 elements. The regions for one set only contain 9, 7 and 5 elements. Find n((A∪B∪C)′).

Answer it in the portal, where your answer is checked as you type →

Sets of points Extended

Set-builder notation can describe points as well as numbers. {(x,y):y=2x+1} is the set of all points (x,y) that satisfy y=2x+1: every point on that straight line.

For two such sets, the intersection is the set of points on both lines: the point where they cross. Find it by solving the two equations together. Two different parallel lines never meet, so the intersection of their sets is ∅.

To test whether a point is an element, substitute it. (1,3)∈{(x,y):y=2x+1} because 2×1+1=3, but (2,4)∉ that set because 2×2+1=5, not 4.

Worked example 4 Extended

A={(x,y):y=x+3} and B={(x,y):y=9−2x}. Find A∩B.

  1. A point in both sets satisfies both equations, so x+3=9−2x.

  2. 3x=6, so x=2.

  3. y=2+3=5. Check in the other equation: 9−2×2=5.

  4. A∩B={(2,5)}.

Answer: {(2,5)}

Key points

  • n(A) is the number of elements. n(A)+n(A′)=n(ℰ).

  • A∩B: in both. A∪B: in either or both, each element written once.

  • n(A∪B)=n(A)+n(B)−n(A∩B).

  • Fill a Venn diagram from the overlap outwards, and check that the regions add to n(ℰ).

  • To shade a region, test each of the four regions in turn against the description.

  • Extended: ∈ and ∉ are for elements, ⊆ and ⊈ are for sets, and ∅ is the set with no elements.

  • Extended: with three sets, start at the centre; for sets of points, solve the equations together.

Where marks are lost

  • Listing an element twice in a union, or giving n(A∪B) as n(A)+n(B).

  • Forgetting the elements outside both circles when counting or listing ℰ.

  • Putting a set's total in its only region: if 18 study French and 7 study both, French only is 11, not 18.

  • Shading only the outside for A′, which also includes B only.

  • Misreading < and ⩽ in a set rule, and so including or leaving out an end value.

  • Answering n(A) with a list, or a list with a number. Read whether the question says list or find n.

  • Extended: writing {0} or {∅} for the empty set, or using ∈ between two sets.

Related IGCSE Mathematics 0580 lessons

All IGCSE Mathematics 0580 lessons →

An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.