GetWiki

chain rule

ARTICLE SUBJECTS
news  →
unix  →
wiki  →
ARTICLE TYPES
feed  →
help  →
wiki  →
ARTICLE ORIGINS chain rule
[ temporary import ]
- the content below is remote from Wikipedia
- it has been imported raw for GetWiki
{{about|the chain rule in calculus|the chain rule in probability theory|Chain rule (probability)|other uses}}{{short description|Method of differentiating composed functions}}{{Calculus |Differential}}In calculus, the chain rule is a formula for computing the derivative of the composition of two or more functions. That is, if {{Mvar|f}} and {{Mvar|g}} are functions, then the chain rule expresses the derivative of their composition {{math|f {{large|âˆ˜}} g}} â€” the function which maps {{Mvar|x}} to f(g(x))â€” in terms of the derivatives of {{Mvar|f}} and {{Mvar|g}} and the product of functions as follows:
(fcirc g)'=(f'circ g)cdot g'.
Alternatively, by letting {{math|1=F = f {{large|âˆ˜}} g}} (equiv., {{math|1=F(x) = f(g(x))}} for all {{Mvar|x}}), one can also write the chain rule in Lagrange's notation, as follows:
F'(x) = f'(g(x)) g'(x).
The chain rule may also be rewritten in Leibniz's notation in the following way. If a variable {{Mvar|z}} depends on the variable {{Mvar|y}}, which itself depends on the variable {{Mvar|x}} (i.e., {{Mvar|y}} and {{Mvar|z}} are dependent variables), then {{Mvar|z}}, via the intermediate variable of {{Mvar|y}}, depends on {{Mvar|x}} as well. In which case, the chain rule states that:
frac{dz}{dx} = frac{dz}{dy} cdot frac{dy}{dx}.
The two versions of the chain rule are related, in the sense that if z=f(y)! and y=g(x)!, then
frac{dz}{dx}=frac{dz}{dy}cdotfrac{dy}{dx} = f'(y)g'(x) = f'(g(x))g'(x).WEB,weblink Chain Rule in Leibniz Notation, oregonstate.edu, 2019-07-28,
In integration, the counterpart to the chain rule is the substitution rule.

History

The chain rule seems to have first been used by Gottfried Wilhelm Leibniz. He used it to calculate the derivative of sqrt{a + bz + cz^2} as the composite of the square root function and the function a + bz + cz^2!. He first mentioned it in a 1676 memoir (with a sign error in the calculation). The common notation of chain rule is due to Leibniz.JOURNAL,weblink A Semiotic Reflection on the Didactics of the Chain Rule, The Mathematics Enthusiast, 2010, 7, 321â€“332, 2, Omar HernÃ¡ndez, RodrÃ­guez, Jorge M., LÃ³pez FernÃ¡ndez, 2019-08-04, Guillaume de l'HÃ´pital used the chain rule implicitly in his Analyse des infiniment petits. The chain rule does not appear in any of Leonhard Euler's analysis books, even though they were written over a hundred years after Leibniz's discovery.

One dimension

First example

Suppose that a skydiver jumps from an aircraft. Assume that {{Mvar|t}} seconds after his jump, his height above sea level in meters is given by {{math|1=g(t) = 4000 âˆ’ 4.9t2}}. One model for the atmospheric pressure at a height {{Mvar|h}} is {{math|1=f(h) = {{gaps|101|325}} eâˆ’0.0001h}}. These two equations can be differentiated and combined in various ways to produce the following data:
• {{math|1=gâ€²(t) = âˆ’9.8t}} is the velocity of the skydiver at time {{Mvar|t}}.
• {{math|1=fâ€²(h) = âˆ’10.1325eâˆ’0.0001h}} is the rate of change in atmospheric pressure with respect to height at the height {{Mvar|h}} and is proportional to the buoyant force on the skydiver at {{Mvar|h}} meters above sea level. (The true buoyant force depends on the volume of the skydiver.)
• {{math|(f âˆ˜ g)(t)}} is the atmospheric pressure the skydiver experiences {{Mvar|t}} seconds after his jump.
• {{math|(f âˆ˜ g)â€²(t)}} is the rate of change in atmospheric pressure with respect to time at {{Mvar|t}} seconds after the skydiver's jump, and is proportional to the buoyant force on the skydiver at {{Mvar|t}} seconds after his jump.
Here, the chain rule gives a method for computing {{math|(f âˆ˜ g)â€²(t)}} in terms of {{math|fâ€²}} and {{math|gâ€²}}. While it is always possible to directly apply the definition of the derivative to compute the derivative of a composite function, this is usually very difficult. The utility of the chain rule is that it turns a complicated derivative into several easy derivatives.The chain rule states that, under appropriate conditions,
(f circ g)'(t) = f'(g(t))cdot g'(t).
In this example, this equals
(f circ g)'(t) = big(mathord{-}10.1325e^{-0.0001(4000 - 4.9t^2)}big)cdotbig(mathord{-}9.8tbig).
In the statement of the chain rule, {{Mvar|f}} and {{Mvar|g}} play slightly different roles because {{Mvar|f'}} is evaluated at g(t)!, whereas {{Mvar|g'}} is evaluated at {{Mvar|t}}. This is necessary to make the units work out correctly.For example, suppose that we want to compute the rate of change in atmospheric pressure ten seconds after the skydiver jumps. This is {{math|(f âˆ˜ g)â€²(10)}} and has units of pascals per second. The factor {{math|gâ€²(10)}} in the chain rule is the velocity of the skydiver ten seconds after his jump, and it is expressed in meters per second. f'(g(10))! is the change in pressure with respect to height at the height {{math|g(10)}} and is expressed in pascals per meter. The product of f'(g(10))! and g'(10)! therefore has the correct units of pascals per second.Here, notice that it is not possible to evaluate {{Mvar|f}} anywhere else. For instance, the 10 in the problem represents ten seconds, while the expression f'(10)! would represent the change in pressure at a height of ten meters, which is not what we wanted. Similarly, while {{math|1=gâ€²(10) = âˆ’98}} has a unit of meters per second, the expression {{math|fâ€²(gâ€²(10))}} would represent the change in pressure at a height of âˆ’98 meters, which is again not what we wanted. However, {{math|1=g(10)}} is 3020 meters above sea level, the height of the skydiver ten seconds after his jump, and this has the correct units for an input to {{Mvar|f}}.

