In
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
, an injective function (also known as injection, or one-to-one function ) is a
function that maps
distinct elements of its domain to distinct elements of its codomain; that is, implies (equivalently by
contraposition, implies ). In other words, every element of the function's
codomain
In mathematics, a codomain, counter-domain, or set of destination of a function is a set into which all of the output of the function is constrained to fall. It is the set in the notation . The term '' range'' is sometimes ambiguously used to ...
is the
image
An image or picture is a visual representation. An image can be Two-dimensional space, two-dimensional, such as a drawing, painting, or photograph, or Three-dimensional space, three-dimensional, such as a carving or sculpture. Images may be di ...
of one element of its
domain.
The term must not be confused with that refers to
bijective functions, which are functions such that each element in the codomain is an image of exactly one element in the domain.
A
homomorphism
In algebra, a homomorphism is a morphism, structure-preserving map (mathematics), map between two algebraic structures of the same type (such as two group (mathematics), groups, two ring (mathematics), rings, or two vector spaces). The word ''homo ...
between
algebraic structure
In mathematics, an algebraic structure or algebraic system consists of a nonempty set ''A'' (called the underlying set, carrier set or domain), a collection of operations on ''A'' (typically binary operations such as addition and multiplicatio ...
s is a function that is compatible with the operations of the structures. For all common algebraic structures, and, in particular for
vector space
In mathematics and physics, a vector space (also called a linear space) is a set (mathematics), set whose elements, often called vector (mathematics and physics), ''vectors'', can be added together and multiplied ("scaled") by numbers called sc ...
s, an is also called a . However, in the more general context of
category theory
Category theory is a general theory of mathematical structures and their relations. It was introduced by Samuel Eilenberg and Saunders Mac Lane in the middle of the 20th century in their foundational work on algebraic topology. Category theory ...
, the definition of a monomorphism differs from that of an injective homomorphism. This is thus a theorem that they are equivalent for algebraic structures; see for more details.
A function
that is not injective is sometimes called many-to-one.
Definition
An injective function, which is not also surjective.
Let
be a function whose domain is a set
The function
is said to be injective provided that for all
and
in
if
then
; that is,
implies
Equivalently, if
then
in the
contrapositive statement.
Symbolically,
which is logically equivalent to the
contrapositive,
An injective function (or, more generally, a monomorphism) is often denoted by using the specialized arrows ↣ or ↪ (for example,
or
), although some authors specifically reserve ↪ for an
inclusion map.
Examples
''For visual examples, readers are directed to the
gallery section.''
* For any set
and any subset
the
inclusion map (which sends any element
to itself) is injective. In particular, the
identity function is always injective (and in fact bijective).
* If the domain of a function is the
empty set
In mathematics, the empty set or void set is the unique Set (mathematics), set having no Element (mathematics), elements; its size or cardinality (count of elements in a set) is 0, zero. Some axiomatic set theories ensure that the empty set exi ...
, then the function is the
empty function, which is injective.
* If the domain of a function has one element (that is, it is a
singleton set), then the function is always injective.
* The function
defined by
is injective.
* The function
defined by
is injective, because (for example)
However, if
is redefined so that its domain is the non-negative real numbers
, then is injective.
* The exponential function">,+∞), then
is injective.
* The exponential function
defined by
is injective (but not Surjective function">surjective
In mathematics, a surjective function (also known as surjection, or onto function ) is a function such that, for every element of the function's codomain, there exists one element in the function's domain such that . In other words, for a f ...
is one whose graph is never intersected by any horizontal line more than once. This principle is referred to as the .
are always injections. That is, given
is injective. The proof is that
. It can be defined by choosing an element