Week 4 Theory On Set and Relation
Week 4 Theory On Set and Relation
The order of
elements in a set
is not important.
George Cantor (1845-1918)
George Cantor was born March 3, 1845 in St.
Petersburg, Russia and died January 6, 1918 in
Halle, Germany.
Cantor was the first mathematician who
defined the basic ideas of set theory. Using
ingenious methods, he proved remarkable
things about infinite sets.
Representing Sets
For instance,
A = {, , , }
Representing Sets
For example,
Note
When we use the defining-property method
we can use the symbol ‘:’ instead of ‘|’.
Representing Sets
Example
1. C = {y| y is a whole number less than 1. C = {6, 9, 12, 15, 18, 21, 24}
25 & divisible by 3}
• D = {O, B, AB, A+, A-,AB+, AB-}
• D = {z| z is a blood type}
Representing Sets
The Venn Diagram Method
As an example,
A
.a
.b
.c
Note
Each element of the set is represented
by a point inside the closed shape.
John Venn (1834-1923)
A
a. .1 .3 b. . July
.5 . January
.7
.9 . June
c. .5 . 10
. 15 . 0 . 20
Number of Elements of a Set
Definition
example
a. E = {M, A, T, H, E, I, C, S} so n(E) = 8
1. Equivalent Sets
Note
1. Equal Sets
Comparing Sets
Equivalent Sets
Definition
n(A) = n(B) A
= 4= {a, b, c, d} so
&B A =B{1, 2, 3, 4}
Comparing Sets
Equal Sets
Definition
A=BA B
However,
If A is equivalent to B, then A
might not be equal to B.
ABA= B
Types of Set
As an example,
So A = & n() = 0
Types of Set
The Universal Set
Definition
A = {a, b, c}
B = {c, d, e}
C = {f, g, h}
Types of Set
Finite & Infinite Sets
Definition
U
B A AB
. 1
. 2 . 3 . 6
. 5 BU
. 4
. 8
. 7 A
U
Subsets
Examples
B . 5 . 7
• If A B and B A then A = B.
• If A B, B C then A C.
(Transitive)
Union of Sets
Definition
If A = {a, b, c, d, e}
& B = {a, c, f, g, h}, then
A B = {a, b, c, d, e, f, g, h}.
U
nio
n
of
set
Note
If a A B then a A or
a B.
Each element must
be written only
once in the union of
sets.
Union of Sets
example
•Given:
U = {a, b, c, d, e, f, g, h}
A = {a, c, f}
B = {d, e, f}
A B = {a, c, d, e, f}
Union of Sets
Properties of the Union
Let A, B, C be three sets, then the following statements are
true:
• AA= A
(idempotent law)
• AB=B A
(commutative property)
• A (B C) = (A B) C
(associative property)
• A= A
(identity law)
• AU= U
Intersection of Sets
Definition
If a A B then
a A & a B.
Intersection of Sets
example
• E F = {m, n, o} {p, r, s, t} =
Intersection of Sets
Properties of the Intersection
Let A, B, & C be three sets, then the following statements are
true:
• AA= A
(idempotent law)
• AB=BA
(commutative property)
• A (B C) = (A B) C
(associative property)
• A=
(identity law)
• AU= A
• Complementation – is an operation on a set that must
be performed in reference to a universal set, denoted
by A’
example: given U = {a, b, c, d, e}
A = {c, d, e},
find A’
A’ = {a, b}
Complement of a Set
Definition
Ac or A’
• A A’ = U
• A A’ =
• U’ =
• (A’)’ = A
Complement of a Set
example
Given: U = {3, 4, 5, 7, 8, 9, a, b}
A = {a, 3, 7, 9}
A’= {4, 5, 8, b}
• A A’ = {3, 4, 5, 7, 8, 9, a, b} = U
• A A’ = {a, 3, 7, 9} {4, 5, 8, b} =
Functions and Relations
40
A relation is a set of ordered pairs.
The domain is the set of all x values in the relation
domain = {-1,0,2,4,9}
These are the x values written in a set from smallest to largest
This is a
{(2,3), (-1,5), (4,-2), (9,9), (0,-6)} relation
1
2
2
4
3
6
4 8
5 10
No
1 xh
are 2 tha as
’s ed 2 m
x
All sign
4 ass n one ore
3 ign y
as 6 ed
4 8
5 10
This is a function.
It meets our Set A is the domain Set B is the range
conditions.
1
2
2
4
3
6
4 8
5 10
1
2
2
4
3
6
4 8
5 10
f 2 22 32 6
not something you work. It says 2
that the right hand side is the
function f and it has x in it.
f 2 24 32 6 8 6 6 8
So we have a function called f that has the variable x in it.
Using function notation we could then ask the following:
This means to find the function f and instead of
Find f (2). having an x in it, put a 2 in it. So let’s take the
function above and make brackets everywhere
the x was and in its place, put in a 2.
f 2 2 2 3 2 6
2
f 2 24 3 2 6 8 6 6 20
f k 2k 3k 6
2
f k 2 k 3k 6 2k 3k 6
2 2
f 2k 2 4k 32k 6 8k 6k 6
2 2