Lably
Skip to content

Bijection, injection and surjection

Properties of mathematical functions

  • 6 min read
  • 7 chapters

Related on Lably

Through Mathematics, Function (mathematics) and Parameter

A function maps elements from its domain to elements in its codomain. Given a function f:X→Y:

  • 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. Notationally:
∀x,x′∈X,f(x)=f(x′)⟹x=x′,
or, equivalently (using logical transposition),
∀x,x′∈X,x≠x′⟹f(x)≠f(x′).
  • 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, if the image and the codomain of the function are equal. A surjective function is a surjection. Notationally:
∀y∈Y,∃x∈X,y=f(x).
  • 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, if the function is both injective and surjective. A bijective function is also called a bijection. That is, combining the definitions of injective and surjective,
∀y∈Y,∃!x∈X,y=f(x),
where ∃!x means "there exists exactly one x".
  • In any case (for any function), the following holds:
∀x∈X,∃!y∈Y,y=f(x).

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

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. The formal definition is the following.

The function f:X→Y is injective, if for all x,x′∈X, f(x)=f(x′)⇒x=x′.

The following are some facts related to injections:

  • A function f:X→Y is injective if and only if X is empty or f is left-invertible; that is, there is a function g:f(X)→X such that g∘f= identity function on X. Here, f(X) is the image of f.
  • 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 f:X→Y can be factored as a bijection followed by an inclusion as follows. Let fR:X→f(X) be f with codomain restricted to its image, and let i:f(X)→Y be the inclusion map from f(X) into Y. Then f=i∘fR. A dual factorization is given for surjections below.
  • The composition of two injections is again an injection, but if g∘f is injective, then it can only be concluded that f is injective (see figure).
  • Every embedding is injective.

Sign in to keep reading

6 more chapters are free with a Lably account.

More in Functions