SUNY Geneseo Department of Mathematics

The Gradient

Wednesday, March 29

Math 223
Spring 2023
Prof. Doug Baldwin

Return to Course Outline

Previous Lecture

Anything You Want to Talk About?

(No.)

Gradients

Based on “Gradient” and “Gradients and Level Curves” in section 3.6, plus yesterday’s introduction to gradients.

Key Ideas

The equation for a gradient (see yesterday’s notes, the examples below, or the textbook for the exact equation).

Directional derivatives can be calculated as a dot product of the gradient with the unit direction vector.

Properties:

The definition of “level curve” is also important.

Examples

Geneseo Widget Works makes fine hand-crafted widgets by giving c craftspeople p pounds of refined widget minerals. The cost, k, to make one widget under these conditions is p/10 + (c + p) / c. If Geneseo Widget Works currently has 5 craftspeople and 10 pounds of minerals, in what direction should they “move” in the people-minerals space in order to reduce cost fastest?

The fastest reduction will be in the negative of the direction the gradient points. So find the gradient at point (10, 5), and negate:

Negative of gradient of cost function gives direction to change inputs for fastest decrease in cost

So Geneseo Widget Works should decrease its supply of minerals and increase its number of craftspeople, at rates that lose 3/10 of a pound of minerals for every 2/5 of a craftsperson hired.

Explain why gradients (or at least non-zero ones) are always perpendicular to level curves.

Think about a function and its level curves. Each level curve is a curve in the xy plane (i.e., a curve through the inputs to the function). Each level curve corresponds to a contour line on the function’s graph, i.e., a line along the surface of the function with constant value. Since the level curve is a curve, we can describe it parametrically, and we can describe the corresponding contour line as the function applied to values on the curve:

Surface with level curve X of T comma Y of T, contour line is F of X of T and Y of T

Since the function has a constant value along the contour line, its derivative along that line must be 0. And we can work out that derivative using the chain rule:

Derivative of contour line is D F D X times D X D T plus D F D Y times D Y D T and must equal 0

But now the derivative found by the chain rule looks like (and is) a dot product between the gradient of the function and the tangent to the level curve. Since this dot product must be 0, it means that the gradient and the (tangent to) the level curve are perpendicular:

Derivative along contour line is also gradient of F dot vector X prime comma Y prime

Next

Extreme value problems in multiple variables.

Please read “Critical Points” and “Second Derivative Test” in section 3.7 of the textbook.

Next Lecture