# 13.6 Directional Derivatives

Partial derivatives give us an understanding of how a surface changes when we move in the $x$ and $y$ directions. We made the comparison to standing in a rolling meadow and heading due east: the amount of rise/fall in doing so is comparable to $f_{x}$. Likewise, the rise/fall in moving due north is comparable to $f_{y}$. The steeper the slope, the greater in magnitude $f_{y}$.

But what if we didn’t move due north or east? What if we needed to move northeast and wanted to measure the amount of rise/fall? Partial derivatives alone cannot measure this. This section investigates directional derivatives, which do measure this rate of change.

We begin with a definition.

###### Definition 13.6.1 Directional Derivatives

Let $z=f(x,y)$ be continuous on an open set $S$ and let $\vec{u}=\left\langle u_{1},u_{2}\right\rangle$ be a unit vector. For all points $(x,y)$, the directional derivative of $f$ at $(x,y)$ in the direction of $\vec{u}$ is

 $D_{\vec{u}\,}f(x,y)=\lim_{h\to 0}\frac{f(x+hu_{1},y+hu_{2})-f(x,y)}{h}.$

The partial derivatives $f_{x}$ and $f_{y}$ are defined with similar limits, but only $x$ or $y$ varies with $h$, not both. Here both $x$ and $y$ vary with a weighted $h$, determined by a particular unit vector $\vec{u}$. This may look a bit intimidating but in reality it is not too difficult to deal with; it often just requires extra algebra. However, the following theorem reduces this algebraic load.

###### Theorem 13.6.1 Directional Derivatives

Let $z=f(x,y)$ be differentiable at $(x_{0},y_{0})$, and let $\vec{u}=\left\langle u_{1},u_{2}\right\rangle$ be a unit vector. The directional derivative of $f$ at $(x_{0},y_{0})$ in the direction of $\vec{u}$ is

 $D_{\vec{u}\,}f(x_{0},y_{0})=f_{x}(x_{0},y_{0})u_{1}+f_{y}(x_{0},y_{0})u_{2}.$
• Proof

We will use Theorem 13.5.1, with $x=g(t)=u_{1}t+x_{0}$ and $y=h(t)=u_{2}t+y_{0}$. This means that

 $\displaystyle D_{\vec{u}\,}f(x_{0},y_{0})$ $\displaystyle=\frac{\operatorname{d}\!f}{\operatorname{d}\!t}(x_{0},y_{0})$ $\displaystyle=f_{x}(x_{0},y_{0})\frac{\operatorname{d}\!x}{\operatorname{d}\!t% }(0)+f_{y}(x_{0},y_{0})\frac{\operatorname{d}\!y}{\operatorname{d}\!t}(0)$ $\displaystyle=f_{x}(x_{0},y_{0})u_{1}+f_{y}(x_{0},y_{0})u_{2}.\qed$
###### Example 13.6.1 Computing directional derivatives

Let $z=14-x^{2}-y^{2}$ and let $P=(1,2)$. Find the directional derivative of $f$, at $P$, in the following directions:

1. (a)

toward the point $Q=(3,4)$,

2. (b)

in the direction of $\left\langle 2,-1\right\rangle$, and

3. (c)

toward the origin.

Solutionmargin: Figure 13.6.1: Understanding the directional derivative in Example 13.6.1. Λ The surface is plotted in Figure 13.6.1, where the point $P=(1,2)$ is indicated in the $x,y$-plane as well as the point $(1,2,9)$ which lies on the surface of $f$. We find that $f_{x}(x,y)=-2x$ and $f_{x}(1,2)=-2$; $f_{y}(x,y)=-2y$ and $f_{y}(1,2)=-4$.

1. (a)

Let $\vec{u}_{1}$ be the unit vector that points from the point $(1,2)$ to the point $Q=(3,4)$, as shown in the figure. The vector $\vec{P}Q=\left\langle 2,2\right\rangle$; the unit vector in this direction is $\vec{u}_{1}=\left\langle 1/\sqrt{2},1/\sqrt{2}\right\rangle$. Thus the directional derivative of $f$ at $(1,2)$ in the direction of $\vec{u}_{1}$ is

 $D_{\vec{u}_{1}}f(1,2)=-2(1/\sqrt{2})+(-4)(1/\sqrt{2})=-6/\sqrt{2}.$

