Onto (surjective) functions [00A8]
- March 10, 2026
Definition Onto / surjective [00A9]
- March 10, 2026
Remark Proving that a function is surjective [00AA]
- March 10, 2026
If we want to prove that a function is onto / surjective, we let b be an arbitrary element of the codomain, and show how to find a specific element a of the domain such that f(a) = b.
Remark Proving that a function is not surjective [00AB]
- March 10, 2026
To show something is not onto / surjective, we just have to show the negation:
That is, “there is some b \in B which is not the output of f for any a \in A”.
Which of our example functions g, h, and \ell are surjective? For those that are not, could we make another function with the same domain and codomain which is surjective?
Example [00AC]
- March 10, 2026
g is not onto. There are many, many elements of the domain (that is, natural numbers) which are not the output of g for any input. There is no function with the same domain and codomain we could make that would be onto—the domain is too small to cover everything in the codomain!
Example [00AD]
- March 10, 2026
h : \mathbb {N} \to \mathbb {N}; h(n) = 2n is not onto either. The range of h is only the even natural numbers; all the odd natural numbers are not covered. However, we could make an onto function from \mathbb {N} to \mathbb {N}, for example, the function f(n) = n.
Example [00AE]
- March 10, 2026
\ell is onto: every shape is the output of the function for some (actually, many) inputs.