Lecture-07
Lecture-07
Topics:
Set Terminologies
a. Set and Set Notations
b. Empty Set, Subsets, Power sets,
Cartesian Products
c. Infinite Sets
d. Venn Diagrams
CHAPTER 2 : SETS
There are several ways to describe a set. One way is to list all the members of a
set, when this is possible. We use a notation where all members of the set are
listed between braces. For example, the notation {a, b, c, d} represents the set
with the four elements a, b, c, and d. This way of describing a set is known as
the roster method.
Examples:
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 3: The set L of Nobel Laureates in chemistry in
Bangladesh, L = { }, known as empty set often denoted by 𝜙.
Elements of a set may even be inconceivably unrelated like {a, 2, Sabuj,
Rajshahi}
Set Builder Notation:
❏ [a, b] = { x | a ≤ x ≤ b }
❏ [a, b) = { x | a ≤ x < b }
❏ (a, b] = { x | a < x ≤ b }
❏ (a, b) = { x | a < x < b }
Note that [a, b] is called the closed interval from a to b and (a, b) is called
the open interval from a to b.
Set Equality:
Definition : Two sets are equal if and only if they have the same elements.
Therefore, if A and B are sets, then A and B are equal if and only if
∀x (x ∈ A ↔ x ∈ B). We write A = B, if A and B are equal sets.
EXAMPLE: The sets {1, 3, 7} and {3, 7, 1} are equal, because they have the
same elements. Note that the order in which the elements of a set are listed does
not matter. Note also that it does not matter if an element of a set is listed more
than once, so {2, 3, 3, 3, 5, 5, 5} is the same as the set {2, 3, 5} because they
have the same elements.
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 𝝓 or { }.
A set with one element is called a singleton set.
A common error is to confuse the empty {𝝓} has one more element
than 𝝓. Set 𝝓 with the set {𝝓} , which is a singleton set.
The single element of the set {𝝓} is the empty set itself!
𝝓, {𝝓} and {{𝝓}} are all different sets.
Venn Diagram:
Sets can be represented graphically using Venn diagrams, named after the
English mathematician John Venn, who introduced their use in 1881. In Venn
diagrams the universal set U, which contains all the objects under
consideration, is represented by a rectangle.
EXAMPLE: Draw a Venn diagram that represents V, the set of vowels in the English
alphabet.
e U
a V i
u o
Subsets:
Definition : The set A is a subset of B, and B is a superset of A, if and only if
every element of A is also an element of B. We use the notation A ⊆ B to
indicate that A is a subset of the set B. If, instead, we want to stress that B is a
superset of A, we use the equivalent notation B ⊇ A. (So, A ⊆ B and B ⊇ A
are equivalent statements.)
We see that A ⊆ B if and only if the quantification ∀ x(x ∈ A → x ∈ B)
Showing that A is a Subset of B To show that A ⊆ B, show that if x belongs
to A then x also belongs to B.
Showing that A is Not a Subset of B To show that A ⊈ B, find a single x ∈ A
such that x ∉ B
Theorems:
THEOREM 1: For every set S, (i ) ⊆ ⊆ S and (ii ) S ⊆ S.
B U
A
The Size of a Set:
Sets may have other sets as members. For instance, we have the sets A = {∅, {a}, {b},
{a, b}} and B = {x ∣ x is a subset of the set {a, b}}.
Note that these two sets are equal, that is, A = B. Also note that {a} ∈ A, but a ∉ A.
Definition : Let S be a set. If there are exactly n distinct elements in S where n is a
nonnegative integer, we say that S is a finite set and that n is the cardinality of S. The
cardinality of S is denoted by |S|.
EXAMPLE 10: Let A be the set of odd positive integers less than 10. Then |A| = 5.
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.
Infinite sets and power sets:
EXAMPLE : 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 n elements.
Cartesian Products:
Definition: The ordered n-tuple (a1, a2, … , an) is the ordered collection that
has a1 as its first element, a2 as its second element, … , and an as its nth
element.
We say that two ordered n-tuples are equal if and only if each corresponding
pair of their elements is equal. In other words, (a1, a2, … , an) = (b1, b2, … , bn)
if and only if ai = bi , for i = 1, 2, … , n.
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
We use the notation A2 to denote A × A, the Cartesian product of the set A with
itself. Similarly, A3 = A × A × A, A4 = A × A × A × A, and so on. More generally,
An = {(a1, a2, … , an) ∣ ai ∈ A for i = 1, 2, … , n}.
A3 = {(1, 1, 1), (1, 1, 2), (1, 2, 1), (1, 2, 2), (2, 1, 1), (2, 1, 2), (2, 2, 1), (2, 2, 2)}.
EXAMPLE: What are the ordered pairs in the less than or equal to relation, which
contains (a, b) if a ≤ b, on the set {0, 1, 2, 3}?
Solution: The ordered pair (a, b) belongs to R if and only if both a and b belong to
{0, 1, 2, 3} and a ≤ b.
Consequently, R = {(0, 0), (0, 1), (0, 2), (0, 3), (1, 1), (1, 2), (1, 3), (2, 2), (2, 3), (3,
3)}.
Solution: The statement ∀x ∈ R (x2 ≥ 0) states that for every real number x, x2 ≥ 0.
This statement can be expressed as “The square of every real number is
nonnegative.”