Thus the instantaneous rate of change in moving from the point $(1,2,9)$ on the surface in the direction of $\vec{u}_{1}$ (which points toward the point $Q$) is $-3\sqrt{2}$. Moving in this direction moves one steeply downward.

2. (b)

We seek the directional derivative in the direction of $\left\langle 2,-1\right\rangle$. The unit vector in this direction is $\vec{u}_{2}=\left\langle 2/\sqrt{5},-1/\sqrt{5}\right\rangle$. Thus the directional derivative of $f$ at $(1,2)$ in the direction of $\vec{u}_{2}$ is

 $D_{\vec{u}_{2}}f(1,2)=-2(2/\sqrt{5})+(-4)(-1/\sqrt{5})=0.$

Starting on the surface of $f$ at $(1,2)$ and moving in the direction of $\left\langle 2,-1\right\rangle$ (or $\vec{u}_{2}$) results in no instantaneous change in $z$-value. This is analogous to standing on the side of a hill and choosing a direction to walk that does not change the elevation. One neither walks up nor down, rather just “along the side” of the hill. Finding these directions of “no elevation change” is important.

3. (c)

At $P=(1,2)$, the direction towards the origin is given by the vector $\left\langle-1,-2\right\rangle$; the unit vector in this direction is $\vec{u}_{3}=\left\langle-1/\sqrt{5},-2/\sqrt{5}\right\rangle$. The directional derivative of $f$ at $P$ in the direction of the origin is

 $D_{\vec{u}_{3}}f(1,2)=-2(-1/\sqrt{5})+(-4)(-2/\sqrt{5})=10/\sqrt{5}.$

Moving towards the origin means “walking uphill” quite steeply, with an initial slope of $2\sqrt{5}$.

As we study directional derivatives, it will help to make an important connection between the unit vector $\vec{u}=\left\langle u_{1},u_{2}\right\rangle$ that describes the direction and the partial derivatives $f_{x}$ and $f_{y}$. We start with a definition and follow this with a Key Idea.

Let $z=f(x,y)$ be differentiable on an open set $S$ that contains the point $(x_{0},y_{0})$.

1. (a)

The gradient of $f$ is $\nabla f(x,y)=\left\langle f_{x}(x,y),f_{y}(x,y)\right\rangle$.

2. (b)

The gradient of $f$ at $(x_{0},y_{0})$ is $\nabla f(x_{0},y_{0})=\left\langle f_{x}(x_{0},y_{0}),f_{y}(x_{0},y_{0})\right\rangle$.

margin: Note: The symbol “$\nabla$” is named “nabla,” derived from the Greek name of a Jewish harp. Oddly enough, in mathematics the expression $\nabla f$ is pronounced “del $f$.” Λ

To simplify notation, we often express the gradient as $\nabla f=\left\langle f_{x},f_{y}\right\rangle$. It is often useful to think of the gradient $\nabla$ as an operator:

 $\nabla=\left\langle\frac{\partial}{\partial x},\frac{\partial}{\partial y}% \right\rangle.$

The operator $\nabla$ only has any meaning when it operates on a function; it doesn’t mean anything by itself. But this notation does help us to apply it correctly to find the gradient. The gradient allows us to compute directional derivatives in terms of a dot product.

###### Key Idea 13.6.1 The Gradient and Directional Derivatives

The directional derivative of $z=f(x,y)$ in the direction of the unit vector $\vec{u}$ is

 $D_{\vec{u}\,}f=\nabla f\cdot\vec{u}.$

The properties of the dot product previously studied allow us to investigate the properties of the directional derivative. Given that the directional derivative gives the instantaneous rate of change of $z$ when moving in the direction of $\vec{u}$, three questions naturally arise:

1. (a)

In what direction(s) is the change in $z$ the greatest (i.e., the “steepest uphill”)?

