In calculus, the chain rule is a formula to compute the derivative of a composite function.