89. The image of a function

If $F\colon A \to B$ is a function, it can easily happen that not every element of $B$ is a value of $F$. For example, the function $x \mapsto x^{2}\colon \mathrm{R} \to \mathrm{R}$ takes only nonnegative values.

89.1 Definition: image of a function

The image of $F\colon A \to B$ is the set of all values of $F$, in other words the set $\{b \in B \mid (\exists a{:}A)(F(a) = b)\}$. The image of $F$ is also denoted $\operatorname{Im}(F)$.

89.1.1 Fact This definition gives the equivalence:

$$(\exists a)(F(a) = b) \Leftrightarrow b \in \operatorname{Im} F$$

89.1.2 Fact For any function $F$, $\operatorname{Im}(F) \subseteq \operatorname{cod} F$.

89.1.3 Usage Many authors use the word “range” for the image, but others use “range” for the codomain.

89.1.4 Example The image of the squaring function $x \mapsto x^{2}\colon \mathrm{R} \to \mathrm{R}$ is the set of nonnegative real numbers.

89.1.5 Example Let the function $F\colon \{1,2,3\} \to \{2,4,5,6\}$ be defined by $F(1) = 4$ and $F(2) = F(3) = 5$. Then $F$ has image $\{4,5\}$.

89.1.6 Remark The image of a function can be difficult to determine if it is given by a formula; for example it requires a certain amount of analytic geometry (or calculus) to determine that the image of the function $G(x) = x^{2} + 2x + 5$ is the set of real numbers $\geq 4$, and determining the image of more complicated functions can be very difficult indeed.

89.1.7 Exercise Find the image of the function $n \mapsto n+1\colon \mathrm{N} \to \mathrm{N}$. (Answer on page 247.)

89.1.8 Exercise Find the image of the function $n \mapsto n-1\colon \mathrm{Z} \to \mathrm{Z}$.

89.1.9 Exercise Find the image of the function $x \mapsto x^{2}-1\colon \mathrm{R} \to \mathrm{R}$.

89.1.10 Exercise Find the image of the function $x \mapsto x^{2}+x+1\colon \mathrm{R} \to \mathrm{R}$.

Page 131 of the book (PDF).