Functions and Relations (CSCI 2824, Spring 2015)
This page covers the following concepts.
Determining whether a function is injective
Determining whether a function is surjective
Proving a function is injective/surjective
These topics can be found in Section 4.3 of the textbook.
Injective and surjective functions
Recall the definition of injective and surjective functions.
Injective, surjective and bijective functions
A function is said to be
More descriptively,
Example 1
Classify the following functions between natural numbers as one-to-one and onto.
| One-to-One? | Onto? |
| Yes | No |
| Yes | No |
| No | Yes |
. | Yes | Yes
|
It helps to visualize the mapping for each function to understand the answers.
Guessing whether a function is injective/surjective
If a given function has both the domain and codomain being the set of real numbers ,
then one visual way of guessing whether that function is injective/surjective can be done by using the graph.
We imagine swiping a horizontal rule up or down and the number of intersection this horizontal rule makes with the graph.
A function is injective if and only if the horizontal rule
intersects the graph at most once at any fixed -value.
A function is surjective if and only if the horizontal rule
intersects the graph at least once at any fixed -value.
(As an aside, the vertical rule can be used to determine whether
a relation is well-defined: at any fixed -value, the vertical
rule should intersect the graph of a function with domain
exactly once.)
Proving that a function is injective/surjective
Let be a function.
To prove that is injective, we proceed like this…
To prove that is surjective, we proceed like this…
Example 2
Prove that the function
is one-to-one.
Proof
Fix any with .
Then implies that .
Then .
Splitting cases on , we have
Therefore, it follows that for both cases.
This proves that is one-to-one. QED.
Example 3
Prove that the function
is injective.
Proof
Fix any with .
Then implies that .
Inverting the fractions on both sides of the equality,
we get .
Canceling 1 on both sides, we get .
This proves that is injective. QED.
Example 4
Prove that the function
is surjective.
Example 5
Prove that the function is onto.
|