14 Functions
Long awaited, you might as well have wondered why we have been studying the set theory and relations. In fact, it was to have an in-depth understanding of a function, one of the most important and core concepts in mathematics. One way of understanding a function is by viewing functions as “single-valued relations”, i.e. only one value of is assigned to each for . Also, it is customary to substitute with a small case letter such as . Let us formally define a function.
Definition. (Function or Mapping)
A function or mapping from to , denoted , is a relation from to such that
* ; and
*
The equality of functions and are proven using the usual strategy to prove both and . Here we introduce a shortcut.
Theorem. (The Equality of Functions)
Functions and are equal iff
* and
* for all
Let us illustrate with an example.
Example. Examine the equality of real-valued functions and defined by
Let us examine the domain of each function.
, since .
Also, , since .
Therefore, .
for all .
Therefore, .
In fact, functions can be classified into one of the following categories:
1. Injection or One-to-One Function, that every element in the range of the function is corresponded only once.
2. Surjection or Onto Function, that every element in the codomain is corresponded.
3. Bijection or One-to-One Correspondence, that a given function is both injective and surjective.
The details of each function mentioned above will be discussed in the following subsections.
One-to-One Functions
The mapping is one-to-one or injective, written , if
Let us illustrate with an example.
Example. Show that defined by is injective.
We must show for .
Let where .
Then,
Therefore, .
Therefore, is injective.
A useful theorem is the composite of injective functions is again an injection. That is,
Theorem.
If and , then
It is intuitive this has to be the case, since is injective, every element of corresponds to the different element of . And since , the subset of will always be injective.
Onto Functions
The mapping is onto or surjective, written , if
Let us revisit the example.
Example. Show that defined by is surjective.
We must show .
In fact, by definition .
Therefore, it suffices to show .
Let .
Then, .
Indeed, .
Therefore, there exists such that .
Therefore, .
Therefore, .
Therefore, is surjective.
As in the case of injection, the composite of surjective functions is again a surjection. That is,
Theorem.
If and , then
It is intuitive this has to be the case, since is surjective, . And since also is surjective, , and thus is surjective.
One-to-One Correspondence
The mapping is one-to-one correspondence or bijective, written , if
and
i.e. both surjective and injective.
Let us illustrate with an example.
Example. Show that defined by is bijective.
Proof.
We must show
1. Surjectivity of ,
In fact, by definition .
Therefore, it suffices to show .
Let , i.e. .
Then, .
Then, there exists such that .
Then, .
Therefore, is surjective.
2. Injectivity of ,
Let where .
Then,
Therefore, .
Therefore, is injective.
Therefore, by 1. and 2., is bijective.
As in the case of surjection and injection, the composite of bijective functions is again a bijection. That is,
Theorem.
If and , then
It is intuitive this has to be the case, since is surjective, . And since also is surjective, , and thus is surjective. Also, since is injective, every element of corresponds to the different element of . And since , the subset of will always be injective.
Studying mathematics so far, you might as well have heard of a term, inverse function. However, an inverse relation is not necessarily a function. Let us recall the definition of a function first. For to be a function, and . Therefore, for its inverse to be a function, and
.
In fact, the monotonicity, formerly introduced in the Calculus section, of a function is required for the given function to have an inverse. Let us recall the definition of monotonic sequence.
A sequence is called monotonic when either increasing or decreasing
1. for all
2. for all
When this definition is adapted to into the context of functions, this becomes:
A function is called monotonic when either increasing or decreasing. That is,
1. for
2. for
Notice the similarity in definitions above. Each number in the sequence corresponds to each element in , and the increasing the value of elements in defined by is embedded in the expression , as natural numbers are already well-ordered.
This is just one showcasing example reflecting the interconnectedness of mathematics. The concept of monotonicity was revisited here, and will again be revisited in the following section, Real Analysis. Thus it is crucial to fully understand key concepts, as they are building blocks of mathematics.