Note That Some Books Include 0 As A Natural Number
Note That Some Books Include 0 As A Natural Number
Prepared by RMarcelo
June 2020
In this handout, we study the basic concepts about sets, set operations, and set identities, that we may need
in MATH 55.1.
1 Sets
(1.1) A set is an unordered collection of objects, called the elements of the set. If an object a is in the set
A, we write a ∈ A; otherwise, we write a 6∈ A.
We can describe a set by listing its elements, e.g. A = {1, 2, 3, 4, 5} ; or by identifying what property/ies
the elements satisfy, so the same set A can be written
A = {x | x is a positive integer and x < 6} .
Instead of “|”, we also use “:”, so we also have
A = {x : x is a real number that satisfies (x − 1) (x − 2) (x − 3) (x − 4) (x − 5) = 0} .
(1.2) Sets are usually denoted by capital letters, like A, B, C, and elements written in lower-case. There
are some special sets that you should be familiar with:
(1.3) We shall also be using the convenient interval notation for sets of real numbers. Given a, b ∈ R, with
a < b, we have the usual notations:
(a, b) = {x ∈ R : a < x < b} ,
[a, b] = {x ∈ R : a ≤ x ≤ b} ,
(a, b] = {x ∈ R : a < x ≤ b} ,
[a, b) = {x ∈ R : a ≤ x < b} ,
(a, ∞) = {x ∈ R : a < x} ,
[a, ∞) = {x ∈ R : a ≤ x} ,
(−∞, b) = {x ∈ R : x < b} ,
(−∞, b] = {x ∈ R : x ≤ b} ,
(−∞, ∞) = R.
1
Note that some books include 0 as a natural number.
1
(1.4) Two sets A and B are equal, written A = B, if they have the same elements; otherwise, A 6= B.
Thus,
{−1, 1, 0} = x ∈ R : x5 = x = {−1, 0, 1} = {−1, −1, 0, 0, 1} = x ∈ C : x5 = x .
6
(1.5) The empty set, or null set, is the set that has no elements. It is denoted by ∅ or {} . There is only one
such set. For example,
x ∈ R : x2 + 1 = 0 = ∅.
(1.6) Given two sets A and B, we say A is a subset of B if every element of A is also an element of B. In
this case, we write A ⊆ B. Hence, for any set A, it follows that ∅ ⊆ A, and A ⊆ A. Now, if A ⊆ B but
A 6= B, then we say A is a proper subset of B, and we write A ⊂ B or A ( B. We see the following
relation on sets of real numbers:
N ⊂ Z ⊂ Q ⊂ R ⊂ C.
• if we have to prove that A ⊆ B, then we can start as follows: Let a be an arbitrary element of A. (In
short we can just write: “Let a ∈ A.”). To complete the proof, we just have to show that a is an
element of B.
(1.10) Given a set A, the power set of A, denoted by P (A) , is the set of all subsets of A. For example, if
A = {1, 2} , then
P (A) = {∅, {1} , {2} , {1, 2}} ,
and |P (A)| = 4. In general, if |A| = n, then |P (A)| = 2n .
(1.11) Given sets A and B, the cartesian product A × B is the set of all ordered pairs (a, b) , where a ∈ A
and b ∈ B, that is
A × B = {(a, b) : a ∈ A, b ∈ B} .
So if |A| = m and |B| = n, then |A × B| = m · n. As an example, R × R can be interpreted as the set of
all points in the Cartesian plane; we also write it simply as R2 .
(1.12) We can extend cartesian products to products of more than two sets. For example, R × R × R,
which is also written R3 , can be taken as the set of all points in the 3-dimensional Euclidean plane.
2
2 Set Operations
(2.1) Let A and B be sets. The union and intersection of A and B are, respectively, the sets
A ∪ B = {x : x ∈ A or x ∈ B} , and A ∩ B = {x : x ∈ A and x ∈ B} .
For example, (−3, 1) ∪ [0, 4] = (−3, 4] and (−3, 1) ∩ [0, 4] = [0, 1).
(2.2) Given sets A and B, the difference A − B or A \ B is defined to be the set {x : x ∈ A and x 6∈ B} 2 .
Thus, what will (−3, 1) − [0, 4] be? The answer is provided at the end of the handout.
(2.3) Let U be the universal set (that is, all other sets that will be discussed are assumed to be subsets of
U ). The complement of a set A, denoted by Ac or Ā, is defined as the set U − A. That is, its elements are
precisely those in U that are not in A. As an example, if U = R, then determine (−3, 1)c . The answer is
provided at the end of the handout.
(2.4) We extend the definition of union and intersection to any number of sets. Let A be a collection of sets.
Then we define
[
A = {x : x ∈ X, for some X ∈ A} , and
A∈A
\
A = {x : x ∈ X, for each X ∈ A} .
A∈A
If the elements in A can be indexed by some set ∆—that is, A = {Aα : α ∈ ∆} , then we can also write
the above union and intersection as [ \
Aα and Aα ,
α∈∆ α∈∆
3 Identities on Sets
Let U be the universal set for all the sets we will discuss in this section.
(3.1) If A, B, and C are any sets, then we have the following identities: (You don’t need to memorize the
names of the laws.)
3
3. A ∪ A = A and A ∩ A = A (Idempotent laws)
11. A − B = A ∩ B c
One helpful aid in checking identities is the Venn diagram. However, if we want a proof of equality of two
sets, the Venn diagram is usually not enough. One method that we mentioned to prove that two sets A and
B are equal is by showing both A ⊆ B and B ⊆ A. But when applicable, something like the next example
will provide a shorter proof.
(3.2) Example: Show that (A ∪ B)c = Ac ∩ B c .
Proof: For an arbitrary element x, we notice that x ∈ (A ∪ B)c iff x 6∈ A ∪ B. But x ∈
/ A ∪ B iff x 6∈ A
and x 6∈ B. Now, x 6∈ A iff x ∈ A ; x 6∈ B iff x ∈ B . Therefore, x 6∈ A ∪ B iff x ∈ Ac ∩ B c . And so,
c c
4 Exercises
1. True or False: Assume A, B, C are sets.
4
Answers
S to exercises (2.2)-(2.4):
T (−3, 1) − [0, 4] = (−3, 0); (−3, 1)c = (−∞, −3] ∪ [1, ∞);
Aα = (0, ∞) and Aα = ∅
α∈R α∈R
Answers to Exercises 4:
1. (a) True
(b) True
(c) False
(d) True
(e) True
(f) True (Let A = ∅ and B any set that contains ∅.)