Week 6: Sets

Week 6: Sets
A set is a Many that allows itself to be thought of as a One.
Georg Cantor
Basic Ideas
A set is a collection of objects, often called the elements or members of the set. When we
give a set a name, it is usually a capital letter like β€œπ΄,” β€œπ΅,” etc. If the set is used very
frequently, like the sets of numbers we have seen in the past, it is given its own special
symbol that normally resembles a capital letter. This naming scheme is just one of the
many conventions of mathematics; there is no β€œrule” that says we can’t use the letter π‘₯ to
represent the set of all even integers, for example, but it would be confusing to experienced
readers.
As we have already seen, we use the symbol β€œβˆˆβ€ to indicate that an object belongs to a set.
For example, we can say that βˆ’1 ∈ β„€ and βˆ’1 ∈ β„š, but βˆ’1 βˆ‰ β„•. Similarly, √2 ∈ ℝ but
√2 βˆ‰ β„š.
There are two main notations for describing a particular set. One of these is to explicitly list
the elements of the set inside β€œcurly braces.” For example, think about the set of all even
natural numbers less than 25. If we call this set 𝐸, we can describe it as follows:
𝐸 = {0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24}.
Alternatively, we could write 𝐸 = {0, 2, 4, 6, … , 24}. Using an ellipsis like this relies on the
reader’s ability to follow the pattern shown by the first few elements listed. Similarly, we
could describe the infinite sets of natural numbers and integers as follows:
β„• = {0, 1, 2, 3, 4, … } and
β„€ = {… , βˆ’3, βˆ’2, βˆ’1, 0, 1, 2, 3, … }.
A second, more versatile way to describe a set is often called β€œset builder notation.” In this
notation, the set 𝐸 given above would be written as follows:
𝐸 = {π‘₯ ∈ β„• ∢ π‘₯ is even and π‘₯ < 25}.
The common way to read this statement is β€œπΈ is the set containing each natural number π‘₯
such that π‘₯ is even and π‘₯ < 25.” As another example, we could describe the rationals in this
way:
β„š = {π‘Ž/𝑏 ∢ π‘Ž ∈ β„€ and 𝑏 ∈ β„€ and 𝑏 β‰  0}
This is β€œthe set of all fractions π‘Ž/𝑏 such that π‘Ž and 𝑏 are integers and 𝑏 is not 0.” The colon
in set builder notation roughly stands for the words β€œsuch that.” Some authors use a
vertical line β€œ|” in place of a colon.
Week 6
Page 2
We use the symbol βˆ… to represent a set with no elements, which is called the empty set, or
sometimes the β€œnull set.” In other words, βˆ… = { }.
Operations
Just as we can combine numbers in various ways to make other numbers, or combine
logical statements in various ways to formulate new statements, we can combine sets to
construct new sets.
Definition: The union of sets 𝐴 and 𝐡, which is written as 𝐴 βˆͺ 𝐡, is given by
𝐴 βˆͺ 𝐡 = {π‘₯ ∢ π‘₯ ∈ 𝐴 or π‘₯ ∈ 𝐡}.
Definition: The intersection of sets 𝐴 and 𝐡, which is written as 𝐴 ∩ 𝐡, is given by
𝐴 ∩ 𝐡 = {π‘₯ ∢ π‘₯ ∈ 𝐴 and π‘₯ ∈ 𝐡}.
Definition: The difference of sets 𝐴 and 𝐡, which is written as 𝐴 βˆ’ 𝐡 (or sometimes 𝐴\𝐡),
is given by
𝐴 βˆ’ 𝐡 = {π‘₯ ∢ π‘₯ ∈ 𝐴 and π‘₯ βˆ‰ 𝐡}.
Definition: The complement of a set 𝐴, which is written as 𝐴𝐢 (or sometimes 𝐴′ or 𝐴̃ or 𝐴̅),
is given by
𝐴𝐢 = {π‘₯ ∢ π‘₯ βˆ‰ 𝐴}.
To illustrate these definitions, consider the set 𝐸 = {π‘₯ ∈ β„• ∢ π‘₯ is even and π‘₯ < 25} from
before, and a new set 𝑆 = {π‘₯ ∈ β„€ ∢ |π‘₯| ≀ 5}. Observe the following:
ο‚·
ο‚·
ο‚·
ο‚·
𝐸 βˆͺ 𝑆 = {βˆ’5, βˆ’4, βˆ’3, βˆ’2, βˆ’1, 0, 1, 2, 3, 4, 5, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24}.
𝐸 ∩ 𝑆 = {0, 2, 4}.
𝐸 βˆ’ 𝑆 = {6, 8, 10, 12, 14, 16, 18, 20, 22, 24}.
𝑆 βˆ’ 𝐸 = {βˆ’5, βˆ’4, βˆ’3, βˆ’2, βˆ’1, 1, 3, 5}.
The complement of a set is the collection of all objects that do not belong to the original set.
The exact meaning of the complement depends on what kinds of things we consider to be
β€œobjects.” The set of all possible β€œobjects” in a given context is usually known as the
universe, or the universe of discourse. For example, if we are working in an area of
mathematics that only involves integers, we might say that the complement of the set 𝑆 (as
Week 6
Page 3
given above) is the set of all integers less than βˆ’5 and all integers greater than 5. In that
same universe of discourse, ℕ𝐢 would be the set of all negative integers (also known as β„€βˆ’ ).
Similarly, if we are working in an area that deals with all real numbers, the set of irrationals
could be abbreviated as β„šπΆ . This is perhaps part of the reason that there is no widely-used
symbol for the set of irrational numbers.
Exercise 1: For the sets 𝐴 = {1,2,3,4,5}, 𝐡 = {2,4,6,8,10}, and 𝐢 = {8,10,12}, find each of
the following.
(a) 𝐴 ∩ 𝐡
(b) 𝐴 ∩ 𝐡 𝐢
(c) 𝐴 βˆͺ 𝐡
(d) 𝐴 ∩ 𝐢
(e) 𝐴 βˆ’ 𝐡
(f) 𝐡 βˆ’ 𝐴
Exercise 2: Give a very brief abbreviation for the set of irrationals without using a
complement symbol.
It is worth pointing out here that in advanced areas of mathematics, we often need to think
about the union of more than two sets, or the intersection of more than two sets. In some
cases, we think about the union or intersection of an infinite number of sets. Naturally, the
union of a given collection of sets is a set containing every object that is an element of at
least one of the sets in the collection. Similarly, the intersection of a given collection of sets
is a set containing every object that is an element of every set in the collection.
As an example, think about all of the subsets of β„• with at least five elements. The union of
these subsets would be β„• itself, because every element of β„• is an element of at least one of
these subsets. On the other hand, the intersection of these subsets would be βˆ…, because
there is no number that is an element of every one of the subsets.
Statements
One of the most common ways in which two sets might be related to each other is for one
of them to be a subset of another. When all of the elements of one set belong to a second set
as well, we say that the first set is a subset of the other.
Definition: We say that a set 𝐴 is a subset of a set 𝐡, which is written as 𝐴 βŠ† 𝐡, iff
(βˆ€π‘₯ ∈ 𝐴)(π‘₯ ∈ 𝐡).
Note that β€œπ΄ βŠ† 𝐡” means that every element of 𝐴 is an element of 𝐡. If every element of 𝐡 is
also an element of 𝐴, then the two sets have exactly the same elements, and therefore they
are the same set. It is helpful to state this observation as an official definition.
Week 6
Page 4
Definition: A set 𝐴 is equal to a set 𝐡, which is written as 𝐴 = 𝐡, iff 𝐴 βŠ† 𝐡 and 𝐡 βŠ† 𝐴.
When one set is a subset of another, but we know that they are not the same set, we can say
that the first set is a β€œproper” subset of the second.
Definition: We say that a set 𝐴 is a proper subset of a set 𝐡, which is written as 𝐴 βŠ‚ 𝐡, iff
𝐴 βŠ† 𝐡 and 𝐴 β‰  𝐡.
Unfortunately, it must be noted here that some authors use the symbol β€œβŠ‚β€ to represent
any subset relationship, whether it is proper or not. To avoid confusion, we will never do
this!
Lastly, we often deal with situations in which two sets have nothing in common
whatsoever.
Definition: Sets 𝐴 and 𝐡 are disjoint iff 𝐴 ∩ 𝐡 = βˆ….
Exercise 3: Consider the sets 𝐴 = {π‘₯ ∢ π‘₯ = 5π‘˜ + 1 for some natural number π‘˜} and 𝐡 =
{π‘₯ ∢ π‘₯ = 6π‘š for some natural number π‘š}. Prove that each of the following statements is
false.
(a) 𝐴 βŠ† 𝐡
(b) 𝐡 βŠ† 𝐴
(c) 𝐴 ∩ 𝐡 = βˆ…
Exercise 4: Disprove each of the following general statements about sets.
(a) For any sets 𝐴 and 𝐡, if 𝐴 βŠ† 𝐡, then 𝐴 βˆ’ 𝐡 = 𝐡 βˆ’ 𝐴.
(b) For any sets 𝐴, 𝐡, and 𝐢, (𝐴 βˆ’ 𝐡) βˆͺ (𝐡 βˆ’ 𝐢) βŠ† (𝐴 βˆ’ 𝐢).
(c) For any sets 𝐴, 𝐡, and 𝐢, 𝐴 ∩ (𝐡 βˆͺ 𝐢) = (𝐴 ∩ 𝐡) βˆͺ 𝐢.
Proofs
Keep in mind that a set can contain any kind of object; they are not restricted to numbers.
All of the specific sets we have seen so far have been sets of numbers, and there are some
simple relationships between these sets – for example, β„€+ βŠ† β„•, and β„• βŠ† β„€, etc. However, it
is more interesting to prove some general properties of sets. In other words, there are
statements about sets that are true regardless of what the sets might specifically contain.
Following are some examples.
Proposition: For any sets 𝐴, 𝐡, and 𝐢, if 𝐴 βŠ† 𝐡, then 𝐴 ∩ 𝐢 βŠ† 𝐡 ∩ 𝐢.
Week 6
Page 5
Proof: Let 𝐴, 𝐡, and 𝐢 be sets and 𝐴 βŠ† 𝐡. Now, we must prove that 𝐴 ∩ 𝐢 is a subset of
𝐡 ∩ 𝐢. Based on the definition of β€œsubset”, this requires that we prove that every element of
𝐴 ∩ 𝐢 must be an element of 𝐡 ∩ 𝐢. Let π‘₯ be any element of 𝐴 ∩ 𝐢. By definition, π‘₯ is an
element of both 𝐴 and 𝐢. Since π‘₯ is an element of 𝐴 and 𝐴 βŠ† 𝐡, π‘₯ must be an element of 𝐡.
Since we now know π‘₯ is an element of both 𝐡 and 𝐢, by definition π‘₯ is an element of
𝐡 ∩ 𝐢. Therefore 𝐴 ∩ 𝐢 βŠ† 𝐡 ∩ 𝐢. ∎
Proposition: For any sets 𝐴, 𝐡, and 𝐢, 𝐴 βŠ† 𝐡 if and only if 𝐴 ∩ 𝐡 = 𝐴.
Proof: Let 𝐴, 𝐡, and 𝐢 be sets. Remember that proving a biconditional statement requires
two proofs. We will first prove that if 𝐴 βŠ† 𝐡, then 𝐴 ∩ 𝐡 = 𝐴. Suppose 𝐴 βŠ† 𝐡. We must
prove that 𝐴 ∩ 𝐡 βŠ† 𝐴 and 𝐴 βŠ† 𝐴 ∩ 𝐡. First, suppose π‘₯ is any element of 𝐴 ∩ 𝐡. By definition,
π‘₯ is an element of 𝐴 (and also of 𝐡), and therefore 𝐴 ∩ 𝐡 βŠ† 𝐴. Now, suppose 𝑦 is any
element of 𝐴. Since we have supposed 𝐴 βŠ† 𝐡, by definition 𝑦 must be an element of 𝐡. Since
𝑦 is an element of both 𝐴 and 𝐡, 𝑦 is an element of 𝐴 ∩ 𝐡 by definition, and therefore
𝐴 βŠ† 𝐴 ∩ 𝐡.
We now prove that if 𝐴 ∩ 𝐡 = 𝐴, then 𝐴 βŠ† 𝐡. Suppose 𝐴 ∩ 𝐡 = 𝐴. We must prove that
𝐴 βŠ† 𝐡. So let 𝑧 be any element of 𝐴. Since 𝐴 = 𝐴 ∩ 𝐡, 𝑧 must be an element of 𝐴 ∩ 𝐡. Then
by definition, 𝑧 is an element of 𝐡, so 𝐴 βŠ† 𝐡. ∎
Proposition: For any sets 𝐴, 𝐡, 𝐢, and 𝐷, if 𝐢 βŠ† 𝐴 and 𝐷 βŠ† 𝐡, and 𝐴 and 𝐡 are disjoint, then
𝐢 and 𝐷 are disjoint.
Proof: Let 𝐴, 𝐡, 𝐢, and 𝐷 be sets and suppose 𝐢 βŠ† 𝐴, 𝐷 βŠ† 𝐡, and 𝐴 ∩ 𝐡 = βˆ…. We must prove
that 𝐢 ∩ 𝐷 = βˆ…. By definition, we must prove that 𝐢 ∩ 𝐷 has no elements. Suppose there is
an element π‘₯ in 𝐢 ∩ 𝐷. By definition, π‘₯ is an element of both 𝐢 and 𝐷. Then since 𝐢 βŠ† 𝐴 and
𝐷 βŠ† 𝐡, π‘₯ is an element of 𝐴 and of 𝐡, so π‘₯ is an element of 𝐴 ∩ 𝐡, which is βˆ…. This
contradicts the definition of βˆ…, so 𝐢 ∩ 𝐷 must be empty. ∎
In Exercises 5 – 13, prove each of the general properties about sets 𝐴, 𝐡, and 𝐢. Use only
definitions in your proofs; do not use previously-proved properties in new proofs.
Exercise 5: If 𝐴 βŠ† 𝐢 and 𝐡 βŠ† 𝐢, then 𝐴 βˆͺ 𝐡 βŠ† 𝐢.
Exercise 6: 𝐴 ∩ 𝐴𝐢 = βˆ….
Exercise 7: (𝐴 βˆͺ 𝐡)𝐢 = 𝐴𝐢 ∩ 𝐡 𝐢 .
Exercise 8: If 𝐴 ∩ 𝐡 = 𝐴 and 𝐡 ∩ 𝐢 = 𝐡, then 𝐴 ∩ 𝐢 = 𝐴.
Exercise 9: 𝐴 βˆͺ (𝐴𝐢 ∩ 𝐡) = 𝐴 βˆͺ 𝐡.
Week 6
Page 6
Exercise 10: 𝐴 ∩ (𝐡 βˆͺ 𝐢) = (𝐴 ∩ 𝐡) βˆͺ (𝐴 ∩ 𝐢).
Exercise 11: If 𝐴 ∩ 𝐡 = 𝐴, then 𝐴 βˆͺ 𝐡 = 𝐡.
Exercise 12: If 𝐴 βŠ† 𝐡, then 𝐴 ∩ 𝐡 𝐢 = βˆ….
Exercise 13: (𝐴 βˆͺ 𝐡) ∩ (𝐴 βˆͺ 𝐢) = 𝐴 βˆͺ (𝐡 ∩ 𝐢).
Final Note: Interval Notation
Because much of mathematics – especially applied mathematics – deals with the set of real
numbers, some specialized notation has been developed for certain kinds of subsets of ℝ,
which we call β€œintervals.”
Definitions: Let π‘Ž and 𝑏 be any real numbers with π‘Ž ≀ 𝑏. The following definitions are
collectively called interval notation.
ο‚·
ο‚·
ο‚·
ο‚·
ο‚·
ο‚·
ο‚·
ο‚·
(π‘Ž, 𝑏) represents the open interval {π‘₯ ∈ ℝ ∢ π‘Ž < π‘₯ < 𝑏}.
[π‘Ž, 𝑏] represents the closed interval {π‘₯ ∈ ℝ ∢ π‘Ž ≀ π‘₯ ≀ 𝑏}.
(π‘Ž, 𝑏] represents the set {π‘₯ ∈ ℝ ∢ π‘Ž < π‘₯ ≀ 𝑏}.
[π‘Ž, 𝑏) represents the set {π‘₯ ∈ ℝ ∢ π‘Ž ≀ π‘₯ < 𝑏}.
(βˆ’βˆž, 𝑏) represents the set {π‘₯ ∈ ℝ ∢ π‘₯ < 𝑏}.
(π‘Ž, ∞) represents the set {π‘₯ ∈ ℝ ∢ π‘₯ > π‘Ž}.
(βˆ’βˆž, 𝑏] represents the set {π‘₯ ∈ ℝ ∢ π‘₯ ≀ 𝑏}.
[π‘Ž, ∞) represents the set {π‘₯ ∈ ℝ ∢ π‘₯ β‰₯ π‘Ž}.
Exercise 14: Think about all the open intervals of the form (0, 1 + 𝑐), with 𝑐 being any
positive real number. For example, some of these intervals are (0, 2), (0, 100), (0, 2πœ‹),
10
(0, 9 ), and so on.
(a) What is the union of the intervals described above? Explain your answer.
(b) What is the intersection of the intervals described above? Explain your answer.