2. (b)

In what direction(s) is the change in $z$ the least (i.e., the “steepest downhill”)?

3. (c)

In what direction(s) is there no change in $z$?

Using the key property of the dot product, we have

 $\nabla f\cdot\vec{u}=\left\lVert\nabla f\right\rVert\,\left\lVert\vec{u}\right% \rVert\cos\theta=\left\lVert\nabla f\right\rVert\cos\theta,$ (13.6.1)

where $\theta$ is the angle between the gradient and $\vec{u}$. (Since $\vec{u}$ is a unit vector, $\left\lVert\vec{u}\right\rVert=1$.) This equation allows us to answer the three questions stated previously.

1. (a)

Equation (13.6.1) is maximized when $\cos\theta=1$, i.e., when the gradient and $\vec{u}$ have the same direction. We conclude the gradient points in the direction of greatest $z$ change.

2. (b)

Equation (13.6.1) is minimized when $\cos\theta=-1$, i.e., when the gradient and $\vec{u}$ have opposite directions. We conclude the gradient points in the opposite direction of the least $z$ change.

3. (c)

Equation (13.6.1) is 0 when $\cos\theta=0$, i.e., when the gradient and $\vec{u}$ are orthogonal to each other. We conclude the gradient is orthogonal to directions of no $z$ change.

This result is rather amazing. Once again imagine standing in a rolling meadow and face the direction that leads you steepest uphill. Then the direction that leads steepest downhill is directly behind you, and side-stepping either left or right (i.e., moving perpendicularly to the direction you face) does not change your elevation at all.

Recall that a level curve is defined as a curve in the $x$-$y$ plane along which the $z$-values of a function do not change. Let a surface $z=f(x,y)$ be given, and let’s represent one such level curve as a vector-valued function, $\vec{r}(t)=\left\langle x(t),y(t)\right\rangle$. As the output of $f$ does not change along this curve, $f\bigl{(}x(t),y(t)\bigr{)}=c$ for all $t$, for some constant $c$.

Since $f$ is constant for all $t$, $\frac{\operatorname{d}\!f}{\operatorname{d}\!t}=0$. By the Multivariable Chain Rule, we also know

 $\displaystyle\frac{\operatorname{d}\!f}{\operatorname{d}\!t}$ $\displaystyle=f_{x}(x,y)x\mkern 1.35mu ^{\prime}(t)+f_{y}(x,y)y\mkern 1.35mu ^% {\prime}(t)$ $\displaystyle=\left\langle f_{x}(x,y),f_{y}(x,y)\right\rangle\cdot\left\langle x% \mkern 1.35mu ^{\prime}(t),y\mkern 1.35mu ^{\prime}(t)\right\rangle$ $\displaystyle=\nabla f\cdot\vec{r}\hskip 1.25pt^{\prime}(t)$ $\displaystyle=0.$

This last equality states $\nabla f\cdot\vec{r}\hskip 1.25pt^{\prime}(t)=0$: the gradient is orthogonal to the derivative of $\vec{r}$. Our conclusion: at any point on a surface, the gradient at that point is orthogonal to the level curve that passes through that point.

We restate these ideas in a theorem, then use them in an example.

###### Theorem 13.6.2 The Gradient and Directional Derivatives

Let $z=f(x,y)$ be differentiable on an open set $S$ with gradient $\nabla f$, let $P=(x_{0},y_{0})$ be a point in $S$ and let $\vec{u}$ be a unit vector.

1. (a)

The maximum value of $D_{\vec{u}\,}f(x_{0},y_{0})$ is $\left\lVert\nabla f(x_{0},y_{0})\right\rVert$; the direction of maximal $z$ increase is $\nabla f(x_{0},y_{0})$.

2. (b)

The minimum value of $D_{\vec{u}\,}f(x_{0},y_{0})$ is $-\left\lVert\nabla f(x_{0},y_{0})\right\rVert$; the direction of minimal $z$ increase is $-\nabla f(x_{0},y_{0})$.

3. (c)