Statement

The simplest form of the chain rule is for real-valued functions of one real variable. It states that if {{Mvar|g}} is a function that is differentiable at a point {{Mvar|c}} (i.e. the derivative {{math|gâ€²(c)}} exists) and {{Mvar|f}} is a function that is differentiable at {{math|g(c)}}, then the composite function {{math|f âˆ˜ g}} is differentiable at {{Mvar|c}}, and the derivative isBOOK, Mathematical analysis, Tom Apostol, Tom, Apostol, 1974, 2nd, Addison Wesley, Theorem 5.5, true,
(fcirc g)'(c) = f'(g(c))cdot g'(c).
The rule is sometimes abbreviated as
(fcirc g)' = (f'circ g) cdot g'.
If {{math|1=y = f(u)}} and {{math|1=u = g(x)}}, then this abbreviated form is written in Leibniz notation as:
frac{dy}{dx} = frac{dy}{du} cdot frac{du}{dx}.
The points where the derivatives are evaluated may also be stated explicitly:
left.frac{dy}{dx}right|_{x=c} = left.frac{dy}{du}right|_{u = g(c)} cdot left.frac{du}{dx}right|_{x=c}.
Carrying the same reasoning further, given {{Mvar|n}} functions f_1, ldots, f_n! with the composite function f_1 circ ( f_2 circ cdots (f_{n-1} circ f_n) )!, if each function f_i! is differentiable at its immediate input, then the composite function is also differentiable by the repeated application of Chain Rule, where the derivative is (in Leibniz's notation):
frac{df_1}{dx} = frac{df_1}{df_2}frac{df_2}{df_3}cdotsfrac{df_n}{dx}.WEB,weblink Chain Rule for Derivative, 2016-06-05, Math Vault, en-US, 2019-07-28,

Further examples

Absence of formulas

It may be possible to apply the chain rule even when there are no formulas for the functions which are being differentiated. This can happen when the derivatives are measured directly. Suppose that a car is driving up a tall mountain. The car's speedometer measures its speed directly. If the grade is known, then the rate of ascent can be calculated using trigonometry. Suppose that the car is ascending at {{val|2.5|u=km/h}}. Standard models for the Earth's atmosphere imply that the temperature drops about {{val|6.5|u=Â°C}} per kilometer ascended (called the lapse rate). To find the temperature drop per hour, we can apply the chain rule. Let the function {{math|g(t)}} be the altitude of the car at time {{mvar|t}}, and let the function {{math|f(h)}} be the temperature {{mvar|h}} kilometers above sea level. {{mvar|f}} and {{mvar|g}} are not known exactly: For example, the altitude where the car starts is not known and the temperature on the mountain is not known. However, their derivatives are known: {{math|fâ€²}} is {{val|âˆ’6.5|u=Â°C/km}}, and {{math|gâ€²}} is {{val|2.5|u=km/h}}. The chain rule states that the derivative of the composite function is the product of the derivative of {{mvar|f}} and the derivative of {{mvar|g}}. This is {{math|{{val|âˆ’6.5|u=Â°C/km}} â‹… {{val|2.5|u=km/h}} {{=}} {{val|âˆ’16.25|u=Â°C/h}}}}.One of the reasons why this computation is possible is because {{math|fâ€²}} is a constant function. A more accurate description of how the temperature near the car varies over time would require an accurate model of how the temperature varies at different altitudes. This model may not have a constant derivative. To compute the temperature change in such a model, it would be necessary to know {{mvar|g}} and not just {{math|gâ€²}}, because without knowing {{mvar|g}} it is not possible to know where to evaluate {{math|fâ€²}}.

Composites of more than two functions

The chain rule can be applied to composites of more than two functions. To take the derivative of a composite of more than two functions, notice that the composite of {{Mvar|f}}, {{Mvar|g}}, and {{Mvar|h}} (in that order) is the composite of {{Mvar|f}} with {{math|g âˆ˜ h}}. The chain rule states that to compute the derivative of {{math|f âˆ˜ g âˆ˜ h}}, it is sufficient to compute the derivative of {{Mvar|f}} and the derivative of {{math|g âˆ˜ h}}. The derivative of {{Mvar|f}} can be calculated directly, and the derivative of {{math|g âˆ˜ h}} can be calculated by applying the chain rule again.For concreteness, consider the function
y = e^{sin (x^2)}.
This can be decomposed as the composite of three functions:
begin{align}
y &= f(u) = e^u, [6pt]u &= g(v) = sin v = sin(x^2), [6pt]v &= h(x) = x^2.end{align}Their derivatives are:
begin{align}
frac{dy}{du} &= f'(u) = e^u = e^{sin(x^2)}, [6pt]frac{du}{dv} &= g'(v) = cos v = cos(x^2), [6pt]frac{dv}{dx} &= h'(x) = 2x.end{align}The chain rule states that the derivative of their composite at the point {{math|1=x = a}} is:
begin{align}(f circ g circ h)'(a) & = f'((g circ h)(a))cdot (g circ h)'(a) [10pt]& = f'((g circ h)(a)) cdot g'(h(a)) cdot h'(a) = (f' circ g circ h)(a) cdot (g' circ h)(a) cdot h'(a).end{align}In Leibniz notation, this is:
frac{dy}{dx} = left.frac{dy}{du}right|_{u=g(h(a))}cdotleft.frac{du}{dv}right|_{v=h(a)}cdotleft.frac{dv}{dx}right|_{x=a},
or for short,
frac{dy}{dx} = frac{dy}{du}cdotfrac{du}{dv}cdotfrac{dv}{dx}.
The derivative function is therefore:
frac{dy}{dx} = e^{sin(x^2)}cdotcos(x^2)cdot 2x.
Another way of computing this derivative is to view the composite function {{math|f âˆ˜ g âˆ˜ h}} as the composite of {{math|f âˆ˜ g}} and h. Applying the chain rule in this manner would yield:
(f circ g circ h)'(a) = (f circ g)'(h(a))cdot h'(a) = f'(g(h(a)))cdot g'(h(a))cdot h'(a).
This is the same as what was computed above. This should be expected because {{math|1=(f âˆ˜ g) âˆ˜ h = f âˆ˜ (g âˆ˜ h)}}.Sometimes, it is necessary to differentiate an arbitrarily long composition of the form f_1 circ f_2 circ cdots circ f_{n-1} circ f_n!. In this case, define
f_{a,.,.,b} = f_{a} circ f_{a+1} circ cdots circ f_{b-1} circ f_{b}
where f_{a,.,.,a} = f_a and f_{a,.,.,b}(x) = x when b < a. Then the chain rule takes the form
Df_{1,.,.,n} = (Df_1 circ f_{2,.,.,n}) (Df_2 circ f_{3,.,.,n}) cdots (Df_{n-1} circ f_{n,.,.,n}) Df_n = prod_{k=1}^n left[Df_k circ f_{(k+1),.,.,n}right]
or, in the Lagrange notation,
f_{1,.,.,n}'(x) = f_1' left( f_{2,.,.,n}(x) right) ; f_2' left( f_{3,.,.,n}(x) right) cdots f_{n-1}' left(f_{n,.,.,n}(x)right) ; f_n'(x) = prod_{k=1}^{n} f_k' left(f_{(k+1,.,.,n)}(x) right)

Quotient rule

{{See also|Quotient rule}}The chain rule can be used to derive some well-known differentiation rules. For example, the quotient rule is a consequence of the chain rule and the product rule. To see this, write the function {{math|f(x)/g(x)}} as the product {{math|f(x) Â· 1/g(x)}}. First apply the product rule:
begin{align}
frac{d}{dx}left(frac{f(x)}{g(x)}right)&= frac{d}{dx}left(f(x)cdotfrac{1}{g(x)}right) &= f'(x)cdotfrac{1}{g(x)} + f(x)cdotfrac{d}{dx}left(frac{1}{g(x)}right).end{align}To compute the derivative of {{math|1/g(x)}}, notice that it is the composite of {{Mvar|g}} with the reciprocal function, that is, the function that sends {{Mvar|x}} to {{math|1/x}}. The derivative of the reciprocal function is -1/x^2!. By applying the chain rule, the last expression becomes:
f'(x)cdotfrac{1}{g(x)} + f(x)cdotleft(-frac{1}{g(x)^2}cdot g'(x)right)

