Bijection, injection and surjection

From HandWiki
Short description: Properties of mathematical functions
surjective non-surjective
injective Bijection.svg

bijective

Injection.svg

injective-only

non-

injective

Surjection.svg

surjective-only

Total function.svg

general

In mathematics, injections, surjections, and bijections are classes of functions distinguished by the manner in which arguments (input expressions from the domain) and images (output expressions from the codomain) are related or mapped to each other.

A function maps elements from its domain to elements in its codomain. Given a function [math]\displaystyle{ f \colon X \to Y }[/math]:

  • The function is injective, or one-to-one, if each element of the codomain is mapped to by at most one element of the domain, or equivalently, if distinct elements of the domain map to distinct elements in the codomain. An injective function is also called an injection.[1] Notationally:
[math]\displaystyle{ \forall x, x' \in X, f(x) = f(x') \implies x = x', }[/math]
or, equivalently (using logical transposition),
[math]\displaystyle{ \forall x,x' \in X, x \neq x' \implies f(x) \neq f(x'). }[/math][2][3][4]
  • The function is surjective, or onto, if each element of the codomain is mapped to by at least one element of the domain. That is, the image and the codomain of the function are equal. A surjective function is a surjection.[1] Notationally:
[math]\displaystyle{ \forall y \in Y, \exists x \in X \text{ such that } y = f(x). }[/math][2][3][4]
  • The function is bijective (one-to-one and onto, one-to-one correspondence, or invertible) if each element of the codomain is mapped to by exactly one element of the domain. That is, the function is both injective and surjective. A bijective function is also called a bijection.[1][2][3][4] That is, combining the definitions of injective and surjective,
[math]\displaystyle{ \forall y\in Y, \exists! x\in X \text{ such that } y=f(x), }[/math]
where [math]\displaystyle{ \exists! x }[/math] means "there exists exactly one x".
  • In any case (for any function), the following holds:
[math]\displaystyle{ \forall x\in X, \exists! y\in Y \text{ such that } y=f(x). }[/math]

An injective function need not be surjective (not all elements of the codomain may be associated with arguments), and a surjective function need not be injective (some images may be associated with more than one argument). The four possible combinations of injective and surjective features are illustrated in the adjacent diagrams.

Injection

Main page: Injective function
Injective composition: the second function need not be injective.

A function is injective (one-to-one) if each possible element of the codomain is mapped to by at most one argument. Equivalently, a function is injective if it maps distinct arguments to distinct images. An injective function is an injection.[1] The formal definition is the following.

The function [math]\displaystyle{ f \colon X \to Y }[/math] is injective, if for all [math]\displaystyle{ x,x' \in X }[/math], [math]\displaystyle{ f(x) = f(x') \Rarr x = x'. }[/math][2][3][4]

The following are some facts related to injections:

  • A function [math]\displaystyle{ f \colon X \to Y }[/math] is injective if and only if [math]\displaystyle{ X }[/math] is empty or [math]\displaystyle{ f }[/math] is left-invertible; that is, there is a function [math]\displaystyle{ g \colon f(X) \to X }[/math] such that [math]\displaystyle{ g\circ f= }[/math] identity function on X. Here, [math]\displaystyle{ f(X) }[/math] is the image of [math]\displaystyle{ f }[/math].
  • Since every function is surjective when its codomain is restricted to its image, every injection induces a bijection onto its image. More precisely, every injection [math]\displaystyle{ f \colon X \to Y }[/math] can be factored as a bijection followed by an inclusion as follows. Let [math]\displaystyle{ f_{R}\colon X\rightarrow f(X) }[/math] be [math]\displaystyle{ f }[/math] with codomain restricted to its image, and let [math]\displaystyle{ i \colon f(X) \to Y }[/math] be the inclusion map from [math]\displaystyle{ f(X) }[/math] into [math]\displaystyle{ Y }[/math]. Then [math]\displaystyle{ f=i\circ f_{R} }[/math]. A dual factorization is given for surjections below.
  • The composition of two injections is again an injection, but if [math]\displaystyle{ g\circ f }[/math] is injective, then it can only be concluded that [math]\displaystyle{ f }[/math] is injective (see figure).
  • Every embedding is injective.

Surjection

Main page: Surjective function
Surjective composition: the first function need not be surjective.

A function is surjective or onto if each element of the codomain is mapped to by at least one element of the domain. In other words, each element of the codomain has a non-empty preimage. Equivalently, a function is surjective if its image is equal to its codomain. A surjective function is a surjection.[1] The formal definition is the following.

The function [math]\displaystyle{ f \colon X \to Y }[/math] is surjective, if for all [math]\displaystyle{ y \in Y }[/math], there is [math]\displaystyle{ x \in X }[/math] such that [math]\displaystyle{ f(x) = y. }[/math][2][3][4]

The following are some facts related to surjections:

  • A function [math]\displaystyle{ f \colon X \to Y }[/math] is surjective if and only if it is right-invertible, that is, if and only if there is a function [math]\displaystyle{ g \colon Y \to X }[/math] such that [math]\displaystyle{ f\circ g= }[/math] identity function on [math]\displaystyle{ Y }[/math]. (This statement is equivalent to the axiom of choice.)
  • By collapsing all arguments mapping to a given fixed image, every surjection induces a bijection from a quotient set of its domain to its codomain. More precisely, the preimages under f of the elements of the image of [math]\displaystyle{ f }[/math] are the equivalence classes of an equivalence relation on the domain of [math]\displaystyle{ f }[/math], such that x and y are equivalent if and only they have the same image under [math]\displaystyle{ f }[/math]. As all elements of any one of these equivalence classes are mapped by [math]\displaystyle{ f }[/math]on the same element of the codomain, this induces a bijection between the quotient set by this equivalence relation (the set of the equivalence classes) and the image of [math]\displaystyle{ f }[/math] (which is its codomain when [math]\displaystyle{ f }[/math] is surjective). Moreover, f is the composition of the canonical projection from f to the quotient set, and the bijection between the quotient set and the codomain of [math]\displaystyle{ f }[/math].
  • The composition of two surjections is again a surjection, but if [math]\displaystyle{ g\circ f }[/math] is surjective, then it can only be concluded that [math]\displaystyle{ g }[/math] is surjective (see figure).

Bijection

Bijective composition: the first function need not be surjective and the second function need not be injective.

A function is bijective if it is both injective and surjective. A bijective function is also called a bijection or a one-to-one correspondence. A function is bijective if and only if every possible image is mapped to by exactly one argument.[1] This equivalent condition is formally expressed as follows:

The function [math]\displaystyle{ f \colon X \to Y }[/math] is bijective, if for all [math]\displaystyle{ y \in Y }[/math], there is a unique [math]\displaystyle{ x \in X }[/math] such that [math]\displaystyle{ f(x) = y. }[/math][2][3][4]

The following are some facts related to bijections:

  • A function [math]\displaystyle{ f \colon X \to Y }[/math] is bijective if and only if it is invertible, that is, there is a function [math]\displaystyle{ g \colon Y \to X }[/math] such that [math]\displaystyle{ g\circ f= }[/math] identity function on X and [math]\displaystyle{ f\circ g= }[/math] identity function on [math]\displaystyle{ Y }[/math]. This function maps each image to its unique preimage.
  • The composition of two bijections is again a bijection, but if [math]\displaystyle{ g\circ f }[/math] is a bijection, then it can only be concluded that [math]\displaystyle{ f }[/math] is injective and [math]\displaystyle{ g }[/math] is surjective (see the figure at right and the remarks above regarding injections and surjections).
  • The bijections from a set to itself form a group under composition, called the symmetric group.

Cardinality

Suppose that one wants to define what it means for two sets to "have the same number of elements". One way to do this is to say that two sets "have the same number of elements", if and only if all the elements of one set can be paired with the elements of the other, in such a way that each element is paired with exactly one element. Accordingly, one can define two sets to "have the same number of elements"—if there is a bijection between them. In which case, the two sets are said to have the same cardinality.

Likewise, one can say that set [math]\displaystyle{ X }[/math] "has fewer than or the same number of elements" as set [math]\displaystyle{ Y }[/math], if there is an injection from [math]\displaystyle{ X }[/math] to [math]\displaystyle{ Y }[/math]; one can also say that set [math]\displaystyle{ X }[/math] "has fewer than the number of elements" in set [math]\displaystyle{ Y }[/math], if there is an injection from [math]\displaystyle{ X }[/math] to [math]\displaystyle{ Y }[/math], but not a bijection between [math]\displaystyle{ X }[/math] and [math]\displaystyle{ Y }[/math].

Examples

It is important to specify the domain and codomain of each function, since by changing these, functions which appear to be the same may have different properties.

Injective and surjective (bijective)
The identity function idX for every non-empty set X, and thus specifically [math]\displaystyle{ \mathbf{R} \to \mathbf{R} : x \mapsto x. }[/math]
[math]\displaystyle{ \mathbf{R}^+ \to \mathbf{R}^+ : x \mapsto x^2 }[/math], and thus also its inverse [math]\displaystyle{ \mathbf{R}^+ \to \mathbf{R}^+ : x \mapsto \sqrt{x}. }[/math]
The exponential function [math]\displaystyle{ \exp \colon \mathbf{R} \to \mathbf{R}^+ : x \mapsto \mathrm{e}^x }[/math] (that is, the exponential function with its codomain restricted to its image), and thus also its inverse the natural logarithm [math]\displaystyle{ \ln \colon \mathbf{R}^+ \to \mathbf{R} : x \mapsto \ln{x}. }[/math]
Injective and non-surjective
The exponential function [math]\displaystyle{ \exp \colon \mathbf{R} \to \mathbf{R} : x \mapsto \mathrm{e}^x. }[/math]
Non-injective and surjective
[math]\displaystyle{ \mathbf{R} \to \mathbf{R} : x \mapsto (x-1)x(x+1) = x^3 - x . }[/math]
[math]\displaystyle{ \mathbf{R} \to [-1,1] : x \mapsto \sin(x). }[/math]
Non-injective and non-surjective
[math]\displaystyle{ \mathbf{R} \to \mathbf{R}: x \mapsto \sin(x). }[/math]

Properties

  • For every function f, subset X of the domain and subset Y of the codomain, Xf−1(f(X)) and f(f−1(Y)) ⊂ Y. If f is injective, then X = f−1(f(X)), and if f is surjective, then f(f−1(Y)) = Y.
  • For every function h : XY, one can define a surjection H : Xh(X) : xh(x) and an injection I : h(X) → Y : yy. It follows that [math]\displaystyle{ h = I \circ H }[/math]. This decomposition is unique up to isomorphism.

Category theory

In the category of sets, injections, surjections, and bijections correspond precisely to monomorphisms, epimorphisms, and isomorphisms, respectively.[5]

History

The Oxford English Dictionary records the use of the word injection as a noun by S. Mac Lane in Bulletin of the American Mathematical Society (1950), and injective as an adjective by Eilenberg and Steenrod in Foundations of Algebraic Topology (1952).[6]

However, it was not until the French Bourbaki group coined the injective-surjective-bijective terminology (both as nouns and adjectives) that they achieved widespread adoption.[7]

See also

References

External links