An injective function, or injection, is a function that assigns different outputs to different inputs. If is injective, no two distinct elements of its domain have the same image in its codomain . Injectivity concerns uniqueness rather than coverage: some elements of may never occur as outputs. It is one of the fundamental properties used to classify functions in set theory. (jirka.org)
Definition and basic distinctions
Formally, is injective if
Equivalently, implies . Thus, for each , the set
contains at most one element. A surjective function, by contrast, reaches every element of its codomain. A bijective function is both injective and surjective, giving every codomain element exactly one preimage. (jirka.org)
The phrase “one-to-one” must not be confused with the requirement that a function assign exactly one output to each input. Every function satisfies that requirement; injectivity additionally prevents different inputs from sharing an output. A function whose domain is empty or contains only one element is automatically injective, since no pair of distinct inputs can violate the definition. (jirka.org)
Examples and the role of the domain
The doubling function on the natural numbers,
is injective: equality implies . It is not surjective because odd natural numbers are absent from its outputs. This illustrates that injectivity alone does not provide an inverse defined on the entire codomain. (math.uh.edu)
On the real numbers, the polynomial function is not injective, since . Restricting its domain to makes it injective: two nonnegative numbers with equal squares must be equal. Changing the codomain alone, while retaining all existing outputs, cannot remove a collision between inputs. These conclusions follow directly from the definition. (jirka.org)
For a real-valued function of a real variable, the horizontal-line test expresses the same condition geometrically: every horizontal line must intersect its graph at most once. Two intersections at the same height would represent distinct inputs with equal outputs. (math.uwaterloo.ca)
Inverses and composition
Every injection becomes a bijection when its codomain is restricted to its image . Consequently, it has an inverse function
which recovers the unique input associated with each actual output. A two-sided inverse exists only when is also surjective. (homepages.ucl.ac.uk)
When , injectivity is equivalent to the existence of a left inverse , satisfying
Construct by reversing on and assigning a fixed element of to every unused codomain element. Conversely, applying to proves . The nonempty-domain condition matters: an injection has no left inverse when . (homepages.ucl.ac.uk)
Injectivity is preserved by function composition. If and are injective, then
Conversely, injectivity of forces to be injective, but only requires to distinguish elements of , not necessarily all of . (math.uwaterloo.ca)
Cardinality and finite sets
Injections provide a way to compare cardinalities: means that an injection from into exists. For finite sets, this agrees with comparing their numbers of elements. If , no function can be injective, because some two inputs must share an output. (math.uwaterloo.ca)
When finite sets and have equal cardinality, a function between them is injective exactly when it is surjective. This equivalence fails for infinite sets, as the doubling function demonstrates. Infinite sets can therefore admit injections into proper subsets of themselves. (math.uwaterloo.ca)
Criteria in analysis and linear algebra
In analysis, every strictly monotone function is injective. For a continuous real-valued function on an interval, the converse also holds: injectivity implies strict monotonicity. Continuity and the interval hypothesis are essential to that converse. (jirka.org)
In linear algebra, a linear map between vector spaces is injective exactly when its kernel is trivial:
Indeed, implies ; a trivial kernel then gives . This reduces a two-input condition to a statement about vectors mapped to zero. (sites.lsa.umich.edu)
For an matrix , the map is injective exactly when has only the zero solution. Equivalently, its columns are linearly independent and its rank is . In finite dimensions, the rank–nullity theorem expresses the same criterion as zero nullity. (sites.lsa.umich.edu)