Surjective function (source code)

= Surjective function
{title2=$f(X)=Y$}
{wiki}

= Surjective
{synonym}

= Surjection
{synonym}

= Surjectivity
{synonym}

A <function> $f:X\to Y$ is <surjective> when every element of its <codomain> occurs as a value: for each $y\in Y$ there is an $x\in X$ with $f(x)=y$. Equivalently, its <image> is all of $Y$.

For example, $x\mapsto x^2$ is <surjective> as a <function> $\mathbb R\to\mathbb R_{\ge0}$, but not as a <function> $\mathbb R\to\mathbb R$, since negative values are missed. A <surjective function> may identify different inputs. Together with <injectivity>, <surjectivity> gives a <bijection> and hence an <inverse function>.