For a differentiable, multivariate function , the directional derivative denotes the rate of change of if BOTH and change simultaneously.

Formula

The rate of change of a differentiable, multivariate function in the direction of unit vector :

In words, the directional derivative is the dot product of gradient and unit vector, both of which can be represented by algebraic vectors of components.

Note that the dimension of gradient must match that of .

Process

  1. Convert vector to obtain a unit vector
  2. Find the partial derivative at the given point to arrive at the gradient of the function
  3. Plug in the directional derivative formula

Convert vector

Intuitively, if increases twice as fast as , we say the function moves in the direction of

However, since a unit vector has a magnitude/length of 1, we should normalize the vector components by dividing them by the magnitude:

Sometimes the direction of changing and  as an angle , where the unit vector is given by:

Examples

(Workbook)

Attention

The directional derivative of a function in the direction of steepest ascent is the gradient normalized into unit vector.