1.5: Set Operations with Two Sets

Math 104 Green · LibreTexts

0%

Contents

    Text

    Size
    100%
    Theme
    Typeface
    Line length
    Spacing

    From LibreTexts, under CC BY 4.0, as the source states it; its equations are written in TeX, which the PDF shows typeset. This page at LibreTexts.

    1.5: Set Operations with Two Sets
    Figure 1.20 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)
    A group of men and women of varying ages are smiling and posing for a group photo.
    Figure \(\PageIndex{1}\): 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:

    • Determine the intersection of two sets.
    • Determine the union of two sets.
    • Determine the cardinality of the union of two sets.
    • Apply the concepts of AND and OR to set operations.
    • 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, intersection is written as: . intersection is written in set builder notation as: .

    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\} and Frank's children are included in the set \(F=\{\) Mike, Rusty, Greg, Rosemary, Loise, Susan, Veronica, Mary, Germaine, Joan, Joseph \}. H intersection \(F\) is the set of children they had together. \(H \cap F=\{\) Joseph \(\}\), because Joseph is in both set \(H\) and set \(F\).

    Example 1.23

    Finding the Intersection of Set and Set

    Set and Find intersection

    Answer

    The intersection of sets and include the elements that set and have in common: 3, 5, and 7.

    Your Turn 1.23

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

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

    A two-set Venn diagram, A and B, not intersecting one another is given. Outside the diagram, it is labeled U.
    Figure 1.21

    Example 1.24

    Determining the Intersection of Disjoint Sets

    Set and set Find

    Answer

    Because sets and are disjoint, they do not share any elements in common. So, the intersection of set and set is the empty set.

    Your Turn 1.24

    Set \(A=\{\) red, yellow, blue \(\}\) and set \(B=\{\) orange, green, purple \(\}\). Find \(A \cap B\).

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

    A two-set Venn diagram, A and B, where A is inside B is depicted. Outside the diagram, it is labeled U.
    Figure 1.22

    Example 1.25

    Finding the Intersection of a Set and a Subset

    Set and set Find

    Answer

    Because set is a subset of set , intersection is equal to set . the set of odd natural numbers.

    Your Turn 1.25

    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, union is written as: union is written in set builder notation as:

    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\} and Frank's children is set \(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 \cup 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 \(H\) and set \(F\), but he is only one child, so, he is only listed once in the union.

    Example 1.26

    Finding the Union of Sets and When and Overlap

    Set and set . Find union .

    Answer

    union is the set formed by including all the unique elements in set , set , or both sets and : The first five elements of the union are the five unique elements in set . Even though 3, 5, and 7 are also members of set , these elements are only listed one time. Lastly, set includes the unique element 2, so 2 is also included as part of the union of sets and .

    Your Turn 1.26

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

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

    A two-set Venn diagram, A and B, not intersecting one another is given. Outside the diagram, it is labeled U.
    Figure 1.23

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

    A two-set Venn diagram, A and B, intersecting one another is given. Outside the diagram, it is labeled U.
    Figure 1.24

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

    A two-set Venn diagram, A and B, where A is inside B is depicted. Outside the diagram, it is labeled U.
    Figure 1.25

    Example 1.27

    Finding the Union of Sets and When and Are Disjoint

    Set and set Find

    Answer

    Because sets and are disjoint, the union is simply the set containing all the elements in both set and set .

    Your Turn 1.27

    Set \(A=\{\) red, yellow, blue \(\}\) and set \(B=\) \{orange, green, purple \(\}\). Find \(A \cup B\).

    Example 1.28

    Finding the Union of Sets and When One Set is a Subset of the Other

    Set and set Find

    Answer

    Because set is a subset of set , union is equal to set .

    Your Turn 1.28

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

    Video

    The Basics of Intersection of Sets, Union of Sets and Venn Diagrams

    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.

    A screenshot of an application named Sets Challenge on the Google play store
    Figure 1.26 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 in this text is written symbolically as but the Sets Challenge game uses to represent the complement operation.
    • In the text we do not cover set difference between two sets and , represented in the game as In the game this operation removes from set all the elements in For example, if set and set are subsets of the universal set then and 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 union is written, . If two sets and are disjoint, the cardinality of union is the sum of the cardinality of set and the cardinality of set . If the two sets intersect, then intersection is a subset of both set and set . This means that if we add the cardinality of set and set , we will have added the number of elements in intersection twice, so we must then subtract it once as shown in the formula that follows.

    FORMULA

    The cardinality of union is found by adding the number of elements in set to the number of elements in set , then subtracting the number of elements in the intersection of set and set . or

    Checkpoint

    If sets and are disjoint, then and the formula is still valid, but simplifies to

    Example 1.29

    Determining the Cardinality of the Union of Two Sets

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

    Answer

    Using the formula for determining the cardinality of the union of two sets, we can say

    Your Turn 1.29

    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 and are disjoint sets and the cardinality of set is 37 and the cardinality of set is 43, find the cardinality of union .

    Answer

    To find the cardinality of union , apply the formula, Because sets and are disjoint, is the empty set, therefore and

    Your Turn 1.30

    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 and is the set of elements that are in both set and set . To be a member of intersection , an element must be in set and also must be in set . 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 and , an element must be in set or set or both set and set .

    Example 1.31

    Applying the "AND" or "OR" Operation

    and

    Find the set consisting of elements in:

    Answer
    1. because only the elements 0 and 12 are members of both set and set .
    2. because the set or is the collection of all elements in set or set , or both.
    3. because the set or is the collection of all elements in set or set , or both.
    4. Parentheses are evaluated first: because the only member that both set and set share in common is 8. So, now we need to find Because the word translates to the union operation, the problem becomes which is equal to

    Your Turn 1.31

    \(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\) or \(B\).
    2. \(A\) and \(C\).
    3. \(B\) or \(C\).
    4. \((A\) and \(C)\) 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?
    Answer
    1. The total number of people at the party is 54, and 12 people did not have cake or ice cream. Recall that the total number of elements in the universal set is always equal to the number of elements in a subset plus the number of elements in the complement of the set, That means , or equivalently, A total of 42 people at the party had cake or ice cream.
    2. To determine the number of people who had both cake and ice cream, we need to find the intersection of the set of people who had cake and the set of people who had ice cream. From Question 1, the number of people who had cake or ice cream is 42. This is the union of the two sets. The formula for the union of two sets is Use the information given in the problem and substitute the known values into the formula to solve for the number of people in the intersection: Adding 30 and 20, the equation simplifies to Which means

    Your Turn 1.32

    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. How many guests had soup or salad or both?
    2. How many guests had both soup and a salad?

    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 , written is the set of all elements in the universal set that are not in set

    A two-set disjoint Venn diagram and a two-set intersecting Venn diagram are depicted side by side.  Outside both the Venn diagrams U is marked at the top left corner. The two sets of both the Venn diagrams are labeled A and B. In the first Venn diagram, Outside the set, the complement of A union B is given. In the second Venn diagram, 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.
    Figure 1.27 Side-by-side Venn diagrams with disjoint and intersecting sets, respectively.

    Example 1.33

    Using a Venn Diagram to Draw Conclusions about Set Membership

    A two-set Venn diagram not intersecting one another is given. The first set is labeled A while the second set is labeled B.  Set A shows 1, 3, 5, 7. Set B shows 2, 4, 8, 6. Outside the sets, 0, 9 are given. Outside the Venn diagram, it is marked 'U equals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).'
    Figure 1.28
    1. Find
    2. Find
    3. Find .
    4. Find
    Answer
    1. because union is the collection of all elements in set or set or both.
    2. Because and are disjoint sets, there are no elements that are in both and . Therefore, intersection is the empty set,
    3. The complement of set is the set of all elements in the universal set that are not in set :
    4. The cardinality, or number of elements in set

    Your Turn 1.33

    A two-set Venn diagram intersecting one another is given. The first set is labeled A while the second set is labeled B. Set A shows 1, 9. Set B shows 2. The intersection of the sets shows 3, 5, 7. Outside the sets, 0, 4, 6 are given. Outside the Venn diagram, it is marked 'U equals (0, 1, 2, 3, 4, 5, 6, 7, 8, 9).'
    Figure 1.29 Venn diagram with two intersecting sets and members.
    1. Find \(A \cap B\).
    2. Find \(A \cup B\). 3. Find \(A \cap B^{\prime}\). 4. Find \(n\left(A \cap B^{\prime}\right)\).

    Example 1.34

    Using a Venn Diagram to Draw Conclusions about Set Cardinality

    A two-set Venn diagram intersecting one another is given. The first set is labeled A while the second set is labeled B.  Set A shows 7. Set B shows 5. The intersection of the sets shows 5. Outside the Venn diagram, it is marked U.
    Figure 1.30 Venn diagram with two intersecting sets and number of elements in each section indicated.
    1. Find
    2. Find
    3. Find
    Answer
    1. The number of elements in or is the number of elements in union :
    2. The number of elements in and is the number of elements in intersection :
    3. The number of elements in set is the sum of all the numbers enclosed in the circle representing set :

    Your Turn 1.34

    A two-set Venn diagram not intersecting one another is given. The first set is labeled A while the second set is labeled B. Set A shows 23. Set B shows 17. Outside the sets, 10 is given. Outside the Venn diagram, it is marked U.
    Figure 1.31 Venn diagram with two disjoint sets and number of elements in each section.
    1. Find \(n(A\) or \(B)\).
    2. Find \(n(A\) and \(B)\). 3. Find \(n\left(A^{\prime}\right)\).

    Check Your Understanding

    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: ________ .

    This page titled 1.5: Set Operations with Two Sets was last modified on Fri, 09 Jan 2026 15:27:42 GMT and is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by OpenStax via source content that was edited to the style and standards of the LibreTexts platform.