That is, if f and g are functions, then the chain rule expresses the derivative of the composite function f ??? g in terms of the derivatives of f and g and the product of functions ?? as follows:If u is a function of a variable v, which is itself a function of w (see dependent variable), then u is also a function of w and the chain rule may be written