Lecture1and2 Ver2
Lecture1and2 Ver2
Sets
Definition:
A set is a well–defined collection of distinct objects called the elements (or
members).
Examples.
1. Write the following sets by listing its elements.
(1) S1 = {x | |x| < 5 and x is a negative integer}
(2) S2 = {x | x2 = 7}
(Unless otherwise specified, sets are assumed to be a subsets of the real numbers.)
1. x ∈ X : x is an element of a set X.
2. x ∈
/ X : x is not an element of a set X.
4. Definition: A universal set U is the set of all elements in the domain of discourse.
In our previous examples, this is the set of real numbers.
5. Definition: If a set A has a finite number of elements, then A is a finite set. The
number of elements of a set A is called the cardinality of A and we write |A| .
(a) ∅
(b) {∅}
This is denoted by A ⊆ B .
This means that, if c ∈ A, then c ∈ B.
9. Definition: The set consisting of all subsets of a given set A is called the power set
of A and is denoted by P(A).
Examples
(ii) {1, 2} ∈ S
(iii) {1, 2} ⊆ S
(iv) {3, 4} ⊆ S
B. Find the corresponding powersets of the set M = {0, 1} and of the set K = {a, b, c}.
D. Can you make a conjecture about how A and |P(A)| are related if A is a finite set?
1. Theorem: For any set A,
I. φ ⊆ A.
II. A ⊆ U.
N = {0, 1, 2, 3, 4, · · · }
Note: To remember that 0 ∈ N, think of the letter ‘N’ as an abbreviation for the word
‘nonnegative’. Not all authors follow this convention.
• Integers: denoted by Z.
Note: The letter ‘Z’ comes from the German word ‘zahlen’ which means ‘to count’.
Note: A rational number x can be expressed in more than one way as a fraction p/q
of two integers. For example, if x = 1, then x can be written as 1/1 or as 2/2.
Note: Two complex numbers, a + bi and c + d i, represent the same element if an only
if a = c and b = d. Complex numbers of the form a + 0i are denoted by the single
value a, and a is viewed as a real number contained in the set of complex numbers.
Complex numbers of the form 0 + bi are denoted by bi; such complex numbers are said
to be purely imaginary.
Remark: N ⊂ Z ⊂ Q ⊂ R ⊂ C.
Operations on sets:
All logical relations between a finite collection of sets can be represented graphically
by means of a Venn diagram . A set is represented by a simple (closed) plane area.
• The union of A and B is the set of all the elements which are in either A or B or in
both. It is denoted by A ∪ B and in symbols,
A ∪ B = {x | x ∈ A or x ∈ B}.
• The intersection of A and B is the set of all elements which are in A and B. It is
denoted by A ∩ B and in symbols,
A ∩ B = {x | x ∈ A and x ∈ B}.
• Definition: The difference of A and B is the set of elements that are in A but not
in B. We denote this by A − B (or A \ B) .
A − B = {x | x ∈ A and x ∈
/ B}.
• Definition: The complement of a set A is the set of all the elements which do not
0
belong to A. It is denoted by A (or A or Ac ) and in symbols,
A = {x | x ∈
/ A}.
or equivalently
A = U − A = {x | x ∈ U and x ∈
/ A}.
Remark: A − B = A ∩ B. Why?
Example. A group incoming first–year students at Michigan State University were sur-
veyed in order to determine the factors that influenced their decision to choose to attend
Michigan State University. The survey revealed the following information.
• 9 said ”great football team” but didn’t say ”very good academic reputation” and
didn’t say ”I was offered financial assistance”.
• 26 said ”I was offered financial assistance” and ”great football team” and ”very good
academic reputation”.
(1) How many said ”I was offered financial assistance” and ”very good academic reputa-
tion”?
(2) How many said ”great football team” or ”I was offered financial assistance”?
(3) How many said ”great football team” but not ”very good academic reputation”?
n
[
? What does “a ∈ Ai ” mean?
i=1
n
\
2. Definition: The intersection of n ≥ 2 sets A1 , A2 , · · · , An is denoted by Ai and
i=1
is defined as
n
\
Ai = {x : x ∈ Ai for every i, 1 ≤ i ≤ n}.
i=1
Tn
? What does “a ∈ i=1 Ai ” mean?
How can we write the union or intersection of a collection of those sets without listing
every set?
Partitions of Sets
1. If the intersection of two sets is the empty set, then the two sets are disjoint.
• The order in which the elements of a set A are listed doesn’t matter.
• This is not the case for an ordered pair: (1, 2) 6= (2, 1). Note that we use parentheses,
not braces, for an ordered pair.
Definition: Let X and Y be two sets. The Cartesian product of X and Y is the set of
all possible ordered pairs (x, y) where x belongs to a set X and y belongs to a set Y . We
denote it by X × Y .
X × Y = {(x, y) | x ∈ X and y ∈ Y }.
Theorem. |X × Y | = |X| · |Y |.