Skip to ContentGo to accessibility pageKeyboard shortcuts menu
OpenStax Logo
Contemporary Mathematics

1.5 Set Operations with Three Sets

Contemporary Mathematics1.5 Set Operations with Three Sets

A person is looking at a phone. A laptop is in the background.
Figure 1.28 Companies like Google collect data on how you use their services, but the data requires analysis to really mean something. (credit: “Man holding smartphone and searches through google” by Nenad Stojkovic/Flickr, CC BY 2.0)

Learning Objectives

After completing this section, you should be able to:

  1. Interpret Venn diagrams with three sets.
  2. Create Venn diagrams with three sets.
  3. Apply set operations to three sets.
  4. 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.

A two-set Venn diagram of A and B intersecting one another is given. Set A shows A union of B complement. Set B shows B union of A complement. The intersection of the sets shows A union B. Outside the set, the complement of A union B is given. Outside the Venn diagram, it is marked U.
Figure 1.29

Next, we see a Venn diagram with three intersecting sets, which breaks up the universal set into eight distinct regions.

A three-set Venn diagram of A, B, and C intersecting one another is given. Set A shows A union of the complement of (B union C). Set B shows B union of the complement of (A union C). Set C shows the C union of the complement of (A union B). The intersection of sets A and B shows A union B union complement of C. The intersection of sets B and C shows the complement of A union B union C. The intersection of sets A and C show the A union complement of B union C. The intersection of the sets shows A union B union C. Outside the set, the complement of (A union B union C is given). Outside the Venn diagram, it is marked U.
Figure 1.30

Tech Check

Shading Venn Diagrams

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.

A screenshot of an application named Venn Diagram on the Google play store
Figure 1.31 Google Play Store image of Venn Diagram app. (credit: screenshot from Google Play)

The Venn Diagram application uses some notation that differs from the notation covered in this text.

  1. The complement of set AA in this text is written symbolically as AA, but the Venn Diagram app uses ACAC to represent the complement operation.
  2. 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 a . For example, if a person has all three blood factors, then their blood type would be AB+AB+. In the Venn diagram, they would be in the intersection of all three sets, ABRh+.ABRh+. If a person did not have any of these three blood factors, then their blood type would be O,O, and they would be in the set (ABRh+)(ABRh+) which is the region outside all three circles.

Example 1.35

Interpreting a Venn Diagram with Three Sets

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.

A three-set Venn diagram A, B, and Rh plus overlapping one another is given. Set A shows A dash equals 6. Set B shows B dash equals 2. Set Rh plus shows O plus dash equals 37. The intersection of sets A and B shows AB dash equals 1. The intersection of sets B and Rh plus shows B plus equals 8. The intersection of sets A and Rh plus shows A plus equals 36. The intersection of all three sets shows AB plus equals 3. Outside the set, 'O dash equals 7' is given. Outside the Venn diagram, it is marked 'U equals Blood types of 100 people.'
Figure 1.32
  1. How many people with a type A blood factor donated blood?
  2. Julio has blood type B+.B+. 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?
  3. How many people who donated blood do not have the Rh+Rh+ blood factor?
  4. How many people had type A and type B blood?

Your Turn 1.35

Use the same Venn diagram in the example above to answer the following questions.
1.
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?
3.
How many people who donated blood had a type B blood factor or were Rh+?

Who Knew?

Blood Types

Most people know their main blood type of A, B, AB, or O and whether they are Rh+Rh+ or RhRh, 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.

Example 1.36

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.

Your Turn 1.36

1.
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.

Example 1.37

Applying Set Operations to Three Sets

Perform the set operations as indicated on the following sets: U={0,1,2,3,4,5,6,7,8,9,10,11,12} U={0,1,2,3,4,5,6,7,8,9,10,11,12}, A={0,1,2,3,4,5,6},A={0,1,2,3,4,5,6}, B={0,2,4,6,8,10,12},B={0,2,4,6,8,10,12}, and C={0,3,6,9,12}.C={0,3,6,9,12}.

  1. Find (AB)C.(AB)C.
  2. Find A(BC).A(BC).
  3. Find (AB)C.(AB)C.

Your Turn 1.37

Using the same sets from Example 1.37, perform the set operations indicated.

