Skip to main content
Mathematics LibreTexts

4.5: Set Operations with Two Sets

  • Page ID
    152045
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}}      % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}}      % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vectorC}[1]{\textbf{#1}} \)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}} \)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}} \)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)
    A group of men and women of varying ages are smiling and posing for a group photo.
    Figure 4.5.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:

    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

    Intersection

    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: ABAB. AA intersection BB is written in set builder notation as: AB={x|xAandxB}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}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. HF={Joseph}HF={Joseph}, because Joseph is in both set HH and set FF.

    Example 4.5.1

    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 AB

    Answer

    The intersection of sets AA and BB include the elements that set AA and BB have in common: 3, 5, and 7. AB={3,5,7}.AB={3,5,7}.

    Your Turn 4.5.1

    Set A = {h, a, p, y} and B = {s, a, d}. Find AB.

    Notice that if sets AA and BB are disjoint sets, then they do not share any elements in common, and <AB 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.

    Example 4.5.2

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

    Answer

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

    Your Turn 4.5.2

    Set A = {red, yellow, blue} and Set B = {orange, green, purple}. Find AB

    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.

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

    Example 4.5.3

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

    Answer

    Because set AA is a subset of set BB, AA intersection BB is equal to set AA. AB=A={1,3,5,},AB=A={1,3,5,}, the set of odd natural numbers.

    Your Turn 4.5.3

    Set A = {a, b, c, ..., z} and set B = {a, e, i, o, u}. Find AB

    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.

    Union

    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: AB.AB. AA union BB is written in set builder notation as: AB={x|xAorxB}.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}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, 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 HH and set FF, but he is only one child, so, he is only listed once in the union.

    Example 4.5.4

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

    Answer

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

    Your Turn 4.5.4

    Set A = {h, a, p, y} ad set B = {s, a, d}. Find AB.

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

    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.

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

    If every member of set AA is also a member of set BB, then AA is a subset of set BB, and AB 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.

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

    Example 4.5.5

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

    Answer

    Because sets AA and BB are disjoint, the union is simply the set containing all the elements in both set AA and set BB. AB={0,1,2,3,4,5,6,7,8,9}.AB={0,1,2,3,4,5,6,7,8,9}.

    Your Turn 4.5.5

    Set A = {red, yellow, blue} and Set B = {orange, green, purple}. Find AB.

    Example 4.5.6

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

    Answer

    Because set AA is a subset of set BB, AA union BB is equal to set BB. AB=={1,2,3,}=B.AB=={1,2,3,}=B.

    Your Turn 4.5.6

    Set A = {a, b, c, ..., z} and set B = {a, e, i, o, u}. Find AB.

    Video

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

    Let's think back to our example of the children from the movie Yours, Mine, and Ours. We had n(H)=9, since Helen had 9 children. We had n(F)=11, since Frank had 11 children. What was n(HF)? You may be tempted to guess that it was 9+11=20. But n(HF) was actually 19. Remember that the child Helen and Frank had together (Joseph) is included in set H and set F, but he should only be counted once in HF. We generalize this result in the formula below.

    Cardinality of the Union of Two Sets

    For any sets A and B, n(AB)=n(A)+n(B)n(AB)

    Example 4.5.7

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

    Answer

    Using the formula for determining the cardinality of the union of two sets, we can say n(AB)=n(A)+n(B)n(AB)=10+204=26.n(AB)=n(A)+n(B)n(AB)=10+204=26.

    Your Turn 4.5.7

    If n(A) = 23, n(B) = 17, and n(AB)=7. Find n(AB).

    Example 4.5.8

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

    Answer

    To find the cardinality of AA union BB, apply the formula, n(AB)=n(A)+n(B)n(AB).n(AB)=n(A)+n(B)n(AB). Because sets AA and BB are disjoint, ABAB is the empty set, therefore n(AB)=n()=0n(AB)=n()=0 and n(AB)=37+430=80.n(AB)=37+430=80.

    Your Turn 4.5.8

    If AB=, n(A) = 35, and n(B) = 78, then find n(AB).

    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 AB, 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 4.5.9

    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.
    Answer
    1. AandB=AB={0,12},AandB=AB={0,12}, because only the elements 0 and 12 are members of both set AA and set BB.
    2. AorB=AB={0,3,4,6,8,9,12,16},AorB=AB={0,3,4,6,8,9,12,16}, because the set AA or BB is the collection of all elements in set AA or set BB, or both.
    3. AorC=AC={0,1,2,3,5,6,8,9,12,13},AorC=AC={0,1,2,3,5,6,8,9,12,13}, because the set AA or CC is the collection of all elements in set AA or set CC, or both.
    4. (BandC)orA=(BC)A.(BandC)orA=(BC)A. Parentheses are evaluated first: (BandC)=BC={8},(BandC)=BC={8}, because the only member that both set BB and set CC share in common is 8. So, now we need to find {8}or{0,3,6,9,12},{8}or{0,3,6,9,12}, Because the word translates to the union operation, the problem becomes {8}{0,3,6,9,12},{8}{0,3,6,9,12}, which is equal to {0,3,6,8,9,12}.{0,3,6,8,9,12}.

    Your Turn 4.5.9

    Set A = {h, a, p, y}, set B = {a, w, e, s, o, m}, and set 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 4.5.10

    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, n(U)=n(A)+n(A).n(U)=n(A)+n(A). That means 54=n(cake or ice cream)+n(not(cake or ice cream))54=n(cake or ice cream)+n(not(cake or ice cream)), or equivalently,n(cakeice cream)=54n((cakeice cream))=5412=42.n(cakeice cream)=54n((cakeice cream))=5412=42. 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 n(AB)=n(A)+n(B)n(AB).n(AB)=n(A)+n(B)n(AB). 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: 42=30+20n(AB).42=30+20n(AB). Adding 30 and 20, the equation simplifies to 42=50n(cake and ice cream).42=50n(cake and ice cream). Which means n(cake and ice cream)=5042=8.n(cake and ice cream)=5042=8.

    Your Turn 4.5.10

    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 AA, written A,A, is the set of all elements in the universal set that are not in set A.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 4.5.2: Side-by-side Venn diagrams with disjoint and intersecting sets, respectively.

    Example 4.5.11

    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).'
    1. Find AB.AB.
    2. Find AB.AB.
    3. Find BB.
    4. Find n(B).
    Answer
    1. AB={1,2,3,4,5,6,7,8},AB={1,2,3,4,5,6,7,8}, because AB is the collection of all elements in set AA or set BB or both.
    2. Because AA and BB are disjoint sets, there are no elements that are in both AA and BB. Therefore, AB is the empty set, AB=.AB=.
    3. The complement of set BB is the set of all elements in the universal set that are not in set BB: B={0,1,3,5,7,9}.B={0,1,3,5,7,9}.
    4. The cardinality, or number of elements in set B,isn(B)=6.B,isn(B)=6.

    Your Turn 4.5.11

    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).'
    1. Find AB
    2. Find AB
    3. Find AB'
    4. Find n(AB')

    Example 4.5.12

    Using a Venn Diagram to Draw Conclusions about Set Cardinality

    In the Venn diagram below, the cardinality is listed in each section.

    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.
    1. Find n(AorB).n(AorB).
    2. Find n(AandB).n(AandB).
    3. Find n(A).n(A).
    Answer
    1. The number of elements in AA or BB is the number of elements in AB: n(AB)=2+5+7=14.n(AB)=n({2,5,7})=14.
    2. The number of elements in AA and BB is the number of elements in AB: n(AB)=5.n(AB)=5.
    3. The number of elements in set AA is the sum of all the numbers enclosed in the circle representing set AA: n(A)=5+7=12.n(A)=n({7,5})=12.

    Your Turn 4.5.12

    The Venn diagram below shows the cardinality of each set.

    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.
    1. Find n(A or B).
    2. Find n(A and B).
    3. Find n(A').

    This page titled 4.5: Set Operations with Two Sets 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.