Types of Function Mappings
In mathematics, functions map elements from one set (the domain) to another set (the codomain). This mapping can be classified into several types based on how domain and codomain elements are connected. The three main types are injective, surjective, and bijective functions.
Assume we have a function .
Injective or One to One Function
A function is called injective or one-to-one if every distinct element in the domain maps to a distinct element in the codomain . In other words, no two different domain elements can have the same image (output) in the codomain.
Formal Definition:
A function is injective if for every , the following holds:
Or, equivalently (using the contrapositive):
Imagine every student in one school (domain) must have a unique student ID number (codomain). No two students can have the same ID number. The mapping function from students to ID numbers is an injective function.
Examples:
- The function for is injective, because every distinct value of will produce a distinct .
- The function for is not injective, because and . There are two different inputs ( and ) that produce the same output ().
Surjective or Onto Function
A function is called surjective or onto if every element in the codomain is the image of at least one element in the domain . In other words, there are no "unreachable" elements in the codomain that don't have a corresponding element in the domain. The range of a surjective function is equal to its codomain.
Formal Definition:
A function is surjective if for every , there exists at least one such that:
Imagine every seat in a movie theater (codomain) must be occupied by at least one audience member (domain) when the movie starts. The mapping function from audience members to seats is surjective if all seats are filled.
Examples:
- The function from is surjective, because every real number in the codomain is the cube of some real number (specifically, ).
- The function from is not surjective, because there is no real number that yields (or any other negative number). Negative elements in the codomain have no corresponding element in the domain.
- However, if we restrict the codomain to from (non-negative real numbers), then this function becomes surjective.
Bijective Functions
A function is called bijective if it is both injective and surjective. This means that every element in the domain maps to a unique element in the codomain, and every element in the codomain has exactly one corresponding element in the domain.
A bijective function creates a perfect one-to-one correspondence between the elements of the domain and the codomain.
Formal Definition:
A function is bijective if for every , there exists exactly one such that:
Imagine two groups with the same number of members. Each member of the first group is paired with exactly one member of the second group, and each member of the second group also has exactly one partner. A mapping like this is bijective.
A function has a two-sided inverse exactly when it is bijective. An injective function can still be inverted on its actual range after that range is chosen as the codomain.
Examples:
- The function from is bijective (injective and surjective).
- The function from is bijective (injective and surjective).
- The function from is not bijective (neither injective nor surjective).
- The function from is injective and is not surjective, so it is not bijective.
- The function from is surjective and is not injective, so it is not bijective.
Check Your Understanding
The formula is used in each mapping below. Classify each function as injective, surjective, both, or neither. Only the codomain changes between the items, so compare the answers to see how the codomain decides the classification.
Solution
- It is neither injective nor surjective. It is not injective because , and it is not surjective because no negative real number is reached.
- It is surjective but not injective. Every is reached by choosing , but opposite inputs still have the same square.
- It is bijective. The restricted domain removes the duplicate negative input, and every value in is reached exactly once. Its inverse is .
The formula did not change. The classification changed because the domain and codomain changed.