Table of Contents
- 16.1 INTRODUCTION
- 16.2 LECTURE
- 16.3 EXAMPLES
- 16.4 ILLUSTRATIONS
- 16.4.1 Power from Potential: A Chain Rule Connection
- 16.4.2 Chaos via Derivatives: Lyapunov Exponents and Entropy in Iterated Maps
- 16.4.3 Hamilton’s Equations and Energy Conservation
- 16.4.4 The Chain Rule Unlocks Inverses
- 16.4.5 Implicit Differentiation: Finding the Mystery Slope
- 16.4.6 Guaranteed Solutions: The Implicit Function Theorem
16.1 INTRODUCTION
16.1.1 Building Complex Functions from Basic Ones
In calculus, we can build from basic functions more general functions. One possibility is to add functions like . An other possibility is to multiply functions like . A third possibility is to combine functions like . The composition of functions is non-commutative: . Indeed, we have which is completely different from .

16.1.2 The Chain Rule: From Single Variable to Higher Dimensions
How can we express the rate of change of a composite function in terms of the basic functions it is built of? For the sum of two functions, we have the addition rule (f+g)^{\prime}(x)=f^{\prime}(x)+g^{\prime}(x), for multiplication we have the product rule (f g)^{\prime}(x)=f^{\prime}(x) g(x)+f(x) g(x). We usually just write (f+g)^{\prime}=f^{\prime}+g^{\prime} or (f g)^{\prime}=f^{\prime} g+f g^{\prime} and do not always write the argument. As you know from single variable calculus, the derivative of the composite function is given by chain rule. This is (f \circ g)^{\prime}=f^{\prime}(g) g^{\prime}. Written out in more details with argument, we can write \frac{d}{d x} f(g(x))=\frac{d}{d x} f^{\prime}(g(x)) g^{\prime}(x). We generalize this here to higher dimensions. Instead of we just write . This is the Jacobean matrix we know. Now, the same rule holds as before and this is called the chain rule in higher dimensions. On the right hand side, we have the matrix product of two matrices.
16.1.3 Dimensions and the Chain Rule
Let us see why this makes sense in terms of dimensions: and , then and and which is the same type of matrix than because maps so that also . The name chain rule comes because it deals with functions that are chained together.
16.2 LECTURE
16.2.1 The Multivariable Chain Rule
Given a differentiable function , its derivative at is the Jacobian matrix . If is another function with , we can combine them and form . The matrices and combine to the matrix product at a point. This matrix is in . The multi-variable chain rule is:
Theorem 1. .
16.2.2 Scalar Functions and the Gradient
For , the single variable calculus case, we have d f(x)=f^{\prime}(x) and (f \circ r)^{\prime}(x)=f^{\prime}(r(x)) r^{\prime}(x). In general, is now a matrix rather than a number. By checking a single matrix entry, we reduce to the case . In that case, is a scalar function. While is a row vector, we define the column vector If is a curve, we write r^{\prime}(t)= [x_{1}^{\prime}(t), \cdots, x_{p}^{\prime}(t)]^{T} instead of . The symbol is addressed also as "nabla".1 The special case is:
Theorem 2. \frac{d}{d t} f(r(t))=\nabla f(r(t)) \cdot r^{\prime}(t).
Proof. is the limit of \begin{aligned} & \big[f\big(x_{1}(t+h), x_{2}(t+h), \ldots, x_{p}(t+h)\big)-f\big(x_{1}(t), x_{2}(t), \ldots, x_{p}(t)\big)\big] / h \\ = & \big[f\big(x_{1}(t+h), x_{2}(t+h), \ldots, x_{p}(t+h)\big)-f\big(x_{1}(t), x_{2}(t+h), \ldots, x_{p}(t+h)\big)\big] / h \\ + & \big[f\big(x_{1}(t), x_{2}(t+h), \ldots, x_{p}(t+h)\big)-f\big(x_{1}(t), x_{2}(t), \ldots, x_{p}(t+h)\big)\big] / h+\cdots \\ + & \big[f\big(x_{1}(t), x_{2}(t), \ldots, x_{p}(t+h)\big)-f\big(x_{1}(t), x_{2}(t), \ldots, x_{p}(t)\big)\big] / h \end{aligned} which is (D chain rule) in the limit the sum f_{x_{1}}(x) x_{1}^{\prime}(t)+\cdots+f_{x_{p}}(x) x_{p}^{\prime}(t).
Proof of the general case: Let . The entry of the Jacobian matrix is . The case of the entry reduces with and to the case when is a curve and is a scalar function. This is the case we have proven already. ◻
16.3 EXAMPLES
Example 1. Assume a ladybug walks on a circle and is the temperature at the position , then is the rate of change of the temperature. We can write Now, . The gradient of and the velocity are \nabla f(x, y)=\left[\begin{array}{r}2 x \\ -2 y\end{array}\right], \quad r^{\prime}(t)=\left[\begin{array}{r}-\sin (t) \\ \cos (t)\end{array}\right]. Now \begin{aligned} \nabla f(r(t)) \cdot r^{\prime}(t)&=\left[\begin{array}{r} 2 \cos (t) \\ -2 \sin (t) \end{array}\right] \cdot\left[\begin{array}{r} -\sin (t) \\ \cos (t) \end{array}\right]\\ &=-4 \cos (t) \sin (t)\\ &=-2 \sin (2 t). \end{aligned}


