Skip to main content

Section 7.3 Directions of Fastest Increase, Fastest Decrease, and No Change

The directional derivative can be expressed as
\begin{align} D_{\mathbf u} f \amp= \nabla f\cdot\mathbf u\notag\\ \amp= \|\nabla f\|\,\|\mathbf u\|\cos\theta\notag\\ \amp= \|\nabla f\|\cos\theta,\tag{7.11} \end{align}
where \(\theta\) is the angle between \(\nabla f\) and the unit vector \(\mathbf u\text{.}\) The first line is (7.5), obtained from the chain rule in SectionΒ 7.2; the second is the geometric form of the dot product; and the third uses \(\|\mathbf u\| = 1\text{.}\)

Remark 7.18 Three Consequences of \(D_{\mathbf u} f = \|\nabla f\|\cos\theta\).

Only the factor \(\cos\theta\) depends on the direction, and it runs over \([-1,1]\) as \(\mathbf u\) turns through the circle of directions at \(P_0\text{.}\) Its three extreme values single out three directions, drawn in FigureΒ 7.19:
  • When \(\nabla f\) and \(\mathbf u\) are in the same direction (\(\cos\theta = 1\)), \(f\) increases most rapidly and \(D_{\mathbf u} f = \|\nabla f\|\text{.}\)
  • When \(\nabla f\) and \(\mathbf u\) have opposite directions (\(\cos\theta = -1\)), \(f\) decreases most rapidly and \(D_{\mathbf u} f = -\|\nabla f\|\text{.}\)
  • When \(\nabla f\) and \(\mathbf u\) are orthogonal (\(\cos\theta = 0\)), \(f\) does not change, and \(D_{\mathbf u} f = 0\text{.}\)
Diagram Exploration Keyboard Controls
Key Action
Enter, A Activate keyboard driven exploration
B Activate menu driven exploration
Escape Leave exploration mode
Cursor down Explore next lower level
Cursor up Explore next upper level
Cursor right Explore next element on level
Cursor left Explore previous element on level
X Toggle expert mode
W Extra details if available
Space Repeat speech
M Activate step magnification
Comma Activate direct magnification
N Deactivate magnification
Z Toggle subtitles
C Cycle contrast settings
T Monochrome colours
L Toggle language (if available)
K Kill current sound
Y Stop sound output
O Start and stop sonification
P Repeat sonification output
Figure 7.19. Directions around \(P_0\text{:}\) \(f\) increases fastest along \(\nabla f\text{,}\) decreases fastest along \(-\nabla f\text{,}\) and does not change in the two directions orthogonal to \(\nabla f\text{.}\)

Activity 7.20 Verifying the Three Special Directions.

The three cases listed above are all consequences of a single formula, \(D_{\mathbf u} f = \|\nabla f\|\cos\theta\text{.}\) In this activity you will derive them yourself and then check your answers against FigureΒ 7.21, where \(\mathbf u\) can be dragged around the circle of directions.

(a)

Beginning with \(D_{\mathbf u} f = \nabla f \cdot \mathbf u\text{,}\) explain why the dot product can be rewritten as \(\|\nabla f\|\cos\theta\text{.}\)

(b)

Treat \(\|\nabla f\|\) as fixed and let \(\theta\) run over \([0, 2\pi)\text{.}\) What are the largest and smallest values of \(D_{\mathbf u} f\text{,}\) and at which angles do they occur? For which angles is \(D_{\mathbf u} f = 0\text{?}\)

(c)

Now take \(f(x,y) = 1 + x^2 + y^2\) at \(P_0(1,1)\text{,}\) the function of ExampleΒ 7.6. Compute \(\nabla f\) and \(\|\nabla f\|\) at \(P_0\text{,}\) write \(D_{\mathbf u} f\) as a function of \(\theta\text{,}\) and give the three special unit vectors explicitly.

(d)

Check your work against the figure below. Drag \(\mathbf u\) around the circle and confirm that the meter agrees with \(2\sqrt 2\cos\theta\) at several angles. Then use the three buttons and compare the readings with your answers to the previous task. As you drag, at what angle does the reading change most quickly, and at what angle is it momentarily stationary?

Instructions.

Drag the blue unit vector \(\mathbf u\) around the circle of directions and watch the meter display \(D_{\mathbf u} f = \|\nabla f\|\cos\theta\text{.}\) Use the buttons to snap \(\mathbf u\) to the three special cases: the same direction as \(\nabla f\) (fastest increase), the opposite direction (fastest decrease), and a direction orthogonal to \(\nabla f\) (no change).
Figure 7.21. The directional derivative \(D_{\mathbf u} f = \|\nabla f\|\cos\theta\) as the unit vector \(\mathbf u\) rotates around \(P_0\text{.}\)

Example 7.22 Example III.

Consider the function \(f(x,y) = \dfrac{x^2}{2} + \dfrac{y^2}{2}\text{.}\) Find the directions in which, at the point \(P_0(1,1)\text{,}\)
  1. \(f\) increases most rapidly,
  2. \(f\) decreases most rapidly,
  3. there is no change in \(f\text{.}\)
