In
mathematics, an injective function (also known as injection, or one-to-one function) is a
function
Function or functionality may refer to:
Computing
* Function key, a type of key on computer keyboards
* Function model, a structured representation of processes in a system
* Function object or functor or functionoid, a concept of object-orie ...
that maps
distinct elements of its domain to distinct elements; that is, implies . (Equivalently, implies in the equivalent
contrapositive
In logic and mathematics, contraposition refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as proof by contraposition. The contrapositive of a statem ...
statement.) In other words, every element of the function's
codomain
In mathematics, the codomain or set of destination of a function is the 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 refer to either ...
is the
image
An image is a visual representation of something. It can be two-dimensional, three-dimensional, or somehow otherwise feed into the visual system to convey information. An image can be an artifact, such as a photograph or other two-dimensio ...
of one element of its
domain
Domain may refer to:
Mathematics
*Domain of a function, the set of input values for which the (total) function is defined
** Domain of definition of a partial function
**Natural domain of a partial function
**Domain of holomorphy of a function
*Do ...
.
The term must not be confused with that refers to
bijective function
In mathematics, a bijection, also known as a bijective function, one-to-one correspondence, or invertible function, is a function between the elements of two sets, where each element of one set is paired with exactly one element of the other ...
s, 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 structure-preserving map between two algebraic structures of the same type (such as two groups, two rings, or two vector spaces). The word ''homomorphism'' comes from the Ancient Greek language: () meaning "sa ...
between
algebraic structure
In mathematics, an algebraic structure 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 multiplication), and a finite set ...
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 whose elements, often called '' vectors'', may be added together and multiplied ("scaled") by numbers called '' scalars''. Scalars are often real numbers, but ...
s, an is also called a . However, in the more general context of
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
In logic and mathematics, contraposition refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as proof by contraposition. The contrapositive of a statem ...
statement.
Symbolically,
which is logically equivalent to the
contrapositive
In logic and mathematics, contraposition refers to the inference of going from a conditional statement into its logically equivalent contrapositive, and an associated proof method known as proof by contraposition. The contrapositive of a statem ...
,
Examples
''For visual examples, readers are directed to the
gallery section.''
* For any set
and any subset
the
inclusion map
In mathematics, if A is a subset of B, then the inclusion map (also inclusion function, insertion, or canonical injection) is the function \iota that sends each element x of A to x, treated as an element of B:
\iota : A\rightarrow B, \qquad \iot ...
(which sends any element
to itself) is injective. In particular, the
identity function
Graph of the identity function on the real numbers
In mathematics, an identity function, also called an identity relation, identity map or identity transformation, is a function that always returns the value that was used as its argument, unc ...
is always injective (and in fact bijective).
* If the domain of a function is the
empty set
In mathematics, the empty set is the unique set having no elements; its size or cardinality (count of elements in a set) is zero. Some axiomatic set theories ensure that the empty set exists by including an axiom of empty set, while in oth ...
, then the function is the
empty function
In mathematics, a function from a set to a set assigns to each element of exactly one element of .; the words map, mapping, transformation, correspondence, and operator are often used synonymously. The set is called the domain of the func ...
, which is injective.
* If the domain of a function has one element (that is, it is a
singleton set
In mathematics, a singleton, also known as a unit set or one-point set, is a set with exactly one element. For example, the set \ is a singleton whose single element is 0.
Properties
Within the framework of Zermelo–Fraenkel set theory, t ...
), 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, as no real value maps to a negative number).
* The natural logarithm function
defined by
is injective.
* The function
defined by
is not injective, since, for example,
More generally, when
and
are both the
real line
In elementary mathematics, a number line is a picture of a graduated straight line that serves as visual representation of the real numbers. Every point of a number line is assumed to correspond to a real number, and every real number to a po ...
then an injective function
is one whose graph is never intersected by any horizontal line more than once. This principle is referred to as the .
Injections can be undone
Functions with
left inverses are always injections. That is, given
if there is a function
such that for every
,
, then
is injective. In this case,
is called a
retraction
Retraction or retract(ed) may refer to:
Academia
* Retraction in academic publishing, withdrawals of previously published academic journal articles
Mathematics
* Retraction (category theory)
* Retract (group theory)
* Retraction (topology)
Huma ...
of
Conversely,
is called a
section
Section, Sectioning or Sectioned may refer to:
Arts, entertainment and media
* Section (music), a complete, but not independent, musical idea
* Section (typography), a subdivision, especially of a chapter, in books and documents
** Section sign ...
of
Conversely, every injection
with a non-empty domain has a left inverse
. It can be defined by choosing an element
in the domain of
and setting
to the unique element of the pre-image