The chain rule is used to differentiate composite functions.
Let and be differentiable functions and let . Then
To differentiate a composition of functions, differentiate all of the functions in the composition one at a time, starting from the outside and multiplying by each new derivative thus formed. Work out the derivative at the same point that the function was originally worked out.