Math 2443: Calculus & Analytic Geometry IV

Multivariable Calculus with Mathematica Project
at the University of Oklahoma

Selected Topics: Directional Derivatives and The Gradient

This set of Mathematica graphics provides images of a directional derivative and the gradient.

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.


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

This is a graph of the surface with the point.

[Graphics:gradientgr3.GIF].

Then we zoom in on the surface near the point so we can concentrate on what's going on in that area.

[Graphics:gradientgr4.GIF].

The next image shows the surface and the point, with the unit vector [Graphics:gradientgr5.GIF] (in blue), a plane parallel to the vector intersecting the surface at [Graphics:gradientgr2.GIF] and the tangent line at the point to the trace of the surface in the plane.

The rate of change of this line is called the "directional derivative of f at the point"

[Graphics:gradientgr6.GIF]

Now we consider all possible directional derivatives of f at that point. We ask the question: in which direction does f increase the fastest and what is the maximum rate of change?

Note that we are asking for a rate and a direction; such combinations are best described by vectors.

It turns out that a special vector, called the "gradient", is the vector that gives us the answers to our question above.

The gradient of a function f at a point (a,b) is given by: [Graphics:gradientgr7.GIF]

We have a theorem that states that if f is a differentiable function of two variables, then the maximum value of the directional derivatives is the magnitude of the gradient vector and it occurs in the direction of the gradient vector.

The next image shows the surface and the point, with the gradient vector (in blue), a plane parallel to the gradient vector and containing the point [Graphics:gradientgr2.GIF] and the tangent line at the point to the trace of the surface in the plane. The magnitude of the gradient vector gives the rate of change of this line.

[Graphics:gradientgr10.GIF],