Mathematics · Ch 15 — Functions
One-One (Injective) and Onto (Surjective) Functions
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 is said to be one-one if different elements of always have different images in . Formally, (equivalently, the contrapositive: ). Pictorially, no two arrows from ever land on the same point of (Fig. 6.4, Fig. 6.5).
Onto (surjective) function. A function is said to be onto if every element of is the image of some in — every element of has at least one pre-image in . The set of all actual images, , is called the range of . Saying is onto is exactly the same as saying , i.e. the range fills up the whole co-domain. In general the range is always a subset of the co-domain: range of co-domain of .
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 (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 receives exactly one arrow — the two sets are matched up perfectly. …
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 …
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 ( …
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 …
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 …