8.5 Order of operations on sets — Learn
Prerequisites: intersection, union and difference from Section 8.3, and complements from Section 8.2.
Objectives: work out an expression with brackets by doing the inside first; recognise that and can differ; use the order complement, intersection, union when no brackets are written.
By the end of this section, you can work out a set expression in the correct order, and say why the brackets matter.
Brackets come first
A set expression is worked out in the same spirit as a number expression. Anything inside brackets is done first.
Example 1. Let , and . Find .
Do the bracket first.
Now take the union with .
Example 2. For the same sets, find .
The bracket has changed, so the first step changes.
Now intersect with .
Compare the two answers: and . They are different sets, even though the same three letters appear. The brackets decide which operation happens first, and the answer changes with them.
The order when there are no brackets
When no brackets are written, the operations have a fixed order.
- Complement first, so is found before anything is combined with it.
- Intersection next.
- Union last.
The order is the set version of the rule for numbers, where indices come before multiplication and multiplication before addition. The complement plays the part of the strongest operation, and the union the weakest.
Example 3. Let and . Find .
The complement is worked out first.
Then the union.
Example 4. Let , and . Find with no brackets.
The intersection is stronger, so do first.
Then the union.
Writing the brackets in makes the order clear: means .
Progress check
Return to the chapter problem. Use the club fair sets , and , and the eight regions from Section 8.4.
- Work out . Use , and the middle region 2.
- Work out . Use .
- Compare your two answers. Write one sentence to explain why the brackets changed the result.
In Section 8.6 you will meet the rules that let you regroup an expression without changing its value.
You should now be able to
- work out a set expression by doing the brackets first;
- see that and can be different;
- use the order complement, then intersection, then union when no brackets are written;
- rewrite an expression with brackets to show the order you used.