6.4 Composing functions
Definition 6.32 (Composition of functions).
Given functions and we can create a new function defined by .
Let’s check explicitly that really does fit the formal definition of a function from Definition 6.1. We need to define a graph such that:
-
(i)
for every , there exists such that ; and
-
(ii)
if and then .
Let
be the graphs of the functions and . Define the graph of the composition by
Note that this means, for every , there exists some such that and . Hence, by definition of and , and .
We now check the two criteria for our graph from Definition 6.1.
-
(i)
Existence. Fix . Since is the graph of the function , there exists with . Because is the graph of the function and its domain is all of , for that there exists with . Thus . Hence for every there is some with .
-
(ii)
Uniqueness. Suppose and . Then there exist with , and , . Because is the graph of a function, and force . Now since is the graph of a function and , we obtain , as required.
Therefore satisfies the existence requirement (i) and the uniqueness requirement (ii), so it is indeed the graph of a function from to . This function is precisely the composition , given by .
Definition 6.33 (Identity Function).
For any set , the identity function on is defined by for all .
Example 6.34.
Let and and let and be functions defined by , , , and . Then the composition function is given by and In particular, we have .