1.5: Set Operations with Three Sets
( \newcommand{\kernel}{\mathrm{null}\,}\)
After completing this section, you should be able to:
- Interpret Venn diagrams with three sets.
- Create Venn diagrams with three sets.
- Apply set operations to three sets.
- Prove equality of sets using Venn diagrams.
Have you ever searched for something on the Internet and then soon after started seeing multiple advertisements for that item while browsing other web pages? Large corporations have built their business on data collection and analysis. As we start working with larger data sets, the analysis becomes more complex. In this section, we will extend our knowledge of set relationships by including a third set.
A Venn diagram with two intersecting sets breaks up the universal set into four regions; simply adding one additional set will increase the number of regions to eight, doubling the complexity of the problem.
Venn Diagrams with Three Sets
Below is a Venn diagram with two intersecting sets, which breaks the universal set up into four distinct regions.
Next, we see a Venn diagram with three intersecting sets, which breaks up the universal set into eight distinct regions.
Venn Diagram is an Android application that allows you to visualize how the sets are related in a Venn diagram by entering expressions and displaying the resulting Venn diagram of the set shaded in gray.
The Venn Diagram application uses some notation that differs from the notation covered in this text.
- The complement of set A in this text is written symbolically as A′, but the Venn Diagram app uses
A C to represent the complement operation.A C - The set difference operation, −, is available in the Venn Diagram app, although this operation is not covered in the text.
It is recommended that you explore this application to expand your knowledge of Venn diagrams prior to continuing with the next example.
In the next example, we will explore the three main blood factors, A, B and Rh. The following background information about blood types will help explain the relationships between the sets of blood factors. If an individual has blood factor A or B , those will be included in their blood type. The Rh factor is indicated with a + or \mathrm{a}-. For example, if a person has all three blood factors, then their blood type would be \mathrm{AB}^{+}. In the Venn diagram, they would be in the intersection of all three sets, A \cap B \cap R h^{+}. If a person did not have any of these three blood factors, then their blood type would be \mathrm{O}^{-}, and they would be in the set \left(A \cup B \cup R h^{+}\right)^{\prime} which is the region outside all three circles.
Use the Venn diagram below, which shows the blood types of 100 people who donated blood at a local clinic, to answer the following questions.
- How many people with a type A blood factor donated blood?
- Julio has blood type If he needs to have surgery that requires a blood transfusion, he can accept blood from anyone who does not have a type A blood factor. How many people donated blood that Julio can accept?
- How many people who donated blood do not have the blood factor?
- How many people had type A and type B blood?
- Answer
-
1. The number of people who donated blood with a type A blood factor will include the sum of all the values included in the A circle. It will be the union of sets A^{-}, A^{+}, A B^{-}and A B^{+}. n(A)=n\left(A^{-}\right)+n\left(A^{+}\right)+n\left(A B^{-}\right)+n\left(A B^{+}\right)=6+36+1+3=46.
2. In part 1, it was determined that the number of donors with a type A blood factor is 46 . To determine the number of people who did not have a type A blood factor, use the following property, A^{\prime} union is equal to U, which means n(A)+n\left(A^{\prime}\right)=n(U), and n\left(A^{\prime}\right)=n(U)-n(A)=100-46=54. Thus, 54 people donated blood that Julio can accept.
3. This would be everyone outside the \mathrm{Rh}^{+}circle, or everyone with a negative Rh factor, n\left(R h^{-}\right)=n\left(O^{-}\right)+n\left(A^{-}\right)+n\left(A B^{-}\right)+n\left(B^{-}\right)=7+6+1+2=16.
4. To have both blood type A and blood type B , a person would need to be in the intersection of sets A and B. The two circles overlap in the regions labeled A B^{-}and A B^{+}. Add up the number of people in these two regions to get the total: 1+3=4. This can be written symbolically as n(A and B)=n(A \cap B)=n\left(A B^{-}\right)+n\left(A B^{+}\right)=1+3=4.
Use the same Venn diagram in the example above to answer the following questions.
How many people donated blood with a type B blood factor?
2. How many people who donated blood did not have a type B blood factor?
How many people who donated blood had a type B blood factor or were Rh+?
Most people know their main blood type of A, B, AB, or O and whether they are or , but did you know that the International Society of Blood Transfusion recognizes twenty-eight additional blood types that have important implications for organ transplants and successful pregnancy? For more information, check out this article:
Blood mystery solved: Two new blood types identified
Creating Venn Diagrams with Three Sets
In general, when creating Venn diagrams from data involving three subsets of a universal set, the strategy is to work from the inside out. Start with the intersection of the three sets, then address the regions that involve the intersection of two sets. Next, complete the regions that involve a single set, and finally address the region in the universal set that does not intersect with any of the three sets. This method can be extended to any number of sets. The key is to start with the region involving the most overlap, working your way from the center out.
A teacher surveyed her class of 43 students to find out how they prepared for their last test. She found that 24 students made flash cards, 14 studied their notes, and 27 completed the review assignment. Of the entire class of 43 students, 12 completed the review and made flash cards, nine completed the review and studied their notes, and seven made flash cards and studied their notes, while only five students completed all three of these tasks. The remaining students did not do any of these tasks. Create a Venn diagram with subsets labeled: “Notes,” “Flash Cards,” and “Review” to represent how the students prepared for the test.
- Answer
-
Step 1: First, draw a Venn diagram with three intersecting circles to represent the three intersecting sets: Notes, Flash Cards, and Review. Label the universal set with the cardinality of the class.
Figure 1.37: Step 2: Next, in the region where all three sets intersect, enter the number of students who completed all three tasks.
Figure 1.38: Step 3: Next, calculate the value and label the three sections where just two sets overlap.
Review and flash card overlap. A total of 12 students completed the review and made flash cards, but five of these twelve students did all three tasks, so we need to subtract: 12 − 5 = 7 12 − 5 = 7 . This is the value for the region where the flash card set intersects with the review set. Review and notes overlap. A total of 9 students completed the review and studied their notes, but again, five of these nine students completed all three tasks. So, we subtract: 9 − 5 = 4 9 − 5 = 4 . This is the value for the region where the review set intersects with the notes set. Flash card and notes overlap. A total of 7 students made flash cards and studied their notes; subtracting the five students that did all three tasks from this number leaves 2 students who only studied their notes and made flash cards. Add these values to the Venn diagram.Figure 1.39: Step 4: Now, repeat this process to find the number of students who only completed one of these three tasks.
A total of 24 students completed flash cards, but we have already accounted for 2 + 5 + 7 = 14 2 + 5 + 7 = 14 of these. Thus, 24 - 14 = 10 24 - 14 = 10 students who just made flash cards. A total of 14 students studied their notes, but we have already accounted for 4 + 5 + 2 = 11 4 + 5 + 2 = 11 of these. Thus, 14 - 11 = 3 14 - 11 = 3 students only studied their notes. A total of 27 students completed the review assignment, but we have already accounted for 4 + 5 + 7 = 16 4 + 5 + 7 = 16 of these, which means 27 - 16 = 11 27 - 16 = 11 students only completed the review assignment. Add these values to the Venn diagram.Figure 1.40: Step 5: Finally, compute how many students did not do any of these three tasks. To do this, we add together each value that we have already calculated for the separate and intersecting sections of our three sets: . Because there 43 students in the class, and , this means only one student did not complete any of these tasks to prepare for the test. Record this value somewhere in the rectangle, but outside of all the circles, to complete the Venn diagram.
Figure 1.41
A group of 50 people attending a conference who preordered their lunch were able to select their choice of soup, salad, or sandwich. A total of 17 people selected soup, 29 people selected salad and 35 people selected a sandwich. Of these orders, 11 attendees selected soup and salad, 10 attendees selected soup and a sandwich, and 18 selected a salad and a sandwich, while eight people selected a soup, a salad, and a sandwich. Create a Venn diagram with subsets labeled “Soup,” “Salad,” and “Sandwich,” and label the cardinality of each section of the Venn diagram as indicated by the data.
Applying Set Operations to Three Sets
Set operations are applied between two sets at a time. Parentheses indicate which operation should be performed first. As with numbers, the inner most parentheses are applied first. Next, find the complement of any sets, then perform any union or intersections that remain.
Perform the set operations as indicated on the following sets: , and
- Find
- Find
- Find
- Answer
-
- Parentheses first, intersection equals the elements common to both and . because the only elements that are in both sets are 0 and 6.
- Parentheses first, union equals the collection of all elements in set or set or both. because the intersection of these two sets is the set of elements that are common to both sets.
- Parentheses first, intersection equals Next, find The complement of set is the set of elements in the universal set that are not in set Finally, find
Your Turn 1.37
Find A \cap(B \cap C).
Find (A \cap B) \cup(A \cap C).
Find \left(A \cup C^{\prime}\right) \cap\left(B \cup C^{\prime}\right).
Notice that the answers to the Your Turn are the same as those in the Example. This is not a coincidence. The following equivalences hold true for sets:
- and These are the associative property for set intersection and set union.
- and These are the commutative property for set intersection and set union.
- and These are the distributive property for sets over union and intersection, respectively.
Proving Equality of Sets Using Venn Diagrams
To prove set equality using Venn diagrams, the strategy is to draw a Venn diagram to represent each side of the equality, then look at the resulting diagrams to see if the regions under consideration are identical.
Augustus De Morgan was an English mathematician known for his contributions to set theory and logic. De Morgan’s law for set complement over union states that . In the next example, we will use Venn diagrams to prove De Morgan’s law for set complement over union is true. But before we begin, let us confirm De Morgan’s law works for a specific example. While showing something is true for one specific example is not a proof, it will provide us with some reason to believe that it may be true for all cases.
Let and We will use these sets in the equation To begin, find the value of the set defined by each side of the equation.
Step 1: is the collection of all unique elements in set or set or both. The complement of A union B, , is the set of all elements in the universal set that are not in . So, the left side the equation is equal to the set
Step 2: The right side of the equation is is the set of all members of the universal set that are not in set . Similarly,
Step 3: Finally, is the set of all elements that are in both and The numbers 1 and 7 are common to both sets, therefore, Because, we have demonstrated that De Morgan’s law for set complement over union works for this particular example. The Venn diagram below depicts this relationship.
De Morgan’s Law for the complement of the union of two sets and states that: Use a Venn diagram to prove that De Morgan’s Law is true.
- Answer
-
Step 1: First, draw a Venn diagram representing the left side of the equality. The regions of interest are shaded to highlight the sets of interest. is shaded on the left, and is shaded on the right.
Figure 1.43: Step 2: Next, draw a Venn diagram to represent the right side of the equation. A^{\prime} is shaded and B^{\prime} is shaded. Because A^{\prime} and B^{\prime} mix to form A^{\prime} \cap B^{\prime} is also shaded.
Step 3: Verify the conclusion. Because the shaded region in the Venn diagram for (A \cup B)^{\prime} matches the shaded region in the Venn diagram for A^{\prime} \cap B^{\prime}, the two sides of the equation are equal, and the statement is true. This completes the proof that De Morgan's law is valid.
De Morgan's Law for the complement of the intersection of two sets A and B states that (A \cap B)^{\prime}=A^{\prime} \cup B^{\prime}. Use a Venn diagram to prove that De Morgan's Law is true.
Check Your Understanding
When creating a Venn diagram with two or more subsets, you should begin with the region involving the most ___________ , then work your way from the center outward.
To construct a Venn diagram with three subsets, draw and label three circles that overlap in a common ___________ region inside the rectangle of the universal set to represent each of the three subsets.
In a Venn diagram with three sets, the area where all three sets, A, B, and C overlap is equal to the set ___________ .
When performing set operations with three or more sets, the order of operations is inner most ___________ first, then find the ___________ of any sets, and finally perform any union or intersection operations that remain.
To prove set equality using Venn diagrams, draw a Venn diagram to represent each side of the ___________ and then compare the diagrams to determine if they match or not. If they match, the statement is ___________, otherwise it is not.