Contemporary Mathematics

# 1.4Set Operations with Two Sets

Contemporary Mathematics1.4 Set Operations with Two Sets

Figure 1.18 A large, multigenerational family contains an intersection and a union of sets. (credit: “Family Photo Shoot Bani Syakur” by Mainur Risyada/Flickr, CC BY 2.0)

## Learning Objectives

After completing this section, you should be able to:

1. Determine the intersection of two sets.
2. Determine the union of two sets.
3. Determine the cardinality of the union of two sets.
4. Apply the concepts of AND and OR to set operations.
5. Draw conclusions from Venn diagrams with two sets.

The movie Yours, Mine, and Ours was originally released in 1968 and starred Lucille Ball and Henry Fonda. This movie, which is loosely based on a true story, is about the marriage of Helen, a widow with eight children, and Frank, a widower with ten children, who then have an additional child together. The movie is a comedy that plays on the interpersonal and organizational struggles of feeding, bathing, and clothing twenty people in one household.

If we consider the set of Helen's children and the set of Frank's children, then the child they had together is the intersection of these two sets, and the collection of all their children combined is the union of these two sets. In this section, we will explore the operations of union and intersection as it relates to two sets.

## The Intersection of Two Sets

The members that the two sets share in common are included in the intersection of two sets. To be in the intersection of two sets, an element must be in both the first set and the second set. In this way, the intersection of two sets is a logical AND statement. Symbolically, $AA$ intersection $BB$ is written as: $A∩BA∩B$. $AA$ intersection $BB$ is written in set builder notation as: $A∩B={x|x∈Aandx∈B}A∩B={x|x∈Aandx∈B}$.

Let us look at Helen's and Frank's children from the movie Yours, Mine, and Ours. Helen's children consist of the set $H={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph}H={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph}$ and Frank's children are included in the set $F={Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan, Joseph}F={Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan, Joseph}$. $HH$ intersection $FF$ is the set of children they had together. $H∩F={Joseph}H∩F={Joseph}$, because Joseph is in both set $HH$ and set $FF$.

## Example 1.23

### Finding the Intersection of Set $AA$ and Set $BB$

Set $A={1,3,5,7,9}A={1,3,5,7,9}$ and $B={2,3,5,7}. B={2,3,5,7}.$ Find $AA$ intersection $B.B.$

1.
Set $A = \{h,a,p,y\}$ and $B = \{s,a,d\}$. Find $A$ intersection $B$.

Notice that if sets $AA$ and $BB$ are disjoint sets, then they do not share any elements in common, and $AA$ intersection $BB$ is the empty set, as shown in the Venn diagram below.

Figure 1.19

## Example 1.24

### Determining the Intersection of Disjoint Sets

Set $A={0,2,4,6,8}A={0,2,4,6,8}$ and set $B={1,3,5,7,9}.B={1,3,5,7,9}.$ Find $A∩B.A∩B.$

1.
Set $A = \{ {\text{red, yellow, blue}}\}$ and set $B = \{ {\text{orange, green, purple}}\}$. Find $A \cap B$.

Notice that if set $AA$ is a subset of set $BB$, then $AA$ intersection $BB$ is equal to set $AA$, as shown in the Venn diagram below.

Figure 1.20

## Example 1.25

### Finding the Intersection of a Set and a Subset

Set $A={1,3,5,…}A={1,3,5,…}$ and set $B=ℕ={1,2,3,…}B=ℕ={1,2,3,…}$ Find $A∩B.A∩B.$

1.
Set $A = \{a,b,c,\ldots,z\}$ and set $B = \{a,e,i,o,u\}$. Find $A \cap B$.

### The Union of Two Sets

Like the union of two families in marriage, the union of two sets includes all the members of the first set and all the members of the second set. To be in the union of two sets, an element must be in the first set, the second set, or both. In this way, the union of two sets is a logical inclusive OR statement. Symbolically, $AA$ union $BB$ is written as: $A∪B.A∪B.$ $AA$ union $BB$ is written in set builder notation as: $A∪B={x|x∈Aorx∈B}.A∪B={x|x∈Aorx∈B}.$

