“Mathematics is the study of functions.”
— Vito Volterra
Theory
Functions are evidently important in mathematics. The definition of a function follows from set theory and it is worth exploring the derivation. Commonly a function is seen as something like
. However, their definition is grounded in set theory.
A function should be seen as an assignment of an element of a set
to an element of a set
with some restrictions. This idea can be stated as:
![]()
Where
is the function. The image of
is the element in the set
given by
.
The set
is the domain of the function
. The range is the set of all elements of
that are mapped to by elements of
. The function
forms a set of ordered pairs for which
is true. Let
be the range such that
.

A singled valued function can therefore be viewed as a set of ordered pairs for which
is true. These ordered pairs are a subset of the cartesian product of
and
where
. Every element of
must map to an element of
. Further, to be a function, an element
of
must map to only one value
in
.
![]()
In the above definition,
in
need not map to an unique element
of
. If each
does have a unique
then the function is called injective.
Definition: Let
and
be sets and
.
is injective if every
maps to a unique
.
![]()
For the map
if the image of
is all of
then
is called surjective.
Definition: Let
and
be sets and
. If every element
in
is the image of an element
in
then
is surjective.
![]()
Definition: If a function is both injective and surjective then the function is bijective
Composition of functions.
A composition of functions is to perform one function after another. Say
and
are functions. Then function composition gives a new function
, for example,
. This means
is the function of
applied after
. This means
. An alternative way of stating this is
.
Consider the composition of three functions:![]()
Hence composition of functions is associative. Note that the composition of functions is not necessarily commutative.
Discussion
Functions needs note revolve around numbers. For example, in a monogynous society if a set of people A have partners in the set B then the partner function maps an element of A to B. If sets A and B are the same size then this would also be a bijective function. That is, there is a one to one map between each element of the two sets. If the society is not monogynous then the partner map is not a function as a member of set A could map to many members of set B which breaks the definition of a function.
If a function is bijective then there is an inverse function that maps an image back to the original element in the domain.
A common function in mathematics is
. This is a function that takes an element of the real numbers and maps it to only one element of the positive real numbers. However, this function is not injective. For example
means
maps to either
or
. This reverse process is not a function. Therefore no inverse exists. There are many functions that are not injective, for example
.
Composition of functions is used in the chain rule of differentiation encountered in elementary calculus.
The bijective relationship is the core of understand the ‘size’ of a cardinal number. Two sets have the same size if a bijective map can be formed between the elements of each set. This means that we only need to define a standard set for each number and every other set can be compared to this to give a concept of ‘size’.