1.
Find A ( B C ) .
2.
Find ( A B ) ( A C ) .
3.
Find ( A C ) ( B C ) .

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:

  • A(BC)=(AB)CA(BC)=(AB)C and A(BC)=(AB)C.A(BC)=(AB)C. These are the associative property for set intersection and set union.
  • AB=BAAB=BA and AB=BA.AB=BA. These are the commutative property for set intersection and set union.
  • A(BC)=(AB)(AC)A(BC)=(AB)(AC) and A(BC)=(AB)(AC).A(BC)=(AB)(AC). 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 (AB)=AB(AB)=AB. 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 U={1,2,3,4,5,6,7},U={1,2,3,4,5,6,7}, A={2,3,4},A={2,3,4}, and B={3,4,5,6}.B={3,4,5,6}. We will use these sets in the equation (AB)=AB.(AB)=AB. To begin, find the value of the set defined by each side of the equation.

Step 1: ABAB is the collection of all unique elements in set AA or set BB or both. AB={2,3,4,5,6}.AB={2,3,4,5,6}. The complement of A union B, (AB)(AB), is the set of all elements in the universal set that are not in ABAB. So, the left side the equation (AB)(AB) is equal to the set {1,7}.{1,7}.

Step 2: The right side of the equation is AB.AB. AA is the set of all members of the universal set UU that are not in set AA. A={1,5,6,7}.A={1,5,6,7}. Similarly, B={1,2,7}.B={1,2,7}.

Step 3: Finally, ABAB is the set of all elements that are in both AA and B.B. The numbers 1 and 7 are common to both sets, therefore, AB={1,7}.AB={1,7}. Because, {1,7}={1,7}{1,7}={1,7} 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.

A two-set Venn diagram of A and B is given. Set A shows 2, l while set B shows 5, 6. The intersection of the sets shows 3, 4. Outside sets A and B, 1, and 7 are shown. The union of the sets A and B shows (0, 1, 2, 3, 4, 5, 6, 7).
Figure 1.38

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 AA and BB states that: (AB)=AB.(AB)=AB. Use a Venn diagram to prove that De Morgan’s Law is true.

Your Turn 1.38

1.
De Morgan’s Law for the complement of the intersection of two sets A and B states that ( A B ) = A B . Use a Venn diagram to prove that De Morgan’s Law is true.

Check Your Understanding

28.
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.
29.
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.
30.
In a Venn diagram with three sets, the area where all three sets, A , B , and C overlap is equal to the set _____________.
31.
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.
32.
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.

Section 1.5 Exercises

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.

A three-set Venn diagram overlapping one another is given. The total number of gamers club members equals 25. The first set is labeled Board, the second set is labeled Card, and the third set is labeled Video. Set Board shows 1; Set Card shows 0; Set Video plus shows 5. Overlapping of the first and second sets show 2, overlapping of second and third sets show 3, and overlapping of sets first and third sets show 4. Overlapping of all three sets shows 10. Outside the sets, 0 is marked.
1 .
How many gamers club members play all three types of games: board games, card games, and video games?
2 .
How many gamers are in the set Board Video?
3 .
If Javier is in the region with a total of three members, what type of games does he play?
4 .
How many gamers play video games?
5 .
How many gamers are in the set Board Card?
6 .
How many members of the gamers club do not play video games?
7 .
How many members of this club only play board games?
8 .
How many members of this club only play video games?
9 .
How many members of the gamers club play video and card games?
10 .
How many members of the gamers club are in the set C a r d ?

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.


