The chain rule calculates the derivative of a function composition by combining local rates. If the inner function is differentiable at and the outer function is differentiable at , then
The evaluation point matters: the outer derivative is evaluated at the inner output , not at . A small input change first scales by ; the resulting intermediate change then scales by . In terms of linear approximations, composing those two local descriptions multiplies their scale factors. [ref].
For example, applies a quadratic function and then the sine. With and , the chain rule gives
Here all angles are in radians. Near , increasing the input by changes by about , and the sine changes by about times that intermediate change. For , the linear approximation predicts an output increase of ; the exact increase is .
Figure 1.
The chain rule multiplies the local rates through two successive functions
. The inner quadratic function has derivative at , and the outer sine has derivative at its input . Their composite has derivative . Each panel shows the corresponding tangent line and the exact output of the input change from to . Tangents describe linear approximations, not exact finite changes. Details.
The same rule handles several nested stages. For , the derivative is under the corresponding differentiability assumptions. Writing each intermediate output prevents evaluating a derivative at the wrong stage. It also makes the chain rule useful for propagating sensitivities through a mathematical model, where one measured quantity influences another through several transformations.
For a quick proof idea, replace near by its linear approximation, then replace near by its linear approximation. The composite leading term is their product; differentiability ensures the remaining error is smaller than the original input change. This argument still applies when , so the informal cancellation should not be interpreted as division by a possibly zero finite change. The hypotheses are sufficient, but are not necessary for every composite to be differentiable, as the nondifferentiable inner function with a differentiable nondegenerate composite example shows.
A linear approximation replaces a differentiable function near a reference input by its value plus the first-order change supplied by its derivative. In one dimension, this is the tangent line . The chain rule combines such local approximations through function composition; it does not assert their equality to the original functions over a finite interval.
For differentiable maps and , the multivariable chain rule multiplies their Jacobian matrices:
The outer matrix multiplies the inner matrix, producing an matrix. This order records that the inner linear map acts first. Componentwise, the matrix multiplication sums the contributions of all intermediate coordinates. Existence of separate partial derivatives alone is not the required differentiability hypothesis.
For twice continuously differentiable coordinate functions and an outer scalar function , apply the multivariable chain rule twice along an original coordinate . The first three terms differentiate the outer function, while the last two differentiate the coordinate coefficients. They cannot be omitted for a nonlinear coordinate map. In matrix notation this is the Hessian matrix formula for . The extra terms vanish for an affine map.
If is differentiable at the point of a differentiable parametric curve, the multivariable chain rule gives
The gradient supplies the local spatial rates; the velocity vector supplies the direction and rate of movement. Their dot product is the change in the sampled scalar field per unit parameter. If the parameter is time, this is a rate per unit time; a directional derivative per unit distance instead uses a unit vector.
Take and the unit circle path . Along the path,
At , the gradient is , the velocity vector is , and their dot product is . The sampled value is and increases at rate one, even though one coordinate is decreasing. This is why a moving observation must combine every coordinate's contribution.
Figure 1.
The gradient and path velocity combine to give the rate of change along a curve
. Left: level curves of , the unit circle path, and arrows at for its velocity vector and a scaled gradient. Right: the sampled function and its tangent line, of slope one at that parameter. The displayed gradient arrow is scaled for readability, without changing its direction. Details.
For a level curve, is constant, so the derivative along a curve is zero and its velocity vector is orthogonal to the gradient. Along other paths, the same formula combines a field's geometry with the observer's motion. [ref].
For a continuously differentiable vector field and a twice continuously differentiable parametric curve , the product rule and multivariable chain rule give
where is the Jacobian matrix. Indeed, first differentiate the dot product to obtain , and then substitute .
The first term describes variation in the sampled vector field; the second records the changing velocity vector of the parametric curve. In three dimensions one may take for a sufficiently smooth vector field . The formula then involves first and second spatial partial derivatives of and the velocity and acceleration of the parametric curve. Omitting the second term would be valid only when its dot product vanishes, for example for a straight path with constant velocity.
At zero, is not differentiable and is differentiable, while has derivative one.
For twice differentiable functions,

Ancestors (7)

  1. Derivative
  2. Calculus
  3. Real analysis
  4. Analysis
  5. Area of mathematics
  6. Mathematics
  7. Home

Discussion (0) New discussion

There are no discussions about this article yet.

Articles by others on the same topic (2)

Chain rule by Donald Trump 29 Created 2023-01-15 Updated 2025-04-18
Chain rule by Ciro Santilli 40 Updated 2025-07-16
Here's an example of the chain rule. Suppose we want to calculate:
So we have:
and so:
Therefore the final result is:
Chain rule by Barack Obama 11 Created 2023-01-13 Updated 2025-04-18
The chain rule is a fundamental concept in calculus used to differentiate composite functions.