Let us consider the sets of Helen's and Frank's children from the movie Yours, Mine, and Ours again. Helen's children is set $H={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph}H={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph}$ and Frank's children is set $F={Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan, Joseph}F={Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan, Joseph}$. The union of these two sets is the collection of all nineteen of their children, $H∪F={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph, Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan}.H∪F={Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph, Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan}.$
Notice, Joseph is in both set $HH$ and set $FF$, but he is only one child, so, he is only listed once in the union.

## Example 1.26

### Finding the Union of Sets $AA$ and $BB$ When $AA$ and $BB$ Overlap

Set $A={1,3,5,7,9}A={1,3,5,7,9}$ and set $B={2,3,5,7}B={2,3,5,7}$. Find $AA$ union $BB$.

1.
Set $A = \{h,a,p,y\}$ and set $B = \{s,a,d\}$. Find $A$ union $B$.

When observing the union of sets $AA$ and $BB$, notice that both set $AA$ and set $BB$ are subsets of $AA$ union $BB$. Graphically, $AA$ union $BB$ can be represented in several different ways depending on the members that they have in common. If $AA$ and $BB$ are disjoint sets, then $AA$ union $BB$ would be represented with two disjoint circles within the universal set, as shown in the Venn diagram below.

Figure 1.21 $A ∪ B A ∪ B$

If sets $AA$ and $BB$ share some, but not all, members in common, then the Venn diagram is drawn as two separate circles that overlap.

Figure 1.22

If every member of set $AA$ is also a member of set $BB$, then $AA$ is a subset of set $BB$, and $AA$ union $BB$ would be equal to set $BB$. To draw the Venn diagram, the circle representing set $AA$ should be completely enclosed in the circle containing set $BB$.

Figure 1.23

## Example 1.27

### Finding the Union of Sets $AA$ and $BB$ When $AA$ and $BB$ Are Disjoint

Set $A={0,2,4,6,8}A={0,2,4,6,8}$ and set $B={1,3,5,7,9}.B={1,3,5,7,9}.$ Find $A∪B.A∪B.$

1.
Set $A = \{ {\text{red, yellow, blue}}\}$ and set $B = \{ {\text{orange, green, purple}}\}$. Find $A \cup B$.

## Example 1.28

### Finding the Union of Sets $AA$ and $BB$ When One Set is a Subset of the Other

Set $A={1,3,5,…}A={1,3,5,…}$ and set $B=ℕ={1,2,3,…}.B=ℕ={1,2,3,…}.$ Find $A∪B.A∪B.$

1.
Set $A = \{a, b, c,\ldots, z\}$ and set $B = \{a, e, i, o, u\}$. Find $A \cup B$.

## Tech Check

### Set Operation Practice

Sets Challenge is an application available on both Android and iPhone smartphones that allows you to practice and gain familiarity with the operations of set union, intersection, complement, and difference.

Figure 1.24 Google Play Store image of Sets Challenge game. (credit: screenshot from Google Play)

The Sets Challenge application/game uses some notation that differs from the notation covered in the text.

• The complement of set $AA$ in this text is written symbolically as $A′,A′,$ but the Sets Challenge game uses $ACAC$ to represent the complement operation.
• In the text we do not cover set difference between two sets $AA$ and $BB$, represented in the game as $A−B.A−B.$ In the game this operation removes from set $AA$ all the elements in $A∩B.A∩B.$ For example, if set $A={a,b,c,d}A={a,b,c,d}$ and set $B={b,d,f,h}B={b,d,f,h}$ are subsets of the universal set $U={a,b,c,…,z},U={a,b,c,…,z},$ then $A−B={a,b,c,d}−{b,d}={a,c},A−B={a,b,c,d}−{b,d}={a,c},$ and $B−A={b,d,f,h}−{b,d}={f,h}.B−A={b,d,f,h}−{b,d}={f,h}.$ There is a project at the end of the chapter to research the set difference operation.

### Determining the Cardinality of Two Sets

The cardinality of the union of two sets is the total number of elements in the set. Symbolically the cardinality of $AA$ union $BB$ is written, $n(A∪B)n(A∪B)$. If two sets $AA$ and $BB$ are disjoint, the cardinality of $AA$ union $BB$ is the sum of the cardinality of set $AA$ and the cardinality of set $BB$. If the two sets intersect, then $AA$ intersection $BB$ is a subset of both set $AA$ and set $BB$. This means that if we add the cardinality of set $AA$ and set $BB$, we will have added the number of elements in $AA$ intersection $BB$ twice, so we must then subtract it once as shown in the formula that follows.

