<<Up     Contents

Surjection

A function fX → Y is called surjective or onto or a surjection if for every y in the codomain Y there is at least one x in the domain X with f(x) = y. Put another way, the range f(X) is equal to the codomain Y.

OntoMap.png
Surjective, not injective
Mathmap.png
Injective, not surjective
BijMap.png
Bijective
Mathmap2.png
Not surjective, not injective

When X and Y are both the real line R, then a surjective function fR → R can be visualized as one whose graph will be intersected by any horizontal line.

Examples and counterexamples

Consider the function fR → R defined by f(x) = 2x + 1. This function is surjective, since given an arbitrary real number y, we can solve y = 2x + 1 for x to get a solution x = (y − 1)/2.

On the other hand, the function gR → R defined by g(x) = x2 is not surjective, because (for example) there is no real number x such that x2 = -1.

However, if we define the function hR → R+ by the same formula as g, but with the codomain has been restricted to only the nonnegative real numbers, then the function h is surjective. This is because, given an arbitrary nonnegative real number y, we can solve y = x2 to get solutions x = √y and x = −√y.

Properties


See also: Injective function, Bijection

wikipedia.org dumped 2003-03-17 with terodump