We can divide all functions into two categories: injective (one-to-one) and non-injective (many-to-one), based on whether distinct inputs always produce distinct outputs. Injective functions ensure that no two different inputs map to the same output, while non-injective functions allow multiple inputs to share the same output.
Independently, we can also classify functions into two categories: surjective (onto) and non-surjective (into), based on whether every element in the codomain is mapped by at least one element from the domain. Surjective functions cover the entire codomain, while non-surjective functions leave some elements in the codomain unmapped.
Combining these two classifications, functions can be categorized into four distinct types:
One-one onto (also called bijective): Functions that are both injective and surjective.
One-one into: Functions that are injective but not surjective.
Many-one onto: Functions that are surjective but not injective.
Many-one into: Functions that are neither injective nor surjective.
Injective Function (One-to-One Function) vs Non-Injective Function (Many-to-One Function)§
A function f:A→B is said to be injective (or a one-to-one function) if and only if:
f(x1)=f(x2)⟹x1=x2for all x1,x2∈A.
This means that no two distinct elements in the domain A can map to the same element in the codomain B. The injectivity of a function ensures that the outputs of f are unique for distinct inputs.
Logical Explanation:
If someone claims that the outputs of f at x1 and x2 are equal (i.e., f(x1)=f(x2)), then by the definition of injectivity, it must follow that x1=x2. In other words, if the outputs f(x1) and f(x2) are the same, the corresponding inputs x1 and x2 cannot be distinct—they must be equal.
Contrapositive:
An equivalent way of expressing injectivity is:
x1=x2⟹f(x1)=f(x2).
This means distinct inputs in A must always map to distinct outputs in B.
To understand, consider the following contrasting examples:
Injective Function: f(x)=2x for x∈R:
To prove injectivity, assume:
f(x1)=f(x2).
This implies:
2x1=2x2.
Dividing through by 2, we get:
x1=x2.
Hence, f(x)=2x is injective, as no two distinct inputs produce the same output.
Non-Injective Function: f(x)=x2 for x∈R:
To test injectivity, assume:
f(x1)=f(x2).
This implies:
x12=x22.
Taking square roots:
x1=x2orx1=−x2.
Since x1 and x2 can be distinct (x1=2 and x2=−2) but yield the same output (f(2)=f(−2)=4), f(x)=x2 is not injective.
The horizontal line test is a direct way to visually verify if a function f(x) is injective. It works as follows:
If any horizontal line drawn in the graph's range intersects the function's graph at most once, the function is injective.
If any horizontal line intersects the graph more than once, the function is not injective.
This test aligns with the formal definition of injectivity: if f(x1)=f(x2), then x1=x2. A horizontal line intersecting the graph more than once indicates that there exist distinct x1 and x2 such that f(x1)=f(x2), violating injectivity.
ignore this section till you complete application of derivatives
Proving injectivity using the definition f(x1)=f(x2)⟹x1=x2 is mathematically rigorous and perfect. However, applying this method can become cumbersome and complex, especially for functions with intricate or non-trivial algebraic forms.
For most functions of our concern, calculus provides a more practical and efficient way to determine injectivity. A differentiable function (even if non-differentiable at some isolated points) is one-to-one if and only if it is strictly increasing or strictly decreasing on its entire domain. This condition eliminates the possibility of two distinct inputs mapping to the same output.
Key Criterion for Injectivity Using Calculus:
A function f(x) is strictly increasing on an interval if:
f′(x)≥0for all x in the interval, with equality occurring only at isolated points.
This ensures that f(x) does not "flatten" over any subinterval (derivative is only zero at isolated points and not intervals) and it does not have any turnings, preventing multiple inputs from producing the same output.
A function f(x) is strictly decreasing on an interval if:
f′(x)≤0for all x in the interval, with equality occurring only at isolated points.
A function f:A→B is said to be many-one if two or more distinct elements in the domain A map to the same element in the codomain B. This means the function violates injectivity.
Formally, f is many-one if:
∃x1,x2∈A,x1=x2 such that f(x1)=f(x2).
Graphical Representation of a Many-One Function:
On the graph of a many-one function, some horizontal lines intersect the curve more than once. This visually confirms that multiple inputs in the domain correspond to the same output.
A function f defined from set A to set B is said to be onto or surjective if and only if every element of the codomain B has at least one preimage in the domain A. Formally, f:A→B is surjective if:
∀b∈B,∃a∈Asuch thatf(a)=b.
For every element b in the codomain B, there exists at least one element a in the domain A such that the function f maps a to b. In other words, for a function to be surjective, every element in the codomain must be the output of the function for at least one input from the domain.
This means that no element in the codomain is "unreachable" by the function. If even a single element in the codomain does not correspond to any input from the domain, the function is not surjective.
To understand surjectivity intuitively, imagine a mapping from one set to another. If every element in the codomain B is hit by at least one arrow from the domain A, the function is surjective. However, if there exists even a single element in B that is not reached by any element in A, the function is not surjective.
Graphically, surjective functions correspond to mappings where the codomain and range coincide. In other words, no part of the codomain is "left out."
The most direct method to prove a function is surjective is to verify that for every b∈B, there exists at least one a∈A such that f(a)=b. This method involves solving f(a)=b for a in terms of b and confirming that a belongs to the domain.
For example, consider the function f:R→R defined by:
f(x)=3x+4.
To check if f(x) is surjective, we need to verify whether every b∈R has a corresponding x∈R such that f(x)=b. Assume f(x)=b:
b=3x+4.
Solving for x, we get:
x=3b−4.
Since x∈R, this confirms that for every b∈R, there exists an x∈R such that f(x)=b. Hence, f(x) is surjective.
In contrast to the above example, consider the following example:
Consider f:Z→Z such that f(x)=3x+4. We will prove that f is not an onto function.
Let b∈codomain(f), i.e., b∈Z. Then we solve the equation:
b=3x+4⟹x=3b−4.
For f(x) to be surjective, x must be an integer (x∈Z) for every b∈Z. However, 3b−4 is not necessarily an integer for all b∈Z.
For example, if b=5, we have:
x=35−4=31.
Here, x is not an integer (x∈/Z), which means that b=5 has no preimage in the domain Z. Thus, f(x) is not surjective.
Similarly, if b=7, we calculate:
x=37−4=33=1.
Here, x is an integer, so b=7 has a preimage. However, since not every b∈Z satisfies this condition (as seen with b=5), the function is not onto.
Range-Based Approach
Another method to determine whether a function is surjective involves calculating its range and comparing it to its codomain. If the range equals the codomain, the function is surjective. If the range is a proper subset of the codomain, the function is not surjective.
For instance, consider the function f:R→R defined by:
f(x)=x4+x2+1x2+2.
Here, observe that x2+2>0 and x4+x2+1>0 for all x∈R. Thus, f(x)>0 for all x∈R. This implies that the range of f(x) consists only of positive values, which is a proper subset of R (the codomain). Therefore, f(x) is not surjective.
In some cases, we may not need to explicitly calculate the entire range. A qualitative understanding of the function's behavior can often suffice. For example, if the function f(x) cannot produce certain values in the codomain due to its structure, we can directly conclude that it is not surjective.
A function f:A→B is said to be non-surjective (or into) if there exists at least one element in the codomain B that is not the image of any element in the domain A. In other words, the range of the function is a proper subset of the codomain.
Consider the function f:R→R defined as f(x)=1−x2. The domain is R, and the codomain is also R. To determine whether f(x) is surjective, we calculate the range of f(x).
The function f(x)=1−x2 involves the square of x, which satisfies x2≥0 for all x∈R. Thus, −x2≤0, and adding 1 gives f(x)=1−x2≤1. Therefore, the output of f(x) satisfies:
f(x)∈(−∞,1].
The range of f(x) is (−∞,1], which is the set of all real numbers less than or equal to 1. However, the codomain is R, which includes all real numbers. Clearly, there are elements in the codomain, such as 2 or 3, that are not in the range of f(x). For example, there does not exist any x∈R such that f(x)=2, because f(x)=1−x2≤1 for all x.
Since the range (−∞,1] is strictly smaller than the codomain R, the function f(x)=1−x2 is not surjective. Thus, it is a non-surjective (into) function.
A function f:A→B is said to be bijective if it is both injective (one-to-one) and surjective (onto). In simpler terms, a bijective function establishes a perfect "pairing" between elements of the domain A and elements of the codomain B, such that every element in B is mapped to by exactly one element in A.
Formally:
Injectivity ensures that no two distinct elements in A are mapped to the same element in B.
Surjectivity ensures that every element in B has at least one preimage in A.
Section 11 of 18 · Relations and Functions
Mark this section complete when you have worked through its proofs.
Type any topic, theorem, or concept to jump directly to the section.