## FORMULA

The cardinality of $AA$ union $BB$ is found by adding the number of elements in set $AA$ to the number of elements in set $BB$, then subtracting the number of elements in the intersection of set $AA$ and set $BB$. $n(A∪B)=n(A)+n(B)−n(A∩B)n(A∪B)=n(A)+n(B)−n(A∩B)$ or $n(AorB)=n(A)+n(B)−n(AandB).n(AorB)=n(A)+n(B)−n(AandB).$

## Checkpoint

If sets $AA$ and $BB$ are disjoint, then $n(A∩B)=n(AandB)=0n(A∩B)=n(AandB)=0$ and the formula is still valid, but simplifies to $n(A∪B)=n(A)+n(B).n(A∪B)=n(A)+n(B).$

## Example 1.29

### Determining the Cardinality of the Union of Two Sets

The number of elements in set $AA$ is 10, the number of elements in set $BB$ is 20, and the number of elements in $AA$ intersection $BB$ is 4. Find the number of elements in $AA$ union $BB$.

1.
If $n(A) = 23,n(B) = 17,$ and $n(A \cap B) = 7,$ then find $n(A \cup B)$.

## Example 1.30

### Determining the Cardinality of the Union of Two Disjoint Sets

If $AA$ and $BB$ are disjoint sets and the cardinality of set $AA$ is 37 and the cardinality of set $BB$ is 43, find the cardinality of $AA$ union $BB$.

1.
If $A \cap B = \emptyset ,n(A) = 35,$ and $n(B) = 78,$ then find $n(A \cup B)$.

### Applying Concepts of “AND” and “OR” to Set Operations

To become a licensed driver, you must pass some form of written test and a road test, along with several other requirements depending on your age. To keep this example simple, let us focus on the road test and the written test. If you pass the written test but fail the road test, you will not receive your license. If you fail the written test, you will not be allowed to take the road test and you will not receive a license to drive. To receive a driver's license, you must pass the written test AND the road test. For an “AND” statement to be true, both conditions that make up the statement must be true. Similarly, the intersection of two sets $AA$ and $BB$ is the set of elements that are in both set $AA$ and set $BB$. To be a member of $AA$ intersection $BB$, an element must be in set $AA$ and also must be in set $BB$. The intersection of two sets corresponds to a logical "AND" statement.

The union of two sets is a logical inclusive "OR" statement. Say you are at a birthday party and the host offers Leah, Lenny, Maya, and you some cake or ice cream for dessert. Leah asks for cake, Lenny accepts both cake and ice cream, Maya turns down both, and you choose only ice cream. Leah, Lenny, and you are all having dessert. The “OR” statement is true if at least one of the components is true. Maya is the only one who did not have cake or ice cream; therefore, she did not have dessert and the “OR” statement is false. To be in the union of two sets $AA$ and $BB$, an element must be in set $AA$ or set $BB$ or both set $AA$ and set $BB$.

## Example 1.31

### Applying the "AND" or "OR" Operation

$A={0,3,6,9,12},B={0,4,8,12,16},A={0,3,6,9,12},B={0,4,8,12,16},$ and $C={1,2,3,5,8,13}.C={1,2,3,5,8,13}.$

Find the set consisting of elements in:

1. $AandB.AandB.$
2. $AorB.AorB.$
3. $AorC.AorC.$
4. $(BandC)orA.(BandC)orA.$

$A = \{h,a,p,y\} ,$ and $B = \{a,w,e,s,o,m\} ,$ and $C = \{m,a,t,h\} .$
Find the set consisting of elements in:
1.
$A {\text{ or }}B$.
2.
$A{\text{ and }}C$.
3.
$B{\text{ or }}C$.
4.
$(A{\text{ and }}C){\text{ and }}B$.

## Example 1.32

### Determine and Apply the Appropriate Set Operations to Solve the Problem

