Junior Cycle Mathematics8.6 Commutative and associative set operations

All books

8.6 Commutative and associative set operations — Learn

Prerequisites: intersection and union from Section 8.3, the universal set and complements from Section 8.2, and the order of operations from Section 8.5.

Objectives: use the commutative property to swap the two sets in a union or an intersection; use the associative property to move the brackets in a union or an intersection; explain why set difference has neither property.

By the end of this section, you can reorder and regroup a set expression without changing its answer, and say which rule allows it.

The commutative property

The word commutative describes an operation whose answer does not change when you swap the two things it acts on. Addition and multiplication are commutative.

3+8=118+3=114×5=205×4=203 + 8 = 11 \qquad 8 + 3 = 11 \qquad 4 \times 5 = 20 \qquad 5 \times 4 = 20

Union and intersection are commutative too.

A∪B=B∪AA∩B=B∩AA \cup B = B \cup A \qquad A \cap B = B \cap A

Example 1. Let A={2,4,6}A = \{2, 4, 6\} and B={1,2,3,4}B = \{1, 2, 3, 4\}. Find A∪BA \cup B and B∪AB \cup A.

The union collects every element of both sets, written once.

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

The two answers are the same set.

Why it works. An element is in A∪BA \cup B when it is in AA or in BB. The word "or" reads the same both ways round. So the same elements pass the test, and the two sets are equal. The same reasoning holds for A∩BA \cap B, where the word is "and".

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

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

Both answers are {2,4}\{2, 4\}. Swapping the two sets changed nothing.

The associative property

The word associative describes an operation whose answer does not change when you move the brackets. Addition and multiplication are associative.

(3+8)+5=163+(8+5)=16(3 + 8) + 5 = 16 \qquad 3 + (8 + 5) = 16 (4×5)×2=404×(5×2)=40(4 \times 5) \times 2 = 40 \qquad 4 \times (5 \times 2) = 40

Union and intersection are associative too.

(A∪B)∪C=A∪(B∪C)(A∩B)∩C=A∩(B∩C)(A \cup B) \cup C = A \cup (B \cup C) \qquad (A \cap B) \cap C = A \cap (B \cap C)

Example 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).

Work out the bracket in each expression.

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

Both expressions give {1,2,3,4}\{1, 2, 3, 4\}.

Why it works. An element is in (A∪B)∪C(A \cup B) \cup C when it is in at least one of the three sets. The brackets decide which two sets you combine first. They do not change which three sets the element is tested against. So the two expressions hold the same elements.

Example 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).

A∩B={2,4}(A∩B)∩C={4}A \cap B = \{2, 4\} \qquad (A \cap B) \cap C = \{4\} B∩C={4,6}A∩(B∩C)={4}B \cap C = \{4, 6\} \qquad A \cap (B \cap C) = \{4\}

Both expressions give {4}\{4\}.

Writing three sets without brackets

Union and intersection are associative, so the brackets in a chain of one operation can be dropped. Both A∪B∪CA \cup B \cup C and A∩B∩CA \cap B \cap C have one meaning, whichever pair you combine first.

The commutative property also lets you reorder the letters. All of these name the same set.

A∪B∪C=C∪A∪B=B∪C∪AA \cup B \cup C = C \cup A \cup B = B \cup C \cup A

So you can rearrange a set expression into the order that suits you best. The answer does not change.

Example 5. Rewrite (B∪A)∪C(B \cup A) \cup C in the order A∪B∪CA \cup B \cup C.

Swap BB and AA inside the bracket with the commutative property.

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

Now drop the brackets with the associative property.

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

Progress check

Return to the chapter problem. The club fair uses the sets CC, DD and SS, and the eight regions from Section 8.4.

  1. Use the commutative property to write D∩CD \cap C another way. Find n(D∩C)n(D \cap C).
  2. Use the associative property to write (C∪D)∪S(C \cup D) \cup S with the brackets moved. Find n((C∪D)∪S)n((C \cup D) \cup S).
  3. A student writes (C∖D)∪S(C \setminus D) \cup S. Explain why C∖DC \setminus D is not the same set as D∖CD \setminus C, and find n(C∖D)n(C \setminus D).

In the Review you will return to the whole sign-up sheet and answer the chapter problem.

You should now be able to

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.