6.6 Properties of functions
Definition 6.41 (Injective, injection).
A function is said to be injective (or an injection) if implies for every i.e. for every , there is at most one element such that .
Example 6.42.
Consider the function , where and .
Claim: The function is injective.
Proof: Let be such that . Then , and so
If then and , so . Otherwise, , so . Thus is injective.
Definition 6.43 (Surjective, surjection).
A function is said to be surjective (or a surjection) if, given any , there is some such that .
Example 6.44.
Consider the function defined by .
Claim: The function is surjective.
Proof: Let . We need to show there is some such that . Observe that . By the quadratic formula, that means
and since , the square root is defined and this gives our value for . Thus, since we can find such an for every , this implies that is surjective.
Definition 6.45 (Bijective, bijection).
A function is said to be bijective if it is both injective and surjective.
Notice that a function is injective if every element of has at most one element of that maps to it. And is surjective if every element of has at least one element of that maps to it. Thus, if is bijective, every element of has exactly one element of that maps to it. In particular, we can say that, for every element of , there exists a unique element of that maps to it.
We can interpret this from a graph perspective too. If is injective, then every horizontal line of the form where must cross the graph of at most once. If is surjective, then every such horizontal line must cross the graph of at least once. So if is bijective, every such horizontal line must cross the graph of exactly once.
Exercise 6.46.
If is a function with and , prove that
-
(a)
if is injective.
-
(b)
if is surjective.
Solution (please try for yourself before looking)
We first note that Proposition 6.39 already does half of the work for us since it says and .
-
(a)
Suppose that is injective. To prove that , it suffices to show that . Indeed, suppose . Then but this doesn’t necessarily mean . All this tells us is there exists some such that . However, since is injective, this means . Hence, and thus, . Together with the result in Proposition 6.39, we conclude that .
-
(b)
Suppose that is surjective and let . Then, since and is surjective, there exists some such that . In particular, since , this means . But then is mapped to be an element in by . So this means . Hence, . Together with our result in Proposition 6.39, this means .
The following results show how we can deduce the injectivity and surjectivity of compositions of functions with these properties.
Proposition 6.47.
Let , be functions.
-
1.
If , are injective then so is .
-
2.
If , are surjective then so is .
Hence if , are bijective then so is .
Proof.
-
1.
Suppose and are injective and suppose satisfies . Then . Since is injective, this means . Since is injective, this implies .
This completes the proof that is injective.
-
2.
Now suppose and are surjective and let . Since is surjective, there is some such that . Since is surjective, there is some such that . Then
This finishes the proof that is surjective.
Thus, if and are bijective, then they are both injective and surjective, so by the previous two parts, is also both injective and surjective, and hence is bijective.
The proof above is an example of a “definition chase” style proof, where you work from one definition to another.
Inverse Functions
Suppose that we have a function with graph , where
Under what circumstances will the set of ordered pairs
also define a legitimate function ? Note, we have reversed the role of and and also the order of the pairs in the graph so that
gives a new function if, and only if, for each there exists a unique point with . Hence,
-
•
the image of must be the whole of the codomain so that for each there is at least one point with i.e. must be surjective, AND
-
•
further, must be injective so that the with is unique.
When such a function exists we call it the inverse of , and write this as . If the inverse of exists, we say that is invertible. This discussion shows that an inverse exists if and only if the original function is a bijection.
Proposition 6.48.
A function is bijective if and only if it is invertible.
Proposition 6.49.
If is invertible, then is its inverse function if and only if and .
Proof.
Let be the graph of . Then, the graph of its inverse is defined to be such that
Therefore,
Since and , this means that .
Also,
Since, and , this means that .
For the other direction, suppose that is some function where and . We claim that its graph satisfies
Indeed,
and
Thus, is an inverse for .
Inverse vs Preimage
Suppose is a subset of the codomain of some function . Rather confusingly, the notation for the inverse function of (if it exists) leads to the image of under being denoted by which is the same notation as the preimage of under . So watch out! The preimage of the set under is always defined, regardless of whether or not has an inverse. But if is bijective, its inverse function exists and denotes both the preimage of the set under and the image of under , and both sets are equal in this case.