1.5 Set Operations With Three Sets
Learning Objectives
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.
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 a
. For example, if a person has all three blood factors, then their blood type would be
. In the Venn diagram, they would be in the intersection of all three sets,
.
If a person did not have any of these three blood factors, then their blood type would be
, and they would be in the set
which is the region outside all three circles.
EXAMPLE 1
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?
Show / Hide Solution
- 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,
.
- 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, 𝐴′ union is equal to 𝑈, which means
. Thus, 54 people donated blood that Julio can accept. - This would be everyone outside the Rh+ circle, or everyone with a negative Rh factor,
. - To have both blood type A and blood type B, a person would need to be in the intersection of sets 𝐴 and 𝐵. The two circles overlap in the regions labeled 𝐴𝐵− and 𝐴𝐵+. Add up the number of people in these two regions to get the total: 1+3=4. This can be written symbolically as
.
TRY IT 1
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?
- 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+?
Show / Hide Solution
- 12
Who Knew?
Blood Types
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:
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.
Example 2
Creating a Venn Diagram with Three Sets
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.
Show / Hide Solution
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.
Step 2: Next, in the region where all three sets intersect, enter the number of students who completed all three tasks.
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. 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. 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.
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
of these. Thus, 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
of these. Thus, 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
of these, which means 27−16=11 students only completed the review assignment. - Add these values to the Venn diagram.
Figure 1.36
Step 5: Finally, comput 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: 3+2+4+5+10+7+11=42. Because there are 43 students in the class, and 43 – 42 = 1, 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.
TRY IT 2
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.
Show / Hide Solution
Draw a rectangle to represent the universal set. Label it with “U = Conference Attendees = 50.”
Inside the rectangle, draw three overlapping circles. Label one circle Soup, one Sandwich, and one Salad. In the Soup circle, write 4 in the part that does not overlap any other circle, write 2 in the part that only overlaps the Sandwich circle, write 8 in the part that overlaps all three circles, and write 3 in the part that overlaps only the Salad circle. In the Sandwich circle, write 15 in the part that does not overlap any other circle and write 10 in the part that only overlaps the Salad circle. In the Salad circle, write 8 in the part that does not overlap any other circle. Write 0 outside all the circles.
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.
Example 1.37
Applying Set Operations to Three Sets
Perform the set operations as indicated on the following sets:
,
,
, and
.
- Find
. - Find
. - Find
.
Show / Hide Solution
- Parentheses first, 𝐴 intersection 𝐵 equals 𝐴∩𝐵={0,2,4,6}, the elements common to both 𝐴 and 𝐵. (𝐴∩𝐵)∩𝐶={0,2,4,6}∩{0,3,6,9,12}={0,6}, because the only elements that are in both sets are 0 and 6.
- Parentheses first, 𝐵 union 𝐶 equals 𝐵∪𝐶={0,2,3,4,6,8,9,10,12}, the collection of all elements in set 𝐵 or set 𝐶 or both. 𝐴∩(𝐵∪𝐶)={0,1,2,3,4,5,6}∩{0,2,3,4,6,8,9,10,12}={0,2,3,4,6}, because the intersection of these two sets is the set of elements that are common to both sets.
- Parentheses first, 𝐴 intersection 𝐵 equals 𝐴∩𝐵={0,2,4,6}. Next, find 𝐶′. The complement of set 𝐶 is the set of elements in the universal set 𝑈 that are not in set 𝐶. 𝐶′={1,2,4,5,7,8,10,11}.
Finally, find (𝐴∩𝐵)∪𝐶′={0,2,4,6}∪{1,2,4,5,7,8,10,11}={0,1,2,4,5,6,7,8,10,11}.
TRY IT 3
Using the same sets from Example 1.37, perform the set operations indicated.
- Find
. - Find
. - Find
.
Show / Hide Solution
1.
A∩(B∩C)
First, evaluate the operation inside the parentheses.
B∩C={0,2,4,6,8,10,12}∩{0,3,6,9,12}
The intersection of two sets includes the elements that are common to both sets.
B∩C={0,6,12}
A∩(B∩C)={0,1,2,3,4,5,6}∩{0,6,12}
A∩(B∩C)={0,6}
2.
(A∩B)∪(A∩C)
Evaluate the expression in the left parentheses.
A∩B={0,1,2,3,4,5,6}∩{0,2,4,6,8,10,12}
The intersection of two sets includes the elements that are common to both sets.
A∩B={0,2,4,6}
Evaluate the expression in the right parentheses.
A∩C={0,1,2,3,4,5,6}∩{0,3,6,9,12}
A∩C={0,3,6}
Now, you can find (A∩B)∪(A∩C).
(A∩B)∪(A∩C)={0,2,4,6}∪{0,3,6}
(A∩B)∪(A∩C)={0,2,3,4,6}
3.
(A∪C′)∩(B∪C′)
C′, the complement of C, includes the elements of U that are not in C.
C={0, 3, 6, 9, 12} and U={0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12}
C′={1, 2, 4, 5, 7, 8, 10, 11}
Evaluate the expression in the left parentheses.
A∪C′={0,1,2,3,4,5,6}∩{1, 2, 4, 5, 7, 8, 10, 11}
The intersection of two sets includes the elements that are common to both sets.
A∪C′={0,1,2,3,4,5,6,7,8,10,11}
Evaluate the expression in the right parentheses.
B∪C′={0,2,4,6,8,10,12}∩{1, 2, 4, 5, 7, 8, 10, 11}
B∪C′={0,1,2,4,5,6,7,8,10,11,12}
Now, you can find (A∪C′)∩(A∪C′).
(A∪C′)∩(B∪C′)={0,1,2,3,4,5,6,7,8,10,11}∩{0,1,2,4,5,6,7,8,10,11,12}
(A∪C′)∩(B∪C′)={0,1,2,4,5,6,7,8,10,11}
Notice that the answers to the TRY IT’s 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 A or set B 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 U that are not in set A.
. 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.
Example 1.38
Proving De Morgan’s Law for Set Complement over Union Using a Venn Diagram
De Morgan’s Law for the complement of the union of two sets A and B states that:
. Use a Venn diagram to prove that De Morgan’s Law is true.
Show / Hide Solution
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.
Step 2: Next, draw a Venn diagram to represent the right side of the equation. 𝐴′ is shaded and 𝐵′ is shaded. Because 𝐴′
and 𝐵′ mix to form 𝐴′∩𝐵′ is also shaded.
Step 3: Verify the conclusion. Because the shaded region in the Venn diagram for (𝐴∪𝐵)′ matches the shaded region in the Venn diagram for 𝐴′∩𝐵’, the two sides of the equation are equal, and the statement is true. This completes the proof that De Morgan’s law is valid.
TRY IT 4
De Morgan’s Law for the complement of the intersection of two sets A and B states that
. Use a Venn diagram to prove that De Morgan’s Law is true.
Show / Hide Solution
First, draw the left side of the equation.
For A ∩ B, draw a rectangle to represent the universal set U. Label the rectangle “U.” Inside the rectangle, draw overlapping circles to represent two sets. Label one circle “A” and the other circle “B.” Shade the overlap.
Now, draw the complement of the intersection. Draw the same Venn diagram, but shade everything except the overlap to represent (A∩B)′.
Now, draw the right side of the equation: A′∪B′.
First, draw A′. Draw a rectangle to represent the universal set U. Label the rectangle “U.” Inside the rectangle, draw a circle and label the circle “A.” Shade everything outside the circle.
To the right of the rectangle, draw the ∪ symbol.
Now, draw B′. Draw a rectangle to represent the universal set U. Label the rectangle “U.” Inside the rectangle, draw a circle and label the circle “B.” Shade everything outside the circle.
To the right of the second rectangle, draw the equal symbol: =.
For A′∪B′, draw a rectangle to represent the universal set U. Label the rectangle “U.” Inside the rectangle, draw overlapping circles to represent two sets. Label one circle “A” and the other circle “B.” Shade everything except for the overlap.
The left side of the equation is:
The right side of the equation is given by:
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.
Check your understanding answers
- By beginning with the region involving the most overlap, you start with the regions involving the most sets and the most complexity. Work toward the simpler parts of the diagram.
- central
- intersection of all three sets,

