Math 2443: Calculus & Analytic Geometry IV

Supplemental Graphics:

The Gradient Vector

by TJ Murphy


Offers an intuition about the gradient vector. Some of the graphics were made more attractive by code borrowed from the Calculus & Mathematica program in the Department of Mathematics at the University of Illinois at Urbana-Champaign.


See also Directional Derivatives.


[Graphics:gradient.gif]

We start with a surface, in this example [Graphics:gradientgr1.GIF] and a point [Graphics:gradientgr2.GIF].

[Graphics:dirDerGrad_gr_1.gif]

If we stood at that point, there are infinitely many directions in which we could walk. Each direction has a certain steepness associated with it. Here we want to know which direction is the steepest.

To this end we define the gradient vector of f

[Graphics:gradDefn.gif]

This is the vector (shown in blue) whose direction gives the direction in which f is increasing fastest and whose magnitude gives the rate of change in that direction ("slope" of the line tangent to the trace of f in the vertical plane that contains the gradient vector).

[Graphics:dirDerGrad_gr_9.gif] [Graphics:dirDerGrad_gr_10.gif]


To prove that the gradient vector gives the direction and magnitude of the greatest rate of change of f, we first write the directional derivative using this gradient notation:

[Graphics:scrap_gr_2.gif]

This can be rewritten as

[Graphics:scrap_gr_3.gif]

where [Graphics:theta.gif] is the angle between [Graphics:scrap_gr_4.gif] and [Graphics:scrap_gr_5.gif].

But [Graphics:scrap_gr_6.gif] = 1 since [Graphics:scrap_gr_4.gif] is a unit vector, and the maximum value of [Graphics:scrap_gr_8.gif] occurs when [Graphics:cosTheta.gif] so . This means that [Graphics:scrap_gr_4.gif] and [Graphics:scrap_gr_5.gif] are pointing in the same direction and the maximum value of [Graphics:scrap_gr_8.gif] is

[Graphics:scrap_gr_9.gif]

Q.E.D.


[Graphics:gradToLC.gif]

The gradient vector of f at the point (a, b) is perpendicular to the level curve of f through (a,b), and points in the direction of increasing f. The magnitude of the gradient vector is large when the contours are close together and small when they are far apart.

The diagrams below show both the gradient vector for our example above and the vector [Graphics:scrap_gr_1.gif] which we used in the Directional Derivatives file.

[Graphics:dirDerGrad_gr_11.gif] [Graphics:dirDerGrad_gr_12.gif]


This work is part of the Multivariable Calculus with Mathematica Project at the University of Oklahoma.