Chain rule

The chain rule is a fundamental rule in calculus that allows you to differentiate a function that is composed of two or more functions. More specifically, if you have a function f(x) that is composed of two functions g(x) and h(x), such that f(x) = g(h(x)), then the chain rule states that: f'(x) = g'(h(x))…