In differential calculus, the chain rule is a way of finding the derivative of a function. It is used where the function is within another function. This is called a composite function.
More specifically, if equals the composite function of the form:
where g is a function differentiable at x and f is a function differentiable at g(x), then the derivative of , written as , exists, and is equal to