Professional Documents
Culture Documents
LESSON 1.2
Set Operations
Table of Contents
Introduction 1
DepEd Competency 2
Objectives 3
Warm-Up! 3
Let’s Practice 6
Key Points 15
Bibliography 15
Mathematics
●
Lesson 1.2
Set Operations
Fig. 1. Programmer
Introduction
In the previous lesson, we learned that a set is the unordered collection of distinct elements.
When we combine two or more sets to produce another set, that is called set operations.
Operations of sets are very powerful in computer programming, specifically in search engines
for online products. What programmers do is split up a large number of items into different
sets, and when a query is made, the program finds the intersection of data input to display
the specific item. Also, doctors even benefit from sets when they diagnose a patient’s case.
1
Mathematics
●
From different illnesses with common symptoms, they can identify the most probable cause
of the disease and thus will be able to advise patients and give appropriate prescriptions.
Truly, sets and the operations involving them play a vital role in different aspects of our lives.
In this lesson, you will learn the set operations such as union, intersection, difference, and
complement of a set.
Represent the following sets in roster form and determine its cardinality.
DepEd Competency
At the end of the lesson, you should be able to illustrate well-defined sets, subsets,
universal sets, null set, cardinality of sets, union and intersection of sets and the
difference of two sets.
2
Mathematics
●
Objectives
At the end of this lesson, you should be able to do the following:
● List the elements of the union, intersection, and difference of two sets.
Warm-Up!
My Music Idol!
Materials
● pen
● paper
Instructions
1. This activity involves 30 students.
2. Make a survey of the favorite music artist of 15 boys and 15 girls.
3. List the top five music artists for both boys and girls.
4. Make a table of the results.
Data Table
Table 5. Top Music Artists
Top 5 Music Artists for Boys Top 5 Music Artists for Girls
3
Mathematics
●
5. Make a list of all the artists chosen by the boys and by the girls.
6. Make another list of the common artists chosen by both girls and boys.
7. Share the data obtained to the class.
Consider the universal set 𝑈 as the set of real numbers. Two sets 𝐴 and 𝐵 are given as follows:
𝐴 = {– 5, – 4, – 3, – 2, – 1, 0, 1, 2, 3, 4, 5}
𝐵 = {0, 1, 2, 3, 4, 5}
From the given, the union of A and B have the following elements:
𝐴 ∪ 𝐵 = {– 5, – 4, – 3, – 2, – 1, 0, 1, 2, 3, 4, 5}
4
Mathematics
●
𝐴 ∩ 𝐵 = {0, 1, 2, 3, 4, 5}
𝐴 − 𝐵 = {– 5, – 4, – 3, – 2, – 1}.
It is important to note that 𝐴 − 𝐵 may not be the same as 𝐵 − 𝐴. In the case of the given
elements of A and B at the start of the discussion, we have
𝐵 − 𝐴 = { } or ∅
Since 𝑈 = ℝ,
𝐴′ = {𝑥 ∶ 𝑥 ∈ ℝ – 𝐴}
or
𝐴′ = {𝑥 ∶ 𝑥 is a real number but not an integer from − 5 to 5}
5
Mathematics
●
Essential Questions
How do you determine the elements of the union, intersection, and difference
of two sets?
How do you determine the elements of the complement of a set?
Let’s Practice
Example 1
Consider the universal set 𝑈 = {0, 1, 2, 3, 4, 𝑎, 𝑏, 𝑐, 𝑑, 𝑒}.
a. Write the elements of set 𝐴 containing even numbers, and the elements of set 𝐵
containing vowels.
b. Write the elements of the union of 𝐴 and 𝐵.
c. Write the elements of the intersection of 𝐴 and 𝐵.
Solution
a. Write the elements of sets 𝐴 and 𝐵.
𝑨 = {𝟎, 𝟐, 𝟒}
𝑩 = {𝒂, 𝒆}
To get the union of A and B, we collect all the elements of set A and set B.
𝑨 ∪ 𝑩 = {𝟎, 𝟐, 𝟒, 𝒂, 𝒆}
6
Mathematics
●
To get the intersection of 𝐴 and 𝐵, we collect all the elements common to 𝐴 and 𝐵.
However, 𝐴 has elements that are numbers and 𝐵 has elements that are letters. They
are sure to have no common elements; thus, we have
𝑨 ∩ 𝑩 = { } or ∅
Try It Yourself!
Set 𝑈 contains numbers from 1 to 20 and the letters of the phrase “Math is Fun”.
Find the following:
a. the set 𝐴 containing all prime numbers
b. the set 𝐵 containing consonants
c. the union of 𝐴 and 𝐵
d. the intersection of 𝐴 and 𝐵
Example 2
Consider the universal set of all integers from 1 to 10. Sets 𝐴 and 𝐵 are defined as follows:
𝐴 = {𝑥 ∶ 𝑥 is an odd number from 1 to 10}
𝐵 = {𝑥 ∶ 𝑥 is a prime number from 1 to 10}
7
Mathematics
●
Solution
List the elements of sets 𝐴 and 𝐵.
𝑨 ∪ 𝑩 = {𝟏, 𝟐, 𝟑, 𝟓, 𝟕, 𝟗}
𝑨 ∩ 𝑩 = {𝟑, 𝟓, 𝟕}
𝑨 − 𝑩 = {𝟏, 𝟗}
𝑨′ = {𝟐, 𝟒, 𝟔, 𝟖, 𝟏𝟎}
8
Mathematics
●
Try It Yourself!
Given that 𝑈 is the set of all integers from 1 and 20, sets 𝐴 and 𝐵 are subsets of 𝑈, such
that
𝐴 = {𝑥 ∶ 𝑥 is an even integer from 1 to 20}
𝐵 = {𝑥 ∶ 𝑥 is an integer whose square is ≤ 100}
Find:
a. 𝐴 ∪ 𝐵 b. 𝐴 ∩ 𝐵 c. 𝐴 − 𝐵 d. 𝐵′
Example 3
Consider the universal set of all integers from 1 to 10. Sets 𝐴 and 𝐵 are defined as follows:
𝐴 = {𝑥 ∶ 𝑥 is an even number from 1 to 10}
𝐵 = {𝑥 ∶ 𝑥 is a composite number from 1 to 10}
a. Determine if 𝐴 − 𝐵 = 𝐵 − 𝐴.
b. Find 𝐴’ ∩ 𝐵 and 𝐴 ∪ 𝐵’.
Solution
List the elements of sets 𝐴 and 𝐵.
9
Mathematics
●
𝐴′ = {1, 3, 5, 7, 9}
𝐵 = {4, 6, 8, 9, 10}
𝐴′ ∩ 𝐵 = {9}
To find 𝐴 ∪ 𝐵’, we first find 𝐴 and 𝐵’, then we get their union.
𝐴 = {2, 4, 6, 8, 10}
𝐵′ = {1, 2, 3, 5, 7}
𝐴 ∪ 𝐵′ = {𝟏, 𝟐, 𝟑, 𝟒, 𝟓, 𝟔, 𝟕, 𝟖, 𝟏𝟎}
Try It Yourself!
Let 𝑈 be the universal set and 𝐴 and 𝐵 be subsets of 𝑈, such that
𝑈 = {𝑎, 𝑏, 𝑐, 𝑑, 𝑒, 𝑓}
𝐴 = {𝑎, 𝑏, 𝑐}
𝐵 = {𝑐, 𝑑, 𝑒}
a. Determine if 𝐴 − 𝐵 is equal to 𝐵 − 𝐴.
b. Find 𝐴’ ∩ 𝐵 and 𝐴 ∪ 𝐵’.
Real-world Problems
Example 4
Students of Grade 7-Mahogany were surveyed on their favorite subject. The group of girls
was separated from the group of boys. Top five subjects for boys are Mathematics, Science,
10
Mathematics
●
Computer, English and MAPEH. For girls, the top five subjects are English, Filipino, Science,
Values Education and MAPEH. The only subject not chosen is History.
Solution
a. Let 𝐴 be the set of favorite subjects of the boys.
c. To find the elements of the universal set, find all the elements that are in 𝐴 or are in 𝐵, as
well as the remaining choice that was not favored by either group, which is History.
11
Mathematics
●
d. Here, we need to find the subjects favored by the boys or the girls. The operative word
here is “or”. This asks us that the subject could be in 𝐴 or in 𝐵 or both. Thus, this is like
finding the union of 𝐴 and 𝐵.
e. Here, we need to find the subjects favored by both boys and girls. The operative word
here is “and”. Finding the favorite subjects common to both the boys and the girls is
finding the intersection of 𝐴 and 𝐵, thus
Example 5
In a group of 100 persons, 85 people can speak English and 25 can speak French. How many
can speak both English and French?
Solution
Let 𝐴 be the set of people who speak English.
Let 𝐵 be the set of people who speak French.
Let 𝐴 ∩ 𝐵 be the set of people who speak both French and English.
Notice that the sum of the cardinalities of 𝐴 and 𝐵 exceed the total number of people in the
group. This only means that some of the people can speak both English and French. To find
12
Mathematics
●
out how many can speak both, subtract the number of those who can speak either language
(that is, the union) from the sum of the individual cardinalities of those who can speak English
and those who can speak French.
Therefore, ten people in the group can speak both English and French.
Try It Yourself!
A local high school offers the following sports program for summer: basketball,
volleyball, taekwondo, tennis and swimming. Students in Batch 1 enrolled in basketball
and volleyball. Batch 2 students enrolled in tennis and swimming. Using the concept of
set, represent the following sets:
a. the set 𝑈 containing all the sports programs offered by the school
b. the set 𝐴 containing the sports programs Batch 1 enrolled in
c. the set 𝐵 containing the sports programs Batch 2 enrolled in
d. the set of sports programs enrolled by either Batch 1 or Batch 2 (also indicate
how this set can be denoted using 𝐴 and 𝐵)
e. the set of sports programs with no enrollees (also indicate how this set can be
denoted using 𝐴 and 𝐵)
13
Mathematics
●
2. A group of 50 customers were given survey forms by the management of a nearby café.
They were to tick the box beside coffee or milk tea if they liked the said drink. They may
tick the boxes beside both. Thirty-nine ticked coffee, and twenty-two ticked milk tea. How
many ticked both coffee and milk tea?
3. Ten friends with the names Zach, Yolly, Xerxes, Wesley, Viola, Ulrich, Tyler, Sven, Raya, and
Quentin are deciding on whether they will go on a food trip or have a movie marathon on
their next get-together.
Zach, Yolly, Wesley, Viola, Sven, and Quentin wanted to go on a food trip
Xerxes, Wesley, Viola, Tyler, Sven, and Raya wanted to have a movie marathon.
If set 𝐴 is the set of those who wanted to go on a food trip and set 𝐵 is the set of those
who wanted to do a movie marathon,
14
Mathematics
●
c. how will you denote using 𝐴 and 𝐵 the set of those who wanted neither of the two
activities?
d. what is the cardinality of those who wanted exactly only one of the two activities?
Key Points
● The union of two sets is the set that contains all the elements of both given sets 𝐴
and 𝐵.
● The intersection of two sets is the set that contains all the elements common to both
given sets 𝐴 and 𝐵.
● The difference of two sets is the set that contains all the elements in set 𝐴 which are
not in set 𝐵.
● The complement of a set is the set that contains all the elements in the universal set
that are not in set 𝐴.
Bibliography
Garneau, Marc, et al. Math Makes Sense 7. USA: Pearson Education Canada, 2007.
15