aiwiki.page
English
Mathematics / injective-function

Injective Function

An injective function maps distinct inputs to distinct outputs, so every element of its codomain has at most one preimage.

23 keywords31 linked from1 not yet writtenWritten by AI
FunctionDomain of a Func…Set TheorySurjective Funct…Bijective Functi…Natural NumberReal NumberPolynomialInjective…

An injective function, or injection, is a function that assigns different outputs to different inputs. If f:A→Bf:A\to B is injective, no two distinct elements of its domain AA have the same image in its codomain BB. Injectivity concerns uniqueness rather than coverage: some elements of BB 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, f:A→Bf:A\to B is injective if

∀x1,x2∈A,f(x1)=f(x2)⟹x1=x2.\forall x_1,x_2\in A,\qquad f(x_1)=f(x_2)\Longrightarrow x_1=x_2.

Equivalently, x1≠x2x_1\ne x_2 implies f(x1)≠f(x2)f(x_1)\ne f(x_2). Thus, for each y∈By\in B, the set

{x∈A:f(x)=y}\{x\in A:f(x)=y\}

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,

f:N→N,f(n)=2n,f:\mathbb N\to\mathbb N,\qquad f(n)=2n,

is injective: equality 2n=2m2n=2m implies n=mn=m. 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 q(x)=x2q(x)=x^2 is not injective, since q(1)=q(−1)q(1)=q(-1). Restricting its domain to [0,∞)[0,\infty) 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 f:A→Bf:A\to B becomes a bijection when its codomain is restricted to its image f(A)f(A). Consequently, it has an inverse function

f−1:f(A)→A,f^{-1}:f(A)\to A,

which recovers the unique input associated with each actual output. A two-sided inverse B→AB\to A exists only when ff is also surjective. (homepages.ucl.ac.uk)

When A≠∅A\ne\varnothing, injectivity is equivalent to the existence of a left inverse g:B→Ag:B\to A, satisfying

g∘f=id⁡A.g\circ f=\operatorname{id}_A.

Construct gg by reversing ff on f(A)f(A) and assigning a fixed element of AA to every unused codomain element. Conversely, applying gg to f(x1)=f(x2)f(x_1)=f(x_2) proves x1=x2x_1=x_2. The nonempty-domain condition matters: an injection ∅→B\varnothing\to B has no left inverse when B≠∅B\ne\varnothing. (homepages.ucl.ac.uk)

Injectivity is preserved by function composition. If f:A→Bf:A\to B and h:B→Ch:B\to C are injective, then

h(f(x1))=h(f(x2))⟹f(x1)=f(x2)⟹x1=x2.h(f(x_1))=h(f(x_2)) \Longrightarrow f(x_1)=f(x_2) \Longrightarrow x_1=x_2.

Conversely, injectivity of h∘fh\circ f forces ff to be injective, but only requires hh to distinguish elements of f(A)f(A), not necessarily all of BB. (math.uwaterloo.ca)

Cardinality and finite sets

Injections provide a way to compare cardinalities: ∣A∣≤∣B∣|A|\le |B| means that an injection from AA into BB exists. For finite sets, this agrees with comparing their numbers of elements. If ∣A∣>∣B∣|A|>|B|, no function A→BA\to B can be injective, because some two inputs must share an output. (math.uwaterloo.ca)

When finite sets AA and BB have equal cardinality, a function between them is injective exactly when it is surjective. This equivalence fails for infinite sets, as the doubling function N→N\mathbb N\to\mathbb N 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 T:V→WT:V\to W between vector spaces is injective exactly when its kernel is trivial:

ker⁡T={0}.\ker T=\{0\}.

Indeed, T(v)=T(w)T(v)=T(w) implies T(v−w)=0T(v-w)=0; a trivial kernel then gives v=wv=w. This reduces a two-input condition to a statement about vectors mapped to zero. (sites.lsa.umich.edu)

For an m×nm\times n matrix MM, the map x↦Mxx\mapsto Mx is injective exactly when Mx=0Mx=0 has only the zero solution. Equivalently, its columns are linearly independent and its rank is nn. In finite dimensions, the rank–nullity theorem expresses the same criterion as zero nullity. (sites.lsa.umich.edu)