The intersection A∩B and the union A∪B of two sets, listed and seen on a Venn diagram; disjoint sets, with A∩B=∅; and sets such as (A∪B)′ and A′∩B, made with complements and listed.
Before you start
In lesson 1.4 you read the regions of a Venn diagram in words: "in both A and B" is the overlap; "in A only" (in A but not in B) is the rest of circle A; "in B only" is the rest of circle B; "in neither A nor B" is the part of the rectangle outside both circles. The set A is the whole of circle A: the part in A only and the part in both.
For example, with ξ={1,2,…,8},A={1,2,3,4} and B={3,4,5,6}:3 and 4 are in both, 1 and 2 in A only, 5 and 6 in B only, and 7 and 8 in neither.
This lesson gives two of these sets their own symbols: the elements in both, and the elements in A or in B or in both.
The Intersection of Two Sets
Intersection
The intersection of A and B, written A∩B, is the set of the elements that are in bothAandB.
Read A∩B as "A intersection B". The key word is and: an element of A∩B is in A and it is in B.
In a Venn diagram, A∩B is the overlap of the two circles.
Take ξ={1,2,…,8},A={1,3,4,6} and B={2,3,5,6,7}. Go through A and keep each element that is also in B:1 is not in B,3 is, 4 is not, 6 is. So A∩B={3,6}: the elements in the shaded overlap.
A∩B shaded
The Union of Two Sets
Union
The union of A and B, written A∪B, is the set of the elements that are in Aor in Bor in both.
Read A∪B as "A union B". The key word is or, and here "or" includes both: the elements of A∩B are in A∪B too.
Each element is listed once, even if it is in both sets. In a Venn diagram, A∪B is everything inside either circle.
With the same sets, list all of A, then add the elements of B not listed yet: 1,3,4,6, then 2,5,7 (3 and 6 are there already). So A∪B={1,2,3,4,5,6,7}, written in order. Only 8 is left out: it is in neither set.
A∪B shaded
Two quick checks
Every element of A∩B is in A and in B, so A∩B⊆A and A∩B⊆B. Every element of A (and of B) is in A∪B, so A⊆A∪B and B⊆A∪B.
So A∩B is never larger than either set, and A∪B is never smaller. Here n(A∩B)=2,n(A)=4,n(B)=5 and n(A∪B)=7.
Example 1: Listing an Intersection and a Union
Find A∩B and A∪B for (a) A = {red, pink, green, blue} and B = {purple, blue, green, yellow, red} (b) A={2,5,8,11} and B={3,7,11,15,19}.
Solution
(a) In both sets: red, green and blue (pink is not in B). For the union, list A, then add purple and yellow, the elements of B not yet listed.
(b) Only 11 is in both. For the union, list A and add 3,7,15,19;11 is listed once.
Two sets with no element in common are disjoint. Their intersection is the empty set: A∩B=∅.
In a Venn diagram, disjoint sets are drawn apart (lesson 1.4), so there is no overlap.
The intersection is a set, so write A∩B=∅ (or {}), never 0 or {0}.
Example 3: Disjoint or Not?
(a) A={c,d,j,m,p} and B={b,d,k,m,t}. Are A and B disjoint? (b) ξ={1,2,…,8},C={1,3,5} and D={2,4,6}. Find C∩D and C∪D, and draw a Venn diagram showing ξ,C and D with C∪D shaded.
Solution
(a) d and m are in both sets, so A∩B={d,m}, which is not empty.
(b) C holds odd numbers and D even numbers, so no number is in both: C∩D=∅, and the circles are drawn apart. The union is all six numbers; 7 and 8 are in neither set.
(a) No: A∩B={d,m}≠∅. (b) C∩D=∅, so C and D are disjoint; C∪D={1,2,3,4,5,6}, both circles shaded.
Combining with Complements
The complement of a set is listed from ξ (lesson 1.3). Used with ∩ and ∪, it makes sets such as (A∪B)′,A′∩B,A∩B′ and (A∩B)′. Each is listed the same way: work out the part in brackets first, then the rest, one step at a time.
Reading combined sets
(A∪B)′ is the complement of A∪B: the elements of ξ in neitherA nor B.
A′∩B is the set of elements that are in B but not in A: "in B only". Likewise A∩B′ is "in A only".
(A∩B)′ is the complement of A∩B: every element of ξ except those in both sets at once. It is not the same as (A∪B)′.
Example 4: Listing Combined Sets
ξ={1,2,…,8},A={1,3,4,6} and B={2,3,5,6,7}. List (a) A′ and B′ (b) (A∪B)′ (c) A′∩B (d) A∩B′ (e) (A∩B)′.
Solution
(a) The elements of ξ not in A:2,5,7,8. Not in B:1,4,8.
(b) Brackets first: A∪B={1,2,3,4,5,6,7}. Its complement in ξ is what is left: 8.
(c) The elements of A′={2,5,7,8} that are also in B:2,5,7 (8 is not in B).
(d) The elements of A that are also in B′={1,4,8}:1 and 4.
(e) Brackets first: A∩B={3,6}. Its complement is every other element of ξ.
The diagrams show (b) and (c): (A∪B)′ is the region outside both circles, and A′∩B is the part of circle B outside circle A.
Every element of ξ is in exactly one region. In Example 4, A∩B′={1,4},A∩B={3,6},A′∩B={2,5,7} and (A∪B)′={8} hold 2+2+3+1=8 elements between them: all of ξ, each once.
Example 5: From the Diagram
ξ={1,2,…,18},E = {even numbers} and F = {factors of 18}. (a) Draw a Venn diagram showing ξ,E and F with their elements. (b) From it, list E∩F,E∪F,(E∪F)′,E′∩F and E∩F′, and find n(E∪F).
Solution
(a) E={2,4,6,8,10,12,14,16,18} and F={1,2,3,6,9,18}. They share 2,6,18, and each has elements the other does not, so the circles overlap. Place the shared elements first.
(b) E∩F is the overlap. E∪F is everything inside the circles. (E∪F)′ is outside both circles. E′∩F is in F only: the factors of 18 that are odd. E∩F′ is in E only: the even numbers that are not factors of 18. Count the elements of E∪F:3+6+3=12. Check: with the 6 outside both circles, 12+6=18, all of ξ.
Mixing up the symbols. ∩ is "and" (in both); ∪ is "or" (in either or both). A way to remember: ∪ is open at the top, like a cup that holds everything from both sets.
Listing an element twice in a union. {1,3,4,6,2,3,5,6,7} is not how A∪B is written: each element once, {1,2,3,4,5,6,7}.
Writing A∩B=0 or {0} for disjoint sets. The intersection is the empty set, ∅.
Listing a complement from A∪B instead of from ξ, and so forgetting the elements in neither set.
Reading (A∩B)′ as "in neither". That is (A∪B)′.(A∩B)′ leaves out only the elements in both.
Ignoring the brackets: (A∪B)′ and A∪B′ are different sets. Work out the brackets first.
Practice
Try each question before you open its solution. Questions 6 and 7 are word problems.
Question 1
Find A∩B and A∪B for (a) A={1,2,3,4,5} and B={2,4,6,8} (b) A={x,y} and B={y,z}.
ShowHide solution
(a) 2 and 4 are in both. The union: 1,2,3,4,5, then 6 and 8.
A = {factors of 36} and B = {factors of 63}. Find A∩B and A∪B.
ShowHide solution
The factors of 36 in pairs: 1×36,2×18,3×12,4×9,6×6. So A={1,2,3,4,6,9,12,18,36}.
The factors of 63:1×63,3×21,7×9. So B={1,3,7,9,21,63}.
In both: 1,3,9. The union is A with 7,21 and 63 added.
A∩B={1,3,9};A∪B={1,2,3,4,6,7,9,12,18,21,36,63}
Question 3
P = {factors of 15}, Q = {composite numbers less than or equal to 15} and R = {positive even numbers less than 15}. Find P∩Q,Q∩R and P∩R. Which two of the sets are disjoint?
ShowHide solution
P={1,3,5,15};Q={4,6,8,9,10,12,14,15} (not 1, which is neither prime nor composite); R={2,4,6,8,10,12,14}.
P∩Q={15}.Q∩R={4,6,8,10,12,14}.P holds only odd numbers and R only even ones, so P∩R=∅.
P∩Q={15},Q∩R={4,6,8,10,12,14},P∩R=∅:P and R are disjoint.
Question 4
ξ={1,2,…,10},P = {prime numbers} and Q = {odd numbers}. (a) List P and Q, and draw a Venn diagram showing ξ,P and Q. (b) List P∩Q,P∪Q,(P∪Q)′,P∩Q′ and P′∩Q.
ShowHide solution
(a) P={2,3,5,7} and Q={1,3,5,7,9}. They share 3,5,7;2 is prime but not odd, and 1 and 9 are odd but not prime.
(b) Read each set from the diagram: the overlap; everything inside the circles; outside both; in P only; in Q only.
The Venn diagram shows ξ,A and B. (a) List A∩B,A∪B,B′,A′∩B and (A∪B)′. (b) Copy the diagram and shade A′∩B.
ShowHide solution
(a) The overlap holds c and d. Inside the circles: a,b (in A only), c,d,e,f (in B only). B′ is everything outside circle B:a,b,g,h.A′∩B is in B only. (A∪B)′ is outside both circles.
(b) Shade the part of circle B outside circle A.
(a) A∩B={c,d};A∪B={a,b,c,d,e,f};B′={a,b,g,h};A′∩B={e,f};(A∪B)′={g,h} (b) the region in B only, holding e and f, shaded
Question 6
Eight pupils went on Class 4C's two learning journeys: Aisyah, Bryan, Kumar, Lina, Nadia, Ryan, Siew Ling and Wei Jie. ξ is the set of these pupils, S = {pupils who went to the Science Centre} = {Aisyah, Kumar, Lina, Wei Jie} and Z = {pupils who went to the zoo} = {Bryan, Kumar, Nadia, Wei Jie}. (a) List S∩Z and S∪Z, and say what each means. (b) List (S∪Z)′ and S∩Z′, and say what each means.
ShowHide solution
(a) Kumar and Wei Jie are on both lists. The union is every pupil who went on at least one of the two journeys.
(b) S∪Z leaves out Ryan and Siew Ling, so they went on neither. S∩Z′ is the pupils who went to the Science Centre and not to the zoo: Aisyah and Lina.
(a) S∩Z = {Kumar, Wei Jie}, the pupils who went to both places; S∪Z = {Aisyah, Bryan, Kumar, Lina, Nadia, Wei Jie}, the pupils who went on at least one of the journeys (b) (S∪Z)′ = {Ryan, Siew Ling}, the pupils who went on neither; S∩Z′ = {Aisyah, Lina}, the pupils who went to the Science Centre but not to the zoo
Question 7
At a hawker centre, stall X sells chicken rice, laksa, fried rice and mee goreng, and stall Y sells laksa, nasi lemak, mee goreng and roti prata. X and Y are the sets of the dishes each stall sells. (a) List X∩Y. What does it mean? (b) How many different dishes do the two stalls sell between them?
ShowHide solution
(a) The dishes on both lists: laksa and mee goreng.
(b) This is n(X∪Y).X∪Y = {chicken rice, laksa, fried rice, mee goreng, nasi lemak, roti prata}: the four dishes of X and the two of Y not yet listed. Laksa and mee goreng are counted once.
(a) X∩Y = {laksa, mee goreng}: the dishes sold at both stalls. (b) n(X∪Y)=6 different dishes.
Question 8
X = {letters of the word SINGAPORE} and Y = {letters of the word PENANG}. (a) List X and Y. (b) Find X∩Y and X∪Y. What do you notice? (c) Draw a Venn diagram showing X and Y in ξ = {letters of the alphabet}, without the other letters of ξ.
ShowHide solution
(a) Each letter once: X = {S, I, N, G, A, P, O, R, E} and Y = {P, E, N, A, G} (N is written once).
(b) Every letter of Y is in X, so Y⊂X. Then the elements in both are all of Y, and the union adds nothing to X.
(c) Y is a subset of X, so circle Y is drawn inside circle X: S, I, O, R in X only. (The other 26−9=17 letters of the alphabet would be written outside both circles; the question leaves them out.)
(b) X∩Y = {P, E, N, A, G} =Y and X∪Y=X. In general, when B⊂A,A∩B=B and A∪B=A.
Question 9
ξ={1,2,…,10} and A={1,2,3,4}. A set B has A∩B={3,4} and A∪B={1,2,3,4,5,6,7}. List B.
ShowHide solution
3 and 4 are in A∩B, so they are in B.1 and 2 are in A but not in A∩B, so they are not in B.
5,6,7 are in A∪B but not in A, so they must be in B.8,9,10 are not in A∪B, so they are not in B.
Check: {1,2,3,4}∩{3,4,5,6,7}={3,4} and the union is {1,2,…,7}.
B={3,4,5,6,7}
Question 10
With the sets of Question 4 (ξ={1,2,…,10},P = {prime numbers}, Q = {odd numbers}), Wei Ling wrote (P∩Q)′={4,6,8,10}, and Ravi wrote P∪Q={2,3,5,7,1,3,5,7,9}. What did each of them do wrong? Write the right answers.
ShowHide solution
Wei Ling listed the numbers in neither set, which is (P∪Q)′.(P∩Q)′ leaves out only the numbers in both, P∩Q={3,5,7}, and keeps every other element of ξ.
Ravi wrote P and then all of Q, so 3,5 and 7 appear twice. In a union each element is listed once.
(P∩Q)′={1,2,4,6,8,9,10};P∪Q={1,2,3,5,7,9}
Key Points
A∩B, the intersection, is the set of the elements in both A and B: the overlap of the circles.
A∪B, the union, is the set of the elements in A or in B or in both: everything inside the circles. Each element is listed once.
Disjoint sets have no element in common: A∩B=∅, and the circles are drawn apart.
(A∪B)′ is in neither set; A′∩B is in B only; A∩B′ is in A only; (A∩B)′ is everything except the elements in both.
Work out brackets first, and list every complement from ξ.
Home Campus has lessons for Primary 3 to Secondary 4, and practice questions with worked solutions and worksheets for Primary 3 to Secondary 2.
Register free to practise and keep track of progress.
This lesson follows the Singapore Secondary 4 syllabus and was checked question by question before it was published.
Spotted a mistake? Tell us.