At $P$, $\nabla f(x_{0},y_{0})$ is orthogonal to the level curve passing through $(x_{0},y_{0})$.

###### Example 13.6.2 Finding directions of maximal and minimal increase

Let $f(x,y)=\sin x\cos y$ and let $P=(\pi/3,\pi/3)$. Find the directions of maximal/minimal increase, and find a direction where the instantaneous rate of $z$ change is 0.

SolutionWe begin by finding the gradient. We see that the partial derivatives are $f_{x}=\cos x\cos y$ and $f_{y}=-\sin x\sin y$, so that

 $\nabla f=\left\langle\cos x\cos y,-\sin x\sin y\right\rangle\quad\text{and, at% P,}\quad\nabla f\left(\frac{\pi}{3},\frac{\pi}{3}\right)=\left\langle\frac{% 1}{4},-\frac{3}{4}\right\rangle.$

Thus the direction of maximal increase is $\left\langle 1/4,-3/4\right\rangle$. In this direction, the instantaneous rate of $z$ change is $\left\lVert\left\langle 1/4,-3/4\right\rangle\right\rVert=\sqrt{10}/4$.

margin: (a) (b) Figure 13.6.2: Graphing the surface and important directions in Example 13.6.2. Λ

Figure 13.6.2 shows the surface plotted from two different perspectives. In each, the gradient is drawn at $P$ with a dashed line (because of the nature of this surface, the gradient points “into” the surface). Let $\vec{u}=\left\langle u_{1},u_{2}\right\rangle$ be the unit vector in the direction of $\nabla f$ at $P$. Each graph of the figure also contains the vector $\left\langle u_{1},u_{2},\left\lVert\nabla f\,\right\rVert\right\rangle$. This vector has a “run” of 1 (because in the $x$-$y$ plane it moves 1 unit) and a “rise” of $\left\lVert\nabla f\right\rVert$, hence we can think of it as a vector with slope of $\left\lVert\nabla f\right\rVert$ in the direction of $\nabla f$, helping us visualize how “steep” the surface is in its steepest direction.

The direction of minimal increase is $\left\langle-1/4,3/4\right\rangle$; in this direction the instantaneous rate of $z$ change is $-\sqrt{10}/4$.

Any direction orthogonal to $\nabla f$ is a direction of no $z$ change. We have two choices: the direction of $\left\langle 3,1\right\rangle$ and the direction of $\left\langle-3,-1\right\rangle$. The unit vector in the direction of $\left\langle 3,1\right\rangle$ is shown in each graph of the figure as well. The level curve at $z=\sqrt{3}/4$ is drawn: recall that along this curve the $z$-values do not change. Since $\left\langle 3,1\right\rangle$ is a direction of no $z$-change, this vector is tangent to the level curve at $P$.

###### Example 13.6.3 Understanding when $\nabla f=\vec{0}$

Let $f(x,y)=-x^{2}+2x-y^{2}+2y+1$. Find the directional derivative of $f$ in any direction at $P=(1,1)$.

SolutionWe find $\nabla f=\left\langle-2x+2,-2y+2\right\rangle$. At $P$, we have $\nabla f(1,1)=\left\langle 0,0\right\rangle$. According to Theorem 13.6.2, this is the direction of maximal increase. However, $\left\langle 0,0\right\rangle$ is directionless; it has no displacement. And regardless of the unit vector $\vec{u}$ chosen, $D_{\vec{u}\,}f=0$.

margin: Figure 13.6.3: At the top of a paraboloid, all directional derivatives are 0. Λ

Figure 13.6.3 helps us understand what this means. We can see that $P$ lies at the top of a paraboloid. In all directions, the instantaneous rate of change is 0.

So what is the direction of maximal increase? It is fine to give an answer of $\vec{0}=\left\langle 0,0\right\rangle$, as this indicates that all directional derivatives are 0.

The fact that the gradient of a surface always points in the direction of steepest increase/decrease is very useful, as illustrated in the following example.

###### Example 13.6.4 The flow of water downhill