frac{f'(x) g(x) - f(x) g'(x)}{g(x)^2},

which is the usual formula for the quotient rule.

Derivatives of inverse functions

Suppose that {{math|1=y = g(x)}} has an inverse function. Call its inverse function {{Mvar|f}} so that we have {{math|1=x = f(y)}}. There is a formula for the derivative of {{Mvar|f}} in terms of the derivative of {{Mvar|g}}. To see this, note that {{Mvar|f}} and {{Mvar|g}} satisfy the formula
f(g(x)) = x.
And because the functions f(g(x))! and {{Mvar|x}} are equal, their derivatives must be equal. The derivative of {{Mvar|x}} is the constant function with value 1, and the derivative of f(g(x))! is determined by the chain rule. Therefore, we have that:
f'(g(x)) g'(x) = 1.
To express {{Mvar|f'}} as a function of an independent variable {{Mvar|y}}, we substitute f(y)! for {{Mvar|x}} wherever it appears. Then we can solve for {{Mvar|f'}}.
begin{align}
f'(g(f(y))) g'(f(y)) &= 1 [5pt]f'(y) g'(f(y)) &= 1 [5pt]f'(y) = frac{1}{g'(f(y))}.end{align}For example, consider the function {{math|1=g(x) = e'x}}. It has an inverse {{math|1=f(y) = ln y}}. Because {{math|1=gâ€²(x) = e'x}}, the above formula says that
frac{d}{dy}ln y = frac{1}{e^{ln y}} = frac{1}{y}.
This formula is true whenever {{Mvar|g}} is differentiable and its inverse {{Mvar|f}} is also differentiable. This formula can fail when one of these conditions is not true. For example, consider {{math|1=g(x) = x3}}. Its inverse is {{math|1=f(y) = y1/3}}, which is not differentiable at zero. If we attempt to use the above formula to compute the derivative of {{Mvar|f}} at zero, then we must evaluate {{math|1=1/gâ€²(f(0))}}. Since {{math|1=f(0) = 0}} and {{math|1=gâ€²(0) = 0}}, we must evaluate 1/0, which is undefined. Therefore, the formula fails in this case. This is not surprising because {{Mvar|f}} is not differentiable at zero.

