Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

1.10: The Gradient

( \newcommand{\kernel}{\mathrm{null}\,}\)

Directional Derivatives

Suppose you are given a topographical map and want to see how steep it is from a point that is neither due West or due North. Recall that the slopes due north and due west are the two partial derivatives. The slopes in other directions will be called the directional derivatives. Formally, we define

Definition: Directional Derivatives

Let f(x,y) be a differentiable function and let u be a unit vector then the directional derivative of f in the direction of u is

Duf(x,y)=limt0f(x+tu1,y+tu2)f(x,y)t.

Note that if u is ˆi then the directional derivative is just fx and if u is ˆi the it is fy. Just as there is a difficult and an easy way to compute partial derivatives, there is a difficult way and an easy way to compute directional derivatives.

Let f(x,y) be a differentiable function, and u be a unit vector with direction ˆq, then

Duf(x,y)=fx,fycosθ,sinθ.

Example 1.10.1

Let

f(x,y)=2x+3y2xy

and

v=3,2.

Find

Dvf(x,y).

Solution

We have

fx=2yandfy=6yx

and

||v||=9+4=13.

Hence

Dvf(x,y)=2y,6yx313,213=213(2y)+313(6yx).

Exercise 1.10.1

Let

f(x,y)=exy2andv=2,5.

Find Dvf(x,y)

The Gradient

We define

f=fx,fy.

Notice that

Duf(x,y)=(f)u.

The gradient has a special place among directional derivatives. The theorem below states this relationship.

Theorem
  1. If f(x,y)=0 then for all u, Duf(x,y)=0.
  2. The direction of f(x,y) is the direction with maximal directional derivative.
  3. The direction of f(x,y) is the direction with the minimal directional derivative.
Proof

1. If

f(x,y)=0

then

Duf(x,y)=fu=0u=0.

2.

Duf(x,y)=fu=||f||cosq.

This is a maximum when q=0 and a minimum when q=p. If q=0 then f and u point in the same direction. If q=p then u and f point in opposite directions. This proves 2 and 3.

Example 1.10.2

Suppose that a hill has altitude

w(x,y)=x2y.

Find the direction that is the steepest uphill and the steepest downhill at the point (2,3).

Solution

We find

w=2x,y=4,3.

Hence the steepest uphill is in the direction

4,3

while the steepest downhill is in the direction

4,3=4,3.

The Gradient and Level Curves

If f is differentiable at (a,b) and f is nonzero at (a,b) then is perpendicular to the level curve through (a,b).

alt


This page titled 1.10: The Gradient is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Larry Green.

  • Was this article helpful?

Support Center

How can we help?