A three-set Venn diagram of A, B, and Rh plus overlapping one another is given. The total number of donors equals 140. Set A shows 8; Set B shows 3; Set Rh plus shows 52. Overlapping of sets A and B shows 2, overlapping of sets B and Rh plus shows 11, and overlapping of A and Rh plus shows 50. Overlapping of A, B, and Rh plus shows 4.
11 .
Blood type AB + is the universal acceptor. Of the 140 people who donated at City Honors, how many had blood type AB + ?
12 .
Blood type O is the universal donor. Anyone needing a blood transfusion can receive this blood type. How many people who donated blood during this drive had O blood?
13 .
How many people donated with a type A blood factor?
14 .
How many people donated with a type A and type B blood factor (that is, they had type AB blood).
15 .
How many donors were O + ?
16 .
How many donors were not R h + ?
17 .
Opal has blood type A + . 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?
18 .
Find n ( A R h + ) .
19 .
Find n ( A R h + ) .
20 .
Find n ( A B R h ) .
For the following exercises, create a three circle Venn diagram to represent the relationship between the described sets.
21 .
The number of elements in the universal set, U , is n ( U ) = 48 . Sets A , B , and C are subsets of U : n ( A ) = 23 , n ( B ) = 25 , and n ( C ) = 17 . Also, n ( A B ) = 15 , n ( B C ) = 12 , n ( C A ) = 11 , and n ( A B C ) = 8 .
22 .
The number of elements in the universal set, U , is n ( U ) = 88 . Sets A , B , and C are subsets of U : n ( A ) = 31 , n ( B ) = 46 : n ( C ) = 33 . Also, n ( A B ) = 24 , n ( B C ) = 24 , n ( C A ) = 26 , and n ( A B C ) = 22 .
23 .
The number of elements in the universal set, U , is n ( U ) = 52 . Sets A , B , and C are subsets of U : n ( A ) = 23 , n ( B ) = 27 , and n ( C ) = 29 . Also, n ( A B ) = 22 , n ( B C ) = 21 , n ( C A ) = 19 , and n ( A B C ) = 18 .
24 .
The number of elements in the universal set, U , is n ( U ) = 144 . Sets A , B , and C are subsets of U : n ( A ) = 36 , n ( B ) = 64 , and n ( C ) = 81 . Also, n ( A B ) = 26 , n ( B C ) = 61 , n ( C A ) = 29 , and n ( A B C ) = 25 .
25 .
The universal set, U , has a cardinality of 36. n ( A ) = 12 , n ( B ) = 12 , n ( C ) = 15 , n ( A and B ) = 3 , n ( B and C ) = 4 , n ( C and A ) = 5 , n ( C and A ) = 5 , and n ( A  and  B  and  C ) = 1.
26 .
The universal set, U , has a cardinality of 63. n ( A ) = 29 , n ( B ) = 31 , n ( C ) = 41 , n ( A and B ) = 12 , n ( B and C ) = 16 , n ( C and A ) = 18 , and n ( A and B and C ) = 5 .
27 .
The universal set, U , has a cardinality of 72. n ( A ) = 32 , n ( B ) = 32 , n ( C ) = 44 , n ( A and B ) = 18 , n ( B and C ) = 22 , n ( C and A ) = 26 , and n ( A and B and C ) = 14 .
28 .
The universal set, U , has a cardinality of 81. n ( A ) = 54 , n ( B ) = 41 , n ( C ) = 52 , n ( A and B ) = 32 , n ( B and C ) = 28 , n ( C and A ) = 30 , and n ( A and B and C ) = 21 .
29 .
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.
30 .
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 } .
31 .
Find ( A B ) C .
32 .
Find ( A C ) B .
33 .
Find U ( B C ) .
34 .
Find ( B A ) U .
35 .
Find A ( B C ) .
36 .
Find A ( B C ) .

For the following exercises, perform the set operations as indicated on the following sets: U = { 20 , 21 , 22 , , 29 } , A = { 21 , 24 , 27 } , B = { 20 , 22 , 24 , 28 } , and C = { 21 , 23 , 25 , 27 } .

37 .
Find A and B and C .
38 .
Find A or B or C .
39 .
Find ( A or B ) and C .
40 .
Find ( A or B ) or C .
41 .
Find ( A and C ) and B .
42 .
Find ( A or B ) and C .
For the following exercises, use Venn diagrams to prove the following properties of sets:
43 .
Commutative property for the union of two sets: A B = B A .
44 .
Commutative property for the intersection of two sets: A B = B A .
45 .
Associative property for the intersection of three sets: ( A B ) C = A ( B C ) .
46 .
Associative property for the union of three sets: A ( B C ) = ( A B ) C .
47 .
Distributive property for set intersection over set union: A ( B C ) = ( A B ) ( A C ) .
48 .
Distributive property for set union over set intersection: A ( B C ) = ( A B ) ( A C ) .
Citation/Attribution

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution License and you must attribute OpenStax.

Attribution information
  • If you are redistributing all or part of this book in a print format, then you must include on every physical page the following attribution:
    Access for free at https://openstax.org/books/contemporary-mathematics/pages/1-introduction
  • If you are redistributing all or part of this book in a digital format, then you must include on every digital page view the following attribution:
    Access for free at https://openstax.org/books/contemporary-mathematics/pages/1-introduction
Citation information

© Jul 25, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.