Higher derivatives

FaÃ  di Bruno's formula generalizes the chain rule to higher derivatives. Assuming that {{math|y {{=}} f(u)}} and {{math|u {{=}} g(x)}}, then the first few derivatives are:
begin{align}frac{dy}{dx} & = frac{dy}{du} frac{du}{dx} [4pt]frac{d^2 y }{d x^2} & = frac{d^2 y}{d u^2} left(frac{du}{dx}right)^2
+ frac{dy}{du} frac{d^2 u}{dx^2} [4pt]
frac{d^3 y }{d x^3} & = frac{d^3 y}{d u^3} left(frac{du}{dx}right)^3
+ 3 , frac{d^2 y}{d u^2} frac{du}{dx} frac{d^2 u}{d x^2}
+ frac{dy}{du} frac{d^3 u}{d x^3} [4pt]
frac{d^4 y}{d x^4} & =frac{d^4 y}{du^4} left(frac{du}{dx}right)^4
+ 6 , frac{d^3 y}{d u^3} left(frac{du}{dx}right)^2 frac{d^2 u}{d x^2}
+ frac{d^2 y}{d u^2} left( 4 , frac{du}{dx} frac{d^3 u}{dx^3}
+ 3 , left(frac{d^2 u}{dx^2}right)^2right)
+ frac{dy}{du} frac{d^4 u}{dx^4}.
end{align}

Proofs

First proof

