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.
© Copyright 2026 Paperzz