Solution.
A. As explained above, \(f\) increases most rapidly in the direction of \(\nabla f\text{.}\) We have
\begin{align} \nabla f \amp= x\,\mathbf i + y\,\mathbf j \quad\Rightarrow\quad \left(\nabla f\right)_{(1,1)}\notag\\ \amp= \mathbf i + \mathbf j.\tag{7.12} \end{align}
Note that we need to divide \(\left(\nabla f\right)_{(1,1)} = \mathbf i + \mathbf j\) by its length to find the unit vector corresponding to the direction of most rapid increase:
\begin{equation} \frac{\left(\nabla f\right)_{(1,1)}}{\left\|\left(\nabla f\right)_{(1,1)}\right\|} = \frac{1}{\sqrt 2}\mathbf i + \frac{1}{\sqrt 2}\mathbf j.\tag{7.13} \end{equation}
B. For the direction of most rapid decrease, we take the opposite direction:
\begin{equation} -\frac{\left(\nabla f\right)_{(1,1)}}{\left\|\left(\nabla f\right)_{(1,1)}\right\|} = -\frac{1}{\sqrt 2}\mathbf i - \frac{1}{\sqrt 2}\mathbf j.\tag{7.14} \end{equation}
C. To find the directions of zero change in \(f\text{,}\) we require
\begin{align} \left(\nabla f\right)_{(1,1)}\cdot\mathbf u \amp= (\mathbf i + \mathbf j)\cdot(u_1\mathbf i + u_2\mathbf j)\notag\\ \amp= u_1 + u_2\notag\\ \amp= 0 \quad\text{or}\quad u_1\notag\\ \amp= -u_2,\tag{7.15} \end{align}
and since \(\mathbf u\) is a unit vector, we have
\begin{equation} \|\mathbf u\|^2 = u_1^2 + u_2^2 = 1.\tag{7.16} \end{equation}
After substituting (7.15) in (7.16), we conclude
\begin{equation} 2u_1^2 = 1 \quad\Rightarrow\quad u_1 = \pm\frac{1}{\sqrt 2}.\tag{7.17} \end{equation}
Hence, the directions of zero change in \(f\) at \(P_0(1,1)\) are
\begin{align} \mathbf u \amp= \frac{1}{\sqrt 2}\mathbf i - \frac{1}{\sqrt 2}\mathbf j \qquad\text{and}\qquad \tilde{\mathbf u}\notag\\ \amp= -\frac{1}{\sqrt 2}\mathbf i + \frac{1}{\sqrt 2}\mathbf j.\tag{7.18} \end{align}
Note that \(\tilde{\mathbf u} = -\mathbf u\text{.}\) All four directions are shown in FigureΒ 7.23: the directions of zero change are tangent to the level curve of \(f\) through \(P_0(1,1)\text{,}\) while the directions of most rapid increase and decrease are perpendicular to it.
Diagram Exploration Keyboard Controls
Key Action
Enter, A Activate keyboard driven exploration
B Activate menu driven exploration
Escape Leave exploration mode
Cursor down Explore next lower level
Cursor up Explore next upper level
Cursor right Explore next element on level
Cursor left Explore previous element on level
X Toggle expert mode
W Extra details if available
Space Repeat speech
M Activate step magnification
Comma Activate direct magnification
N Deactivate magnification
Z Toggle subtitles
C Cycle contrast settings
T Monochrome colours
L Toggle language (if available)
K Kill current sound
Y Stop sound output
O Start and stop sonification
P Repeat sonification output
Figure 7.23. At \(P_0(1,1)\text{:}\) fastest increase along \(\nabla f/\|\nabla f\|\text{,}\) fastest decrease along \(-\nabla f/\|\nabla f\|\text{,}\) and zero change along \(\pm\mathbf u\text{,}\) tangent to the level curve \(f = 1\text{.}\)

Instructions.

Press β€œPlay” to watch \(\mathbf u\) turn once around \(P_0(1,1)\text{.}\) The reading at the lower left follows \(D_{\mathbf u} f = \nabla f\cdot\mathbf u = \|\nabla f\|\cos\theta\) as it sweeps from \(\|\nabla f\|\) down to \(-\|\nabla f\|\) and back: it is largest along \(\nabla f\) (A), smallest along \(-\nabla f\) (B), and zero in the two directions tangent to the highlighted level curve \(f = 1\) (C), where the second vector \(\tilde{\mathbf u} = -\mathbf u\) appears. Stop the animation at any time and drag \(\mathbf u\) on the picture, or use the slider.
Figure 7.24. The same three directions, animated: \(D_{\mathbf u} f\) sweeping between \(\|\nabla f\|\) and \(-\|\nabla f\|\) as \(\mathbf u\) turns around \(P_0(1,1)\text{.}\)

Instructions.

Press β€œPlay” to watch the vertical plane through \(P_0(1,1)\) turn once around. The gold curve is where it cuts the surface \(z = \frac{x^2}{2} + \frac{y^2}{2}\text{,}\) and the straight line through \((1,1,1)\) is the tangent to that curve, whose slope is \(D_{\mathbf u} f\text{:}\) it is green and steepest upwards along \(\nabla f\) (A), red and steepest downwards along \(-\nabla f\) (B), and yellow and level in the two directions tangent to the pink level curve \(f = 1\) (C). Stop the animation at any time and drag the \(\varphi\) slider, drag the figure to change the viewpoint, or press β€œSpin”.
Figure 7.25. The same 3D view, animated: the tangent to the sliced surface at \((1,1,1)\) tipping from steepest ascent through level to steepest descent as \(\mathbf u\) turns.
You have attempted of activities on this page.