maths.free › Set Theory & Logic › 1. Sets › Set Operations with Two Sets
Set Operations with Two Sets
Determine the intersection of two sets.
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 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: \(A\cap B\). \(A\) intersection \(B\) is written in set builder notation as: \(A\cap B=\{x|x\in A\ \text{and}\ x\in 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=\{\text{Colleen, Nick, Janette, Tommy, Jean, Phillip, Gerald, Theresa, Joseph}\}\) and Frank's children are included in the set \(F=\{\text{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=\{\text{Joseph}\}\), because Joseph is in both set \(H\) and set \(F\).
Finding the Intersection of Set
Try it.
Set \(A=\{1,3,5,7,9\}\) and \(B=\{2,3,5,7\}.\) Find \(A\) intersection \(B.\)
Solution
The intersection of sets \(A\) and \(B\) include the elements that set \(A\) and \(B\) have in common: 3, 5, and 7. \(A\cap B=\{3,5,7\}.\)
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.
Determining the Intersection of Disjoint Sets
Try it.
Set \(A=\{0,2,4,6,8\}\) and set \(B=\{1,3,5,7,9\}.\) Find \(A\cap B.\)
Solution
Because sets \(A\) and \(B\) are disjoint, they do not share any elements in common. So, the intersection of set \(A\) and set \(B\) is the empty set. \(A\cap B=\emptyset .\)
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.
Finding the Intersection of a Set and a Subset
Try it.
Set \(A=\{1,3,5,\ldots \}\) and set \(B=ℕ=\{1,2,3,\ldots \}\) Find \(A\cap B.\)
Solution
Because set \(A\) is a subset of set \(B\), \(A\) intersection \(B\) is equal to set \(A\). \(A\cap B=A=\{1,3,5,\ldots \},\) the set of odd natural numbers.
Condensed — the full section is in OpenStax Contemporary Mathematics.
Key Concepts
- The intersection of two sets, \(A\cap B\) 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, \(A\cup B\), 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\), \(A\cap B.\)
- 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\), \(A\cup B.\)
- Apply knowledge of set union and intersection to determine cardinality and membership using Venn Diagrams, the roster method and set builder notation.
Practice (12)
Try each one on paper first. Reveal the answer to check; verified ones can be opened in the solver for every step.
-
Set \(A=\{1,3,5,7,9\}\) and \(B=\{2,3,5,7\}.\) Find \(A\) intersection \(B.\)
Paljasta vastaus
The intersection of sets \(A\) and \(B\) include the elements that set \(A\) and \(B\) have in common: 3, 5, and 7. \(A\cap B=\{3,5,7\}.\)
-
Set \(A=\{0,2,4,6,8\}\) and set \(B=\{1,3,5,7,9\}.\) Find \(A\cap B.\)
Paljasta vastaus
Because sets \(A\) and \(B\) are disjoint, they do not share any elements in common. So, the intersection of set \(A\) and set \(B\) is the empty set. \(A\cap B=\emptyset .\)
-
Set \(A=\{1,3,5,\ldots \}\) and set \(B=ℕ=\{1,2,3,\ldots \}\) Find \(A\cap B.\)
Paljasta vastaus
Because set \(A\) is a subset of set \(B\), \(A\) intersection \(B\) is equal to set \(A\). \(A\cap B=A=\{1,3,5,\ldots \},\) the set of odd natural numbers.
-
Set \(A=\{1,3,5,7,9\}\) and set \(B=\{2,3,5,7\}\). Find \(A\) union \(B\).
Paljasta vastaus
\(A\) union \(B\) is the set formed by including all the unique elements in set \(A\), set \(B\), or both sets \(A\) and \(B\): \(A\cup B=\{1,3,5,7,9,2\}.\) The first five elements of the union are the five unique elements in set \(A\). Even though 3, 5, and 7 are also members of set \(B\), these elements are only listed one time. Lastly, set \(B\) includes the unique element 2, so 2 is also included as part of the union of sets \(A\) and \(B\).
-
Set \(A=\{0,2,4,6,8\}\) and set \(B=\{1,3,5,7,9\}.\) Find \(A\cup B.\)
Paljasta vastaus
Because sets \(A\) and \(B\) are disjoint, the union is simply the set containing all the elements in both set \(A\) and set \(B\). \(A\cup B=\{0,1,2,3,4,5,6,7,8,9\}.\)
-
Set \(A=\{1,3,5,\ldots \}\) and set \(B=ℕ=\{1,2,3,\ldots \}.\) Find \(A\cup B.\)
Paljasta vastaus
Because set \(A\) is a subset of set \(B\), \(A\) union \(B\) is equal to set \(B\). \(A\cup B=ℕ=\{1,2,3,\ldots \}=B.\)
-
The number of elements in set \(A\) is 10, the number of elements in set \(B\) is 20, and the number of elements in \(A\) intersection \(B\) is 4. Find the number of elements in \(A\) union \(B\).
Paljasta vastaus
Using the formula for determining the cardinality of the union of two sets, we can say \(n(A\cup B)=n(A)+n(B)-n(A\cap B)=10+20-4=26.\)
-
If \(A\) and \(B\) are disjoint sets and the cardinality of set \(A\) is 37 and the cardinality of set \(B\) is 43, find the cardinality of \(A\) union \(B\).
Paljasta vastaus
To find the cardinality of \(A\) union \(B\), apply the formula, \(n(A\cup B)=n(A)+n(B)-n(A\cap B).\) Because sets \(A\) and \(B\) are disjoint, \(A\cap B\) is the empty set, therefore \(n(A\cap B)=n(\emptyset )=0\) and \(n(A\cup B)=37+43-0=80.\)
-
\(A=\{0,3,6,9,12\},B=\{0,4,8,12,16\},\) and \(C=\{1,2,3,5,8,13\}.\)
Find the set consisting of elements in:
- \(A\ \text{and}\ B.\)
- \(A\ \text{or}\ B.\)
- \(A\ \text{or}\ C.\)
- \((B\ \text{and}\ C)\ \text{or}\ A.\)
Paljasta vastaus
- \(A\ \text{and}\ B=A\cap B=\{0,12\},\) because only the elements 0 and 12 are members of both set \(A\) and set \(B\).
- \(A\ \text{or}\ B=A\cup B=\{0,3,4,6,8,9,12,16\},\) because the set \(A\) or \(B\) is the collection of all elements in set \(A\) or set \(B\), or both.
- \(A\ \text{or}\ C=A\cup C=\{0,1,2,3,5,6,8,9,12,13\},\) because the set \(A\) or \(C\) is the collection of all elements in set \(A\) or set \(C\), or both.
- \((B\ \text{and}\ C)\ \text{or}\ A=(B\cap C)\cup A.\) Parentheses are evaluated first: \((B\ \text{and}\ C)=B\cap C=\{8\},\) because the only member that both set \(B\) and set \(C\) share in common is 8. So, now we need to find \(\{8\}\ \text{or}\ \{0,3,6,9,12\},\) Because the word translates to the union operation, the problem becomes \(\{8\}\cup \{0,3,6,9,12\},\) which is equal to \(\{0,3,6,8,9,12\}.\)
-
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.
- How many guests had cake or ice cream?
- How many guests had cake and ice cream?
Paljasta vastaus
- 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}^{'}).\) That means \(54=n(\text{cake or ice cream})\ +\ n(\text{not}\ (\text{cake or ice cream}))\), or equivalently,\(n(\text{cake}\ \cup \ \text{ice cream})=\ \text{54}-n({(\text{cake}\ \cup \ \text{ice cream})}^{'})=54-12=42.\) A total of 42 people at the party had cake or ice cream.
- 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(A\cup B)=n(A)+n(B)-n(A\cap B).\) 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+20-n(A\cap B).\) Adding 30 and 20, the equation simplifies to \(42=50-n(\text{cake and ice cream)}\text{.}\) Which means \(n(\text{cake and ice cream)}=50-42=8.\)
-
- Find \(A\cup B.\)
- Find \(A\cap B.\)
- Find \({B}^{'}\).
- Find \(n({B}^{'}).\)
Paljasta vastaus
- \(A\cup B=\{1,2,3,4,5,6,7,8\},\) because \(A\) union \(B\) is the collection of all elements in set \(A\) or set \(B\) or both.
- Because \(A\) and \(B\) are disjoint sets, there are no elements that are in both \(A\) and \(B\). Therefore, \(A\) intersection \(B\) is the empty set, \(A\cap B=\emptyset .\)
- The complement of set \(B\) is the set of all elements in the universal set that are not in set \(B\): \({B}^{'}=\{0,1,3,5,7,9\}.\)
- The cardinality, or number of elements in set \({B}^{'},\ \text{is}\ n({B}^{'})=6.\)
-
- Find \(n(A\ \text{or}\ B).\)
- Find \(n(A\ \text{and}\ B).\)
- Find \(n(A).\)
Paljasta vastaus
- The number of elements in \(A\) or \(B\) is the number of elements in \(A\) union \(B\): \(n(A\cup B)=n(\{2,5,7\})=14.\)
- The number of elements in \(A\) and \(B\) is the number of elements in \(A\) intersection \(B\): \(n(A\cap B)=5.\)
- The number of elements in set \(A\) is the sum of all the numbers enclosed in the circle representing set \(A\): \(n(A)=n(\{7,5\})=12.\)
Symbols used here
x belongs to A; every element of A is in B.
In either; in both; in A but not B.
The two sides are different.
Not a number: "grows without bound" in limits and intervals.
Naturals, integers, rationals, reals, complex numbers.
The set with no elements; the number of elements of A.
Quantifiers: every x; at least one x.
Logical connectives.
Marks the point where the statement has been established.
How to: Set Operations with Two Sets
- 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 complement of set
- In the text we do not cover set difference between two sets
- How many guests had cake or ice cream?
Questions people ask
Are some infinities bigger than others?
Yes. The integers and the rationals can be listed; the real numbers cannot (Cantor's diagonal argument), so there are strictly more reals than integers.
What is the difference between a relation and a function?
A relation pairs inputs with outputs freely; a function is a relation in which every input gets exactly one output.
Kokeile omaasi
Parts of this page are adapted from OpenStax Contemporary Mathematics (CC BY-NC-SA 4.0). Condensed and re-explained here; errors are ours.
Lisää Set Theory & Logic
Sets and operationsRelations, functions and equivalenceCardinality and infinityLogic and methods of proof