Functions

A function $f$ is a rule

\begin{displaymath}f:S \to T \end{displaymath}

that assigns to each element $s \in S$ a value $f(s) \in T$. The set $S$is the domain of the function $f$; the set $T$, its target. The range of $f$ is the set

\begin{displaymath}\{ t \in T; \ t = f(s) \mbox{ for some } s \in
S \} \subset T .\end{displaymath}

If $t \in T$, then the preimage of $t$ is defined by

\begin{displaymath}f^{-1}(t) = \{ s \in S; f(s) = t \} .\end{displaymath}

Similarly, for a subset $U
\subset T$,

\begin{displaymath}f^{-1}(U) = \{ s \in S; \ f(s) = t \mbox{ for some } t \in U
\} ,\end{displaymath}

and for a subset $U
\subset S$,

\begin{displaymath}f(U) = \{ t \in T; \ f(s) = t \mbox{ for some } s \in U
\} .\end{displaymath}

Note that

\begin{displaymath}f^{-1}(T) = S, \ f(S) \subset T \mbox{ and }
f(\emptyset) = f^{-1}(\emptyset) = \emptyset ,\end{displaymath}


\begin{displaymath}f \left (f^{-1}(U)
\right ) \subset U \mbox{ but } f ^{-1}(
f(R)) \supset R \end{displaymath}

(both inclusions may be proper). If

\begin{displaymath}f:S \to T \mbox{ and } g:T \to U \end{displaymath}

are functions, the composite function

\begin{displaymath}f \circ g :S \to U \end{displaymath}

is defined by the formula

\begin{displaymath}(f \circ g) (s) = f(g(s)) \end{displaymath}

(note that the parentheses $()$ are used with two different meanings in the above equation). If the target space $T$ has more structure, for example, if it is $\mbox{${\Bbb Z}$ }$, $\mbox{${\Bbb Q}$ }$, $\mbox{${\Bbb R}$ }$ or $\mbox{${\Bbb C}$ }$, then we can define other operations on functions. If, in these cases,

\begin{displaymath}f:S \to T \mbox{ and } g:S \to T \end{displaymath}

are functions then one defines the functions $f+g$ and $fg$ by the rules

\begin{displaymath}(f+g)(s) = f(s) + g(s) \mbox{ and } (fg)(s) = f(s)g(s) .\end{displaymath}

We would also like to define $\frac{f}{g}$; this is possible if the target space allows division as an operation (thus in case $T = \mbox{${\Bbb Q}$ }$, $\mbox{${\Bbb R}$ }$ or $\mbox{${\Bbb C}$ }$), but we must be careful not to divide by $0$. The domain of definition for $\frac{f}{g}$is thus $S - g^{-1}(0)$.