16.4 ILLUSTRATIONS
16.4.1 Power from Potential: A Chain Rule Connection
The case is extremely important. The chain rule \nabla f(r(t)) \cdot r^{\prime}(t) tells that the rate of change of the potential energy at the position is the dot product of the force at the point and the velocity with which we move. The right hand side is power force times velocity. We will use this later in the fundamental theorem of line integrals.
16.4.2 Chaos via Derivatives: Lyapunov Exponents and Entropy in Iterated Maps
If , then is again a map from to . We can also iterate a map like The derivative is by the chain rule the product of Jacobian matrices. The number is called the Lyapunov exponent of the map at the point . It measures the amount of chaos, the "sensitive dependence on initial conditions" of . These numbers are hard to estimate mathematically. Already for simple examples like the Chirikov map one can measure positive entropy . A conjecture of Sinai tells that that the entropy of the map is positive for large . Measurements show that this entropy satisfies . The conjecture is still open.2
16.4.3 Hamilton’s Equations and Energy Conservation
If is a function called the Hamiltonian and x^{\prime}(t)=H_{y}(x, y), y^{\prime}(t)= , then . This can be interpreted as energy conservation. We see that a Hamiltonian differential equation always preserves the energy. For the pendulum, , we have x^{\prime}=y, y^{\prime}=-\sin (x) or x^{\prime \prime}=-\sin (x).


16.4.4 The Chain Rule Unlocks Inverses
The chain rule is useful to get derivatives of inverse functions. Like \begin{aligned} 1=\frac{d}{d x} x&=\frac{d}{d x} \sin (\arcsin (x))\\ &=\cos (\arcsin (x)) \arcsin ^{\prime}(x) \end{aligned} which then gives \begin{aligned} \arcsin ^{\prime}(x)&=1 / \sqrt{1-\sin ^{2}(\arcsin (x))}\\ &=1 / \sqrt{1-x^{2}}. \end{aligned}
16.4.5 Implicit Differentiation: Finding the Mystery Slope
Assume is a curve. We can not solve for . Still, we can assume . Differentiation using the chain rule gives f_{x}(x, y(x))+f_{y}(x, y(x)) y^{\prime}(x)=0. Therefore y^{\prime}(x)=-\frac{f_{x}(x, y(x))}{f_{y}(x, y(x))} In the above example, the point is on the curve. Now and . So, g^{\prime}(1)=-7 / 6. This is called implicit differentiation. We could compute with it the derivative of a function which was not known.
16.4.6 Guaranteed Solutions: The Implicit Function Theorem
The implicit function theorem assures that a differentiable implicit function exists near a root of a differentiable function .
Theorem 3. If , there exists and a function with .
Proof. Let be so small that for fixed , the function has the property and and h^{\prime}(y) \neq 0 in . The intermediate value theorem for now assures a unique root of near . The chain rule formula above then assures that for , the differential quotient written down for has a limit . ◻
P.S. We can get the root of by applying Newton steps T(y)=y-h(y) / h^{\prime}(y). Taylor (seen in the next class) shows the error is squared in every step. The Newton step works also in arbitrary dimensions. One can prove the implicit function theorem by just establishing that Id is a contraction and then use the Banach fixed point theorem to get a fixed point of which is a root of .


Units 16 and 17 are together taught on Wednesday. Homework is all in unit 17.
- Etymology tells that the symbol is inspired by a Egyptian or Phoenician harp.↩︎
- To generate orbits, see http://www.math.harvard.edu/k̃nill/technology/chirikov/.↩︎