Don Woods is serving cake and ice cream at his Juneteenth celebration. The party has a total of 54 guests in attendance. Suppose 30 guests requested cake, 20 guests asked for ice cream, and 12 guests did not have either cake or ice cream.

1. How many guests had cake or ice cream?
2. How many guests had cake and ice cream?

Ravi and Priya are serving soup and salad along with the main course at their wedding reception. The reception will have a total of 150 guests in attendance. A total of 92 soups and 85 salads were ordered, while 23 guests did not order any soup or salad.
1.
2.

## Who Knew?

### The Real Inventor of the Venn Diagram

John Venn, in his writings, references works by both John Boole and Augustus De Morgan, who referred to the circle diagrams commonly used to present logical relationships as Euler's circles. Leonhard Euler's works were published over 100 years prior to Venn's, and Euler may have been influenced by the works of Gottfried Leibniz.

So, why does John Venn get all the credit for these graphical depictions? Venn was the first to formalize the use of these diagrams in his book Symbolic Logic, published in 1881. Further, he made significant improvements in their design, including shading to highlight the region of interest. The mathematician C.L. Dodgson, also known as Lewis Carroll, built upon Venn’s work by adding an enclosing universal set.

Invention is not necessarily coming up with an initial idea. It is about seeing the potential of an idea and applying it to a new situation.

References:

Margaret E. Baron. "A Note on the Historical Development of Logic Diagrams: Leibniz, Euler and Venn." The Mathematical Gazette, vol. 53, no. 384, 1969, pp. 113-125. JSTOR, www.jstor.org/stable/3614533. Accessed 15 July 2021.

Deborah Bennett. "Drawing Logical Conclusions." Math Horizons, vol. 22, no. 3, 2015, pp. 12-15. JSTOR, www.jstor.org/stable/10.4169/mathhorizons.22.3.12. Accessed 15 July 2021.

### Drawing Conclusions from a Venn Diagram with Two Sets

All Venn diagrams will display the relationships between the sets, such as subset, intersecting, and/or disjoint. In addition to displaying the relationship between the two sets, there are two main additional details that Venn diagrams can include: the individual members of the sets or the cardinality of each disjoint subset of the universal set.

A Venn diagram with two subsets will partition the universal set into 3 or 4 sections depending on whether they are disjoint or intersecting sets. Recall that the complement of set $AA$, written $A′,A′,$ is the set of all elements in the universal set that are not in set $A.A.$

Figure 1.25 Side-by-side Venn diagrams with disjoint and intersecting sets, respectively.

## Example 1.33

### Using a Venn Diagram to Draw Conclusions about Set Membership

Figure 1.26
1. Find $A∪B.A∪B.$
2. Find $A∩B.A∩B.$
3. Find $B′B′$.
4. Find $n(B′).n(B′).$

