Login
📚 Contemporary Mathematics
Chapters ▾
⇩ Download ▾

1.4 Set Operations with Two Sets

A group of men and women of varying ages are smiling and posing for a group photo.
Figure 1.18 A large, multigenerational family contains an intersection and a union of sets.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, A intersection B is written as: AB. A intersection B is written in set builder notation as: AB={x|xAandxB}.

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. HF={Joseph}, because Joseph is in both set H and set F.

Notice that if sets A and B are disjoint sets, then they do not share any elements in common, and A intersection B 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.19

Notice that if set A is a subset of set B, then A intersection B is equal to set A, 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.20

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, A union B is written as: AB. A union B is written in set builder notation as: AB={x|xAorxB}.

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, HF={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.

When observing the union of sets A and B, notice that both set A and set B are subsets of A union B. Graphically, A union B can be represented in several different ways depending on the members that they have in common. If A and B are disjoint sets, then A union B 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.21 AB

If sets A and B 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.22

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

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

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 A union B is written, n(AB). If two sets A and B are disjoint, the cardinality of A union B is the sum of the cardinality of set A and the cardinality of set B. If the two sets intersect, then A intersection B is a subset of both set A and set B. This means that if we add the cardinality of set A and set B, we will have added the number of elements in A intersection B twice, so we must then subtract it once as shown in the formula that follows.

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

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

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.25 Side-by-side Venn diagrams with disjoint and intersecting sets, respectively.

Key Terms

  • intersection of two sets
  • union of two sets

Key Concepts

  • The intersection of two sets, AB is the set of all elements that they have in common. Any member of A intersection B must be is both set A and set B.
  • The union of two sets, AB, is the collection of all members that are in either in set A, set B or both sets A and B combined.
  • Two sets that share at least one element in common, so that they are not disjoint are represented in a Venn Diagram using two circles that overlap.
    • The region of the overlap is the set A intersection B, AB.
    • The regions that include everything in the circle representing set A or the circle representing set B or their overlap is the set A union B, AB.
  • Apply knowledge of set union and intersection to determine cardinality and membership using Venn Diagrams, the roster method and set builder notation.

Formulas

The cardinality of A union B:n(AB)=n(A)+n(B)n(AB)

Video

Adapted from Contemporary Mathematics by OpenStax (openstax.org), licensed under CC BY-NC-SA 4.0. Changes were made. License: CC-BY-NC-SA-4.0.