Skip to content

Mathematics and Statistics · Ch 2 — Functions

Types of Functions — One-One, Onto, Into and Bijective

2

Types of Functions — One-One, Onto, Into and Bijective

Once we know a rule f:A→Bf : A \to B is a function, we classify how it matches elements of AA to elements of BB. Four standard names cover this classification.

One-one (injective) function. A function f:A→Bf : A \to B is one-one if different elements of AA always have different images — no two distinct inputs are ever allowed to share the same output. Formally,

f(x1)=f(x2) ⇒ x1=x2for all x1,x2∈A,f(x_1) = f(x_2) \ \Rightarrow\ x_1 = x_2 \qquad \text{for all } x_1, x_2 \in A,

which is equivalent to its contrapositive x1≠x2⇒f(x1)≠f(x2)x_1 \neq x_2 \Rightarrow f(x_1) \neq f(x_2). The standard algebraic test is to assume f(x1)=f(x2)f(x_1) = f(x_2) and show, by valid algebra, that this forces x1=x2x_1 = x_2.

Onto (surjective) function. A function f:A→Bf : A \to B is onto if every element of the codomain BB is the image of at least one element of AA — i.e. the range equals the whole codomain. Formally, for every b∈Bb \in B there exists at least one a∈Aa \in A with f(a)=bf(a) = b. The standard test is to take an arbitrary bb in the codomain, solve f(x)=bf(x) = b for xx, and confirm a valid xx in the domain always exists.

Into function. If f:A→Bf : A \to B is not onto — the range is a proper subset of the codomain, leaving at least one element of BB with no pre-image — then ff 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 AA with a distinct element of BB, using up the whole of BB, 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:

TypeOne-one?Onto?Description
One-one, intoYesNodistinct inputs → distinct outputs, but some of BB unused
One-one, onto (bijective)YesYesa perfect pairing between AA and BB
Many-one, ontoNoYessome inputs share an output, but all of BB is used
Many-one, intoNoNosome inputs share an output, and some of BB is unused
Definition 1One-One (Injective) Function

f:A→Bf : A \to B is one-one if f(x1)=f(x2)⇒x1=x2f(x_1)=f(x_2) \Rightarrow x_1=x_2 for all x1,x2x_1,x_2 in the domain — distinct inputs always …

Definition 2Onto (Surjective) Function

f:A→Bf : A \to B is onto if for every b∈Bb \in B there is at least one a∈Aa \in A with f(a)=bf(a)=b — i.e. the range …

Definition 3Into Function

A function that is not onto: its range is a proper subset of its codomain, so at least one element of the codoma …

Definition 4Bijective Function

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 …