A surjective function, or surjection, is a function whose outputs cover its entire specified target set. If , surjectivity means that every element of equals for at least one element of . Several inputs may produce the same output; surjectivity requires coverage, not uniqueness. It is one of the fundamental properties used to classify functions in set theory. (jirka.org)
Definition and codomain dependence
For a function , is its domain and its codomain. The image of is
The function is surjective precisely when . Equivalently,
The order of the quantifiers matters: an appropriate input may depend on the chosen output. (jirka.org)
Surjectivity therefore depends on the codomain, not merely on a formula. For example, is not surjective from the real numbers to , because negative numbers are never outputs. The same rule defines a surjection . More generally, every function becomes surjective when its codomain is restricted to its image without changing its domain or values. (richardhammack.github.io)
For , the set
is the fiber over . Surjectivity says exactly that every fiber is nonempty. This preimage notation does not require an inverse function to exist. (ocw.mit.edu)
Examples and proof methods
Examples illustrate how the choice of sets affects the property:
- , , is surjective: for any , the input satisfies .
- , , is surjective because produces any prescribed .
- , , is not surjective, since no odd integer occurs as an output. It is surjective if its codomain is instead , the even integers.
These conclusions follow directly by applying the definition and solving the output equation in the specified domain. (richardhammack.github.io)
A standard proof of surjectivity begins with an arbitrary , constructs an , and verifies . It must establish both that the proposed input belongs to the domain and that it produces the desired output. To disprove surjectivity, one counterexample in the codomain with no preimage suffices. (richardhammack.github.io)
For finite sets, an arrow diagram gives a direct test: every codomain element must receive at least one arrow. Checking only selected outputs cannot establish surjectivity when the codomain is infinite. (richardhammack.github.io)
Relation to injectivity and cardinality
An injective function gives different outputs to different inputs. A bijective function is both injective and surjective, so every codomain element has exactly one preimage. Thus surjectivity expresses existence of inputs, while injectivity expresses uniqueness whenever an input exists. A two-sided inverse exists precisely for a bijection. (homepages.ucl.ac.uk)
For finite sets, a surjection requires
If the sets have equal finite cardinality, a function between them is surjective if and only if it is injective. This equivalence fails for infinite sets. On the natural numbers , the successor function is injective but misses . Conversely, the function taking to and to is surjective but maps both and to . (richardhammack.github.io)
Composition and right inverses
Surjectivity is preserved by composition. If and are surjective, then is surjective: first choose producing a desired , then choose producing . If is surjective, must be surjective, but need not be. (richardhammack.github.io)
A right inverse, or section, of is a function satisfying
Its existence implies surjectivity, because supplies a preimage of every . Conversely, constructing a section requires selecting one element from each fiber. In set theory, the assertion that every surjection has a right inverse is equivalent to the axiom of choice. A finite codomain requires only finitely many choices, so that case needs no choice axiom. (webhomes.maths.ed.ac.uk)
Linear algebra and quotient constructions
In linear algebra, a linear map is surjective when its image is the whole target vector space. For an matrix , the map onto is surjective exactly when its columns span , equivalently when its rank is . Thus the system has a solution for every . For finite-dimensional spaces of equal dimension, the rank–nullity theorem makes surjectivity equivalent to injectivity. (math.mit.edu)
Surjections also describe identification of elements. Define an equivalence relation on by when . Its equivalence classes are the nonempty fibers. The projection is surjective, and the induced map
is bijective. When is surjective, : the codomain corresponds exactly to the classes obtained by identifying inputs with equal outputs. (whitman.edu)