Set Theory
Set Theory
Set Theory
EXAMPLE 1 :The set V of all vowels in the English alphabet can be written as
V = {a, e, i, o, u}.
EXAMPLE 2 The set O of odd positive integers less than 10 can be expressed by
O = {1, 3, 5, 7, 9}.
EXAMPLE 4 The set of positive integers less than 100 can be denoted by {1, 2, 3,..., 99}.
Another way to describe a set is to use set builder notation. We characterize all those
elements in the set by stating the property or properties they must have to be
members. For instance, the set O of all odd positive integers less than 10 can be
written as O = {x | x is an odd positive integer less than 10}, or, specifying the
universe as the set of positive integers, as O = {x ∈ Z+ | x is odd and x < 10}
• THE EMPTY SET There is a special set that has no elements. This set is
called the empty set, or null set, and is denoted by ∅. The empty set
can also be denoted by { }
EXAMPLE 11
Let S be the set of letters in the English alphabet. Then |S| = 26.
EXAMPLE 12
Because the null set has no elements, it follows that |∅| = 0
DEFINITION 5 A set is said to be infinite if it is not finite .
EXAMPLE 13 The set of positive integers is infinite
Power Sets
DEFINITION 6 Given a set S, the power set of S is the set of all subsets of
the set S. The power set of S is denoted by P(S)
EXAMPLE : What is the power set of the set {0, 1, 2}?
Solution: The power set P({0, 1, 2}) is the set of all subsets of {0, 1, 2}.
Hence, P({0, 1, 2}) = {∅,{0},{1},{2},{0, 1},{0, 2},{1, 2},{0, 1, 2}}.
Note that the empty set and the set itself are members of this set of subsets.
EXAMPLE 15 What is the power set of the empty set? What is the power set of the set {∅}?
Solution: The empty set has exactly one subset, namely, itself. Consequently, P(∅) = {∅}.
The set {∅} has exactly two subsets, namely, ∅ and the set {∅} itself.
Therefore, P({∅}) = {∅,{∅}}. If a set has n elements, then its power set has 2 raise to n elements
EXAMPLE :Let A represent the set of all students at a university, and let B represent the set of all
courses offered at the university. What is the Cartesian product A × B and how can it be used?
Solution: The Cartesian product A × B consists of all the ordered pairs of the form (a, b), where a
is a student at the university and b is a course offered at the university. One way to use the set A
× B is to represent all possible enrollments of students in courses at the university.
Solution: The Cartesian product A × B is A × B = {(1, a), (1, b), (1, c), (2, a), (2, b), (2, c)}.
Note that the Cartesian products A × B and B × A are not equal, unless A = ∅ or B = ∅ (so that A ×
B = ∅) or A = B .
EXAMPLE : Show that the Cartesian product B × A is not equal to the Cartesian
product.
EXAMPLE 2 The union of the set of all computer science majors at your school and the
set of all mathematics majors at your school is the set of students at your school who
are majoring either in mathematics or in computer science (or in both).
DEFINITION 2 Let A and B be sets. The intersection of the sets A and B, denoted by
A ∩ B, is the set containing those elements in both A and B. An element x belongs to
the intersection of the sets A and B if and only if x belongs to A and x belongs to B. This
tells us that A ∩ B = {x | x ∈ A ∧ x ∈ B}
DEFINITION 3 Two sets are called disjoint if their intersection is the empty set
EXAMPLE 5 Let A = {1, 3, 5, 7, 9} and B = {2, 4, 6, 8, 10}. Because A ∩ B = ∅, A and B are
disjoint.
We are often interested in finding the cardinality of a union of two finite sets A and B. Note
that |A|+|B| counts each element that is in A but not in B or in B but not in A exactly once,
Be careful not to overcount! and each element that is in both A and B exactly twice. Thus, if
the number of elements that are in both A and B is subtracted from |A|+|B|, elements in A
∩ B will be counted only once. Hence, |A ∪ B|=|A|+|B|−|A ∩ B|
EXAMPLE 6 The difference of {1, 3, 5} and {1, 2, 3} is the set {5}; that is, {1, 3, 5}−{1, 2,
3}={5}. This is different from the difference of {1, 2, 3} and {1, 3, 5}, which is the set {2}
EXAMPLE 8 Let A = {a, e, i, o, u} (where the universal set is the set of letters of the
English alphabet). Then A = {b, c, d, f, g, h, j, k, l, m, n, p, q, r, s, t, v, w, x, y,z}.
EXAMPLE 9 Let A be the set of positive integers greater than 10 (with universal set the
set of all positive integers). Then A = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}.