The functions and can be composed to the function . We have the following chain rule for differentiation.
Chain rule for differentiation