Skip to main content

Section 7.4 Evaluating a Directional Derivative Using the Gradient

We now rework Exampleย 7.6 using (7.5), replacing the limit with a dot product, and then read the answer geometrically off the surface.

Example 7.13. Example II.

Consider the function \(f(x,y) = 1 + x^2 + y^2\text{,}\) the point \(P_0(1,1)\text{,}\) and the unit vector \(\mathbf u = \dfrac{1}{\sqrt 2}\mathbf i + \dfrac{1}{\sqrt 2}\mathbf j\text{.}\) Evaluate the directional derivative \(\left(D_{\mathbf u} f\right)_{P_0}\) and interpret your result.
Solution.
We use \(\left(\dfrac{df}{ds}\right)_{\mathbf u,P_0} = \left(\nabla f\right)_{P_0}\cdot\mathbf u\text{.}\) First we compute the gradient vector:
\begin{align*} \nabla f \amp= \frac{\partial f}{\partial x}\,\mathbf i + \frac{\partial f}{\partial y}\,\mathbf j\\ \amp= (2x)\,\mathbf i + (2y)\,\mathbf j,\\ \left(\nabla f\right)_{(1,1)} \amp= \left(\frac{\partial f}{\partial x}\right)_{(1,1)}\mathbf i + \left(\frac{\partial f}{\partial y}\right)_{(1,1)}\mathbf j\\ \amp= 2\,\mathbf i + 2\,\mathbf j. \end{align*}
Then we take the dot product with \(\mathbf u\text{:}\)
\begin{align} \left(\frac{df}{ds}\right)_{\mathbf u,P_0} \amp= \left(\nabla f\right)_{P_0}\cdot\mathbf u\notag\\ \amp= \left(2\,\mathbf i + 2\,\mathbf j\right)\cdot \left(\tfrac{1}{\sqrt 2}\,\mathbf i + \tfrac{1}{\sqrt 2}\,\mathbf j\right)\notag\\ \amp= \frac{4}{\sqrt 2}\notag\\ \amp= 2\sqrt 2,\tag{7.10} \end{align}
which agrees with the limit computation in Exampleย 7.6. See Figureย 7.14 for a geometrical interpretation of the directional derivative. Note that the unit vector \(\mathbf u = \frac{1}{\sqrt 2}\mathbf i + \frac{1}{\sqrt 2}\mathbf j\) is the direction vector of the line \(y = x\) located in the \(xy\)-plane. The plane \(x - y = 0\) contains this line and is orthogonal to the \(xy\)-plane. The intersection of the surface \(z = 1 + x^2 + y^2\) and the plane \(x - y = 0\) is the parabola shown in the figure. Finally, the directional derivative of \(f(x,y) = 1 + x^2 + y^2\) at the point \((1,1)\) corresponds to the slope of the tangent line to the surface \(z = 1 + x^2 + y^2\) at \((1,1,3)\) that is located in the plane \(x - y = 0\text{.}\)
A paraboloid cut by a vertical plane, with the trace parabola and its tangent line at the point one comma one comma three.
The surface \(z = 1 + x^2 + y^2\text{,}\) an upward-opening paraboloid, drawn as a translucent blue surface. A translucent yellow vertical plane \(x - y = 0\) passes through the surface above the line \(y = x\) in the \(xy\)-plane, where the unit vector \(\mathbf u\) is drawn as a blue arrow starting at \((1,1,0)\text{.}\) The plane meets the surface in a parabola, drawn in solid vermillion, and a green tangent line touches this parabola at the marked point \((1,1,3)\text{.}\) The slope of this tangent line, measured within the vertical plane, is the directional derivative \(2\sqrt 2\text{.}\) A reddish-purple circle on the surface at height \(z = 3\) marks the level curve \(f = 3\text{,}\) and its dashed projection in the \(xy\)-plane is the circle \(x^2 + y^2 = 2\) through the point \((1,1)\text{.}\)
Figure 7.14. The surface \(z = 1 + x^2 + y^2\) cut by the vertical plane \(x - y = 0\text{,}\) which contains the direction \(\mathbf u\text{.}\) The intersection is a parabola, and the directional derivative \(\left(D_{\mathbf u} f\right)_{(1,1)} = 2\sqrt 2\) is the slope of its tangent line at the point \((1,1,3)\text{.}\) The level curve \(f = 3\) through \((1,1)\text{,}\) the circle \(x^2 + y^2 = 2\text{,}\) is drawn on the surface at height \(z = 3\text{,}\) with its dashed projection in the \(xy\)-plane.
Instructions.
Drag the slider to rotate the direction \(\mathbf u = \langle\cos\varphi, \sin\varphi\rangle\) at the point \((1,1)\text{.}\) The vertical plane through \((1,1)\) in the direction \(\mathbf u\) cuts the surface \(z = 1 + x^2 + y^2\) in a curve, and the tangent line to this curve at \((1,1,3)\) has slope \(D_{\mathbf u} f = \left(\nabla f\right)_{(1,1)}\cdot\mathbf u\text{,}\) displayed above the figure. Use the buttons to snap \(\mathbf u\) to the direction of \(\nabla f\text{,}\) its opposite, or a direction of zero change. Drag the figure to view it from a different angle, or press the โ€œRotateโ€ button to spin it automatically.
Figure 7.15. Rotating the direction \(\mathbf u\) at \((1,1)\) and reading off \(D_{\mathbf u} f = \left(\nabla f\right)_{(1,1)}\cdot\mathbf u\) as the slope of the tangent line to the sliced surface \(z=1+x^2+y^2\text{.}\)
You have attempted of activities on this page.