Junior Cycle Mathematics8.6 Commutative and associative set operations

All books

8.6 Commutative and associative set operations — Practise with help

Warm-up: remember

  1. Work out 3+83 + 8 and 8+38 + 3.
  2. Work out 4×54 \times 5 and 5×45 \times 4.
Answers and feedback
  1. 3+8=113 + 8 = 11 and 8+3=118 + 3 = 11. Swapping the two numbers does not change the total.
  2. 4×5=204 \times 5 = 20 and 5×4=205 \times 4 = 20. Swapping the two numbers does not change the product.

Both pairs give the same answer. In this section the same idea appears for sets, where swapping the two sets does not change the union or the intersection.

Practise with help

1. Let A={2,4,6,8}A = \{2, 4, 6, 8\} and B={1,2,3,4}B = \{1, 2, 3, 4\}. Find A∪BA \cup B and B∪AB \cup A. What do you notice?

Hint

The union holds every element of both sets, written once. Work out each union on its own, then compare the two answers.

Next step

A∪B={1,2,3,4,6,8}A \cup B = \{1, 2, 3, 4, 6, 8\}.

Full working A∪B={1,2,3,4,6,8}B∪A={1,2,3,4,6,8}A \cup B = \{1, 2, 3, 4, 6, 8\} \qquad B \cup A = \{1, 2, 3, 4, 6, 8\}

The two unions are the same set. Union is commutative, so the order of the two sets does not matter.

2. For the same sets, find A∩BA \cap B and B∩AB \cap A.

Hint

The intersection holds the elements that appear in both lists. Look for the shared numbers.

Next step

The shared elements are 2 and 4.

Full working A∩B={2,4}B∩A={2,4}A \cap B = \{2, 4\} \qquad B \cap A = \{2, 4\}

The two intersections are the same set. Intersection is commutative, just like union.

3. Let A={1,2}A = \{1, 2\}, B={2,3}B = \{2, 3\} and C={3,4}C = \{3, 4\}. Find (A∪B)∪C(A \cup B) \cup C and A∪(B∪C)A \cup (B \cup C).

Hint

Work out the bracket in each expression first. The two expressions put the bracket in different places.

Next step

A∪B={1,2,3}A \cup B = \{1, 2, 3\} and B∪C={2,3,4}B \cup C = \{2, 3, 4\}.

Full working (A∪B)∪C={1,2,3,4}(A \cup B) \cup C = \{1, 2, 3, 4\} A∪(B∪C)={1,2,3,4}A \cup (B \cup C) = \{1, 2, 3, 4\}

The bracket moved and the answer stayed the same. Union is associative.

4. Let A={1,2,3,4}A = \{1, 2, 3, 4\}, B={2,4,6}B = \{2, 4, 6\} and C={4,5,6}C = \{4, 5, 6\}. Find (A∩B)∩C(A \cap B) \cap C and A∩(B∩C)A \cap (B \cap C).

Hint

Work out the bracket first. Look for the elements that are in all three sets.

Next step

A∩B={2,4}A \cap B = \{2, 4\} and B∩C={4,6}B \cap C = \{4, 6\}.

Full working (A∩B)∩C={4}(A \cap B) \cap C = \{4\} A∩(B∩C)={4}A \cap (B \cap C) = \{4\}

Both expressions give {4}\{4\}. Intersection is associative.

5. Explain why (B∪A)∪C(B \cup A) \cup C is the same set as A∪(B∪C)A \cup (B \cup C). Name the property you use at each step.

Hint

First swap the two sets inside the bracket. Then move the bracket.

Next step

The commutative property gives (B∪A)∪C=(A∪B)∪C(B \cup A) \cup C = (A \cup B) \cup C.

Full working

The associative property gives

(A∪B)∪C=A∪(B∪C)(A \cup B) \cup C = A \cup (B \cup C)

So (B∪A)∪C=A∪(B∪C)(B \cup A) \cup C = A \cup (B \cup C). Both properties together let you reorder the letters and move the bracket without changing the set.

6. Let A={1,2,3,4}A = \{1, 2, 3, 4\} and B={3,4,5,6}B = \{3, 4, 5, 6\}. Find A∖BA \setminus B and B∖AB \setminus A. What do you notice?

Hint

The first answer keeps the elements of AA alone. The second keeps the elements of BB alone.

Next step

A∖B={1,2}A \setminus B = \{1, 2\}.

Full working A∖B={1,2}B∖A={5,6}A \setminus B = \{1, 2\} \qquad B \setminus A = \{5, 6\}

The two answers are different sets. Difference is not commutative, because the order of the two sets matters.

7. Let A={1,2,3}A = \{1, 2, 3\}, B={2}B = \{2\} and C={3}C = \{3\}. Find (A∖B)∖C(A \setminus B) \setminus C and A∖(B∖C)A \setminus (B \setminus C).

Hint

Work out the inner bracket first in each expression.

Next step

A∖B={1,3}A \setminus B = \{1, 3\} and B∖C={2}B \setminus C = \{2\}.

Full working (A∖B)∖C={1}(A \setminus B) \setminus C = \{1\} A∖(B∖C)={1,3}A \setminus (B \setminus C) = \{1, 3\}

The bracket changed the answer, so difference is not associative.

8. In a class, 18 students study French and 14 study German. Six study both. Find n(F∪G)n(F \cup G) and n(G∪F)n(G \cup F).

Hint

Use n(A∪B)=n(A)+n(B)−n(A∩B)n(A \cup B) = n(A) + n(B) - n(A \cap B). The overlap is 6.

Next step

n(F∪G)=18+14−6n(F \cup G) = 18 + 14 - 6.

Full working n(F∪G)=18+14−6=26n(G∪F)=14+18−6=26n(F \cup G) = 18 + 14 - 6 = 26 \qquad n(G \cup F) = 14 + 18 - 6 = 26

Here FF is the set of students who study French and GG is the set who study German.

Both orders give 26, because union is commutative.

A question from an earlier section

9. Work out 5+3×45 + 3 \times 4 and (5+3)×4(5 + 3) \times 4.

Hint

In the first expression, multiplication goes first. In the second, the bracket goes first. Section 8.5 has the rule.

Next step

3×4=123 \times 4 = 12.

Full working 5+3×4=5+12=175 + 3 \times 4 = 5 + 12 = 17 (5+3)×4=8×4=32(5 + 3) \times 4 = 8 \times 4 = 32

The brackets changed the answer. That is why the order of operations matters when one operation is stronger than another.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.