Surjective function

A surjective function, also called onto, hits every element of its codomain.

Formally, a Function is surjective when Equivalently, the image/range equals the codomain:

Examples

The function , , is surjective: every real number has a real cube root.

The function , , is not surjective because no input maps to a negative output. But , , is surjective. The formula did not change; the codomain did.

Why it matters

Surjectivity depends on the declared codomain, so never call a function “onto” without saying onto what. It is the condition that no target value is missed.

For inverse functions, surjectivity ensures every target value has at least one preimage. Injectivity then ensures that preimage is unique. Together they give a Bijective function.

In physics, surjectivity can describe whether a control parameter can reach every desired state in a model, or whether a measurement scale covers every possible value under consideration.

Related: Injective function, Codomain and range, Mapping.