Mathematics and Statistics · Ch 2 — Functions
Types of Functions — One-One, Onto, Into and Bijective
Types of Functions — One-One, Onto, Into and Bijective
Once we know a rule is a function, we classify how it matches elements of to elements of . Four standard names cover this classification.
One-one (injective) function. A function is one-one if different elements of always have different images — no two distinct inputs are ever allowed to share the same output. Formally,
which is equivalent to its contrapositive . The standard algebraic test is to assume and show, by valid algebra, that this forces .
Onto (surjective) function. A function is onto if every element of the codomain is the image of at least one element of — i.e. the range equals the whole codomain. Formally, for every there exists at least one with . The standard test is to take an arbitrary in the codomain, solve for , and confirm a valid in the domain always exists.
Into function. If is not onto — the range is a proper subset of the codomain, leaving at least one element of with no pre-image — then is called an into function.
Bijective function (one-one correspondence). A function that is both one-one and onto is bijective. It pairs every element of with a distinct element of , using up the whole of , with nothing left over on either side — exactly the condition a function needs before it can have a genuine inverse function (Section 7).
A function that is not one-one is called many-one; combining the two dials gives four possibilities:
| Type | One-one? | Onto? | Description |
|---|---|---|---|
| One-one, into | Yes | No | distinct inputs → distinct outputs, but some of unused |
| One-one, onto (bijective) | Yes | Yes | a perfect pairing between and |
| Many-one, onto | No | Yes | some inputs share an output, but all of is used |
| Many-one, into | No | No | some inputs share an output, and some of is unused |
is one-one if for all in the domain — distinct inputs always …
is onto if for every there is at least one with — i.e. the range …
A function that is not onto: its range is a proper subset of its codomain, so at least one element of the codoma …
A function that is both one-one and onto — every element of the domain and of the codomain is used exactly once, in a perfect pairing. Only a bijection has an inver …