Skip to content

Mathematics · Ch 15 — Functions

One-One (Injective) and Onto (Surjective) Functions

15.1.1

One-One (Injective) and Onto (Surjective) Functions

Two independent properties refine what it means for a function to relate its domain and co-domain 'nicely'.

One-one (injective) function. A function f:A→Bf:A\to B is said to be one-one if different elements of AA always have different images in BB. Formally, f(a)=f(b)  ⟹  a=bf(a)=f(b)\implies a=b (equivalently, the contrapositive: a≠b  ⟹  f(a)≠f(b)a\ne b\implies f(a)\ne f(b)). Pictorially, no two arrows from AA ever land on the same point of BB (Fig. 6.4, Fig. 6.5).

Onto (surjective) function. A function f:A→Bf:A\to B is said to be onto if every element yy of BB is the image of some xx in AA — every element of BB has at least one pre-image in AA. The set of all actual images, f(A)={y∈B∣y=f(x) for some x∈A}f(A)=\{y\in B\mid y=f(x)\text{ for some }x\in A\}, is called the range of ff. Saying ff is onto is exactly the same as saying f(A)=Bf(A)=B, i.e. the range fills up the whole co-domain. In general the range is always a subset of the co-domain: range of f=f(A)⊆f=f(A)\subseteq co-domain of ff.

These two properties are independent — a function can have neither, either one alone, or both:

  • One-one but not onto (Fig. 6.4): every arrow lands on a different point, but some element of BB (labelled 5 in the figure) receives no arrow at all.
  • One-one and onto (Fig. 6.5): every arrow lands on a different point, and every element of BB receives exactly one arrow — the two sets are matched up perfectly. …
Figure 1Fig. 6.4 — one-one but not onto

What this figure shows. An arrow diagram from set A to set B where every arrow lands on a different element of B (no two arrows share a target, so the map is one-one), but one element of B, labelled 5, receives no arrow at all — it has no pre-image in A. This illustrates a function that is injective without …

Figure 2Fig. 6.5 — one-one and onto

What this figure shows. An arrow diagram between two equal-sized sets where every element of A has its own distinct arrow to a different element of B, and every element of B receives exactly one arrow. Every input maps to a unique output and every output is used exactly once — the diagram used to illustrate a bijection ( …

Figure 3Fig. 6.6 — onto but not one-one

What this figure shows. An arrow diagram where every element of B receives at least one arrow (so the map is onto — nothing in B is missed), but two distinct elements of A, labelled a and b, both send their arrow to the same element of B (both give the value 1). This illustrates a function that is surjective withou …

Figure 4Fig. 6.7 — neither one-one nor onto

What this figure shows. An arrow diagram combining both defects at once: at least two different elements of A share the same image in B (so it is not one-one), and at the same time at least one element of B is never hit by any arrow (so it is not onto either). This is the weakest of the four combinations shown across …