One proof of the chain rule begins with the definition of the derivative:
(f circ g)'(a) = lim_{x to a} frac{f(g(x)) - f(g(a))}{x - a}.
Assume for the moment that g(x)! does not equal g(a)! for any {{Mvar|x}} near {{Mvar|a}}. Then the previous expression is equal to the product of two factors:
lim_{x to a} frac{f(g(x)) - f(g(a))}{g(x) - g(a)} cdot frac{g(x) - g(a)}{x - a}.
If g oscillates near {{Mvar|a}}, then it might happen that no matter how close one gets to {{Mvar|a}}, there is always an even closer {{Mvar|x}} such that g(x)! equals g(a)!. For example, this happens for {{math|1=g(x) = x2sin(1 / x)}} near the point {{math|1=a = 0}}. Whenever this happens, the above expression is undefined because it involves division by zero. To work around this, introduce a function Q! as follows:
Q(y) = begin{cases}
frac{f(y) - f(g(a))}{y - g(a)}, & y neq g(a), f'(g(a)), & y = g(a).end{cases}We will show that the difference quotient for {{math|f âˆ˜ g}} is always equal to:
Q(g(x)) cdot frac{g(x) - g(a)}{x - a}.
Whenever {{math|g(x)}} is not equal to {{math|g(a)}}, this is clear because the factors of {{math|g(x) âˆ’ g(a)}} cancel. When {{math|g(x)}} equals {{math|g(a)}}, then the difference quotient for {{math|f âˆ˜ g}} is zero because {{math|f(g(x))}} equals {{math|f(g(a))}}, and the above product is zero because it equals {{math|fâ€²(g(a))}} times zero. So the above product is always equal to the difference quotient, and to show that the derivative of {{math|f âˆ˜ g}} at {{math|a}} exists and to determine its value, we need only show that the limit as {{math|x}} goes to {{math|a}} of the above product exists and determine its value.To do this, recall that the limit of a product exists if the limits of its factors exist. When this happens, the limit of the product of these two factors will equal the product of the limits of the factors. The two factors are {{math|Q(g(x))}} and {{math|(g(x) âˆ’ g(a)) / (x âˆ’ a)}}. The latter is the difference quotient for {{Mvar|g}} at {{Mvar|a}}, and because {{Mvar|g}} is differentiable at {{Mvar|a}} by assumption, its limit as {{Mvar|x}} tends to {{Mvar|a}} exists and equals {{math|gâ€²(a)}}.As for {{math|Q(g(x))}}, notice that {{math|Q}} is defined wherever {{Mvar|f}} is. Furthermore, {{Mvar|f}} is differentiable at {{math|g(a)}} by assumption, so {{math|Q}} is continuous at {{math|g(a)}}, by definition of the derivative. The function {{Mvar|g}} is continuous at {{Mvar|a}} because it is differentiable at {{Mvar|a}}, and therefore {{math|Q âˆ˜ g}} is continuous at {{Mvar|a}}. So its limit as {{Mvar|x}} goes to {{Mvar|a}} exists and equals {{math|Q(g(a))}}, which is {{math|fâ€²(g(a))}}.This shows that the limits of both factors exist and that they equal {{math|fâ€²(g(a))}} and {{math|gâ€²(a)}}, respectively. Therefore, the derivative of {{math|f âˆ˜ g}} at a exists and equals {{math|fâ€²(g(a))}}{{math|gâ€²(a)}}.

Second proof

Another way of proving the chain rule is to measure the error in the linear approximation determined by the derivative. This proof has the advantage that it generalizes to several variables. It relies on the following equivalent definition of differentiability at a point: A function g is differentiable at a if there exists a real number gâ€²(a) and a function Îµ(h) that tends to zero as h tends to zero, and furthermore
g(a + h) - g(a) = g'(a) h + varepsilon(h) h.
Here the left-hand side represents the true difference between the value of g at a and at {{math|a + h}}, whereas the right-hand side represents the approximation determined by the derivative plus an error term.In the situation of the chain rule, such a function Îµ exists because g is assumed to be differentiable at a. Again by assumption, a similar function also exists for f at g(a). Calling this function Î·, we have
f(g(a) + k) - f(g(a)) = f'(g(a)) k + eta(k) k.
The above definition imposes no constraints on Î·(0), even though it is assumed that Î·(k) tends to zero as k tends to zero. If we set {{math|1=Î·(0) = 0}}, then Î· is continuous at 0.Proving the theorem requires studying the difference {{math|f(g(a + h)) âˆ’ f(g(a))}} as h tends to zero. The first step is to substitute for {{math|g(a + h)}} using the definition of differentiability of g at a:
f(g(a + h)) - f(g(a)) = f(g(a) + g'(a) h + varepsilon(h) h) - f(g(a)).
The next step is to use the definition of differentiability of f at g(a). This requires a term of the form {{math|f(g(a) + k)}} for some k. In the above equation, the correct k varies with h. Set {{math|1=k'h = gâ€²(a) h + Îµ(h) h}} and the right hand side becomes {{math|f(g(a) + k'h) âˆ’ f(g(a))}}. Applying the definition of the derivative gives:
f(g(a) + k_h) - f(g(a)) = f'(g(a)) k_h + eta(k_h) k_h.
To study the behavior of this expression as h tends to zero, expand kh. After regrouping the terms, the right-hand side becomes:
f'(g(a)) g'(a)h + [f'(g(a)) varepsilon(h) + eta(k_h) g'(a) + eta(k_h) varepsilon(h)] h.
Because Îµ(h) and Î·(kh) tend to zero as h tends to zero, the first two bracketed terms tend to zero as h tends to zero. Applying the same theorem on products of limits as in the first proof, the third bracketed term also tends zero. Because the above expression is equal to the difference {{math|f(g(a + h)) âˆ’ f(g(a))}}, by the definition of the derivative {{math|f âˆ˜ g}} is differentiable at a and its derivative is {{math|fâ€²(g(a)) gâ€²(a).}}The role of Q in the first proof is played by Î· in this proof. They are related by the equation:
Q(y) = f'(g(a)) + eta(y - g(a)).
The need to define Q at g(a) is analogous to the need to define Î· at zero.

