A function or map
f
from X to Y is a rule which, for each element of X, specifies exactly one element of Y.
Here
f(x)∈Y
is the value of
f
at x.
The set X is called the domain of f and is denoted
Finally
im(f):=y∈Y;∃x∈X:y=f(x)
is called the image of
f
graph(f):=(x,y)∈X×Y;y=f(x)=(x,f(x))∈X×Y;x∈X
is called the graph of f. Clearly, the graph of a function is a subset of the Cartesian product
X×Y
.
3.1 Remark
A function
X→Y
is an ordered triple (X, G, Y) with
G⊆X×Y
such that, for each
x∈X
, there is exactly one
y∈Y
with
(x,y)∈G
.
(This definition avoids the useful but imprecise expression ‘rule’ and uses only set theoretical concepts)
3.2 Examples
a. identity function
b. If
X⊆Y
, then
i:X→Y
,
x↦x
is called the inclusion of X into Y. Note that
i=idX⇔X=Y
c. If X and Y are nonempty and
b∈Y
, then
X→Y
,
x↦b
is a constant function
d. If
f:X→Y
and
A⊆X
, then
f|A:A→Y
,
x↦f(x)
is the restriction of
f
to A. Clearly
e. Let
A⊆X
and
g:A→Y
. Then any function
f:X→Y
with
f|A=g
is called an extension of
g
, written
g. Let
X≠ϕ
and
A⊆X
. Then the characteristic function of A is
χA:X→0,1
,
x↦{1,x∈A0,x∈Ac
Composition of Function
Let
f:X→Y
and
g:Y→V
be two functions. Then we define a new function
g∘f:X→V
,
x↦g(f(x))
3.3 Proposition
(h∘g)∘f=h∘(g∘f)
(associativity of composition)
Commutative Diagrams
Injection, Surjections and Bijections
Let
f:X→Y
be a function. Then f is
surjective if
im(f)=Y
injective is
f(x)=f(y)
implies x=y for all
x,y∈X
, and
bijective if
f
is both injective and surjective
3.5 Proposition
Let
Inverse Function
Let
f:X→Y
be bijective. Then the inverse function
f−1
of
f
is the unique function
3.6 Proposition
Let
f:X→Y
and
g:Y→V
be bijective. Then
g∘f:X→V
is bijective and
(g∘f)−1=f−1∘g−1
Let
f:X→Y
be a function and
A⊆X
. Then
f(A):={f(a)∈Y;a∈A}
is called the image of A under
f
.
f−1(C):={x∈X;f(x)∈C}
is called the preimage of C under
f
Set valued Functions
Let
f:P(X)→P(Y),A↦f(A)
and
f−1:P(Y)→P(X),B↦f−1(B)
If
f:X→Y
is bijective, then
f−1:Y→X
exists and
{f−1(y)}=f−1({y})
for all
y∈Y
.
If
f:X→Y
is not bijective, then only the set valued function
f−1
is defined.
In either cases, we write
f−1(y)
for
f−1({y})
and call
f−1(y)⊆X
the fiber of f at y. The fiber
f−1(y)
is simply the solution set
{x∈X;f(x)=y}
of the equation
f(x)=y
. This could be empty.
Finally, we denote the set of all functions from X to Y by Funct (X,Y)
Funct (X,Y) is a subset of
P(X×Y)
.