In multivariable calculus, the directional derivative measures the rate at which a function changes in a particular direction at a given point.
The directional derivative of a multivariable differentiable scalar function along a given vector v at a given point x represents the instantaneous rate of change of the function in the direction v through x.
Many mathematical texts assume that the directional vector is normalized (a unit vector), meaning that its magnitude is equivalent to one. This is by convention and not required for proper calculation. In order to adjust a formula for the directional derivative to work for any vector, one must divide the expression by the magnitude of the vector. Normalized vectors are denoted with a circumflex (hat) symbol: .
The directional derivative of a scalar function f with respect to a vector v (denoted as when normalized) at a point (e.g., position) (x,f(x)) may be denoted by any of the following:
It therefore generalizes the notion of a partial derivative, in which the rate of change is taken along one of the curvilinear coordinate curves, all other coordinates being constant. The directional derivative is a special case of the Gateaux derivative.
The directional derivative of a scalar function
along a vector
is the function defined by the limit
This definition is valid in a broad range of contexts, for example, where the norm of a vector (and hence a unit vector) is defined.
If the function f is differentiable at x, then the directional derivative exists along any vector v at x, and one has
where the on the right denotes the gradient and is the dot product.
It can be derived by using the property that all directional derivatives at a point make up a single tangent plane which can be defined using partial derivatives. This can be used to find a formula for the gradient vector and an alternative formula for the directional derivative, the latter of which can be rewritten as shown above for convenience.
It also follows from defining a path and using the definition of the derivative as a limit which can be calculated along this path to get:
In a Euclidean space, some authors define the directional derivative to be with respect to an arbitrary nonzero vector v after normalization, thus being independent of its magnitude and depending only on its direction.
This definition gives the rate of increase of per unit of distance moved in the direction given by . In this case, one has
or in case f is differentiable at x,
In the context of a function on a Euclidean space, some texts restrict the vector v to being a unit vector for convention. Both of the above equations remain true, though redundant, when a vector is normalized.
Many of the familiar properties of the ordinary derivative hold for the directional derivative. These include, for any functions f and g defined in a neighborhood of, and differentiable at, p:
Let be a differentiable manifold and a point of . Suppose that is a function defined in a neighborhood of , and differentiable at . If is a tangent vector to at , then the directional derivative of along , denoted variously as (see Exterior derivative), (see Covariant derivative), (see Lie derivative), or (see ), can be defined as follows. Let be a differentiable curve with and . Then the directional derivative is defined by
This definition can be proven independent of the choice of , provided is selected in the prescribed manner so that and .
The Lie derivative of a vector field along a vector field is given by the difference of two directional derivatives (with vanishing torsion):
In particular, for a scalar field , the Lie derivative reduces to the standard directional derivative:
Directional derivatives are often used in introductory derivations of the Riemann curvature tensor. Consider a curved rectangle with an infinitesimal vector along one edge and along the other. We translate a covector along then and then subtract the translation along and then . Instead of building the directional derivative using partial derivatives, we use the covariant derivative. The translation operator for is thus
and for ,
The difference between the two paths is then
It can be argued that the noncommutativity of the covariant derivatives measures the curvature of the manifold:
where is the Riemann curvature tensor and the sign depends on the sign convention of the author.
In the Poincaré algebra, we can define an infinitesimal translation operator P as
(the i ensures that P is a self-adjoint operator) For a finite displacement û, the unitary Hilbert space representation for translations is
By using the above definition of the infinitesimal translation operator, we see that the finite translation operator is an exponentiated directional derivative:
This is a translation operator in the sense that it acts on multivariable functions f(x) as
The rotation operator also contains a directional derivative. The rotation operator for an angle ø, i.e. by an amount ø = |ø| about an axis parallel to is
Here L is the vector operator that generates SO(3):
It may be shown geometrically that an infinitesimal right-handed rotation changes the position vector x by
So we would expect under infinitesimal rotation:
It follows that
Following the same exponentiation procedure as above, we arrive at the rotation operator in the position basis, which is an exponentiated directional derivative:
A normal derivative is a directional derivative taken in the direction normal (that is, orthogonal) to some surface in space, or more generally along a normal vector field orthogonal to some hypersurface. See for example Neumann boundary condition. If the normal direction is denoted by , then the normal derivative of a function f is sometimes denoted as . In other notations,
Several important results in continuum mechanics require the derivatives of vectors with respect to vectors and of tensors with respect to vectors and tensors. The directional directive provides a systematic way of finding these derivatives.