The total derivative of a function of several variables is the linear map that describes its first-order change when all input variables may change together. It generalizes the ordinary derivative of a function of one variable. The term also denotes the derivative of a composite quantity along a specified path or dependency, accounting for both explicit and indirect dependence on the varying parameter. These meanings are connected by the chain rule, but they describe different mathematical objects: a linear map at a point and a rate of change along a path.
Definition as a linear approximation
Let be an open subset of Euclidean space , and let
The function is totally differentiable at if there is a linear map
such that
Here denotes a norm; in finite-dimensional spaces, the choice among equivalent norms does not affect differentiability.
Equivalently,
The remainder is therefore negligible compared with the size of the input displacement. The expression
is the first-order affine approximation to near .
The derivative , if it exists, is unique. Other common notations include , , and . In finite-dimensional analysis this definition is also called Fréchet differentiability; its extension to normed spaces is the Fréchet derivative.
The requirement concerns arbitrary sufficiently small displacements , not merely movement along the coordinate axes. This is the main distinction between total differentiability and the existence of partial derivatives.
Jacobian matrix, gradient, and differential
If is totally differentiable, its derivative is represented in standard coordinates by the Jacobian matrix:
Thus the first-order output change is
For a scalar-valued function ,
where is the gradient and the final expression uses the Euclidean inner product. The gradient is a vector, while the derivative is a linear functional; the inner product provides the identification between them.
The same relation is often written as the total differential:
Precisely, at , each is the coordinate linear functional , and is their linear combination. Applied to a displacement , this is an exact identity between linear maps. By contrast,
is generally only an approximation to a finite change.
For example, if
then
Consequently, for small increments ,
Relation to partial and directional derivatives
A partial derivative measures variation in one coordinate while the remaining coordinates are held fixed. A directional derivative measures variation along a specified direction :
when the limit exists.
If is totally differentiable at , all these directional derivatives exist and
In particular, the directional derivative depends linearly on . Total differentiability also implies that is continuous at .
The converses do not hold in general. Even continuity together with the existence of every directional derivative is insufficient.
For example, define
Since , this function is continuous at the origin. For every nonzero direction ,
However, this expression is not linear in . The coordinate partial derivatives are
so a total derivative, if it existed, would have to send to . In the direction , the actual directional derivative is , not . Therefore the function is not totally differentiable at the origin.
A standard sufficient condition is that all first partial derivatives exist in a neighborhood of and are continuous at . Under this condition, is totally differentiable at . Continuity of the partial derivatives is sufficient, but not necessary.
Total derivative along a path
Suppose the inputs depend on a parameter :
If is differentiable at and is totally differentiable at , the chain rule gives
For scalar-valued ,
The partial derivatives are evaluated at the current point .
If a quantity also depends explicitly on , write it as . Then
The first term describes explicit dependence on ; the remaining terms describe dependence transmitted through the changing inputs.
For example, let
Then
Holding and fixed would instead give only
Thus a total derivative along a path cannot be determined without specifying which quantities vary and how they depend on the parameter.
Composition and higher derivatives
For differentiable maps
the derivative of their composition is
In coordinates, composition of these linear maps becomes matrix multiplication:
This is the general chain rule underlying the scalar path formulas.
When the derivative map is itself differentiable, the second total derivative is a bilinear map. For a twice continuously differentiable scalar-valued function, it is represented by the Hessian matrix, and the second-order Taylor expansion is
For a twice differentiable path and a sufficiently smooth scalar-valued ,
The second derivative along a path therefore depends both on the curvature of the function and on the acceleration of the path.
Applications
Sensitivity and computation
In sensitivity analysis, the total derivative describes how simultaneous input changes affect an output. Its Jacobian collects all first-order input–output sensitivities. This is useful in numerical models, parameter estimation, and optimization.
Automatic differentiation applies the chain rule systematically to computational operations. Forward-mode differentiation can compute a Jacobian–vector product , while reverse-mode differentiation can compute the gradient of a scalar output without explicitly constructing every intermediate Jacobian.
These are local, first-order descriptions. For finite perturbations, neglected nonlinear terms can be important.
Dynamics and transport
If a scalar field is evaluated along a trajectory satisfying
then
In continuum mechanics, this rate along a moving particle is called the material derivative. It distinguishes change observed while following the particle from change observed at a fixed spatial location.
In the calculus of variations, expressions such as
in the Euler–Lagrange equations are total derivatives along a trajectory. They account for all dependencies of the expression on time, position, and velocity.
Extensions beyond Euclidean spaces
For normed vector spaces and , Fréchet differentiability uses the same remainder condition, with the derivative required to be a bounded linear map . In infinite-dimensional spaces, boundedness must be stated explicitly; in finite dimensions, every linear map is bounded.
On a smooth manifold, the derivative of a smooth map at is a linear map between tangent spaces:
Coordinate charts represent this map by a Jacobian, but the map itself is independent of the chosen coordinates. For a real-valued smooth function, is a differential one-form, assigning a linear functional to each tangent space.