The gradient is the fundamental notion of a derivative for a function of several variables.

Three things about the gradient vector

We have now learned much about the gradient vector. However, there are three things you must know about the gradient vector:

First: You must know how to compute the gradient vector. Remember given a function : This is a vector-valued function of variables. This means when you compute the gradient, you should express it as a vector!

Second: The gradient vector points in the initial direction of greatest increase for a function. Remember, the gradient vector of a function of variables is a vector that lives in . The gradient vector tells you how to immediately change the values of the inputs of a function to find the initial greatest increase in the output of the function. We can see this in the interactive below.

The gradient at each point shows you which direction to change the -values to get the greatest initial change in the -value.

Third: The gradient vector is orthogonal to level sets. In particular, given , the gradient vector is always orthogonal to the level curves . Moreover, given , is always orthogonal to level surfaces.

Computing the gradient vector

Given a function of several variables, say , the gradient, when evaluated at a point in the domain of , is a vector in . We can see this in the interactive below.

The gradient at each point is a vector pointing in the -plane. You compute the gradient vector, by writing the vector: You’ve done this sort of direct computation many times before. So now, try your hand at these puzzlers:

Consider a differentiable function whose tangent plane at is given by: In this case what is ?
Suppose you know that . What is ?
Consider a differentiable function and the unit vector . Suppose that and that . Compute:
Consider a differentiable function where and the line . Suppose that Compute:
Use the chain rule.

The initial greatest increase

Given a function and point in , the gradient vector tells you which initial direction to leave the point in order to get the greatest increase in . Why is this so? Well, to compute the change in the output of a function when changing the inputs in a specific direction, we should use the directional derivative. Recall: To make this change as large as possible, must be the same direction as . Hence, it is the gradient vector that points in the initial direction of greatest increase for the function.

We can directly witness that the gradient vector points in the initial direction of greatest increase by looking at a differentiable function that is described by a table of values.

Here is a plot of an elliptic paraboloid along with a vector attached to a point on the surface: True or false: The vector above could be the gradient vector for at the given point.
True False

So far we have mostly talked about the direction of the gradient vector. Now let’s talk about the magnitude of the gradient vector. The magnitude of the gradient vector tells you “how fast” the function is increasing.

Suppose you have a differentiable function with the following set of level curves. You should interpolate reasonable values of the function between the level curves which are shown: Consider the points , , and on the surface . Where largest? The magnitude of the gradient vector of is largest at point . Where is smallest? The magnitude of the gradient vector of is smallest at point .

Now, stand back. We’re going to do some serious calculus. Just read, relax and enjoy.

What were you supposed to learn from that last example?
I’ve thought about this. I’ve not thought about this.

Orthogonality and the gradient

Now that we know gradient vectors point in the initial direction of the greatest increase of the function, let’s think about the geometry of the gradient vector. Previously we used the chain rule to show that the gradient vector is always orthogonal to level sets. The argument went like this: Suppose that a vector-valued function runs along a level surface for the surface . If we ask ourselves: “What is the change in as varies?” We must conclude that since the value of doesn’t change on the curve drawn by (remember, draws a level curve). On the other hand, by the chain rule: The vector is tangent to the curve drawn by , and putting the two equations above together we see so must be orthogonal to , and hence orthogonal to the curve drawn by .

The explanation we just gave is a good one, but let’s give one more. In this book, we are always thinking about differentiable functions. Remember, a function is differentiable if one can “zoom-in” and eventually the function will look like a plane. So let’s imagine that we’ve “zoomed-in” on a differentiable function and it looks like a plane. The contour plot of a plane looks like a bunch of parallel lines:

If we wish to leave the point above in the direction of the initial greatest increase, then we should move in a direction perpendicular to the level curves: Gradient vectors point in the initial direction of greatest increase and the fastest way to leave a line is perpendicular to that line.

The fact that the gradient is always orthogonal to level surfaces is very powerful. In fact it gives new (easier!) solutions to old problems. Let’s use this fact to find a plane tangent to a surface.

Now let’s see a more in-depth problem.

Summary

To conclude, we will repeat ourselves: There are three things you must know about the gradient vector:

First: You must know how to compute the gradient vector. Second: The gradient vector points in the initial direction of greatest increase for a function. Third: The gradient vector is orthogonal to level sets.