M408M Learning Module Pages
Main page Chapter 10: Parametric Equations and Polar CoordinatesChapter 12: Vectors and the Geometry of SpaceChapter 13: Vector FunctionsChapter 14: Partial DerivativesLearning module LM 14.1: Functions of 2 or 3 variables:Learning module LM 14.3: Partial derivatives:Learning module LM 14.4: Tangent planes and linear approximations:Learning module LM 14.5: Differentiability and the chain rule:Learning module LM 14.6: Gradients and directional derivatives:GradientsGradients and hill climbing Wind and weather Directional derivatives Worked problems Learning module LM 14.7: Local maxima and minima:Learning module LM 14.8: Absolute maxima and Lagrange multipliers:Chapter 15: Multiple Integrals |
Directional derivativesWe defined the partial derivatives $f_x$ and $f_y$ to be the rate
at which the function $f(x,y)$ changes as we move parallel to the coordinate
axes. That is, due east or due north. Often we are interested in the rate
at which $f(x,y)$ changes as we move northeast, or southwest, or 37 degrees
south of east. These rates of change as we move in a particular direction
are called directional derivatives. Suppose that
${\bf u} = h\,{\bf i} + k\, {\bf j}$ is a unit vector.
If ${\bf u}$ is pointing an angle $\theta$ counterclockwise of the positive $x$-axis, then ${\bf u} = \cos(\theta) {\bf i} + \sin(\theta) {\bf j}$, and $$D_{\bf u}f(a,\,b) \ = \ \cos(\theta) f_x(a,\,b) + \sin(\theta) f_y(a,\,b).$$ Directional derivatives of functions of three variables work similarly, only with one more term. That is, $$D_{\bf u}f(a,\,b,\,c) \ = \ (\nabla f)(a,\,b,\,c) \, {\Large \cdot} \ {\bf u} \ = \ u_1 f_x(a,\,b,\,c) + u_2 f_y(a,\,b,\,c) + u_3 f_z(a,\,b,\,c)\,.$$ We now turn to the geometry of directional derivatives
and gradients.
By the definition of the dot product,
$$ D_{{\bf u}}f(a,\,b)
\ = \ \bigl \| (\nabla f)(a,\, b)\bigl \| \,\bigl\| {\bf u} \bigr\| \cos (\phi)
\ = \ \bigl \| (\nabla f)(a,\, b)\bigl \| \,\cos (\phi) $$
where $\phi$ is the angle between $(\nabla f)(a,\, b)$ and $\bf u$.
(We call this angle
$\phi$ rather than $\theta$ since $\theta$ is the angle between
${\bf u}$ and the $x$-axis.)
Thus $ D_{{\bf u}}f(a,\,b)$ will be maximized when $\cos (\phi) =
0$, i.e., when $Df_{{\bf u}}(a,\,b)$ and $(\nabla
f)(a,\, b) $ are parallel and point in the same direction. This shows
that at $(a,\, b)$
If ${\bf u}$ is tangent to a level curve of the function $f(x,\,y)$ (or a level surface of $f(x,\,y,\,z)$), then the directional derivative $D_{\bf u}f$ is zero. Since $D_{\bf u}f = {\bf u} \cdot \nabla f$, this shows yet again that gradient vectors are perpendicular to level surfaces. Finally, we consider directional derivatives described by vectors that aren't unit vectors. If ${\bf v}$ is any nonzero vector, then the directional derivative in the direction of ${\bf v}$ is $D_{\bf u}f$, where ${\bf u} = {\bf v}/\|{\bf v}\|$ is the unit vector pointing in the same direction as ${\bf v}$.
[Warning: When ${\bf v}$ isn't a unit vector, some authors define $D_{\bf v}f$ to be ${\bf v} \cdot \nabla f$, while other authors define $D_{\bf v}f$ to be $D_{\bf u}f = {\bf v} \cdot \nabla f/\|{\bf v}\|$. To avoid this ambiguity, we will only use the notation $D_{\bf v}f$ when ${\bf v}$ is a unit vector.] |