Skip to content

Directional Derivative

Definition

Consider a subset E⊆RnE \subseteq \mathbb{R}^n and a function f ⁣:E→Rk\boldsymbol{f}\colon E\to\mathbb{R}^k. Let x0\boldsymbol{x}_0 be an interior point of EE and v\boldsymbol{v} be a unit vector in Rn\mathbb{R}^n (note: some authors only require v\boldsymbol{v} to be a nonzero vector). If the limit

lim⁡t→0+f(x0+tv)−f(x0)t\lim_{t\to 0^+}\frac{\boldsymbol{f}(\boldsymbol{x}_0+t\boldsymbol{v})-\boldsymbol{f}(\boldsymbol{x}_0)}{t}

exists, then f\boldsymbol{f} is said to be differentiable in the direction v\boldsymbol{v} at x=x0\boldsymbol{x}=\boldsymbol{x}_0. This limit is termed the directional derivative and is denoted by Dvf(x0)\mathrm{D}_{\boldsymbol{v}} \boldsymbol{f}(\boldsymbol{x}_0).

Here unit length is measured by the Euclidean Norm, ∥v∥2=1\|\boldsymbol{v}\|_2=1. Equivalently, the Inner Product satisfies ⟨v,v⟩=1\langle\boldsymbol{v},\boldsymbol{v}\rangle=1, so tt measures distance travelled along the chosen direction.


Interpretation

The directional derivative measures the instantaneous rate of change of a function as you move from a point in a specific direction.

It generalizes the one-sided derivative to functions of several variables by looking at how the function changes along a straight line in that direction.

Elliptical level curves of f with the gradient at a point x0 pointing outwards and a unit direction v at an angle to it; the directional derivative is the gradient dotted with v.

For a differentiable ff and a unit direction v\boldsymbol{v}, the directional derivative is Dvf(x0)=∇f(x0)⋅vD_{\boldsymbol{v}}f(\boldsymbol{x}_0)=\boldsymbol{\nabla} f(\boldsymbol{x}_0)\cdot\boldsymbol{v}. For the nonzero gradient drawn, it is largest when the direction follows the gradient and zero in a tangent direction to the level curve.

Turn the direction v\boldsymbol v with θ\theta: the slope of ff along v\boldsymbol v is ∇f(x0)⋅v\boldsymbol{\nabla} f(\boldsymbol x_0)\cdot\boldsymbol v, largest along the gradient and zero along the level curve.

Turn v\boldsymbol v: the slice of the graph through x0\boldsymbol x_0 in direction v\boldsymbol v has slope Dvf(x0)=∇f(x0)⋅v\mathrm{D}_{\boldsymbol v}f(\boldsymbol x_0)=\boldsymbol{\nabla} f(\boldsymbol x_0)\cdot\boldsymbol v.


Key Results

  • If f\boldsymbol{f} is totally differentiable at x0,\boldsymbol{x}_0\text{,} then the directional derivative Dvf(x0)\mathrm{D}_{\boldsymbol{v}}\boldsymbol{f}(\boldsymbol{x}_0) exists for every direction v\boldsymbol{v} and equals the total derivative at v,\boldsymbol{v}\text{,} Dfx0(v).\mathrm{D} \boldsymbol{f}_{\boldsymbol{x}_0}(\boldsymbol{v})\text{.}
  • A function is totally differentiable at a point implies that this function is directionally differentiable in any direction. The converse is incorrect.

Examples

  • For the function f(x,y)=(x2,y2)\boldsymbol{f}(x,y)=(x^2,y^2), consider x0=(1,2)\boldsymbol{x}_0=(1,2) and v=(3/5,4/5)\boldsymbol{v}=(3/5,4/5). We have Dvf(x0)=(65,165)\displaystyle \mathrm{D}_{\boldsymbol{v}}\boldsymbol{f}(\boldsymbol{x}_0) =\left(\frac{6}{5},\frac{16}{5}\right).

Prerequisites

Sources

Symbols: nabla gradient, real numbers, subset, theta

Last updated: 17 October 2026 21:53