In mathematics, a function is a relationship between two sets where every element of the domain is associated with exactly one element of the codomain. Functions play a crucial role in many branches of mathematics, such as algebra, calculus, and set theory. When discussing functions, it is important to understand the concepts of injective, surjective, and bijective functions. These terms describe different types of mappings between sets based on how elements of the domain are related to elements of the codomain.
1. Definition of a Function
A function f from a set A (called the domain) to a set B (called the codomain) is a rule that assigns to each element a∈A exactly one element b∈B. This is written as:
f:A→B
where f(a)=b means that the function f maps the element a to the element b.
2. Injective Functions (One-to-One)
A function f:A→B is injective (or one-to-one) if different elements in the domain map to different elements in the codomain. In other words, if f(a1)=f(a2), then it must follow that a1=a2.
Formal Definition:
A function f:A→B is injective if:
∀a1,a2∈A,f(a1)=f(a2)⟹a1=a2.
Interpretation:
An injective function ensures that no two distinct elements in the domain map to the same element in the codomain. Each element in the codomain can be "hit" at most once by the function.
Example of Injective Function:
Consider the function f:R→R defined by f(x)=2x, where R denotes the set of real numbers.
If f(x1)=f(x2), then 2x1=2x2, which implies x1=x2.
Thus, f is injective because no two different values of x map to the same output.
Non-Example (Not Injective):
Consider the function f:R→R defined by f(x)=x2.
For x1=2 and x2=−2, we have f(2)=f(−2)=4, but 2=−2.
Therefore, f(x)=x2 is not injective because two different values in the domain map to the same value in the codomain.
3. Surjective Functions (Onto)
A function f:A→B is surjective (or onto) if every element in the codomain has at least one element in the domain that maps to it. In other words, the function "covers" the entire codomain.
Formal Definition:
A function f:A→B is surjective if:
∀b∈B,∃a∈A such that f(a)=b.
Interpretation:
A surjective function ensures that every element of the codomain is "reached" by the function, meaning that the function maps to the entire codomain. Some elements in the domain might map to the same element in the codomain.
Example of Surjective Function:
Consider the function f:R→R defined by f(x)=x3.
For every b∈R, we can find an a∈R such that f(a)=a3=b. Specifically, a=3b.
Therefore, f(x)=x3 is surjective because every real number is the cube of some real number.
Non-Example (Not Surjective):
Consider the function f:R→R defined by f(x)=x2.
The function cannot produce negative numbers because x2≥0 for all x∈R. Therefore, there is no x∈R such that f(x)=−1.
Hence, f(x)=x2 is not surjective when the codomain is R, because it does not "hit" all values in the codomain.
A function f:A→B is bijective if it is both injective and surjective. In other words, a bijection is a function where every element of the domain is mapped to a unique element in the codomain, and every element of the codomain is mapped to some element in the domain.
Formal Definition:
A function f:A→B is bijective if:
f is injective: ∀a1,a2∈A,f(a1)=f(a2)⟹a1=a2,
f is surjective: ∀b∈B,∃a∈A such that f(a)=b.
Interpretation:
A bijective function establishes a one-to-one correspondence between the elements of the domain and the elements of the codomain. Each element of the domain is paired with exactly one element of the codomain, and each element of the codomain is paired with exactly one element of the domain.
Example of Bijective Function:
Consider the function f:R→R defined by f(x)=2x+3.
Injectivity: If f(x1)=f(x2), then 2x1+3=2x2+3, which simplifies to x1=x2.
Surjectivity: For any b∈R, there exists an a=2b−3∈R such that f(a)=b.
Therefore, f(x)=2x+3 is bijective.
Non-Example (Not Bijective):
Consider the function f:R→R defined by f(x)=x2.
This function is not injective because f(2)=f(−2)=4, but 2=−2.
It is also not surjective because it cannot map to negative numbers.
Thus, f(x)=x2 is not bijective when the domain and codomain are R.
5. Summary of Function Types
Injective (One-to-One): A function is injective if no two distinct elements in the domain map to the same element in the codomain. Formally: f(a1)=f(a2)⟹a1=a2.
Surjective (Onto): A function is surjective if every element in the codomain is mapped to by at least one element in the domain. Formally: ∀b∈B,∃a∈A such that f(a)=b.
Bijective (One-to-One Correspondence): A function is bijective if it is both injective and surjective. There is a one-to-one correspondence between the domain and codomain.
6. Practical Examples
Injective but not Surjective: The function f:R→R defined by f(x)=2x. It’s injective, but not surjective since not all real numbers can be reached (e.g., no x maps to an odd number).
Surjective but not Injective: The function f:R→R defined by f(x)=x2. It’s surjective when the codomain is [0,∞), but not injective because two different values (e.g., 2 and -2) can map to the same result.
Bijective: The function f:R→R defined by f(x)=2x+3. It is both injective and surjective, hence bijective.
Understanding these properties helps in determining the structure and behavior of functions in various mathematical contexts.