In mathematics, particularly in the study of functions (or mappings), the terms injective, surjective, and bijective describe properties of functions based on how elements of the domain are mapped to elements of the codomain. These concepts are fundamental in areas like set theory, algebra, and analysis. Below is a detailed explanation of each term, along with examples.
1. Injective Mapping (One-to-One Function)
A function ( f: A \to B ) is injective (or one-to-one) if distinct elements in the domain ( A ) are mapped to distinct elements in the codomain ( B ). In other words, no two different inputs produce the same output.
-
Formal Definition: A function ( f ) is injective if, for all ( x_1, x_2 \in A ),
[
f(x_1) = f(x_2) \implies x_1 = x_2
]
Equivalently, if ( x_1 \neq x_2 ), then ( f(x_1) \neq f(x_2) ).
-
Intuition: Each element in the codomain ( B ) is hit by at most one element in the domain ( A ). However, not every element in ( B ) needs to be hit (i.e., the function does not need to cover all of ( B )).
-
Example:
- ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = 2x ).
This is injective because if ( f(x_1) = f(x_2) ), then ( 2x_1 = 2x_2 ), so ( x_1 = x_2 ).
- Non-example: ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = x^2 ).
This is not injective because ( f(2) = f(-2) = 4 ), but ( 2 \neq -2 ).
-
Graphical Test (for real functions): A function is injective if every horizontal line intersects its graph at most once (horizontal line test).
2. Surjective Mapping (Onto Function)
A function ( f: A \to B ) is surjective (or onto) if every element in the codomain ( B ) is the image of at least one element in the domain ( A ). In other words, the function "covers" the entire codomain.
-
Formal Definition: A function ( f ) is surjective if, for every ( y \in B ), there exists at least one ( x \in A ) such that
[
f(x) = y
]
-
Intuition: The range of the function (the set of all outputs) is equal to the codomain ( B ). However, multiple elements in ( A ) may map to the same element in ( B ).
-
Example:
- ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = x ).
This is surjective because for every ( y \in \mathbb{R} ), there exists ( x = y ) such that ( f(x) = y ).
- Non-example: ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = x^2 ).
This is not surjective because there is no ( x \in \mathbb{R} ) such that ( f(x) = -1 ) (since ( x^2 \geq 0 )). However, if the codomain is restricted to ( [0, \infty) ), then ( f: \mathbb{R} \to [0, \infty) ), ( f(x) = x^2 ), is surjective.
-
Note: Surjectivity depends on the codomain. A function may be surjective for one choice of codomain but not for another.
3. Bijective Mapping (One-to-One Correspondence)
A function ( f: A \to B ) is bijective if it is both injective and surjective. This means that every element in the codomain ( B ) is the image of exactly one element in the domain ( A ). A bijective function establishes a perfect "pairing" between the elements of ( A ) and ( B ), and it has an inverse function.
-
Formal Definition: A function ( f ) is bijective if:
- It is injective: ( f(x_1) = f(x_2) \implies x_1 = x_2 ).
- It is surjective: For every ( y \in B ), there exists ( x \in A ) such that ( f(x) = y ).
-
Intuition: A bijection is a one-to-one correspondence between the domain and codomain. The sets ( A ) and ( B ) must have the same "size" (cardinality) for a bijection to exist.
-
Example:
- ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = x + 1 ).
This is bijective because:
- It is injective: If ( f(x_1) = f(x_2) ), then ( x_1 + 1 = x_2 + 1 ), so ( x_1 = x_2 ).
- It is surjective: For every ( y \in \mathbb{R} ), there exists ( x = y - 1 ) such that ( f(x) = y ).
- Non-example: ( f: \mathbb{R} \to \mathbb{R} ), ( f(x) = x^2 ).
This is neither injective (e.g., ( f(2) = f(-2) )) nor surjective (e.g., no ( x ) maps to (-1)).
-
Inverse Function: If ( f: A \to B ) is bijective, there exists an inverse function ( f^{-1}: B \to A ) such that ( f(f^{-1}(y)) = y ) for all ( y \in B ) and ( f^{-1}(f(x)) = x ) for all ( x \in A ).
Summary Table
| Property | Definition | Intuition | Example (( f: \mathbb{R} \to \mathbb{R} )) |
|---|
| Injective | ( f(x_1) = f(x_2) \implies x_1 = x_2 ) | No two inputs map to the same output. | ( f(x) = 2x ) |
| Surjective | For every ( y \in B ), there exists ( x \in A ) such that ( f(x) = y ) | Every output is hit by some input. | ( f(x) = x ) |
| Bijective | Injective + Surjective | One-to-one correspondence. | ( f(x) = x + 1 ) |
Visual Intuition
- Injective: Arrows from the domain ( A ) to the codomain ( B ) never "merge" (no two arrows point to the same element in ( B )), but some elements in ( B ) may not be hit.
- Surjective: Every element in ( B ) has at least one arrow pointing to it, but some elements in ( B ) may have multiple arrows (i.e., multiple inputs mapping to the same output).
- Bijective: Every element in ( B ) has exactly one arrow pointing to it, and every element in ( A ) has exactly one arrow leaving it.
Applications
These concepts are crucial in many areas of mathematics:
- Set Theory: Bijections are used to define when two sets have the same cardinality (size).
- Linear Algebra: Injective, surjective, and bijective linear transformations correspond to properties of matrices (e.g., a square matrix is invertible if and only if it represents a bijective linear transformation).
- Analysis and Topology: These properties help classify functions and study continuity, homeomorphisms, etc.
If you have further questions or need examples in specific contexts, feel free to ask!