Sets Relations Functions
Sets Relations Functions
SPECIFIC OBJECTIVES:
At the end of the topic session the students are expected to:
Cognitive:
Definition 12
used to denote a and not too large, it can be written by listing the elements.
set.
Example:
If a set is finite
A = { 2,4,6,8}
The example above describes a set A made up of 4 elements: 2, 4, 6
and 8.
On the other hand, if the set is a large finite set or an infinite set, it can
be written by listing a property necessary for membership.
Example:
B={x| x is a positive integer}
The above example describes a set B whose elements are positive
integers.
Remarks:
1. If A is a set, the cardinality of A, denoted by |A|, is the number
of elements of A.
2. The set with no elements is called an empty set (or null set)
denoted by φ (i.e. φ ={ } and |A| = 0)
3. The set of all subsets of a set A is called the power set of A
denoted by P(A) and | P(A)| = 2n , where n = |A|
Example:
A = {1, 2, 3}.
Then |A| = 3
P(A) = { φ ,1,2,3, {1,2}, {1,3},{2,3},{1,2,3}}
|P(A)| = 23 = 8
Language of Mathematics
[See The Language of Sets, Page 3 of 42]
Definition 13
Let A and B be any two sets. A and B are equal if A and B has exactly
the same elements.
Notation : A = B
Example:
A = { 2,4,6,8}
Then, A=B
Note:
a. Order is not important in sets.
Example : {a, b} = {b, a}
Operations on Sets
A U B = {x| x ε A or x ε B }
A ∩ B = {x| x ε A and x ε B}
Language of Mathematics
Examples:
A= {1,2,3,4,5}
B= {x| x is an even positive integer less than 10}
A U B = {1,2,3,4,5,6,8}
A ∩ B = {2,4}
A – B = { 1,3,5}
B – A = { 6,8}
Remarks:
Example:
1. U = {1,2,3,4,5,6,7}
A = {1,2,3,4,5}
B= {5,6,7}
A and B are not disjoint since A ∩ B = 5
Ā = {6,7}
Definition 14
Example:
If A = {1, 2, 3} and B = {x, y}
Language of Mathematics
7.
Definition 15
For example:
1. A = {a,b,c} and B = {1,2,3}. There is in one-to-one
correspondence between the sets A and B since we
can pair
aα1
bα 2
cα 3
Definition 16
Example:
Language of Mathematics
Example:
Theorem 2
Example.
Language of Mathematics
Discrete Structures
Relations
Definition 22
Example:
Language of Mathematics
Page 12 of 23
Discrete Structures
R = {(2, 4), (2, 6), (3, 3), (3, 6), (4, 4)}
The domain of R is the set {2, 3, 4} and the range is the set {3, 4,
5, 6}.
Relations,
3. Let R be the relation on the set X = {1, 2, 3, 4} defined by (x, y)
Page 24 of 42
R if x ≤ y, where x, y X. Thus , we obtain
R = { (1, 1), (1, 2), (1, 3), (1, 4), (2, 2), (2, 3), (2, 4), (3, 3), (3,
4), (4, 4)}.
Let X = {a, b, c} and define R = {(a, a), (c, b), (b, c) } then its
digraph is
Relations,
Page 25 of 42
The vertices of the digraph are the elements of the set X. The
arrow (called the directed edge) represents the elements of the
relation. The element (c, b) is represented by the arrow from the
point c going to the point b.
Language of Mathematics
Discrete Structures
Functions,
Page 34 of 42 [See Functions, Page 34 of 42]
Functions
i. The domain of f is X
ii. If (x, y), (x y’) f, then y = y’
Definition 26
i. The domain of f is X
ii. If (x, y), (x y’) f , then y = y’.
Language of Mathematics
Discrete Structures
Examples:
1. Let X = {1, 2, 3} and Y = {a, b, c}. Define f = {(1, a), (2, b), (3, c)}.
Then f is a function.
2. Let X = {1, 2, 3, 4} and Y = {a, b, c}. Define f = {(1, a), (2,b), (3,c)}
and g = {(1,a), (2, a), (3,b), (4, c)}. Then f is not a function while g
is a function.
3. f = {(1, a), (2, b), (3, c), (1, b)} is not a function.
4. Let X be the set of real numbers and Y be the set of all non-
negative real numbers. Define f (x) = x2. Then, f is a function. In
particular, we can have
f (1) = 122 = 1;
f (2) = 2 = 4;
f (-2) = -22 = 4.
5. Let X be the set of real numbers and Y be the set integers. Define
the function f (x) = [x], where [x] is the largest integer less than or
equal to x. In particular,
f (2.5) = 2
f (0.25) = 0
f (-7/3) = -3
f (1) =1
Such function is called the greatest integer function
Language of Mathematics
Page 20 of 23
Discrete Structures
Definition 29
f o g (x) = f (g (x))
f o g (x) = f(g (x))
Functions,
Page 42 of 42
Examples:
1. Let g = { (1, a), (2, a), (3, c)}, a function from X = {1, 2, 3} to Y= {a,
b, c} and f = {(a, y), (b, x), (c, z)}, a function from Y to Z = {x, y, z}.
Then, f og = { (1, y), (2, y), (3, z)}.
Language of Mathematics