In order to find how a function changes with each of the input variables, we defined the partial derivatives of . For example, when , we defined the partial derivative of with respect to to be Here, we thought of as a constant, which made only a function of , and reduced us to a single variable derivative. This told us how a small change in would after the value of , if we kept constant. In other words, the partial derivatives described how the function was changing in the positive -direction and in the positive -direction.

But what if we want to find how changes if we change both and ? One possible way to do this would be to increase and by the same amount, which would be equivalent to finding how changes as we increase and along the line .

Alternatively, we could decrease by twice as much as . This would be equivalent to finding how changes as decreasing and along the line .

As you can see, there are many different ways that we can change and , corresponding to different directions in the -plane. In order to determine how changes as we move in all of these different directions, we will now define directional derivatives.

Directional derivatives

We would like to compute the instantaneous rate of change of a function at a point as we move in some given direction in . We will model our definition after partial derivatives and single variable derivatives, and use a unit vector to describe the direction.

Noticing that by looking at , we are finding the value of when we move a small distance, , in the direction of from the point .

When computing directional derivatives, it’s important to remember that the direction must be given by a unit vector. Otherwise, the length of the vector will change the value of the limit above. If you’d like to find a directional derivative in a direction given by a non-unit vector , you should normalize to unit length.

Fortunately, we won’t always need to resort to evaluating directional derivatives using the limit definition. We’ll soon see how we can use the gradient to compute directional derivatives.