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.
Let $z=f(x,y)$ be continuous on an open set $S$ and let $\overrightarrow{u}=\u27e8{u}_{1},{u}_{2}\u27e9$ be a unit vector. For all points $(x,y)$, the directional derivative of $f$ at $\mathrm{(}x\mathrm{,}y\mathrm{)}$ in the direction of $\overrightarrow{u}$ is
$${D}_{\overrightarrow{u}}f(x,y)=\underset{h\to 0}{lim}\frac{f(x+h{u}_{1},y+h{u}_{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 $\overrightarrow{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.
Let $z=f(x,y)$ be differentiable at $({x}_{0},{y}_{0})$, and let $\overrightarrow{u}=\u27e8{u}_{1},{u}_{2}\u27e9$ be a unit vector. The directional derivative of $f$ at $({x}_{0},{y}_{0})$ in the direction of $\overrightarrow{u}$ is
$${D}_{\overrightarrow{u}}f({x}_{0},{y}_{0})={f}_{x}({x}_{0},{y}_{0}){u}_{1}+{f}_{y}({x}_{0},{y}_{0}){u}_{2}.$$ |
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
${D}_{\overrightarrow{u}}f({x}_{0},{y}_{0})$ | $={\displaystyle \frac{\mathrm{d}f}{\mathrm{d}t}}({x}_{0},{y}_{0})$ | ||
$={f}_{x}({x}_{0},{y}_{0}){\displaystyle \frac{\mathrm{d}x}{\mathrm{d}t}}(0)+{f}_{y}({x}_{0},{y}_{0}){\displaystyle \frac{\mathrm{d}y}{\mathrm{d}t}}(0)$ | |||
$={f}_{x}({x}_{0},{y}_{0}){u}_{1}+{f}_{y}({x}_{0},{y}_{0}){u}_{2}.\mathit{\u220e}$ |
Let $z=14-{x}^{2}-{y}^{2}$ and let $P=(1,2)$. Find the directional derivative of $f$, at $P$, in the following directions:
toward the point $Q=(3,4)$,
in the direction of $\u27e82,-1\u27e9$, and
toward the origin.
Solution^{†}^{†}margin:
(fullscreen)
Λ
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$.
Let ${\overrightarrow{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 $\overrightarrow{P}Q=\u27e82,2\u27e9$; the unit vector in this direction is ${\overrightarrow{u}}_{1}=\u27e81/\sqrt{2},1/\sqrt{2}\u27e9$. Thus the directional derivative of $f$ at $(1,2)$ in the direction of ${\overrightarrow{u}}_{1}$ is
$${D}_{{\overrightarrow{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 ${\overrightarrow{u}}_{1}$ (which points toward the point $Q$) is $-3\sqrt{2}$. Moving in this direction moves one steeply downward.
We seek the directional derivative in the direction of $\u27e82,-1\u27e9$. The unit vector in this direction is ${\overrightarrow{u}}_{2}=\u27e82/\sqrt{5},-1/\sqrt{5}\u27e9$. Thus the directional derivative of $f$ at $(1,2)$ in the direction of ${\overrightarrow{u}}_{2}$ is
$${D}_{{\overrightarrow{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 $\u27e82,-1\u27e9$ (or ${\overrightarrow{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.
At $P=(1,2)$, the direction towards the origin is given by the vector $\u27e8-1,-2\u27e9$; the unit vector in this direction is ${\overrightarrow{u}}_{3}=\u27e8-1/\sqrt{5},-2/\sqrt{5}\u27e9$. The directional derivative of $f$ at $P$ in the direction of the origin is
$${D}_{{\overrightarrow{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 $\overrightarrow{u}=\u27e8{u}_{1},{u}_{2}\u27e9$ 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})$.
The gradient of $f$ is $\nabla f(x,y)=\u27e8{f}_{x}(x,y),{f}_{y}(x,y)\u27e9$.
The gradient of $f$ at $({x}_{0},{y}_{0})$ is $\nabla f({x}_{0},{y}_{0})=\u27e8{f}_{x}({x}_{0},{y}_{0}),{f}_{y}({x}_{0},{y}_{0})\u27e9$.
To simplify notation, we often express the gradient as $\nabla f=\u27e8{f}_{x},{f}_{y}\u27e9$. It is often useful to think of the gradient $\nabla $ as an operator:
$$\nabla =\u27e8\frac{\partial}{\partial x},\frac{\partial}{\partial y}\u27e9.$$ |
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.
The directional derivative of $z=f(x,y)$ in the direction of the unit vector $\overrightarrow{u}$ is
$${D}_{\overrightarrow{u}}f=\nabla f\cdot \overrightarrow{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 $\overrightarrow{u}$, three questions naturally arise:
In what direction(s) is the change in $z$ the greatest (i.e., the “steepest uphill”)?
In what direction(s) is the change in $z$ the least (i.e., the “steepest downhill”)?
In what direction(s) is there no change in $z$?
Using the key property of the dot product, we have
$$\nabla f\cdot \overrightarrow{u}=\parallel \nabla f\parallel \parallel \overrightarrow{u}\parallel \mathrm{cos}\theta =\parallel \nabla f\parallel \mathrm{cos}\theta ,$$ | (13.6.1) |
where $\theta $ is the angle between the gradient and $\overrightarrow{u}$. (Since $\overrightarrow{u}$ is a unit vector, $\parallel \overrightarrow{u}\parallel =1$.) This equation allows us to answer the three questions stated previously.
Equation (13.6.1) is maximized when $\mathrm{cos}\theta =1$, i.e., when the gradient and $\overrightarrow{u}$ have the same direction. We conclude the gradient points in the direction of greatest $z$ change.
Equation (13.6.1) is minimized when $\mathrm{cos}\theta =-1$, i.e., when the gradient and $\overrightarrow{u}$ have opposite directions. We conclude the gradient points in the opposite direction of the least $z$ change.
Equation (13.6.1) is 0 when $\mathrm{cos}\theta =0$, i.e., when the gradient and $\overrightarrow{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, $\overrightarrow{r}(t)=\u27e8x(t),y(t)\u27e9$. As the output of $f$ does not change along this curve, $f(x(t),y(t))=c$ for all $t$, for some constant $c$.
Since $f$ is constant for all $t$, $\frac{\mathrm{d}f}{\mathrm{d}t}=0$. By the Multivariable Chain Rule, we also know
$\frac{\mathrm{d}f}{\mathrm{d}t}$ | $={f}_{x}(x,y){x}^{\prime}(t)+{f}_{y}(x,y){y}^{\prime}(t)$ | ||
$=\u27e8{f}_{x}(x,y),{f}_{y}(x,y)\u27e9\cdot \u27e8{x}^{\prime}(t),{y}^{\prime}(t)\u27e9$ | |||
$=\nabla f\cdot {\overrightarrow{r}}^{\prime}(t)$ | |||
$=0.$ |
This last equality states $\nabla f\cdot {\overrightarrow{r}}^{\prime}(t)=0$: the gradient is orthogonal to the derivative of $\overrightarrow{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.
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 $\overrightarrow{u}$ be a unit vector.
The maximum value of ${D}_{\overrightarrow{u}}f({x}_{0},{y}_{0})$ is $\parallel \nabla f({x}_{0},{y}_{0})\parallel $; the direction of maximal $z$ increase is $\nabla f({x}_{0},{y}_{0})$.
The minimum value of ${D}_{\overrightarrow{u}}f({x}_{0},{y}_{0})$ is $-\parallel \nabla f({x}_{0},{y}_{0})\parallel $; the direction of minimal $z$ increase is $-\nabla f({x}_{0},{y}_{0})$.
At $P$, $\nabla f({x}_{0},{y}_{0})$ is orthogonal to the level curve passing through $({x}_{0},{y}_{0})$.
Let $f(x,y)=\mathrm{sin}x\mathrm{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}=\mathrm{cos}x\mathrm{cos}y$ and ${f}_{y}=-\mathrm{sin}x\mathrm{sin}y$, so that
$$\nabla f=\u27e8\mathrm{cos}x\mathrm{cos}y,-\mathrm{sin}x\mathrm{sin}y\u27e9\mathit{\hspace{1em}}\text{and, at}P\text{,}\mathit{\hspace{1em}}\nabla f(\frac{\pi}{3},\frac{\pi}{3})=\u27e8\frac{1}{4},-\frac{3}{4}\u27e9.$$ |
Thus the direction of maximal increase is $\u27e81/4,-3/4\u27e9$. In this direction, the instantaneous rate of $z$ change is $\parallel \u27e81/4,-3/4\u27e9\parallel =\sqrt{10}/4$.
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 $\overrightarrow{u}=\u27e8{u}_{1},{u}_{2}\u27e9$ be the unit vector in the direction of $\nabla f$ at $P$. Each graph of the figure also contains the vector $\u27e8{u}_{1},{u}_{2},\parallel \nabla f\parallel \u27e9$. This vector has a “run” of 1 (because in the $x$-$y$ plane it moves 1 unit) and a “rise” of $\parallel \nabla f\parallel $, hence we can think of it as a vector with slope of $\parallel \nabla f\parallel $ in the direction of $\nabla f$, helping us visualize how “steep” the surface is in its steepest direction.
The direction of minimal increase is $\u27e8-1/4,3/4\u27e9$; 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 $\u27e83,1\u27e9$ and the direction of $\u27e8-3,-1\u27e9$. The unit vector in the direction of $\u27e83,1\u27e9$ 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 $\u27e83,1\u27e9$ is a direction of no $z$-change, this vector is tangent to the level curve at $P$.
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=\u27e8-2x+2,-2y+2\u27e9$. At $P$, we have $\nabla f(1,1)=\u27e80,0\u27e9$. According to Theorem 13.6.2, this is the direction of maximal increase. However, $\u27e80,0\u27e9$ is directionless; it has no displacement. And regardless of the unit vector $\overrightarrow{u}$ chosen, ${D}_{\overrightarrow{u}}f=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 $\overrightarrow{0}=\u27e80,0\u27e9$, 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.
Consider the surface given by $f(x,y)=20-{x}^{2}-2{y}^{2}$. Water is poured on the surface at $(1,1/4)$. What path does it take as it flows downhill?
SolutionLet $\overrightarrow{r}(t)=\u27e8x(t),y(t)\u27e9$ 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 ${\overrightarrow{r}}^{\prime}(t)$ will be parallel to $\nabla f$, and there is some constant $c$ such that $c\nabla f={\overrightarrow{r}}^{\prime}(t)=\u27e8{x}^{\prime}(t),{y}^{\prime}(t)\u27e9$.
We find $\nabla f=\u27e8-2x,-4y\u27e9$ and write ${x}^{\prime}(t)$ as $\frac{\mathrm{d}x}{\mathrm{d}t}$ and ${y}^{\prime}(t)$ as $\frac{\mathrm{d}y}{\mathrm{d}t}$. Then
$c\nabla f$ | $=\u27e8{x}^{\prime}(t),{y}^{\prime}(t)\u27e9$ | ||
$\u27e8-2cx,-4cy\u27e9$ | $=\u27e8{\displaystyle \frac{\mathrm{d}x}{\mathrm{d}t}},{\displaystyle \frac{\mathrm{d}y}{\mathrm{d}t}}\u27e9.$ |
This implies
$$-2cx=\frac{\mathrm{d}x}{\mathrm{d}t}\mathit{\hspace{1em}}\text{and}\mathit{\hspace{1em}}-4cy=\frac{\mathrm{d}y}{\mathrm{d}t},\text{i.e.,}$$ | ||
$$c=-\frac{1}{2x}\frac{\mathrm{d}x}{\mathrm{d}t}\mathit{\hspace{1em}}\text{and}\mathit{\hspace{1em}}c=-\frac{1}{4y}\frac{\mathrm{d}y}{\mathrm{d}t}.$$ |
As $c$ equals both expressions, we have
$$\frac{1}{2x}\frac{\mathrm{d}x}{\mathrm{d}t}=\frac{1}{4y}\frac{\mathrm{d}y}{\mathrm{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 $\frac{\mathrm{d}x}{\mathrm{d}t}}\mathrm{d}t=\mathrm{d}x$. Thus:
$\int \frac{1}{2x}\frac{\mathrm{d}x}{\mathrm{d}t}\mathrm{d}t$ | $={\displaystyle \int \frac{1}{4y}\frac{\mathrm{d}y}{\mathrm{d}t}\mathrm{d}t}$ | |||
$\int \frac{1}{2x}\mathrm{d}x$ | $={\displaystyle \int \frac{1}{4y}\mathrm{d}y}$ | |||
$\frac{1}{2}}\mathrm{ln}\left|x\right|$ | $={\displaystyle \frac{1}{4}}\mathrm{ln}\left|y\right|+{C}_{1}$ | |||
$2\mathrm{ln}\left|x\right|$ | $=\mathrm{ln}\left|y\right|+{C}_{1}$ | |||
$\mathrm{ln}\left|{x}^{2}\right|$ | $=\mathrm{ln}\left|y\right|+{C}_{1}$ | |||
Now raise both sides as a power of $e$: | ||||
${x}^{2}$ | $={e}^{\mathrm{ln}\left|y\right|+{C}_{1}}$ | |||
${x}^{2}$ | $={e}^{\mathrm{ln}\left|y\right|}{e}^{{C}_{1}}\mathit{\hspace{1em}\hspace{1em}}\text{(Note that}{e}^{{C}_{1}}\text{is just a constant.)}$ | |||
${x}^{2}$ | $=y{C}_{2}$ | |||
$\frac{1}{{C}_{2}}}{x}^{2$ | $=y\mathit{\hspace{1em}\hspace{1em}}\text{(Note that}1/{C}_{2}\text{is just a constant.)}$ | |||
$C{x}^{2}$ | $=y.$ |
As the water started at the point $(1,1/4)$, we can solve for $C$:
^{†}^{†}margin:
(fullscreen)
(a)
(b)
Λ
$$C{(1)}^{2}=\frac{1}{4}\mathit{\hspace{1em}}\Rightarrow \mathit{\hspace{1em}}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.
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.
Let $w=F(x,y,z)$ be differentiable on an open ball $B$ and let $\overrightarrow{u}$ be a unit vector in ${\mathbb{R}}^{3}$.
The gradient of $F$ is $\nabla F=\u27e8{F}_{x},{F}_{y},{F}_{z}\u27e9$.
The gradient of $F$ at $\mathrm{(}{x}_{\mathrm{0}}\mathrm{,}{y}_{\mathrm{0}}\mathrm{,}{z}_{\mathrm{0}}\mathrm{)}$ is
$$\nabla F({x}_{0},{y}_{0},{z}_{0})=\u27e8{f}_{x}({x}_{0},{y}_{0},{z}_{0}),{f}_{y}({x}_{0},{y}_{0},{z}_{0}),{f}_{z}({x}_{0},{y}_{0},{z}_{0})\u27e9.$$ |
The directional derivative of $F$ in the direction of $\overrightarrow{u}$ is
$${D}_{\overrightarrow{u}}F=\nabla F\cdot \overrightarrow{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.
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 $\overrightarrow{u}$ be a unit vector.
The maximum value of ${D}_{\overrightarrow{u}}F({x}_{0},{y}_{0},{z}_{0})$ is $\parallel \nabla F({x}_{0},{y}_{0},{z}_{0})\parallel $; the direction of maximal increase is $\nabla F({x}_{0},{y}_{0},{z}_{0})$.
The minimum value of ${D}_{\overrightarrow{u}}F({x}_{0},{y}_{0},{z}_{0})$ is $-\parallel \nabla F({x}_{0},{y}_{0},{z}_{0})\parallel $; the direction of minimal increase is $-\nabla F({x}_{0},{y}_{0},{z}_{0})$.
At $P$, ${D}_{\overrightarrow{u}}F({x}_{0},{y}_{0},{z}_{0})=0$ when $\nabla F({x}_{0},{y}_{0},{z}_{0})$ and $\overrightarrow{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.
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)$, $I(x,y,z)={\displaystyle \frac{k}{{x}^{2}+{y}^{2}+{z}^{2}}}$ for some constant $k$.
Let $k=1$, let $\overrightarrow{u}=\u27e82/3,2/3,1/3\u27e9$ 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 $\overrightarrow{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
$\nabla I$ | $=\u27e8{\displaystyle \frac{-2x}{{({x}^{2}+{y}^{2}+{z}^{2})}^{2}}},{\displaystyle \frac{-2y}{{({x}^{2}+{y}^{2}+{z}^{2})}^{2}}},{\displaystyle \frac{-2z}{{({x}^{2}+{y}^{2}+{z}^{2})}^{2}}}\u27e9$ | ||
$\nabla I(2,5,3)$ | $=\u27e8{\displaystyle \frac{-4}{1444}},{\displaystyle \frac{-10}{1444}},{\displaystyle \frac{-6}{1444}}\u27e9$ | ||
${D}_{\overrightarrow{u}}I$ | $=\nabla I(2,5,3)\cdot \overrightarrow{u}$ | ||
$=-{\displaystyle \frac{17}{2166}}.$ |
The directional derivative tells us that moving in the direction of $\overrightarrow{u}$ from $P$ results in a slight decrease in intensity. (The intensity is decreasing as $\overrightarrow{u}$ moves one farther from the origin than $P$.)
The gradient gives the direction of greatest intensity increase. Notice that
$\nabla I(2,5,3)$ | $=\u27e8{\displaystyle \frac{-4}{1444}},{\displaystyle \frac{-10}{1444}},{\displaystyle \frac{-6}{1444}}\u27e9$ | ||
$={\displaystyle \frac{2}{1444}}\u27e8-2,-5,-3\u27e9.$ |
That is, the gradient at $(2,5,3)$ is pointing in the direction of $\u27e8-2,-5,-3\u27e9$, 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.
What is the difference between a directional derivative and a partial derivative?
For what $\overrightarrow{u}$ is ${D}_{\overrightarrow{u}}f={f}_{x}$?
For what $\overrightarrow{u}$ is ${D}_{\overrightarrow{u}}f={f}_{y}$?
The gradient is to level curves.
The gradient points in the direction of increase.
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.
In Exercises 7–12., a function $z=f(x,y)$ is given. Find $\nabla f$.
$f(x,y)=-{x}^{2}y+x{y}^{2}+xy$
$f(x,y)=\mathrm{sin}x\mathrm{cos}y$
$f(x,y)={\displaystyle \frac{1}{{x}^{2}+{y}^{2}+1}}$
$f(x,y)=-4x+3y$
$f(x,y)={x}^{2}+2{y}^{2}-xy-7x$
$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..
In Exercises 19–24., a function $z=f(x,y)$ and a point $P$ are given.
Find the direction of maximal increase of $f$ at $P$.
What is the maximal value of ${D}_{\overrightarrow{u}}f$ at $P$?
Find the direction of minimal increase of $f$ at $P$.
Give a direction $\overrightarrow{u}$ such that ${D}_{\overrightarrow{u}}f=0$ at $P$.
Note: these are the same functions and points as in Exercises 13.–18..
$f(x,y)=-{x}^{2}y+x{y}^{2}+xy$, $P=(2,1)$
$f(x,y)=\mathrm{sin}x\mathrm{cos}y$, $P=({\displaystyle \frac{\pi}{4}},{\displaystyle \frac{\pi}{3}})$
$f(x,y)={\displaystyle \frac{1}{{x}^{2}+{y}^{2}+1}}$, $P=(1,1)$.
$f(x,y)=-4x+3y$, $P=(5,4)$.
$f(x,y)={x}^{2}+2{y}^{2}-xy-7x$, $P=(4,1)$
$f(x,y)={x}^{2}{y}^{3}-2x$, $P=(1,1)$
In Exercises 25–28., a function $w=F(x,y,z)$, a vector $\overrightarrow{v}$ and a point $P$ are given.
Find $\nabla F(x,y,z)$.
Find ${D}_{\overrightarrow{u}}F$ at $P$, where $\overrightarrow{u}$ is the unit vector in the direction of $\overrightarrow{v}$.
$F(x,y,z)=3{x}^{2}{z}^{3}+4xy-3{z}^{2}$, $\overrightarrow{v}=\u27e81,1,1\u27e9$, $P=(3,2,1)$
$F(x,y,z)=\mathrm{sin}\left(x\right)\mathrm{cos}\left(y\right){e}^{z}$, $\overrightarrow{v}=\u27e82,2,1\u27e9$, $P=(0,0,0)$
$F(x,y,z)={x}^{2}{y}^{2}-{y}^{2}{z}^{2}$, $\overrightarrow{v}=\u27e8-1,7,3\u27e9$, $P=(1,0,-1)$
$F(x,y,z)={\displaystyle \frac{2}{{x}^{2}+{y}^{2}+{z}^{2}}}$, $\overrightarrow{v}=\u27e81,1,-2\u27e9$, $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$
$F(x,y,z)={x}^{2}+{y}^{2}-{z}^{2}+xyz$ at $P=(2,1,3)$
$F(x,y,z)={\displaystyle \frac{1}{{x}^{2}+2{y}^{2}+3{z}^{2}}}$ at $P=(1,0,1)$