Consider the surface given by $f(x,y)=20-x^{2}-2y^{2}$. Water is poured on the surface at $(1,1/4)$. What path does it take as it flows downhill?

SolutionLet $\vec{r}(t)=\left\langle x(t),y(t)\right\rangle$ be the vector-valued function describing the path of the water in the $x$-$y$ plane; we seek $x(t)$ and $y(t)$. We know that water will always flow downhill in the steepest direction; therefore, at any point on its path, it will be moving in the direction of $-\nabla f$. (We ignore the physical effects of momentum on the water.) Thus $\vec{r}\hskip 1.25pt^{\prime}(t)$ will be parallel to $\nabla f$, and there is some constant $c$ such that $c\nabla f=\vec{r}\hskip 1.25pt^{\prime}(t)=\left\langle x\mkern 1.35mu ^{% \prime}(t),y\mkern 1.35mu ^{\prime}(t)\right\rangle$.

We find $\nabla f=\left\langle-2x,-4y\right\rangle$ and write $x\mkern 1.35mu ^{\prime}(t)$ as $\frac{\operatorname{d}\!x}{\operatorname{d}\!t}$ and $y\mkern 1.35mu ^{\prime}(t)$ as $\frac{\operatorname{d}\!y}{\operatorname{d}\!t}$. Then

 $\displaystyle c\nabla f$ $\displaystyle=\left\langle x\mkern 1.35mu ^{\prime}(t),y\mkern 1.35mu ^{\prime% }(t)\right\rangle$ $\displaystyle\left\langle-2cx,-4cy\right\rangle$ $\displaystyle=\left\langle\frac{\operatorname{d}\!x}{\operatorname{d}\!t},% \frac{\operatorname{d}\!y}{\operatorname{d}\!t}\right\rangle.$

This implies

 $\displaystyle-2cx=\frac{\operatorname{d}\!x}{\operatorname{d}\!t}\quad\text{% and}\quad-4cy=\frac{\operatorname{d}\!y}{\operatorname{d}\!t},\text{ i.e.,}$ $\displaystyle c=-\frac{1}{2x}\frac{\operatorname{d}\!x}{\operatorname{d}\!t}% \quad\text{and}\quad c=-\frac{1}{4y}\frac{\operatorname{d}\!y}{\operatorname{d% }\!t}.$

As $c$ equals both expressions, we have

 $\frac{1}{2x}\frac{\operatorname{d}\!x}{\operatorname{d}\!t}=\frac{1}{4y}\frac{% \operatorname{d}\!y}{\operatorname{d}\!t}.$

To find an explicit relationship between $x$ and $y$, we can integrate both sides with respect to $t$. Recall from our study of differentials that $\displaystyle\frac{\operatorname{d}\!x}{\operatorname{d}\!t}\operatorname{d}\!% t=\operatorname{d}\!x$. Thus:

 $\displaystyle\int\frac{1}{2x}\frac{\operatorname{d}\!x}{\operatorname{d}\!t}% \operatorname{d}\!t$ $\displaystyle=\int\frac{1}{4y}\frac{\operatorname{d}\!y}{\operatorname{d}\!t}% \operatorname{d}\!t$ $\displaystyle\int\frac{1}{2x}\operatorname{d}\!x$ $\displaystyle=\int\frac{1}{4y}\operatorname{d}\!y$ $\displaystyle\frac{1}{2}\ln\left\lvert x\right\rvert$ $\displaystyle=\frac{1}{4}\ln\left\lvert y\right\rvert+C_{1}$ $\displaystyle 2\ln\left\lvert x\right\rvert$ $\displaystyle=\ln\left\lvert y\right\rvert+C_{1}$ $\displaystyle\ln\left\lvert x^{2}\right\rvert$ $\displaystyle=\ln\left\lvert y\right\rvert+C_{1}$ Now raise both sides as a power of $e$: $\displaystyle x^{2}$ $\displaystyle=e^{\ln\left\lvert y\right\rvert+C_{1}}$ $\displaystyle x^{2}$ $\displaystyle=e^{\ln\left\lvert y\right\rvert}e^{C_{1}}\qquad\text{(Note that % e^{C_{1}} is just a constant.)}$ $\displaystyle x^{2}$ $\displaystyle=yC_{2}$ $\displaystyle\frac{1}{C_{2}}x^{2}$ $\displaystyle=y\qquad\text{(Note that 1/C_{2} is just a constant.)}$ $\displaystyle Cx^{2}$ $\displaystyle=y.$

