Skip to content

Mathematics · Ch 1 — Relations and Functions

Onto (Surjective) Functions and Bijections

4

Onto (Surjective) Functions and Bijections

4. Onto (Surjective) Functions and Bijections

A function f:A→Bf : A \to B is called onto (or surjective) if every element of the codomain BB is the image of some element of AA:

for every y∈B, there exists x∈A such that f(x)=y\text{for every } y \in B,\ \text{there exists } x \in A \text{ such that } f(x) = y

Equivalently, ff is onto iff its range equals its entire codomain, range(f)=B\text{range}(f) = B.

While injectivity is about no repeats, surjectivity is about nothing left out — every target in BB must receive at least one arrow.

Method — Proving Surjectivity

Given y∈By \in B, solve f(x)=yf(x) = y for xx and check the solution genuinely lies in the domain AA.

Illustration. Let f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=5x−7f(x) = 5x - 7. For any y∈Ry \in \mathbb{R}, solving 5x−7=y5x - 7 = y gives x=y+75x = \dfrac{y+7}{5}, which is a real number for every real yy. So ff is onto.

Method — Disproving Surjectivity

Exhibit one element of the codomain with no preimage in the domain.

Illustration. Let f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=x2f(x) = x^2. Since x2≥0x^2 \geq 0 for every real xx, no negative real number (e.g. y=−1y = -1) is ever attained. So ff is not onto R\mathbb{R} (though it is onto if the codomain is narrowed to [0,∞)[0, \infty)).

Bijective Functions

A function that is both one-one and onto is called a bijective function, or a bijection (also a one-one correspondence).

A bijection pairs up every element of AA with exactly one element of BB and leaves nothing in BB unused — this is precisely the condition under which ff has a genuine inverse function (Section 6).

Illustration. f:R→Rf : \mathbb{R} \to \mathbb{R}, f(x)=5x−7f(x) = 5x - 7 is one-one (Section 3) and onto (above), hence bijective. …