Using the chain rule, we have: