8.3 Intersection, union and set difference — Learn
Prerequisites: roster form, the symbols and , and the complement from Section 8.2.
Objectives: find the intersection, the union and the difference of two sets; use the counting rule for a union; read the three operations from a description in words.
By the end of this section, you can combine two sets in three different ways, and count the result.
Intersection
The intersection of two sets is the set of elements that are in both of them. You write it , and it holds the elements the two sets share.
Here stands for any element.
Example 1. Find .
Look for the elements that appear in both lists: 3 and 4.
The numbers 1 and 2 are only in the first set, and 5 and 6 are only in the second, so none of them is in the intersection.
Union
The union of two sets is the set of elements that are in either set, or in both. You write it .
The word "or" includes the case where an element is in both. An element is written once in the union, even when the two sets share it.
Example 2. Find .
Take every element from both lists, and write each one once.
The shared numbers 3 and 4 appear once in the answer, not twice.
Set difference
The difference is the set of elements that are in but not in .
Example 3. Find .
Start with the first set and remove anything that is also in the second set.
The numbers 3 and 4 are removed, because they are in the second set. The numbers 5 and 6 were never in the first set, so they are not part of the answer.
The complement from Section 8.2 is a difference: .
Counting a union
When you add the two cardinalities, a shared element is counted twice. Subtract the overlap once to put that right.
Example 4. In a class, 18 students play football and 12 play basketball. Six students play both. How many play at least one of the two sports?
Add the two totals, then subtract the students counted twice.
Here is the set of students who play football and is the set who play basketball.
So 24 students play at least one of the two sports.
Example 5. In the same class, how many play football but not basketball?
This asks for a difference. Take the football players and remove the six who also play basketball.
So 12 students play football but not basketball.
Progress check
Return to the chapter problem. The sign-up sheet gives , , and .
- Find , and say in words what this number counts.
- Find using .
- Find , the number of students who joined Chess but not Drama.
In Section 8.4 you will draw these sets in a Venn diagram.
You should now be able to
- find , the elements the two sets share;
- find , the elements in either set, written once;
- find , the elements in but not in ;
- count a union with ;
- tell the intersection, the union and the difference apart.