Skip to main content

Section 7.1 The Definition of the Directional Derivative

Definition 7.1. Directional Derivative.

The derivative of \(f\) at \(P_0(x_0,y_0)\) in the direction of the unit vector \(\mathbf u = u_1\mathbf i + u_2\mathbf j\) is the number
\begin{equation} \left(\frac{df}{ds}\right)_{\mathbf u,\,P_0} = \lim_{s\to 0}\frac{f(x_0 + su_1,\; y_0 + su_2) - f(x_0,y_0)}{s},\tag{7.1} \end{equation}
provided the limit exists. It can alternatively be denoted by \(\left(D_{\mathbf u} f\right)_{P_0}\text{.}\)
The geometry behind this definition can be explored in the interactive figure below; it is also shown in FigureΒ 7.3 and animated in FigureΒ 7.4. Starting at the point \(P_0(x_0,y_0)\text{,}\) we move a distance \(s\) in the direction of the unit vector \(\mathbf u\) to reach the point \(P(x_0 + su_1,\, y_0 + su_2)\text{,}\) and we compare the values \(f(x_0,y_0)\) and \(f(x_0 + su_1,\, y_0 + su_2)\) of the surface \(z = f(x,y)\) above the two points. Note that as \(s \to 0\text{,}\) the two points \(P_0\) and \(P\) get closer and closer to each other.

Instructions.

The translucent blue surface is the graph of \(z = f(x,y)\text{.}\) In the \(xy\)-plane below it, the point \(P_0(x_0,y_0)\) is fixed, the short blue arrow is the unit vector \(\mathbf u\text{,}\) and the gold arrow is the displacement \(s\mathbf u\text{,}\) which ends at the point \(P(x_0+su_1,\, y_0+su_2)\text{.}\) The dashed vertical lines rise from \(P_0\) and \(P\) to the surface, where the values \(f(P_0)\) and \(f(P)\) are marked. Drag the slider to change the distance \(s\text{,}\) or press β€œs \(\to\) 0” to animate the limit in the definition of the directional derivative: as \(s \to 0\text{,}\) the point \(P\) slides back toward \(P_0\) and the difference quotient \(\big(f(P) - f(P_0)\big)/s\text{,}\) displayed above the figure, approaches \(\left(D_{\mathbf u} f\right)_{P_0}\text{.}\) Drag the figure to view it from a different angle, or press β€œRotate” to spin it.
Figure 7.2. Interactive view of the definition of the directional derivative. The point \(P\) moves the distance \(s\) from \(P_0\) along \(\mathbf u\text{,}\) and the secant slope approaches \(\left(D_{\mathbf u} f\right)_{P_0}\) as \(s \to 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.3. The two points \(P_0\) and \(P\) used in the definition of the directional derivative. As \(s \to 0\text{,}\) the point \(P\) slides along the direction \(\mathbf u\) back toward \(P_0\text{.}\)
Figure 7.4. Animation of the definition of the directional derivative. The vertical plane through \(P_0\) in the direction \(\mathbf u\) cuts the surface \(z = f(x,y)\) in a curve, and the point \(P = P_0 + s\mathbf u\) moves on this plane. The secant line through \((P_0, f(P_0))\) and \((P, f(P))\) has slope \(\big(f(P) - f(P_0)\big)/s\text{,}\) and as \(s \to 0\) it rotates onto the tangent line, whose slope is the directional derivative \(\left(D_{\mathbf u} f\right)_{P_0}\text{.}\)
The figure below turns the definition into something you can interact with: as \(s\) shrinks, the difference quotient is recomputed and its value reported, so the limit can be watched rather than only read.

Instructions.

Drag the slider for the angle to choose the unit vector \(\mathbf u\text{,}\) and drag the slider for \(s\) to move the point \(P\) along the direction \(\mathbf u\) starting at \(P_0(1,1)\text{,}\) for the function \(f(x,y) = 1 + x^2 + y^2\text{.}\) The readout compares the difference quotient \(\big(f(P) - f(P_0)\big)/s\) with its limit as \(s \to 0\text{,}\) which is the directional derivative \(\left(D_{\mathbf u} f\right)_{P_0}\text{.}\)
Figure 7.5. The difference quotient \(\big(f(P)-f(P_0)\big)/s\) for \(f(x,y)=1+x^2+y^2\) at \(P_0(1,1)\text{,}\) as functions of the direction angle and the step \(s\text{.}\)
You have attempted of activities on this page.