In calculus, the chain rule is a formula for the derivative of the composite of two functions.
Explanation
In intuitive terms, if a variable, y, depends on a second variable, u, which in turn depends on a third variable, x, then the rate of change of y with respect to x can be computed as the product of the rate of change of y with respect to u multiplied by the rate of change of u with respect to x.
The chain rule may be stated in any of several equivalent forms:
-
or in the Leibniz notation
-
In integration, the counterpart to the chain rule is the substitution rule.
Example
Suppose, for example, that one is climbing a mountain at a rate of 0.5
kilometres per hour. The
temperature is lower at higher elevations; suppose the rate by which it decreases is 6 °C per kilometre. If one multiplies 6 °C per kilometre by 0.5 kilometre per hour, one obtains 3 °C per hour. This calculation is a typical chain rule application.
The general power rule
The
general power rule (GPR) is derivable via the chain rule.
Example I
Consider
.
is comparable to
where
and
; thus,
- {|
|
|
|
|
|
|
Example II
In order to differentiate the
trigonometric function
-
one can write
with
and
. The chain rule then yields
-
since
and
.
Chain rule for several variables
The chain rule works for functions of several variables as well. For example, if we have a function
where
-
then
-
Proof of the chain rule
Let
f and
g be functions and let
x be a number such that
f is differentiable at
g(x) and
g is differentiable at
x. Then by the definition of differentiability,
- where as
Similarly,
- where as
Now
- {|
|
|
|
|
|
|
where .
Observe that as and . Hence
-
The fundamental chain rule
The chain rule is a fundamental property of all definitions of derivative and is therefore valid in much more general contexts. For instance, if
E,
F and
G are
Banach spaces (which includes
Euclidean space) and
f :
E →
F and
g :
F →
G are functions, and if
x is an element of
E such that
f is differentiable at
x and
g is differentiable at
f(
x), then the derivative (the
Fréchet derivative) of the composition
g o
f at the point
x is given by
-
Note that the derivatives here are linear maps and not numbers. If the linear maps are represented as matrices (namely Jacobians), the composition on the right hand side turns into a matrix multiplication.
A particularly clear formulation of the chain rule can be achieved in the most general setting: let M, N and P be Ck manifolds (or even Banach-manifolds) and let
- f : M → N and g : N → P
be differentiable maps. The derivative of f, denoted by df, is then a map from the tangent bundle of M to the tangent bundle of N, and we may write
-
In this way, the formation of derivatives and tangent bundles is seen as a functor on the category of C∞ manifolds with C∞ maps as morphisms.
Tensors and the chain rule
See
tensor field for an advanced explanation of the fundamental role the chain rule plays in the geometric nature of
tensors.
Higher derivatives
Faà di Bruno's formula generalizes the chain rule to higher derivatives. The first few derivatives are
-
\frac{d^2 f}{d x^2}
= \left(\frac{dg}{dx}\right)^2 \frac{d^2 f}{d g^2}
+ \frac{d^2 g}{dx^2}\frac{df}{dg}
\frac{d^3 f}{d x^3}
= \left(\frac{dg}{dx}\right)^3 \frac{d^3 f}{d g^3}
+ 3\frac{dg}{dx}\frac{d^2 g}{d x^2} \frac{d^2 f}{d g^2}
+ \frac{d^3 g}{d x^3} \frac{df}{dg}
\frac{d^4 f}{d x^4}
= \left(\frac{dg}{dx}\right)^4 \frac{d^4 f}{dg^4}
+ 6 \left(\frac{dg}{dx}\right)^2 \frac{d^2 g}{d x^2} \frac{d^3 f}{d g^3}
+ \left\{ 4 \frac{dg}{dx} \frac{d^3 g}{dx^3} + 3\left(\frac{d^2 g}{dx^2}\right)^2\right\}
\frac{d^2 f}{d g^2}
+ \frac{d^4 g}{dx^4} \frac{df}{dg}
See also
Differential calculus
Kettingreël | قاعدة السلسلة | Kettenregel | Regla de la cadena | Règle de dérivation en chaîne | כלל השרשרת | Kettingregel | Reguła łańcuchowa | Kedjeregeln | กฎลูกโซ่ | Zincir kuralı