Chain rule Created 2026-09-24 Updated 2026-10-14
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 , thenThe 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]
https://openstax.org/books/calculus-volume-1/pages/3-6-the-chain-rule. OpenStax, Calculus Volume 1: statement and proof of the chain rule
.For example, applies a quadratic function and then the sine. With and , the chain rule givesHere 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 .
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.
Differentiable function Created 2026-09-24 Updated 2026-09-24
Differential calculus Created 2026-10-14 Updated 2026-10-25
Differential calculus studies derivatives: how a function changes near an input and how that local information describes its graph or evolution. Its tools include linear approximation, higher derivatives, and Taylor series; applications include finding velocity from position and studying optimization through critical points.
Directional derivative Created 2026-09-24 Updated 2026-10-14
The directional derivative tests a function along a chosen straight line, including lines that follow neither coordinate axis. For a fixed vector and a point in an open subset of , defineif the limit exists. With a unit vector , the parameter measures signed distance in the input Euclidean space, so the directional derivative is change per unit distance. For a general , it is change per unit parameter; the norm of also sets the rate of travel.[ref]
4.6 Directional Derivatives and the Gradient. Calculus Volume 3, §4.6, definition (4.36), unit-direction convention
For a differentiable real-valued function, the multivariable chain rule givesThus one gradient predicts the local response in every direction. This formula requires differentiability, rather than merely separate partial derivatives.[ref]
Return to at . Its gradient is . In the unit direction ,One can check this without invoking the gradient formula: substitution givesThe difference quotient is , whose limit is . This calculation separates the exact change along a finite path from its first-order rate at the starting point.
Changing the travel speed changes the parameter rate. Taking gives , because the input travels five distance units per parameter unit. For a differentiable function, for any real : negative reverses the orientation as well as scaling the rate. Normalizing before comparing different slopes avoids confusing direction with speed.
The Cauchy-Schwarz inequality bounds the rate in any unit direction by . Here the largest rate is , attained in the direction ; the chosen gives the slightly smaller rate . The perpendicular unit direction gives zero. That means no first-order height change, rather than no change at all: along this direction the example has .
This is useful for following a height or temperature scalar field, choosing a local search direction in mathematical optimization, and distinguishing a coordinate sensitivity from a response along an actual path. For a curved path, derivative along a curve uses its instantaneous tangent vector. Even existence of all directional derivatives does not guarantee one common linear approximation; directional derivatives do not imply differentiability gives a concrete counterexample.
Finite contamination bias of normal location 2026-10-14
Consider the population statistical model . The following are deterministic statistical functional calculations, not observed contamination experiments. Compare the actual location bias with the linear approximation . The mean bias is exactly . For positive exceeding the shifted median and , the generalized-inverse median bias is exactlyThis formula applies to both and throughout the plotted interval . If the contaminating atom lies inside the quantile jump containing probability , the generalized-inverse median instead equals that atom.
For the Huber location estimator with and , solve its actual population equation, rather than substituting the influence function:Writing and , integration of the normal distribution giveswhere is the probability density function of . Its derivative is , so the mixture score is strictly decreasing for . For , its limits at negative and positive infinity have opposite signs even with arbitrary distant point contamination. The displayed examples use the unique root, evaluated by the bisection method to numerical precision.
Exact population contamination biases and first-order influence predictions for normal location at contaminating points 1 and 8
. Details. At and , the exact mean, median, and Huber location estimator biases are , , and ; the influence function predictions are , , and . At , they become , , and , versus predictions , , and . The bounded alternatives control the effect of the distant atom, but their actual response curves bend away from the tangent.
The nearby atom gives a useful comparison: at , the Huber location estimator bias is , slightly below its linear approximation , whereas the median bias is still . The direction and size of approximation error depend on the contaminating location. Even accurate local influence calculations must specify , the scale, the cutoff, and the actual contamination fraction.
Influence function of the mean 2026-10-14
For the statistical functional , assuming , the contaminated mean is exactlyThus the influence function of the mean is , and its gross-error sensitivity is infinite on an unbounded sample space. The linear approximation is exact here: any fixed positive contamination fraction allows an arbitrarily large change by moving far enough. No finite second moment is needed for this derivative, although a finite variance is needed for the usual central limit theorem for the sample mean.
For comparison, the influence function of the sample median iswhen the median is unique and the probability density function is positive and continuous at . The sign function records which side of receives the contaminating mass. The influence function of a quantile supplies the short derivation. With the generalized-inverse quantile convention, contamination exactly at leaves the median at , giving derivative zero there. If is very small, this bounded influence function can still be large; if , the displayed formula is unavailable.
Lagrange multiplier as a marginal cost 2026-10-18
The chosen quadratic objective function above gives more than an optimal allocation: its Lagrange multiplier predicts how much the best cost changes when the required total changes. For this example,This is an explicit derivative of a constrained value function and an instance of the envelope theorem. At , one extra small unit of required output costs approximately units per unit of output, in the chosen normalized model. Increasing makes this equality-constrained minimization problem more expensive; it is not a gain from relaxing an upper resource limit. The sign and meaning depend on how the optimization constraint and optimization Lagrangian are written.[ref]
For an actual finite change , the cost difference is exactlyAt , the linear approximation predicts , while the exact increase is . The extra comes from the squared term in this polynomial, rather than numerical error. A Lagrange multiplier gives a local sensitivity analysis; treating it as a constant price over a large change generally loses the change in the optimum itself.
For a smooth optimizer of an equality problem , the short chain rule calculation explains the result: and imply . The differentiability and stationarity assumptions matter: an optimizer can fail to be unique or vary smoothly. The envelope theorem records when this interpretation is justified.
Linear approximation 2026-10-14
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.
Partial derivative Created 2026-09-24 Updated 2026-10-14
A partial derivative measures the local response of a function to one input while its other inputs stay fixed. For a function on an open subset of , its partial derivatives at are the limitswhen the respective limits exist. Each is an ordinary derivative of a one-variable slice: or . This is why the other variable is treated as a constant during partial differentiation.[ref]
4.3 Partial Derivatives. Calculus Volume 3, §4.3, definitions (4.12)–(4.13) and the one-variable slice interpretation
For an original example, take the polynomial functionHolding fixed gives , while holding fixed gives . At , the height is and the two partial derivatives are and . The values answer different experiments on the same mathematical model: change alone, or change alone.
The two exact slices through that point areDividing either height change by gives or ; taking the limit recovers the two slopes. At , the finite height changes are and , although their linear approximations are and . A derivative measures the limiting response, rather than an exact finite change.
Two coordinate slices through one point give different partial derivatives
. Original contour plot of , with the point and coordinate paths. The right panel compares the exact slice height changes and with their tangent line predictions and . Both slices pass through height . Details.For a function of variables, varies only its th coordinate: it is the same difference quotient along , the th standard basis vector. This gives a practical sensitivity analysis: one can compare how a mathematical model responds to changes in its individual inputs, provided the chosen system of units and the quantities held fixed are stated. Comparing the numerical sizes of two partial derivatives in different units does not by itself identify a physically preferable input.
Existence of the partial derivatives at one point is weaker than differentiability. The example under partial derivatives do not imply continuity shows how both coordinate tests can miss a bad diagonal approach. When the first partial derivatives are continuous in a neighborhood, they do give differentiability there, allowing the total differential to combine all small input changes.
Past exam of the mathematical methods II course of the University of Oxford 2016 5 Solution 2026-10-25
The first-order multivariable Taylor expansion isTaking gives the linear approximationTo assess its significant figures, the quadratic Taylor polynomial supplies the correction for , . Direct evaluation gives . Thus the estimate is correct to four significant figures: both round to , whereas to five significant figures the exact value is and the approximation is . The unexpectedly small quadratic correction results partly from cancellation of its mixed and unmixed terms.
Rüchardt experiment Created 2026-10-14 Updated 2026-10-25
The Rüchardt experiment infers heat capacity ratio from the period of an oscillation of a piston supported by trapped gas. Use a vertical precision cylinder with a close-fitting movable piston, known moving mass , face area , trapped equilibrium volume , and local atmospheric pressure . With negligible static friction, force balance gives the absolute gas pressure , where is gravitational acceleration. Displace the piston slightly and release it: compression raises pressure, and expansion lowers it, producing a restoring force. The oscillation is a mechanical probe of thermal response, without separately measuring two heat inputs. [ref]
https://groups.ist.utl.pt/wwwelab/wiki/index.php?title=Determination_of_the_Adiabatic_Constant. Instituto Superior Técnico e-lab, Determination of the Adiabatic Constant: piston apparatus and period model
Let be upward displacement from equilibrium, so . For constant heat capacity ratio and a reversible adiabatic process, the net upward force, including the ambient load and weight, isThe linear approximation requires . Applying Newton's second law gives simple harmonic motion withHere is the undamped angular frequency and the undamped oscillation period, rather than temperature. Record repeated cycles, measure independently, and include all connected trapped volume. An illustrative model with , , , , and gives and . These stipulated values are not measurements.
In Shearwood and Sloan's implementation, piston-mounted magnets induce an electromotive force in a stationary coil through Faraday's law of induction; an oscilloscope records the signal. They observed faster oscillations at smaller trapped volume values and stronger damping at small cylinder volume values. The signal tracks velocity locally, so its amplitude is not directly piston displacement. Calibration also identified inlet dead space beyond the graduated cylinder volume. [ref]
https://arxiv.org/html/2209.03323v1. Chris Shearwood and Peter A. Sloan, The Rüchardt experiment revisited, §§3–4: signal, dead volume and observations
Repeat at smaller initial amplitudes to test the linear approximation, and compare several values. Heat transfer weakens the restoring force toward the isothermal process limit, biasing the inference toward . Check leakage through resting-piston drift and before-and-after trapped volume readings. For viscous damping with envelope , the measured angular frequency obeys ; this correction does not remove thermal leakage. Internal equilibration must be faster than an oscillation period, with heat transfer and leakage slow over a run. Large amplitude or sticking friction require a richer model. [ref]
Total differential Created 2026-09-24 Updated 2026-10-14
The total differential is the linear map that combines the first-order responses to simultaneous changes in all coordinates. For a differentiable real-valued function at , it can be writtenHere is an input vector; denotes the coordinate linear functional . The coordinate formula and the Fréchet derivative describe the same linear map. The defining approximation isThe little o notation says the remaining approximation error becomes small relative to the input norm, across every direction of approach.[ref]
4.4 Tangent Planes and Linear Approximations. Calculus Volume 3, §4.4, differentiability definition (4.26) and total differential (4.27)
For at , . A simultaneous change gives the linear approximationThe exact algebra isConsequently the exact change is , and the approximation error is . If both input changes are halved, the linear prediction becomes and the error becomes : the first-order response halves, while the quadratic error falls by a factor of four. The right panel under directional derivative displays this comparison as the displacement is scaled.
For a quick check of differentiability, givesDividing by makes this bound tend to zero. The same calculation proves that the tangent plane to the graph of a function at is . It approximates the entire local surface, rather than only two coordinate slices.
The total differential is useful for estimating the combined effect of small input changes without reevaluating a complicated function. For example, if and , then . The exact remainder bound from the displayed polynomial is at most , so this example has throughout that input rectangle. These are deterministic bounds; a variance calculation additionally needs a joint probability distribution and its covariances. A first-order estimate is also local: large changes require control of the remainder, not merely knowledge of the partial derivatives at one point.





