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.

A unit direction from x0 in the input plane and the graph of h(t)=f(x0+tv), whose tangent at t=0 gives the directional derivative.

For a scalar-valued function, set h(t)=f(x0+tv)h(t)=f(\boldsymbol{x}_0+t\boldsymbol{v}). The directional derivative is the right-hand slope h+′(0)h'_+(0). In the figure, f(x1,x2)=x12+x22f(x_1,x_2)=x_1^2+x_2^2, x0=(1,0)\boldsymbol{x}_0=(1,0) and v=(3/5,4/5)\boldsymbol{v}=(3/5,4/5), so h(t)=1+6t/5+t2h(t)=1+6t/5+t^2 and the slope is 6/56/5. The two panels connect movement in the input plane with the resulting one-variable curve. The smooth examples in the interactive figures have the same slope from either side; the definition above only asks for the limit from t>0t>0.


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: real numbers, subset

Last updated: 27 October 2026 11:52