- parentheses, complement
- equation, true
1.5 Exercise set
A gamers club at Baily Middle School consisting of 25 members was surveyed to find out who played board games, card games, or video games. Use the results depicted in the Venn diagram below to answer the following exercises.
- How many gamers club members play all three types of games: board games, card games, and video games?
- How many gamers are in the set Board ∩ Video?
- If Javier is in the region with a total of three members, what type of games does he play?
- How many gamers play video games?
- How many gamers are in the set Board ∪ Card?
- How many members of the gamers club do not play video games?
- How many gamers are in the set Board ∩ Card?
- How many members of the gamers club only play board games?
- How many members of the gamers club are in the set Card’?
A blood drive at City Honors High School recently collected blood from 140 students, staff, and faculty. Use the results depicted in the Venn diagram below to answer the following exercises.
- Blood type
is the universal acceptor. Of the 140 people who donated at City Honors, how many had blood type
? - Blood type
is the universal donor. Anyone needing a blood transfusion can receive this blood type. How many people who donated blood during this drive had
blood? - How many donors were not
? - How many donors were not
? - Blood type
is the most common blood type. How many donors had
blood? - How many donors had
blood? - How many donors were not
? - How many donors were not
? - How many donors had
blood. If she needs to have surgery that requires a blood transfusion, she can accept blood from anyone who does not have a type B blood factor. How many people donated blood during this drive at City Honors that Opal can accept? - Find
? - Find
? - Find
?
For the following exercises, create a three circle Venn diagram to represent the relationship between the described sets.
- The number of elements in the universal set, 𝑈, is 𝑛(𝑈)=48. Sets 𝐴, 𝐵, and 𝐶 are subsets of 𝑈: 𝑛(𝐴)=23, 𝑛(𝐵)=25, and 𝑛(𝐶)=17. Also, 𝑛(𝐴∩𝐵)=15, 𝑛(𝐵∩𝐶)=12, 𝑛(𝐶∩𝐴)=11, and 𝑛(𝐴∩𝐵∩𝐶)=8.
- The number of elements in the universal set, 𝑈, is 𝑛(𝑈)=88. Sets 𝐴, 𝐵, and 𝐶 are subsets of 𝑈: 𝑛(𝐴)=31, 𝑛(𝐵)=46: 𝑛(𝐶)=33. Also, 𝑛(𝐴∩𝐵)=24, 𝑛(𝐵∩𝐶)=24, 𝑛(𝐶∩𝐴)=26, and 𝑛(𝐴∩𝐵∩𝐶)=22.
- The number of elements in the universal set, 𝑈, is 𝑛(𝑈)=52. Sets 𝐴, 𝐵, and 𝐶 are subsets of 𝑈: 𝑛(𝐴)=23, 𝑛(𝐵)=27, and 𝑛(𝐶)=29. Also, 𝑛(𝐴∩𝐵)=22, 𝑛(𝐵∩𝐶)=21, 𝑛(𝐶∩𝐴)=19, and 𝑛(𝐴∩𝐵∩𝐶)=18.
- The number of elements in the universal set, 𝑈, is 𝑛(𝑈)=144. Sets 𝐴, 𝐵, and 𝐶 are subsets of 𝑈: 𝑛(𝐴)=36, 𝑛(𝐵)=64, and 𝑛(𝐶)=81. Also, 𝑛(𝐴∩𝐵)=26, 𝑛(𝐵∩𝐶)=61, 𝑛(𝐶∩𝐴)=29, and 𝑛(𝐴∩𝐵∩𝐶)=25.
- The universal set, 𝑈, has a cardinality of 36. 𝑛(𝐴)=12, 𝑛(𝐵)=12, 𝑛(𝐶)=15, 𝑛(𝐴 and 𝐵)=3, 𝑛(𝐵 and 𝐶)=4, 𝑛(𝐶 and 𝐴)=5, and 𝑛(𝐴 and 𝐵 and 𝐶)=1.
- The universal set, 𝑈, has a cardinality of 63. 𝑛(𝐴)=29, 𝑛(𝐵)=31, 𝑛(𝐶)=41, 𝑛(𝐴 and 𝐵)=12, 𝑛(𝐵 and 𝐶)=16, 𝑛(𝐶 and 𝐴)=18, and 𝑛(𝐴 and 𝐵 and 𝐶)=5.
- The universal set, 𝑈, has a cardinality of 72. 𝑛(𝐴)=32, 𝑛(𝐵)=32, 𝑛(𝐶)=44, 𝑛(𝐴 and 𝐵)=18, 𝑛(𝐵 and 𝐶)=22, 𝑛(𝐶 and 𝐴)=26, and 𝑛(𝐴 and 𝐵 and 𝐶)=14.
- The universal set, 𝑈, has a cardinality of 81. 𝑛(𝐴)=54, 𝑛(𝐵)=41, 𝑛(𝐶)=52, 𝑛(𝐴 and 𝐵)=32, 𝑛(𝐵 and 𝐶)=28, 𝑛(𝐶 and 𝐴)=30, and 𝑛(𝐴 and 𝐵 and 𝐶)=21.
- The anime drawing club at Pratt Institute conducted a survey of its 42 members and found that 23 of them sketched with pastels, 28 used charcoal, and 17 used colored pencils. Of these, 10 club members used all three mediums, 18 used charcoal and pastels, 11 used colored pencils and charcoal, and 12 used colored pencils and pastels. The remaining club members did not use any of these three mediums.
- A new SUV is selling with three optional packages: a sport package, a tow package, and an entertainment package. A dealership gathered the following data for all 31 of these vehicles sold during the month of July. A total of 18 SUVs included the entertainment package, 11 included the tow package, and 16 included the sport package. Of these, five SUVs included all three packages, seven were sold with both the tow package and sport package, 11 were sold with the entertainment and sport package, and eight were sold with the tow package and entertainment package. The remaining SUVs sold did not include any of these optional packages.
For the following exercises, perform the set operations as indicated on the following sets: U = {red, orange, yellow, green, blue, indigo, violet}, A = {red, yellow, blue}, B = {orange, green, violet}, and C = {red, green, indigo}.
- Find (A ∪ B) ∩ C.
- Find (A ∩ C) ∪ B.
- Find U ∩ (B ∪ C).
- Find (B ∩ A) ∩ U.
- Find A ∩ (B ∩ C)′.
- Find A′ ∩ (B ∪ C).
For the following exercises, perform the set operations as indicated on the following sets:
, and
.
- Find
. - Find
. - Find
. - Find
. - Find
. - Find
.
For the following exercises, use Venn diagrams to prove the following properties of sets:
- Commutative property for the union of two sets:
. - Commutative property for the intersection of two sets:
. - Associative property for the intersection of three sets:
. - Associative property for the union of three sets:
. - Distributive property for set intersection over set union:
. - Distributive property for set union over set intersection:
.
Attribution
Text Attribution
This text was adapted from Chapter 1.5 of Contemporary Mathematics, textbooks originally published by OpenStax.