6.4 Injective, surjective and bijective functions — Learn
Prerequisites: functions, domain and range; composite and inverse functions from Section 6.3.
Objectives: define injective, surjective and bijective; use the horizontal line test; explain why an inverse exists exactly when a function is bijective.
By the end of this section you can name the three properties of a function and say which of them make an inverse possible.
Injective functions
A function is injective when no two different inputs share an output. Another name for injective is one-to-one.
Injective. is injective when forces .
The horizontal line test finds injectivity on a graph.
The horizontal line test. A function is injective when every horizontal line crosses its graph at most once.
A horizontal line stands for one output, and the crossing points are the inputs that produce it. A line that crosses twice has found two inputs with the same output, so the function is not injective.
Example 1. The function is injective. If , then . Subtracting and dividing by gives . A horizontal line crosses the line once.
Example 2. The function is not injective on the real numbers. The horizontal line crosses the parabola at and , so two different inputs give the output .
The same rule can become injective on a smaller domain. On the domain , the parabola rises without repeating, so it is injective there.
Surjective functions
A function is surjective onto a codomain when every value in that codomain is reached. Another name for surjective is onto.
Surjective. is surjective onto a codomain when every value in the codomain is for at least one input .
Example 3. The function is not surjective onto the real numbers, because is never a square. It is surjective onto the interval , because every value that is not negative has a square root.
Example 4. The function is surjective onto the real numbers. For any chosen output , the input produces it.
Bijective functions
A function is bijective when it is both injective and surjective. A bijection pairs the two sets perfectly: each input has its own output, and every value in the codomain is used.
Example 5. The function is bijective from the real numbers to the real numbers. It is injective, and it is surjective onto the whole codomain.
Example 6. The function is not bijective from the real numbers to the real numbers. It fails injectivity, and it also fails surjectivity.
Why bijective is the condition for an inverse
The inverse of sends each output back to the input that produced it.
- For the inverse to be a function, each output must come from one input. That is injectivity. If two inputs shared an output, the inverse would not know which one to return.
- For the inverse to be defined on the whole codomain, every codomain value must be reached. That is surjectivity.
Both together make the function bijective, and a bijection always has an inverse.
The cooling coffee
The coffee function is injective on its domain . As time increases, the temperature falls, and it never repeats a value. Two different times give two different temperatures.
It is surjective onto its range . Every temperature between the room temperature and the starting temperature is reached at some time. So is bijective from onto , which is why the inverse rule in Section 6.3 exists.
Progress check
Back to the chapter problem. Explain why is injective on , using the fact that the temperature always falls.
Then state the codomain that makes surjective, and say why is bijective from onto that set. This is the reason the coffee's inverse is a function.
You should now be able to
- say what injective, surjective and bijective mean;
- use the horizontal line test to test injectivity;
- give two inputs with the same output to show a function is not injective;
- explain why a function has an inverse exactly when it is bijective.