Directional derivative

Rate of change of a function in a specified direction
Directional derivative

A directional derivative of a function f:URf:U\to \mathbb{R} (with URnU\subseteq \mathbb{R}^n) at a point aUa\in U in the direction vRnv\in \mathbb{R}^n is the one-sided limit

Dvf(a)=limt0+f(a+tv)f(a)t, D_v f(a)=\lim_{t\to 0^+}\frac{f(a+tv)-f(a)}{t},

when it exists (the limit uses a along the line through aa in direction vv).

If ff is at aa (as a map into R\mathbb{R}), then Dvf(a)D_v f(a) exists for every vv and equals Df(a)vDf(a)v, where Df(a)Df(a) is the . For scalar functions, directional derivatives are encoded by the .

Examples:

  • If f(x,y)=x2+y2f(x,y)=x^2+y^2, then at a=(1,0)a=(1,0) and v=(1,1)v=(1,1),

    Dvf(a)=limt0+(1+t)2+t21t=2. D_v f(a)=\lim_{t\to 0^+}\frac{(1+t)^2+t^2-1}{t}=2.
  • For f(x,y)=xf(x,y)=|x|, one has D(0,1)f(0,0)=0D_{(0,1)}f(0,0)=0, while D(1,0)f(0,0)=1D_{(1,0)}f(0,0)=1 (one-sided).