Sets & Venn diagrams · Lesson 1 of 2

Sets and set notation

Listing and describing sets, the universal set and the empty set, subsets, and reading union, intersection and complement from a Venn diagram, for two sets and three.

16 minYou should already know: Number foundations & fractions
  1. 1
  2. 2

A set is a collection of things, called its elements or members, written inside curly brackets. A={2,4,6,8}A = \{2, 4, 6, 8\} is a set with four elements. 6∈A6 \in A means “6 is an element of AA”, and 5∉A5 \notin A means “5 is not”.

The order doesn’t matter, and an element is written only once: {2,4,6,8}\{2, 4, 6, 8\} and {8,6,4,2}\{8, 6, 4, 2\} are the same set.

Describing a set

There are two ways to write a set down.

  • List the elements: B={11,13,17,19}B = \{11, 13, 17, 19\}.
  • Describe them with a rule (set-builder notation): B={x:x is a prime number,10<x<20}B = \{x : x \text{ is a prime number}, 10 < x < 20\}. Read the colon as “such that”.

n(A)n(A) means the number of elements in AA. For BB above, n(B)=4n(B) = 4.

When the rule is an inequality and ”xx is an integer”, list the whole numbers the inequality allows. Watch whether each end is << (left out) or ≤\le (kept in).

More: listing and describing sets

The universal set, the empty set and subsets

The universal set, UU (WAEC often writes μ\mu or ξ\xi), holds every element being talked about in the question. It’s drawn as the rectangle round a Venn diagram.

The empty set, ∅\varnothing or { }\{\,\}, has no elements. {x:x is a whole number,2<x<3}\{x : x \text{ is a whole number}, 2 < x < 3\} is empty, because there is no whole number between 2 and 3.

BB is a subset of AA, written B⊆AB \subseteq A, when every element of BB is also in AA. Two sets with no elements in common are disjoint.

UAB
B ⊆ AB sits inside A: every element of B is in A
UAB
Disjoint setsNo overlap: A ∩ B = ∅

More: the empty set and subsets

A set with nn elements has 2n2^n subsets, counting ∅\varnothing and the set itself. {a,b,c}\{a, b, c\} has 23=82^3 = 8: ∅\varnothing, {a}\{a\}, {b}\{b\}, {c}\{c\}, {a,b}\{a, b\}, {a,c}\{a, c\}, {b,c}\{b, c\}, {a,b,c}\{a, b, c\}.

Union, intersection and complement

These are the three operations that come up in almost every sets question. The shaded region shows each one.

UAB
A ∪ BUnion: in A or B or both
UAB
A ∩ BIntersection: in both A and B
UAB
A'Complement: in U but not in A
UAB
A ∩ B'In A but not in B (A only)
  • A∪BA \cup B, the union: every element in AA or BB or both. Each element is written only once.
  • A∩BA \cap B, the intersection: only the elements in both.
  • A′A', the complement of AA: every element of UU that is not in AA. So the complement depends on UU.
  • A−BA - B (sometimes written A∖BA \setminus B): the elements of AA that are not in BB. It is the same as A∩B′A \cap B', the last diagram above.

Try it

Sets on a Venn diagramPick an expression
UAB2, 4, 8, 106, 123, 91, 5, 7, 11
A ∩ B = {6, 12}the intersection: in both A and B
U = {1, 2, …, 12}, A = even numbers, B = multiples of 3. A ∩ B is the intersection: in both A and B. Read its elements from the shaded regions: {6, 12}.

Each element is written in its region, so to list a set, shade its regions and read the numbers in them. Switch on Your turn to shade the regions yourself before you check.

More: union, intersection and complement

Worked example · WAEC 2012

WAEC 2012 · Paper 2 · Q2 (a)

Given that U={1,2,3,4,5,6,7,8}U = \{1, 2, 3, 4, 5, 6, 7, 8\}, X={1,3,5,7}X = \{1, 3, 5, 7\} and Y={1,5,8}Y = \{1, 5, 8\}, find: (i) X′∩YX' \cap Y; (ii) (X′∪Y)′(X' \cup Y)'.

  1. The complement first

    X′={2,4,6,8}X' = \{2, 4, 6, 8\}.

    Think first. Which elements of U are not in X?

  2. (i) X′ ∩ Y

    Only 8 is in both: X′∩Y={8}X' \cap Y = \{8\}.

    Think first. Which elements are in both X′ and Y = {1, 5, 8}?

  3. (ii) (X′ ∪ Y)′

    X′∪Y={1,2,4,5,6,8}X' \cup Y = \{1, 2, 4, 5, 6, 8\}. The elements of UU not in it: (X′∪Y)′={3,7}(X' \cup Y)' = \{3, 7\}.

    Think first. Put X′ and Y together, then take the complement.

Two useful rules, called De Morgan’s laws, come from the diagrams:

(A∪B)′=A′∩B′(A∩B)′=A′∪B′(A \cup B)' = A' \cap B' \qquad (A \cap B)' = A' \cup B'

“Not in either” is the same as “not in AA and not in BB”. WAEC sometimes asks you to show one of them for given sets: work out each side separately and show they are the same set.

Three sets

With three sets, the circles make eight regions. Name each region by which circles it is inside and which it is outside.

UABC
A ∩ B ∩ CIn all three
UABC
(A ∪ B) ∩ C'In A or B, but not in C
UABC
CAll four regions inside C

More: naming shaded regions

Your turn

WAEC 2020 · Paper 2 · Q1 (a)

  1. (a)

    If A={multiples of 2}A = \{\text{multiples of }2\}, B={multiples of 3}B = \{\text{multiples of }3\} and C={factors of 6}C = \{\text{factors of }6\} are subsets of μ={x:1≤x≤10}\mu = \{x : 1 \le x \le 10\}, find A′∩B′∩C′A' \cap B' \cap C'.

    Show the answer

    {5,7}\{5, 7\}

Worked solution (try it first)

(a)

  1. List the sets in μ={1,2,…,10}\mu = \{1, 2, \ldots, 10\}: A={2,4,6,8,10}A = \{2, 4, 6, 8, 10\}, B={3,6,9}B = \{3, 6, 9\}, C={1,2,3,6}C = \{1, 2, 3, 6\}.
  2. Complements: A′={1,3,5,7,9}A' = \{1, 3, 5, 7, 9\}, B′={1,2,4,5,7,8,10}B' = \{1, 2, 4, 5, 7, 8, 10\}, C′={4,5,7,8,9,10}C' = \{4, 5, 7, 8, 9, 10\}.
  3. The numbers in all three: A′∩B′∩C′={5,7}A' \cap B' \cap C' = \{5, 7\}.

Report a problem with this question

More past questions like this