As the water started at the point $(1,1/4)$, we can solve for $C$: margin: (a) (b) Figure 13.6.4: A graph of the surface described in Example 13.6.4 along with the path in the $x$-$y$ plane with the level curves. Λ

 $C(1)^{2}=\frac{1}{4}\quad\Rightarrow\quad C=\frac{1}{4}.$

Thus the water follows the curve $y=x^{2}/4$ in the $x$-$y$ plane. The surface and the path of the water is graphed in Figure 13.6.4(a). In part (b) of the figure, the level curves of the surface are plotted in the $x$-$y$ plane, along with the curve $y=x^{2}/4$. Notice how the path intersects the level curves at right angles. As the path follows the gradient downhill, this reinforces the fact that the gradient is orthogonal to level curves.

## Functions of Three Variables

The concepts of directional derivatives and the gradient are easily extended to three (and more) variables. We combine the concepts behind Definitions 13.6.1 and 13.6.2 and Theorem 13.6.1 into one set of definitions.

###### Definition 13.6.3 Directional Derivatives and Gradient with Three Variables

Let $w=F(x,y,z)$ be differentiable on an open ball $B$ and let $\vec{u}$ be a unit vector in $\mathbb{R}^{3}$.

1. (a)

The gradient of $F$ is $\nabla F=\left\langle F_{x},F_{y},F_{z}\right\rangle$.

2. (b)

The gradient of $F$ at $(x_{0},y_{0},z_{0})$ is

 $\nabla F(x_{0},y_{0},z_{0})=\left\langle f_{x}(x_{0},y_{0},z_{0}),f_{y}(x_{0},% y_{0},z_{0}),f_{z}(x_{0},y_{0},z_{0})\right\rangle.$
3. (c)

The directional derivative of $F$ in the direction of $\vec{u}$ is

 $D_{\vec{u}\,}F=\nabla F\cdot\vec{u}.$

The same properties of the gradient given in Theorem 13.6.2, when $f$ is a function of two variables, hold for $F$, a function of three variables.

###### Theorem 13.6.3 The Gradient and Directional Derivatives with Three Variables

Let $w=F(x,y,z)$ be differentiable on an open set $S$ with gradient $\nabla F$, let $P=(x_{0},y_{0},z_{0})$ be a point in $S$, and let $\vec{u}$ be a unit vector.

1. (a)

The maximum value of $D_{\vec{u}\,}F(x_{0},y_{0},z_{0})$ is $\left\lVert\nabla F(x_{0},y_{0},z_{0})\right\rVert$; the direction of maximal increase is $\nabla F(x_{0},y_{0},z_{0})$.

2. (b)

The minimum value of $D_{\vec{u}\,}F(x_{0},y_{0},z_{0})$ is $-\left\lVert\nabla F(x_{0},y_{0},z_{0})\right\rVert$; the direction of minimal increase is $-\nabla F(x_{0},y_{0},z_{0})$.

3. (c)

At $P$, $D_{\vec{u}\,}F(x_{0},y_{0},z_{0})=0$ when $\nabla F(x_{0},y_{0},z_{0})$ and $\vec{u}$ are orthogonal.

We interpret the third statement of the theorem as “the gradient is orthogonal to level surfaces,” the three-variable analogue to level curves.

###### Example 13.6.5 Finding directional derivatives with functions of three variables

If a point source $S$ is radiating energy, the intensity $I$ at a given point $P$ in space is inversely proportional to the square of the distance between $S$ and $P$. That is, when $S=(0,0,0)$, $\displaystyle I(x,y,z)=\frac{k}{x^{2}+y^{2}+z^{2}}$ for some constant $k$.