Third proof

Constantin CarathÃ©odory's alternative definition of the differentiability of a function can be used to give an elegant proof of the chain rule.JOURNAL, Stephen, Kuhn, The Derivative Ã¡ la CarathÃ©odory, The American Mathematical Monthly, 1991, 98, 1, 40â€“44, 2324035, Under this definition, a function {{mvar|f}} is differentiable at a point {{mvar|a}} if and only if there is a function {{mvar|q}}, continuous at {{mvar|a}} and such that {{math|1=f(x) âˆ’ f(a) = q(x)(x âˆ’ a)}}. There is at most one such function, and if {{mvar|f}} is differentiable at {{mvar|a}} then {{math|1=f â€²(a) = q(a)}}.Given the assumptions of the chain rule and the fact that differentiable functions and compositions of continuous functions are continuous, we have that there exist functions {{mvar|q}}, continuous at {{math|g(a)}} and {{mvar|r}}, continuous at {{mvar|a}} and such that,
f(g(x))-f(g(a))=q(g(x))(g(x)-g(a))
and
g(x)-g(a)=r(x)(x-a).
Therefore,
f(g(x))-f(g(a))=q(g(x))r(x)(x-a),
but the function given by {{math|1=h(x) = q(g(x))r(x)}} is continuous at {{mvar|a}}, and we get, for this {{mvar|a}}
(f(g(a)))'=q(g(a))r(a)=f'(g(a))g'(a).
A similar approach works for continuously differentiable (vector-)functions of many variables. This method of factoring also allows a unified approach to stronger forms of differentiability, when the derivative is required to be Lipschitz continuous, HÃ¶lder continuous, etc. Differentiation itself can be viewed as the polynomial remainder theorem (the little BÃ©zout theorem, or factor theorem), generalized to an appropriate class of functions. {{citation needed|date=February 2016}}

Proof via infinitesimals

{{See also|Non-standard calculus}}If y=f(x) and x=g(t) then choosing infinitesimal Delta tnot=0 we compute the corresponding Delta x=g(t+Delta t)-g(t) and then the corresponding Delta y=f(x+Delta x)-f(x), so that
frac{Delta y}{Delta t}=frac{Delta y}{Delta x} frac{Delta x}{Delta t}
and applying the standard part we obtain
frac{d y}{d t}=frac{d y}{d x} frac{dx}{dt}
which is the chain rule.

Multivariable case

The generalization of the chain rule to multi-variable functions is rather technical. However, it is simpler to write in the case of functions of the form
f(g_1(x), dots, g_k(x)).
As this case occurs often in the study of functions of a single variable, it is worth describing it separately.

Case of {{math|f(g{{sub|1}}(x), ... , g{{sub|k}}(x))}}

For writing the chain rule for a function of the form
{{math|f(g{{sub|1}}(x), ... , g{{sub|k}}(x))}},
one needs the partial derivatives of {{mvar|f}} with respect to its {{mvar|k}} arguments. The usual notations for partial derivatives involve names for the arguments of the function. As these arguments are not named in the above formula, it is simpler and clearer to denote by
D_i f
the derivative of {{mvar|f}} with respect to its {{mvar|i}}th argument, and by
D_i f(z)
the value of this derivative at {{mvar|z}}.With this notation, the chain rule is
frac{d}{dx}f(g_1(x), dots, g_k (x))=sum_{i=1}^k left(frac{d}{dx}{g_i}(x)right) D_i f(g_1(x), dots, g_k (x)).

Example: arithmetic operations

If the function {{mvar|f}} is addition, that is, if
f(u,v)=u+v,
then D_1f=D_2f=1 (the constant function 1). Thus, the chain rule gives
frac{d}{dx}(g(x)+h(x))=frac{d}{dx}g(x) +frac{d}{dx}h(x).
For multiplication
f(u,v)=uv,
the partials are D_1f=v and D_2f=u. Thus,
frac{d}{dx}(g(x)h(x))=h(x)frac{d}{dx}g(x) +g(x)frac{d}{dx}h(x).
The case of exponentiation
f(u,v)=u^v
is slightly more complicated, as
D_1f=vu^{v-1},
and, as u^v=e^{vln u},
D_2f=u^vln u.
It follows that
frac{d}{dx}(g(x)^{h(x)})=h(x)g(x)^{h(x)-1}frac{d}{dx}g(x) +g(x)^{h(x)}ln g(x)frac{d}{dx}h(x).