Venn diagram with two intersecting sets and members.
1.
Find $A \cap B$.
2.
Find $A \cup B$.
3.
Find $A \cap B'$.
4.
Find $n(A \cap B')$.

## Example 1.34

### Using a Venn Diagram to Draw Conclusions about Set Cardinality

Figure 1.27 Venn diagram with two intersecting sets and number of elements in each section indicated.
1. Find $n(AorB).n(AorB).$
2. Find $n(AandB).n(AandB).$
3. Find $n(A).n(A).$

Venn diagram with two disjoint sets and number of elements in each section.
1.
Find $n(A{\text{ or }}B)$.
2.
Find $n (A{\text{ and }}B)$.
3.
Find $n({A^\prime })$.

20.
The ___________ of two sets $A$ and $B$ is the set of all elements that they share in common.
21.
The ___________ of two sets $A$ and $B$ is the collection of all elements that are in set $A$ or set $B$, or both set $A$ and set $B$.
22.
The union of two sets $A$ and $B$ is represented symbolically as __________.
23.
The intersection of two sets $A$ and $B$ is represented symbolically as ___________.
24.
If set $A$ is a subset of set $B$, then $A$ intersection $B$ is equal to set ___________.
25.
If set $A$ is a subset of set $B$, then $A$ union $B$ is equal to set ___________.
26.
If set $A$ and set $B$ are disjoint sets, then $A$ intersection $B$ is the ___________ set.
27.
The cardinality of $A$ union $B$, $n(A \cup B)$, is found using the formula: ___________.

## Section 1.4 Exercises

For the following exercises, determine the union or intersection of the sets as indicated.

$A = \{ 2,4,6,8,10,12\}$, $B = \{ 4,8,12,16,20\}$, $C = \{ 8,16,24,32,40\}$, and $D = \{ 10,20,30,40,50\}$.

1 .
$B \cup C$
2 .
$A \cap D$
3 .
$D \cap C$
4 .
$A \cup D$
5 .
$A \cap (C \cup D)$
6 .
$B \cup (A \cap D)$
7 .
$D \cup (A \cap C)$
8 .
$C \cap (A \cup D)$
9 .
$B \cap (A \cap D)$
10 .
$B \cap (A \cap C)$
11 .
$B \cup (A \cup D)$
12 .
$B \cup (A \cup C)$
For the following exercises, use the sets provided to apply the “AND” or “OR” operation as indicated to find the resulting set.

$U = \{ a,b,c, \ldots ,z\}$, $S = \{ s,a,m,p,l,e\}$, $M = \{ m,a,p\}$, $L = \{ l,a,m,p\}$, $D = \{ d,o,g\}$, and $P = \{ p,l,o,t\}$.

13 .
Find the set consisting of elements in $S$ and $P$.
14 .
Find the set consisting of elements in $M$ or $D$.
15 .
Find the set consisting of elements in $P$ or $M$.
16 .
Find the set consisting of elements in $M$ and $D$.
17 .
Find the set consisting of elements in $L$ and $M$.
18 .
Find the set consisting of elements in $L$ or $M$.
19 .
Find the set consisting of the elements in $D$ or $M$ or $P$.
20 .
Find the set consisting of the elements in $S$ or $M$ or $P$.
21 .
Find the set consisting of the elements in ($S$ or $D$) and $P$.
22 .
Find the set consisting of the elements in $S$or ($D$ and $P$).
23 .
Find the set consisting of elements in $U$ or ($P$ and $S$).
24 .
Find the set consisting of elements in ($U$ or $P$) and $S$.

For the following exercises, use the Venn diagram provided to answer the following questions about the sets.

25 .
Find $A \cup B$.
26 .
Find $A \cap B$.
27 .
Find ${(A \cap B)^\prime }$.
28 .
Find ${(A \cup B)^\prime }$.
29 .
Find $A \cap {B^\prime }$.
30 .
Find $B \cap {A^\prime }$.
For the following exercises, use the Venn diagram provided to answer the following questions about the sets.
31 .
Find $A \cap B$.
32 .
Find $A \cup B$.
33 .
Find ${(A \cup B)^\prime }$.
34 .
Find ${(A \cap B)^\prime }$.
35 .
Find $B \cap {A^\prime }$.
36 .
Find $A \cap {B^\prime }$.
For the following exercises, use the Venn diagram provided to answer the following questions about the sets.
37 .
Find $A \cup B$.
38 .
Find $A \cap B$.
39 .
Find ${(A \cup B)^\prime }$.
40 .
Find ${(A \cap B)^\prime }$.
41 .
Find $B \cap {A^\prime }$.
42 .
Find $A \cap {B^\prime }$.
For the following exercises, determine the cardinality of the union of set $A$ and set $B$.
43 .
If set $A = \{\text{red, white, blue}\}$ and set $B = \{\text{green, white, red}\}$, find $n(A \cup B)$.
44 .
If set $A = \{\text{silver, gold, bronze}\}$ and set $B = \{\text{silver, gold}\}$, find the number of elements in $A$ or $B$.
45 .
If set $A = \{\text{glass, plate, fork, knife}\}$ and set $B = \{\text{bowl, spoon, cup}\}$, find the number of elements in $A$ or $B$.
46 .
If set $A = \{\text{Algebra, Geometry, Biology, Physics, Chemistry, English}\}$ and Set $B = \{\text{Algebra, English, History, Spanish, French, Music}\}$, find $n(A \cup B)$.
For the following exercises, use the Venn diagram to determine the cardinality of $A$ union $B$.
47 .
48 .
49 .
50 .
Order a print copy

As an Amazon Associate we earn from qualifying purchases.