An injective function (also called an injection or one-to-one function) is a mapping between sets that never sends two different elements of the domain to the same element of the codomain. Informally, an injection preserves distinctness: if a1 and a2 are distinct domain elements then their images are distinct. Injective maps are fundamental in set theory, algebra and analysis because they express an embedding of one set into another without collisions.
Formal definitions and equivalent statements
Let f: A → B be a function from set A (the domain) to set B (the codomain). Common equivalent ways to say that f is injective include:
- For all a1,a2 in A, if f(a1) = f(a2) then a1 = a2.
- For every b in B there is at most one a in A such that f(a) = b.
- There exists a left inverse g: f(A) → A (defined on the image of f) with g(f(a)) = a for every a in A.
- f is left-cancellative under composition: if f·g1 = f·g2 then g1 = g2 for functions with appropriate domains.
Basic properties
- Composition: the composition of two injective functions is injective.
- Restriction: f is injective if and only if its restriction to any subset of the domain is injective.
- Inverses: an injective function need not have a full two-sided inverse on all of B, but it has a left inverse defined on its image f(A). If it also surjects onto B it becomes a bijection and has a true inverse f^{-1}: B → A.
- Cardinality consequences: for finite sets, an injection A → B implies |A| ≤ |B|. For infinite sets the existence of injections in both directions relates to cardinality comparisons and can lead to the Cantor–Bernstein theorem.
Examples and non-examples
Typical examples of injective functions include linear maps x → mx + c on the real line when m ≠ 0, the exponential map x → e^x on R, and the inclusion map of a subset into a larger set. Finite-to-one maps that are not one-to-one, constant maps, and many polynomial maps of even degree (over R) are not injective unless their domain is restricted.
Concrete non-examples: the function f(x) = x^2 on R is not injective because f(1) = f(-1). The sine function sin: R → R is not injective because it repeats values periodically. A constant map f(a)=b is injective only if the domain has at most one element.
Uses and importance
Injective functions are used to compare sizes of sets and to embed structures without identifying distinct elements. In algebra, injective homomorphisms identify substructures and are called embeddings. In computer science, injective encodings allow lossless representation of data. In analysis and geometry, injective continuous maps that are also continuous inverses on their images define homeomorphisms onto their images, providing ways to view one space inside another.
Distinctions, terminology and history
The phrase "one-to-one" is commonly used as a synonym for injective, but it can confuse readers who use "one-to-one correspondence" to mean bijection (both one-to-one and onto). The triad of terms injection, surjection and bijection was popularized in 20th century mathematics; the collective pseudonym Nicolas Bourbaki introduced this standardized vocabulary in modern texts produced in the 1930s. Related concepts are surjection (every element of the codomain has at least one preimage) and bijection (both injective and surjective). The codomain and image of a function are distinct notions sometimes discussed under the link labeled codomain.
Further reading and formal treatments are available in standard set theory and algebra texts; online references can be followed through the links above. The concise list of core facts about injections makes them one of the simplest yet most widely used structural tools in mathematics.