General rule

The simplest way for writing the chain rule in the general case is to use the total derivative, which is a linear transformation that captures all directional derivatives in a single formula. Consider differentiable functions {{math|f : Rm â†’ Rk}} and {{math|g : Rn â†’ Rm}}, and a point {{math|a}} in {{math|Rn}}. Let {{math|Da g}} denote the total derivative of {{math|g}} at {{math|a}} and {{math|D'g(a) f}} denote the total derivative of {{math|f}} at {{math|g(a)}}. These two derivatives are linear transformations {{math|Rn â†’ Rm}} and {{math|Rm â†’ Rk}}, respectively, so they can be composed. The chain rule for total derivatives is that their composite is the total derivative of {{math|f âˆ˜ g}} at {{math|a'''}}:
D_{mathbf{a}}(f circ g) = D_{g(mathbf{a})}f circ D_{mathbf{a}}g,
or for short,
D(f circ g) = Df circ Dg.
The higher-dimensional chain rule can be proved using a technique similar to the second proof given above.Because the total derivative is a linear transformation, the functions appearing in the formula can be rewritten as matrices. The matrix corresponding to a total derivative is called a Jacobian matrix, and the composite of two derivatives corresponds to the product of their Jacobian matrices. From this perspective the chain rule therefore says:
J_{f circ g}(mathbf{a}) = J_{f}(g(mathbf{a})) J_{g}(mathbf{a}),
or for short,
J_{f circ g} = (J_f circ g)J_g.
That is, the Jacobian of a composite function is the product of the Jacobians of the composed functions (evaluated at the appropriate points).The higher-dimensional chain rule is a generalization of the one-dimensional chain rule. If k, m, and n are 1, so that {{math|f : R â†’ R}} and {{math|g : R â†’ R}}, then the Jacobian matrices of f and g are {{math|1 Ã— 1}}. Specifically, they are:
begin{align}
J_g(a) &= begin{pmatrix} g'(a) end{pmatrix}, J_{f}(g(a)) &= begin{pmatrix} f'(g(a)) end{pmatrix}.end{align}The Jacobian of f âˆ˜ g is the product of these {{math|1 Ã— 1}} matrices, so it is {{math|fâ€²(g(a))â‹…gâ€²(a)}}, as expected from the one-dimensional chain rule. In the language of linear transformations, D'a(g) is the function which scales a vector by a factor of gâ€²(a) and D'g(a)(f) is the function which scales a vector by a factor of fâ€²(g(a)). The chain rule says that the composite of these two linear transformations is the linear transformation {{math|Da(f âˆ˜ g)}}, and therefore it is the function that scales a vector by fâ€²(g(a))â‹…gâ€²(a).Another way of writing the chain rule is used when f and g are expressed in terms of their components as {{math|1=y = f(u) = (f1(u), â€¦, f'k(u))}} and {{math|1=u = g(x) = (g1(x), â€¦, g'm(x))}}. In this case, the above rule for Jacobian matrices is usually written as:
frac{partial(y_1, ldots, y_k)}{partial(x_1, ldots, x_n)} = frac{partial(y_1, ldots, y_k)}{partial(u_1, ldots, u_m)} frac{partial(u_1, ldots, u_m)}{partial(x_1, ldots, x_n)}.
The chain rule for total derivatives implies a chain rule for partial derivatives. Recall that when the total derivative exists, the partial derivative in the ith coordinate direction is found by multiplying the Jacobian matrix by the ith basis vector. By doing this to the formula above, we find:
frac{partial(y_1, ldots, y_k)}{partial x_i} = frac{partial(y_1, ldots, y_k)}{partial(u_1, ldots, u_m)} frac{partial(u_1, ldots, u_m)}{partial x_i}.
Since the entries of the Jacobian matrix are partial derivatives, we may simplify the above formula to get:
frac{partial(y_1, ldots, y_k)}{partial x_i} = sum_{ell = 1}^m frac{partial(y_1, ldots, y_k)}{partial u_ell} frac{partial u_ell}{partial x_i}.
More conceptually, this rule expresses the fact that a change in the xi direction may change all of g1 through gm, and any of these changes may affect f.In the special case where {{math|1=k = 1}}, so that f is a real-valued function, then this formula simplifies even further:
frac{partial y}{partial x_i} = sum_{ell = 1}^m frac{partial y}{partial u_ell} frac{partial u_ell}{partial x_i}.
This can be rewritten as a dot product. Recalling that {{math|u {{=}} (g1, â€¦, g'm)}}, the partial derivative {{math|âˆ‚u / âˆ‚x'i}} is also a vector, and the chain rule says that:
frac{partial y}{partial x_i} = nabla y cdot frac{partial mathbf{u}}{partial x_i}.

Example

Given {{math|1=u(x, y) = x2 + 2y}} where {{math|1=x(r, t) = r sin(t)}} and {{math|1=y(r,t) = sin2(t)}}, determine the value of {{math|âˆ‚u / âˆ‚r}} and {{math|âˆ‚u / âˆ‚t}} using the chain rule.
frac{partial u}{partial r}=frac{partial u}{partial x} frac{partial x}{partial r}+frac{partial u}{partial y} frac{partial y}{partial r} = (2x)(sin(t)) + (2)(0) = 2r sin^2(t),
and
begin{align}frac{partial u}{partial t}
&= frac{partial u}{partial x} frac{partial x}{partial t}+frac{partial u}{partial y} frac{partial y}{partial t} &= (2x)(rcos(t)) + (2)(2sin(t)cos(t)) &= (2rsin(t))(rcos(t)) + 4sin(t)cos(t) &= 2(r^2 + 2) sin(t)cos(t) &= (r^2 + 2) sin(2t).end{align}

Higher derivatives of multivariable functions

FaÃ  di Bruno's formula for higher-order derivatives of single-variable functions generalizes to the multivariable case. If {{math|y {{=}} f(u)}} is a function of {{math|1=u = g(x)}} as above, then the second derivative of {{math|f âˆ˜ g}} is:
frac{partial^2 y}{partial x_i partial x_j} = sum_k left(frac{partial y}{partial u_k}frac{partial^2 u_k}{partial x_i partial x_j}right) + sum_{k, ell} left(frac{partial^2 y}{partial u_k partial u_ell}frac{partial u_k}{partial x_i}frac{partial u_ell}{partial x_j}right).

Further generalizations

All extensions of calculus have a chain rule. In most of these, the formula remains the same, though the meaning of that formula may be vastly different.One generalization is to manifolds. In this situation, the chain rule represents the fact that the derivative of {{math|f âˆ˜ g}} is the composite of the derivative of f and the derivative of g. This theorem is an immediate consequence of the higher dimensional chain rule given above, and it has exactly the same formula.The chain rule is also valid for FrÃ©chet derivatives in Banach spaces. The same formula holds as before. This case and the previous one admit a simultaneous generalization to Banach manifolds.In abstract algebra, the derivative is interpreted as a morphism of modules of KÃ¤hler differentials. A ring homomorphism of commutative rings {{math|f : R â†’ S}} determines a morphism of KÃ¤hler differentials {{math|Df : Î©R â†’ Î©S}} which sends an element dr to d(f(r)), the exterior differential of f(r). The formula {{math|1=D(f âˆ˜ g) = Df âˆ˜ Dg}} holds in this context as well.The common feature of these examples is that they are expressions of the idea that the derivative is part of a functor. A functor is an operation on spaces and functions between them. It associates to each space a new space and to each function between two spaces a new function between the corresponding new spaces. In each of the above cases, the functor sends each space to its tangent bundle and it sends each function to its derivative. For example, in the manifold case, the derivative sends a C'r-manifold to a C'râˆ’1-manifold (its tangent bundle) and a Cr-function to its total derivative. There is one requirement for this to be a functor, namely that the derivative of a composite must be the composite of the derivatives. This is exactly the formula {{math|1=D(f âˆ˜ g) = Df âˆ˜ Dg}}.There are also chain rules in stochastic calculus. One of these, ItÅ's lemma, expresses the composite of an ItÅ process (or more generally a semimartingale) dX't with a twice-differentiable function f. In ItÅ's lemma, the derivative of the composite function depends not only on dX't and the derivative of f but also on the second derivative of f. The dependence on the second derivative is a consequence of the non-zero quadratic variation of the stochastic process, which broadly speaking means that the process can move up and down in a very rough way. This variant of the chain rule is not an example of a functor because the two functions being composed are of different types.

References

{{Reflist}}

• {{springer|title=Leibniz rule|id=Leibniz_rule}}
• {{MathWorld | urlname=ChainRule | title=Chain Rule}}

- content above as imported from Wikipedia
- "chain rule" does not exist on GetWiki (yet)
- time: 4:52pm EDT - Wed, Oct 23 2019
[ this remote article is provided by Wikipedia ]
LATEST EDITS [ see all ]
GETWIKI 09 JUL 2019
Eastern Philosophy
History of Philosophy
GETWIKI 09 MAY 2016
GETWIKI 18 OCT 2015
M.R.M. Parrott
Biographies
GETWIKI 20 AUG 2014
GETWIKI 19 AUG 2014