2.2 Basic Concepts of Math Language - Sets, Functions, and Binary Operations PDF
2.2 Basic Concepts of Math Language - Sets, Functions, and Binary Operations PDF
2
• Order does not matter
◼ We often write them in order
because it is easier for humans to
understand it that way
◼ {1, 2, 3, 4, 5} is equivalent to {3, 5,
2, 4, 1}
3
• Sets do not have duplicate elements
◼ Consider the set of vowels in the alphabet.
▫It makes no sense to list them as {a, a, a, e,
i, o, o, o, o, o, u}
▫What we really want is just {a, e, i, o, u}
◼ Consider the list of students in this class
▫Again, it does not make sense to list
somebody twice
• Note that a list is like a set, but order does
matter and duplicate elements are allowed
◼ We won’t be studying lists much in this class
4
• Sets are usually represented by a capital
letter (A, B, S, etc.)
6
• A set is said to “contain” the various
“members” or “elements” that make up the set
◼ If an element a is a member of (or an
element of) a set S, we use then notation a ∈
S
▫4 ∈ {1, 2, 3, 4}
◼ If an element is not a member of (or an
element of) a set S, we use the notation a ∉ S
▫7 ∉ {1, 2, 3, 4}
▫Virginia ∉ {1, 2, 3, 4}
7
• N/Z+ = {1, 2, 3, …} is the set of natural
numbers
• W = {0,1, 2, 3, …} is the set of whole numbers
• Z = {…, -2, -1, 0, 1, 2, …} is the set of integers
• Q = {p/q | p ∈ Z, q ∈ Z, q ≠ 0} is the set of
rational numbers
◼ Any number that can be expressed as a
fraction of two integers (where the bottom
one is not zero)
• R is the set of real numbers
8
Relation - Any set of ordered
pairs
y= x x= y
x y input output x y input output
-2 2 -2 0 2 -2 0 -2
-1 1 -1 1 -1 -1
0 1 1 0
0 0 0 0
1 1 1 1 1 1
2 2
2 2 2 2 2 2
x x x x
Function
y y y y
x x x x
Vertical Line Test - Functions
y y y y
x x x x
Function Function
y y y y
x x x x
Vertical Line Test - Functions
y y y y
x x x x
x x x x
Vertical Line Test - Functions
y y y y
x x x x
x x x x
Vertical Line Test - Functions
y y y y
x x x x
x x x x
25
Binary Operation Tables
If ° is a binary operation on a finite set
S, then we can represent ° in table
form, where the entry in row x and
column y is the value x ° y.
Example. Let S = N4 = {0, 1, 2, 3} and
let x ° y = (x + y) mod 4.
Then the operation table for ° is 0 1 2 3
°
pictured. 0 0 1 2 3
1 1 2 3 0
2 2 3 0 1
3 3 0 1 2
26
° 0 1 2 3
0 0 1 2 3
1 1 2 3 0
32
Quiz (3 minutes). Given the algebra
〈Z; 0, +〉. Prove the cancellation law:
x + z = y + z implies x = y.
33
Answer. x = x + 0 (0 is identity
for +)
= x + (z + –z) (–z is the inverse of
z with respect to +)
= (x + z) + –z (+ is associative)
= (y + z) + –z (hypothesis)
= y + (z + –z) (+ is associative)
= y + 0 (–z is the inverse of z with
respect to +)
=y (0 is identity for +). QED.
34