Let $k=1$, let $\vec{u}=\left\langle 2/3,2/3,1/3\right\rangle$ be a unit vector, and let $P=(2,5,3).$ Measure distances in inches. Find the directional derivative of $I$ at $P$ in the direction of $\vec{u}$, and find the direction of greatest intensity increase at $P$.

SolutionWe need the gradient $\nabla I$, meaning we need $I_{x}$, $I_{y}$ and $I_{z}$. Each partial derivative requires a simple application of the Quotient Rule, giving

 $\displaystyle\nabla I$ $\displaystyle=\left\langle\frac{-2x}{(x^{2}+y^{2}+z^{2})^{2}},\frac{-2y}{(x^{2% }+y^{2}+z^{2})^{2}},\frac{-2z}{(x^{2}+y^{2}+z^{2})^{2}}\right\rangle$ $\displaystyle\nabla I(2,5,3)$ $\displaystyle=\left\langle\frac{-4}{1444},\frac{-10}{1444},\frac{-6}{1444}\right\rangle$ $\displaystyle D_{\vec{u}\,}I$ $\displaystyle=\nabla I(2,5,3)\cdot\vec{u}$ $\displaystyle=-\frac{17}{2166}.$

The directional derivative tells us that moving in the direction of $\vec{u}$ from $P$ results in a slight decrease in intensity. (The intensity is decreasing as $\vec{u}$ moves one farther from the origin than $P$.)

The gradient gives the direction of greatest intensity increase. Notice that

 $\displaystyle\nabla I(2,5,3)$ $\displaystyle=\left\langle\frac{-4}{1444},\frac{-10}{1444},\frac{-6}{1444}\right\rangle$ $\displaystyle=\frac{2}{1444}\left\langle-2,-5,-3\right\rangle.$

That is, the gradient at $(2,5,3)$ is pointing in the direction of $\left\langle-2,-5,-3\right\rangle$, that is, towards the origin. That should make intuitive sense: the greatest increase in intensity is found by moving towards to source of the energy.

The directional derivative allows us to find the instantaneous rate of $z$ change in any direction at a point. We can use these instantaneous rates of change to define lines and planes that are tangent to a surface at a point, which is the topic of the next section.

## Exercises 13.6

### Terms and Concepts

1. 1.

What is the difference between a directional derivative and a partial derivative?

2. 2.

For what $\vec{u}$ is $D_{\vec{u}\,}f=f_{x}$?

3. 3.

For what $\vec{u}$ is $D_{\vec{u}\,}f=f_{y}$?

4. 4.

The gradient is              to level curves.

5. 5.

The gradient points in the direction of              increase.

6. 6.

It is generally more informative to view the directional derivative not as the result of a limit, but rather as the result of a              product.

### Problems

In Exercises 7–12., a function $z=f(x,y)$ is given. Find $\nabla f$.

1. 7.

$f(x,y)=-x^{2}y+xy^{2}+xy$

2. 8.

$\displaystyle f(x,y)=\sin x\cos y$

3. 9.

$\displaystyle f(x,y)=\frac{1}{x^{2}+y^{2}+1}$

4. 10.

$\displaystyle f(x,y)=-4x+3y$

5. 11.

$\displaystyle f(x,y)=x^{2}+2y^{2}-xy-7x$

6. 12.

$\displaystyle f(x,y)=x^{2}y^{3}-2x$

In Exercises 13–18., a function $z=f(x,y)$ and a point $P$ are given. Find the directional derivative of $f$ in the indicated directions. Note: these are the same functions as in Exercises 7.12..

