The volume of a box is a function of its length, width, and height. Letβs break this example down and recognize the components described above.
Consider the the set of triples of numbers representing the length, width, and height of a box. Then each number must be nonnegative (if we allow degenerate boxes). For concreteness, letβs consider ordered triples
\((\ell, w, h)\) for length, width, and height. The set of all such triples is the domain of the volume function.
The volume of a box is a real number, so we can take the
codomain to be
\(\RR\text{.}\)
If \(V\) is the name of our volume function, then we have \(V \colon \RR_{\geq 0}^3 \to \RR\text{.}\) The image of \(V\) is the set of realizable outputs of the function \(V\text{.}\) Thus the image is the set of nonnegative real numbers,
\begin{equation*}
\im(V) = \RR_{\geq 0}.
\end{equation*}