93. Injectivity

93.1 Definition: injective

$F\colon A \to B$ is injective if and only if different inputs give different outputs, in other words if $a \neq a' \Rightarrow F(a) \neq F(a')$ for all $a,a' \in A$.

93.1.1 Fact To say $F\colon A \to B$ is injective is equivalent to saying that $F(a) = F(a') \Rightarrow a = a'$ for all $a,a' \in A$ (the contrapositive of the definition).

93.1.2 Usage An injective function is called an injection or is said to be one to one.

93.1.3 Example The squaring function $S\colon \mathrm{R} \to \mathrm{R}$ is not injective since $S(x) = S(-x)$ for every $x \in \mathrm{R}$. The cubing function $x \mapsto x^{3}\colon \mathrm{R} \to \mathrm{R}$ of course is injective, and so is any identity function or inclusion function on any set.

93.1.4 Exercise In this problem, $A = \{1,2,3,4\}$ and $B = \{2,3,4\}$. For each of these functions, state whether the function is injective, whether it is surjective, and give its image explicitly.

a) $F\colon A \to B$, $\Gamma(F) = \bigl\{\langle 1,4\rangle, \langle 2,4\rangle, \langle 3,2\rangle, \langle 4,3\rangle\bigr\}$.

b) $F\colon A \to B$, $\Gamma(F) = \bigl\{\langle 1,3\rangle, \langle 2,2\rangle, \langle 3,2\rangle, \langle 4,3\rangle\bigr\}$.

c) $\mathrm{id}_{A}$.

d) The inclusion of $B$ into $A$.

e) The inclusion of $B$ into $\mathrm{Z}$.

f) $C_{3}\colon A \to B$ (the constant function).

g) $\chi^{A}_{B}\colon A \to \{\mathrm{TRUE},\mathrm{FALSE}\}$.

h) $p_{1}\colon A \times B \to A$.

i) $+\colon B \times B \to \mathrm{Z}$.

j) The predicate “$n$ is even” regarded as a characteristic function with domain $A$.

(Answer on page 247.)

93.1.5 Exercise Same instructions as for Exercise 93.1.4

a) $x \mapsto 3x-4\colon \mathrm{R} \to \mathrm{R}$.

b) $x \mapsto x^{3}\colon \mathrm{R} \to \mathrm{R}$.

c) $F = \lambda x.(x^{2}+1)\colon \mathrm{R} \to \mathrm{R}$.

d) $x \mapsto 2-x^{2}\colon \mathrm{R} \to \mathrm{R}$.

(Answer on page 248.)

93.1.6 Exercise Let $F\colon A \to B$ be a function of the type indicated. Give a precise description of all the sets $A$ and $B$ for which $F$ is injective, and a precise description of all the sets $A$ and $B$ for which $F$ is surjective.

a) An identity function.

b) An inclusion function.

c) A constant function.

d) An empty function.

e) A coordinate function.

93.1.7 Exercise How do you prove that a function $F\colon A \to B$ is not injective? (Answer on page 248.)

93.1.8 Exercise Prove that the function $\langle m,n\rangle \mapsto 2^{m}3^{n}-1\colon \mathrm{N} \times \mathrm{N} \to \mathrm{N}$ is injective.

93.1.9 Exercise Give an example of a function $F\colon \mathrm{R} \to \mathrm{R}$ with the property that $F$ is not injective but $F|\mathrm{N}$ is injective.

93.1.10 Exercise (calculus)

a) Show that if a cubic polynomial function $x \mapsto ax^{3} + bx^{2} + cx + d$ is not injective, then $b^{2} - 3ac \geq 0$. (The “3” is not a misprint.)

b) Show that the converse of the statement in (a) is not true.

c) Think of a more sophisticated condition involving $a$, $b$, $c$ and $d$ that is true if and only if the function is injective.

Pages 134–135 of the book (PDF).