1. 13.
$f(x,y)=-x^{2}y+xy^{2}+xy$, $P=(2,1)$ (a) In the direction of $\vec{v}=\left\langle 3,4\right\rangle$ (b) In the direction toward the point $Q=(1,-1)$.
2. 14.
$\displaystyle f(x,y)=\sin x\cos y$, $\displaystyle P=\left(\frac{\pi}{4},\frac{\pi}{3}\right)$ (a) In the direction of $\vec{v}=\left\langle 1,1\right\rangle$. (b) In the direction toward the point $Q=(0,0)$.
3. 15.
$\displaystyle f(x,y)=\frac{1}{x^{2}+y^{2}+1}$, $P=(1,1)$. (a) In the direction of $\vec{v}=\left\langle 1,-1\right\rangle$. (b) In the direction toward the point $Q=(-2,-2)$.
4. 16.
$\displaystyle f(x,y)=-4x+3y$, $P=(5,2)$ (a) In the direction of $\vec{v}=\left\langle 3,1\right\rangle.$ (b) In the direction toward the point $Q=(2,7)$.
5. 17.
$\displaystyle f(x,y)=x^{2}+2y^{2}-xy-7x$, $P=(4,1)$ (a) In the direction of $\vec{v}=\left\langle-2,5\right\rangle$ (b) In the direction toward the point $Q=(4,0)$.
6. 18.
$\displaystyle f(x,y)=x^{2}y^{3}-2x$, $P=(1,1)$ (a) In the direction of $\vec{v}=\left\langle 3,3\right\rangle$ (b) In the direction toward the point $Q=(1,2)$.

In Exercises 19–24., a function $z=f(x,y)$ and a point $P$ are given.

1. (a)

Find the direction of maximal increase of $f$ at $P$.

2. (b)

What is the maximal value of $D_{\vec{u}\,}f$ at $P$?

3. (c)

Find the direction of minimal increase of $f$ at $P$.

4. (d)

Give a direction $\vec{u}$ such that $D_{\vec{u}\,}f=0$ at $P$.

Note: these are the same functions and points as in Exercises 13.18..

1. 19.

$f(x,y)=-x^{2}y+xy^{2}+xy$, $P=(2,1)$

2. 20.

$\displaystyle f(x,y)=\sin x\cos y$, $\displaystyle P=\left(\frac{\pi}{4},\frac{\pi}{3}\right)$

3. 21.

$\displaystyle f(x,y)=\frac{1}{x^{2}+y^{2}+1}$, $P=(1,1)$.

4. 22.

$\displaystyle f(x,y)=-4x+3y$, $P=(5,4)$.

5. 23.

$\displaystyle f(x,y)=x^{2}+2y^{2}-xy-7x$, $P=(4,1)$

6. 24.

$\displaystyle f(x,y)=x^{2}y^{3}-2x$, $P=(1,1)$

In Exercises 25–28., a function $w=F(x,y,z)$, a vector $\vec{v}$ and a point $P$ are given.

1. (a)

Find $\nabla F(x,y,z)$.

2. (b)

Find $D_{\vec{u}\,}F$ at $P$, where $\vec{u}$ is the unit vector in the direction of $\vec{v}$.

1. 25.

$\displaystyle F(x,y,z)=3x^{2}z^{3}+4xy-3z^{2}$, $\vec{v}=\left\langle 1,1,1\right\rangle$, $P=(3,2,1)$

2. 26.

$\displaystyle F(x,y,z)=\sin(x)\cos(y)e^{z}$, $\vec{v}=\left\langle 2,2,1\right\rangle$, $P=(0,0,0)$

3. 27.

$\displaystyle F(x,y,z)=x^{2}y^{2}-y^{2}z^{2}$, $\vec{v}=\left\langle-1,7,3\right\rangle$, $P=(1,0,-1)$

4. 28.

$\displaystyle F(x,y,z)=\frac{2}{x^{2}+y^{2}+z^{2}}$, $\vec{v}=\left\langle 1,1,-2\right\rangle$, $P=(1,1,1)$

In Exercises 29–30., a function $w=F(x,y,z)$ and a point $P$ are give. Find the direction of maximum increase and the maximal value of the directional derivative for $F$ at $P$

1. 29.

$F(x,y,z)=x^{2}+y^{2}-z^{2}+xyz$ at $P=(2,1,3)$

2. 30.

$F(x,y,z)=\dfrac{1}{x^{2}+2y^{2}+3z^{2}}$ at $P=(1,0,1)$ 