Functions and Relations
Functions and Relations
1R 1 since 1 < 1
2R 1 since 2 < 1
2R2 since 2 < 2
Relation
Let A = {0,1,2} and B = {1,2,3}. Using Cartesian
product:
A x B = { (x,y) l x ∈ A and y ∈ B}
as follows:
Given any (x,y) ∈ A x B,
x− y
(x,y) ∈ R means that is an integer
2
a. State explicitly which ordered pairs are in AxB and
which are in R
b. Is 1 R 3? Is 2 R 3? Is 2 R 2?
c. What are the domain and co-domain of R?
Relation
2 3 2 3
3 5 3 5
Arrow diagram for S Arrow diagram for T
Functions
Notation
If A and B are sets and F is a function from A
and B, then given any element x in A, the
unique element in B that is related to x by F is
denoted F(x), which is read as “F of x”
PRACTICE PROBLEM
Functions and Relations on Finite Sets
Let A= {2,4,6} and B = {1,3,5}. Which of the relations R, S, T defined below
are functions from A to B?
Function machine
f(x) Output
Functions Defined by Formulas
The Squaring Function f from R to R is defined by the formula
f(x) = 𝑥 2 for all real numbers of x. This idea can be represented
by writing f(_) = 2 .
Squaring function
𝑓 𝑥 = 𝑥2
Functions Defined by Formulas
The Successor function g from Z to Z is defined by the formula
g(n) = n + 1. This idea can be represented by writing g(_) =_ + 1.
Successor function
g(n)=n+1
Thank You!!!!