Multivariable CalculusThe Chain Rule and the Gradient3 of 4
The Chain Rule and the Gradient · 3

Directional Derivatives and the Gradient Vector

Partial derivatives tell us the slope of a surface when we walk due East or due North, and now we need a way to find the slope when we walk in any direction.

1

Slope in Any Direction from East and North Slopes

The directional derivative is the slope of a surface f(x,y)\surf{f(x, y)} in the direction you choose to walk: how much your height changes per 11 unit of horizontal step. Because any smooth surface looks like a flat, tilted tangent plane when you zoom in close to your feet, you only need the East slope ∂f∂x\slope{\frac{\partial f}{\partial x}} and the North slope ∂f∂y\slope{\frac{\partial f}{\partial y}} to find the slope along any diagonal path.

Slope in Any Direction from East and North Slopes
x  East\htmlClass{lc-mute}{x\;\text{East}}
y  North\htmlClass{lc-mute}{y\;\text{North}}
altitude\htmlClass{lc-mute}{\text{altitude}}
f(x,y)\htmlClass{lc-blue}{f(x, y)}

Because slope measures the height change per 11 unit of horizontal travel, we have to test every direction with a step of length 11. If a direction is given by a vector v=⟨a,b⟩v = \langle a, b \rangle whose length ∣v∣=a2+b2|v| = \sqrt{a^2 + b^2} is not 11, plugging aa and bb straight in would measure the height change over a step of length ∣v∣|v| rather than 11. We divide vv by its length first to scale it to a unit vector uu:

u\displaystyle u =v∣v∣\displaystyle = \frac{v}{|v|} =⟨aa2+b2,ba2+b2⟩⏟unit direction vector (length 1)\displaystyle = \underbrace{\left\langle \frac{a}{\sqrt{a^2 + b^2}}, \frac{b}{\sqrt{a^2 + b^2}} \right\rangle}_{\text{unit direction vector (length } 1\text{)}}
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
2\htmlClass{lc-mute}{2}
2\htmlClass{lc-mute}{2}
3\htmlClass{lc-mute}{3}
3\htmlClass{lc-mute}{3}
4\htmlClass{lc-mute}{4}
4\htmlClass{lc-mute}{4}
1\htmlClass{lc-mute}{1}
v=⟨3,4⟩v = \langle 3, 4 \rangle
∣v∣=5|v| = 5
u=⟨35,45⟩u = \left\langle \tfrac{3}{5}, \tfrac{4}{5} \right\rangle

Once our step u=⟨u1,u2⟩u = \langle u_1, u_2 \rangle has length 11, walking diagonally along uu on the tangent plane right under your feet gives the exact same height change as walking u1u_1 units East and then u2u_2 units North:

Directional slope\displaystyle \slope{\text{Directional slope}} =∂f∂x⋅u1⏟East height change+∂f∂y⋅u2⏟North height change\displaystyle = \underbrace{\slope{\frac{\partial f}{\partial x}} \cdot u_1}_{\slope{\text{East height change}}} + \underbrace{\slope{\frac{\partial f}{\partial y}} \cdot u_2}_{\slope{\text{North height change}}}

On the zoomed-in tangent plane, for every direction around the unit circle, the East height change and the North height change add together to match the surface's height change over that 11-unit step.

On the flat tangent plane, the slope along any 1-unit step is the East height change plus the North height change.
2

Finding a Directional Derivative from Partial Derivatives

Now let's find the directional derivative of a surface f(x,y)\surf{f(x, y)} at a given point along a given vector vv.

Example: Find the directional derivative of f(x,y)=x2y\surf{f(x, y) = x^2y} at the point (1,2)(1, 2) in the direction of the vector v=⟨2,−1⟩v = \langle 2, -1 \rangle.

Finding a Directional Derivative from Partial Derivatives
x  East\htmlClass{lc-mute}{x\;\text{East}}
North  y\htmlClass{lc-mute}{\text{North}\;y}
z\htmlClass{lc-mute}{z}
f(x,y)=x2y\htmlClass{lc-blue}{f(x, y) = x^2y}
(1,2)(1, 2)
v=⟨2,−1⟩v = \langle 2, -1 \rangle
Text solution
1. Find the East and North slopes at (1,2)(1, 2)Differentiate f(x,y)=x2y\surf{f(x, y) = x^2y} with respect to xx and yy, then plug in (1,2)(1, 2) to find the two basic slopes right where we stand.
∂f∂x=2xy=2(1)(2)=4∂f∂y=x2=(1)2=1\displaystyle \begin{aligned} \slope{\frac{\partial f}{\partial x}} &= 2xy = 2(1)(2) = \slope{4} \\ \slope{\frac{\partial f}{\partial y}} &= x^2 = (1)^2 = \slope{1} \end{aligned}
2. Divide vv by its length to get a unit step uuFind the length of v=⟨2,−1⟩v = \langle 2, -1 \rangle and divide both components by that length so our step is 11 unit long.
∣v∣=22+(−1)2=4+1=5u=v∣v∣=⟨25,−15⟩\displaystyle \begin{aligned} |v| &= \sqrt{2^2 + (-1)^2} \\ &= \sqrt{4 + 1} = \sqrt{5} \\ u &= \frac{v}{|v|} = \left\langle \frac{2}{\sqrt{5}}, -\frac{1}{\sqrt{5}} \right\rangle \end{aligned}
3. Multiply each slope by its step component and addAdd the height changes from the xx-step and the yy-step to get the directional derivative Duf\slope{D_u f} (the subscript uu reminds us that the direction vector is a unit vector).
Duf=4(25)+1(−15)=85−15=75\displaystyle \begin{aligned} \slope{D_u f} &= \slope{4}\left(\frac{2}{\sqrt{5}}\right) + \slope{1}\left(-\frac{1}{\sqrt{5}}\right) \\ &= \frac{8}{\sqrt{5}} - \frac{1}{\sqrt{5}} \\ &= \frac{7}{\sqrt{5}} \end{aligned}

So walking from (1,2)(1, 2) in the direction of ⟨2,−1⟩\langle 2, -1 \rangle, the surface rises at a rate of 75\frac{7}{\sqrt{5}} units of height per 11 unit of horizontal travel.

3

The Gradient Vector and the Dot Product Formula

The gradient vector puts a surface's partial derivatives at a point together into a single vector. It separates the calculation into two pieces: one vector for the hill's slopes at your feet, and one unit vector for the direction you choose to walk.

Remember, the dot product of two vectors multiplies their matching components and adds them up: ⟨a1,b1⟩⋅⟨a2,b2⟩=a1a2+b1b2\langle a_1, b_1 \rangle \cdot \langle a_2, b_2 \rangle = a_1 a_2 + b_1 b_2.

The Gradient Vector and the Dot Product Formula
Duf=4(25)+1(−15)\slope{D_u f} = \slope{4}\left(\tfrac{2}{\sqrt{5}}\right) + \slope{1}\left(-\tfrac{1}{\sqrt{5}}\right)
(1,2)(1, 2)
∂f∂x=4\slope{\dfrac{\partial f}{\partial x} = 4}
∂f∂y=1\slope{\dfrac{\partial f}{\partial y} = 1}
uu
25\tfrac{2}{\sqrt{5}}
−15-\tfrac{1}{\sqrt{5}}

Putting the partial derivatives into the gradient vector turns our directional derivative calculation into a single dot product:

Duf\displaystyle \slope{D_u f} =⟨∂f∂x,∂f∂y⟩⏟gradient vector ∇f⋅⟨u1,u2⟩⏟unit vector u\displaystyle = \underbrace{\slope{\left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right\rangle}}_{\slope{\text{gradient vector } \nabla f}} \cdot \underbrace{\langle u_1, u_2 \rangle}_{\text{unit vector } u} =∇f⋅u\displaystyle = \slope{\nabla f} \cdot u

The upside-down triangle ∇\nabla is called del (or nabla), so ∇f\slope{\nabla f} is read "the gradient of f\surf{f}" or "del f\surf{f}." Notice that ∇f\slope{\nabla f} is a vector of slopes, whereas the directional derivative Duf=∇f⋅u\slope{D_u f} = \slope{\nabla f} \cdot u is a single number.

For a function of three variables f(x,y,z)\surf{f(x, y, z)}, the gradient includes the zz partial derivative and takes the dot product with a 3D unit vector in the exact same way:

∇f=⟨∂f∂x,∂f∂y,∂f∂z⟩,Duf=∇f⋅u\displaystyle \begin{aligned}\slope{\nabla f} &= \slope{\left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right\rangle}, \\ \slope{D_u f} &= \slope{\nabla f} \cdot u\end{aligned}
4

Directional Derivative at a Given Angle

Sometimes a problem gives your walking direction as an angle θ\theta from the positive xx-axis instead of giving you a vector vv.

Example: For the same surface f(x,y)=x2y\surf{f(x, y) = x^2y} at the point (1,2)(1, 2), where ∇f(1,2)=⟨4,1⟩\slope{\nabla f(1, 2)} = \slope{\langle 4, 1 \rangle}, find the directional derivative if you walk at an angle of θ=π3\theta = \frac{\pi}{3} (60∘)(60^\circ) from the positive xx-axis.

Directional Derivative at a Given Angle
Duf=∇f⋅u=  ?\slope{D_u f} = \slope{\nabla f} \cdot u = \;?
(1,2)(1, 2)
∂f∂x=4\slope{\dfrac{\partial f}{\partial x} = 4}
∂f∂y=1\slope{\dfrac{\partial f}{\partial y} = 1}
θ=π3\theta = \tfrac{\pi}{3}
uu
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(1,2)(1, 2)
θ=π3\theta = \tfrac{\pi}{3}
uu
11
cos⁡π3=12\cos\tfrac{\pi}{3} = \tfrac{1}{2}
sin⁡π3=32\begin{aligned} &\sin\tfrac{\pi}{3} \\ &= \tfrac{\sqrt{3}}{2} \end{aligned}
Text solution
1. Write the unit vector uu directly from the angle θ=π3\theta = \frac{\pi}{3}A step to the unit circle at angle θ\theta has components ⟨cos⁡θ,sin⁡θ⟩\langle \cos\theta, \sin\theta \rangle, which already has length 11 because cos⁡2θ+sin⁡2θ=1\cos^2\theta + \sin^2\theta = 1.
u\displaystyle u =⟨cos⁡π3,sin⁡π3⟩\displaystyle = \left\langle \cos\frac{\pi}{3}, \sin\frac{\pi}{3} \right\rangle =⟨12,32⟩\displaystyle = \left\langle \frac{1}{2}, \frac{\sqrt{3}}{2} \right\rangle
2. Take the dot product of the gradient at (1,2)(1, 2) and the unit vector uuMultiply the matching components of ∇f(1,2)=⟨4,1⟩\slope{\nabla f(1, 2)} = \slope{\langle 4, 1 \rangle} and uu, then add.
Duf=⟨4,1⟩⋅⟨12,32⟩=4(12)+1(32)=2+32\displaystyle \begin{aligned} \slope{D_u f} &= \slope{\langle 4, 1 \rangle} \cdot \left\langle \frac{1}{2}, \frac{\sqrt{3}}{2} \right\rangle \\ &= \slope{4}\left(\frac{1}{2}\right) + \slope{1}\left(\frac{\sqrt{3}}{2}\right) \\ &= 2 + \frac{\sqrt{3}}{2} \end{aligned}

So walking from (1,2)(1, 2) at a 60∘60^\circ angle from the positive xx-axis, the hill rises at a rate of 2+322 + \frac{\sqrt{3}}{2} units of height per 11 unit of horizontal travel.

5

The Geometric Meaning of the Gradient

Drawing the gradient ∇f\slope{\nabla f} as an arrow on the ground at our feet tells us which direction on the hill is the steepest uphill, what that steepest slope is, and which direction is completely level.

Remember, the dot product of two vectors can also be written using the angle ϕ\phi between them: a⋅b=∣a∣ ∣b∣cos⁡ϕa \cdot b = |a|\,|b|\cos\phi.

The Geometric Meaning of the Gradient
Duf=∇f⋅u\slope{D_u f} = \slope{\nabla f} \cdot u
x\htmlClass{lc-mute}{x}
y\htmlClass{lc-mute}{y}
(1,2)(1, 2)
∇f=⟨4,1⟩\slope{\nabla f = \langle 4, 1 \rangle}
uu
φ\varphi

Because the direction vector uu has length ∣u∣=1|u| = 1, rewriting Duf=∇f⋅u\slope{D_u f} = \slope{\nabla f} \cdot u in its cosine form leaves only the length of the gradient and the angle ϕ\phi between ∇f\slope{\nabla f} and uu:

Duf\displaystyle \slope{D_u f} =∣∇f∣ ∣u∣⏟1cos⁡ϕ\displaystyle = \slope{|\nabla f|}\,\underbrace{|u|}_{1}\cos\phi =∣∇f∣cos⁡ϕ\displaystyle = \slope{|\nabla f|}\cos\phi

Since cos⁡ϕ\cos\phi goes between −1-1 and 11, turning your walking direction uu relative to ∇f\slope{\nabla f} shows three special directions at any point on the surface:

As you turn your walking direction uu around a point on the surface, the slope Duf=∣∇f∣cos⁡ϕ\slope{D_u f} = \slope{|\nabla f|}\cos\phi ranges from ∣∇f∣\slope{|\nabla f|} straight uphill (ϕ=0∘)(\phi = 0^\circ), to 00 along the level curve (ϕ=90∘)(\phi = 90^\circ), to −∣∇f∣-\slope{|\nabla f|} straight downhill (ϕ=180∘)(\phi = 180^\circ).

At any spot on the hill, how steep your step is depends entirely on its angle with the gradient arrow.

Summary

Every directional derivative question at a point separates the surface's slopes (∇f=⟨∂f∂x,∂f∂y⟩(\slope{\nabla f} = \slope{\left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right\rangle} plugged in at the point) from your walking direction (a unit vector uu of length 11), combining them with

Duf\displaystyle \slope{D_u f} =∇f⋅u\displaystyle = \slope{\nabla f} \cdot u =∣∇f∣cos⁡ϕ\displaystyle = \slope{|\nabla f|}\cos\phi

How you set up the calculation depends on what the problem gives you:

Direction given as a vector v=⟨a,b⟩v = \langle a, b \rangle (divide by its length, then take the dot product)

Divide vv by ∣v∣=a2+b2|v| = \sqrt{a^2 + b^2} to get u=v∣v∣u = \frac{v}{|v|}, then calculate ∇f⋅u\slope{\nabla f} \cdot u. For ∇f=⟨4,1⟩\slope{\nabla f} = \slope{\langle 4, 1 \rangle} and v=⟨3,4⟩v = \langle 3, 4 \rangle, divide vv by its length 55 to get u=⟨3/5,4/5⟩u = \langle 3/5, 4/5 \rangle and take the dot product: ⟨4,1⟩⋅⟨3/5,4/5⟩=16/5\slope{\langle 4, 1 \rangle} \cdot \langle 3/5, 4/5 \rangle = 16/5. (When not to use this: if the problem asks only for the East slope or North slope, ∂f∂x\slope{\frac{\partial f}{\partial x}} or ∂f∂y\slope{\frac{\partial f}{\partial y}} is already the answer; if a2+b2=1a^2 + b^2 = 1 already, vv is already a unit vector.)

Direction given as an angle θ\theta from the positive xx-axis (unit circle, then take the dot product)

Write u=⟨cos⁡θ,sin⁡θ⟩u = \langle \cos\theta, \sin\theta \rangle directly. It already has length 11, so do not waste time finding its length. For ∇f=⟨4,1⟩\slope{\nabla f} = \slope{\langle 4, 1 \rangle} and θ=π/3\theta = \pi/3, u=⟨1/2,3/2⟩u = \langle 1/2, \sqrt{3}/2 \rangle gives Duf=4(1/2)+1(3/2)\slope{D_u f} = \slope{4}(1/2) + \slope{1}(\sqrt{3}/2) =2+3/2= 2 + \sqrt{3}/2.

Maximum slope, angle ϕ\phi to the gradient, or level direction (use the geometry of ∇f\slope{\nabla f})

If a question asks for the maximum possible slope at a point, you do not need a direction vector uu at all: just find the length of the gradient, ∣∇f∣\slope{|\nabla f|} (for ∇f=⟨4,1⟩\slope{\nabla f} = \slope{\langle 4, 1 \rangle}, the maximum slope is 42+12=17\sqrt{4^2 + 1^2} = \sqrt{17}). If you walk at an angle ϕ\phi to ∇f\slope{\nabla f}, use Duf=∣∇f∣cos⁡ϕ\slope{D_u f} = \slope{|\nabla f|}\cos\phi. To find the two unit directions where Duf=0\slope{D_u f} = 0, swap the components of ∇f=⟨a,b⟩\slope{\nabla f} = \slope{\langle a, b \rangle}, flip one sign to make ∇f⋅u=0\slope{\nabla f} \cdot u = 0, and divide by a2+b2\sqrt{a^2 + b^2}.

6

Practice

1

Find the directional derivative of f(x,y)=3x2−xy2\surf{f(x, y) = 3x^2 - xy^2} at the point (2,1)(2, 1) in the direction of the vector v=⟨3,−4⟩v = \langle 3, -4 \rangle.

Find ∇f=⟨∂f∂x,∂f∂y⟩\slope{\nabla f} = \slope{\left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y} \right\rangle} at (2,1)(2, 1), then check the length of v=⟨3,−4⟩v = \langle 3, -4 \rangle: how long is that step?

At (2,1)(2, 1), the partial derivatives are ∂f∂x=6x−y2=11\slope{\frac{\partial f}{\partial x}} = 6x - y^2 = \slope{11} and ∂f∂y=−2xy=−4\slope{\frac{\partial f}{\partial y}} = -2xy = \slope{-4}, giving ∇f(2,1)=⟨11,−4⟩\slope{\nabla f(2, 1)} = \slope{\langle 11, -4 \rangle}. (Watch out: taking the dot product of ⟨11,−4⟩\slope{\langle 11, -4 \rangle} directly with v=⟨3,−4⟩v = \langle 3, -4 \rangle gives 4949, which is the height change over a 55-unit step; and missing the double negative in (−4)(−4/5)(\slope{-4})(-4/5) gives 17/517/5.) Divide vv by its length ∣v∣=32+(−4)2=5|v| = \sqrt{3^2 + (-4)^2} = 5 to get u=⟨35,−45⟩u = \left\langle \frac{3}{5}, -\frac{4}{5} \right\rangle, then take the dot product:
Duf\displaystyle \slope{D_u f} =⟨11,−4⟩⋅⟨35,−45⟩\displaystyle = \slope{\langle 11, -4 \rangle} \cdot \left\langle \frac{3}{5}, -\frac{4}{5} \right\rangle =335+165\displaystyle = \frac{33}{5} + \frac{16}{5} =495\displaystyle = \frac{49}{5}
Answer495\frac{49}{5}
2

Find the directional derivative of f(x,y)=xe2y\surf{f(x, y) = xe^{2y}} at the point (4,0)(4, 0) in the direction of the angle θ=2π3\theta = \frac{2\pi}{3} from the positive xx-axis.

Remember the chain rule on e2ye^{2y} when finding ∂f∂y\slope{\frac{\partial f}{\partial y}}; for the unit vector uu, what are the signs of cos⁡θ\cos\theta and sin⁡θ\sin\theta at θ=2π3\theta = \frac{2\pi}{3} in the second quadrant?

At (4,0)(4, 0), ∂f∂x=e2y=1\slope{\frac{\partial f}{\partial x}} = e^{2y} = \slope{1} and ∂f∂y=2xe2y=8\slope{\frac{\partial f}{\partial y}} = 2xe^{2y} = \slope{8}, so ∇f(4,0)=⟨1,8⟩\slope{\nabla f(4, 0)} = \slope{\langle 1, 8 \rangle}. (Watch out: forgetting the chain rule factor of 22 on e2ye^{2y} gives ∇f(4,0)=⟨1,4⟩\slope{\nabla f(4, 0)} = \langle 1, 4 \rangle and −12+23-\frac{1}{2} + 2\sqrt{3}; and dropping the negative sign on cos⁡2π3=−12\cos\frac{2\pi}{3} = -\frac{1}{2} gives 12+43\frac{1}{2} + 4\sqrt{3}.) From the unit circle, u=⟨cos⁡2π3,sin⁡2π3⟩u = \left\langle \cos\frac{2\pi}{3}, \sin\frac{2\pi}{3} \right\rangle =⟨−12,32⟩= \left\langle -\frac{1}{2}, \frac{\sqrt{3}}{2} \right\rangle, so
Duf\displaystyle \slope{D_u f} =⟨1,8⟩⋅⟨−12,32⟩\displaystyle = \slope{\langle 1, 8 \rangle} \cdot \left\langle -\frac{1}{2}, \frac{\sqrt{3}}{2} \right\rangle =−12+43\displaystyle = -\frac{1}{2} + 4\sqrt{3}
Answer−12+43-\frac{1}{2} + 4\sqrt{3}
3

Find the directional derivative of f(x,y,z)=xy+yz2\surf{f(x, y, z) = xy + yz^2} at the point (1,−2,3)(1, -2, 3) in the direction of the vector v=⟨2,1,−2⟩v = \langle 2, 1, -2 \rangle.

Find all three partial derivatives ⟨∂f∂x,∂f∂y,∂f∂z⟩\slope{\left\langle \frac{\partial f}{\partial x}, \frac{\partial f}{\partial y}, \frac{\partial f}{\partial z} \right\rangle} at (1,−2,3)(1, -2, 3), and divide vv by its 3D length 22+12+(−2)2\sqrt{2^2 + 1^2 + (-2)^2}.

At (1,−2,3)(1, -2, 3), the partial derivatives are ∂f∂x=y=−2\slope{\frac{\partial f}{\partial x}} = y = \slope{-2}, ∂f∂y=x+z2=10\slope{\frac{\partial f}{\partial y}} = x + z^2 = \slope{10}, and ∂f∂z=2yz=−12\slope{\frac{\partial f}{\partial z}} = 2yz = \slope{-12}, so ∇f(1,−2,3)=⟨−2,10,−12⟩\slope{\nabla f(1, -2, 3)} = \slope{\langle -2, 10, -12 \rangle}. (Watch out: forgetting to divide vv by its length ∣v∣=3|v| = 3 gives 3030; and losing the positive sign on (−12)(−2/3)=+8(\slope{-12})(-2/3) = +8 in the dot product gives −6-6.) Since ∣v∣=4+1+4=3|v| = \sqrt{4 + 1 + 4} = 3, the unit vector is u=⟨23,13,−23⟩u = \left\langle \frac{2}{3}, \frac{1}{3}, -\frac{2}{3} \right\rangle, giving
Duf\displaystyle \slope{D_u f} =⟨−2,10,−12⟩⋅⟨23,13,−23⟩\displaystyle = \slope{\langle -2, 10, -12 \rangle} \cdot \left\langle \frac{2}{3}, \frac{1}{3}, -\frac{2}{3} \right\rangle =−43+103+243\displaystyle = -\frac{4}{3} + \frac{10}{3} + \frac{24}{3} =10\displaystyle = 10
Answer1010
4

At a point on a hill f(x,y)\surf{f(x, y)}, the East slope is ∂f∂x=−6\slope{\frac{\partial f}{\partial x}} = \slope{-6} and the North slope is ∂f∂y=8\slope{\frac{\partial f}{\partial y}} = \slope{8}. What is the maximum possible slope at this point, and what is the slope if you walk at a 60∘60^\circ angle to the gradient vector?

How does the maximum slope relate to the vector ∇f=⟨−6,8⟩\slope{\nabla f} = \slope{\langle -6, 8 \rangle}, and which formula uses the angle ϕ\phi between your walking direction and ∇f\slope{\nabla f}?

The gradient vector is ∇f=⟨−6,8⟩\slope{\nabla f} = \slope{\langle -6, 8 \rangle}, so the maximum possible slope is its length:
∣∇f∣\displaystyle \slope{|\nabla f|} =(−6)2+82\displaystyle = \sqrt{(-6)^2 + 8^2} =36+64\displaystyle = \sqrt{36 + 64} =10\displaystyle = 10
(Watch out: 60∘60^\circ is the angle ϕ\phi to the gradient vector, not the angle θ\theta from the positive xx-axis. Plugging ⟨cos⁡60∘,sin⁡60∘⟩\langle \cos 60^\circ, \sin 60^\circ \rangle into ⟨−6,8⟩⋅u\slope{\langle -6, 8 \rangle} \cdot u gives the wrong answer −3+43-3 + 4\sqrt{3}.) Using the angle ϕ=60∘\phi = 60^\circ to the gradient:
Duf\displaystyle \slope{D_u f} =∣∇f∣cos⁡60∘\displaystyle = \slope{|\nabla f|}\cos 60^\circ =10(12)\displaystyle = \slope{10}\left(\frac{1}{2}\right) =5\displaystyle = 5
AnswerMaximum slope =10= 10; slope at 60∘60^\circ to the gradient =5= 5
5

Find the two unit vectors uu at the point (3,2)(3, 2) on the surface f(x,y)=x2+2y2\surf{f(x, y) = x^2 + 2y^2} along which the directional derivative Duf\slope{D_u f} equals 00.

Find ∇f(3,2)\slope{\nabla f(3, 2)} first; what must ∇f(3,2)⋅u\slope{\nabla f(3, 2)} \cdot u equal for the slope to be 00?

At (3,2)(3, 2), ∇f(x,y)=⟨2x,4y⟩\slope{\nabla f(x, y)} = \langle 2x, 4y \rangle gives ∇f(3,2)=⟨6,8⟩\slope{\nabla f(3, 2)} = \slope{\langle 6, 8 \rangle}. (Watch out: dividing ⟨6,8⟩\slope{\langle 6, 8 \rangle} itself by its length gives ±⟨3/5,4/5⟩\pm\langle 3/5, 4/5 \rangle, which are the steepest uphill and downhill directions rather than the level directions where Duf=0\slope{D_u f} = 0; and stopping at ⟨−8,6⟩\langle -8, 6 \rangle or ⟨−4,3⟩\langle -4, 3 \rangle leaves a vector whose length is not 11.) For Duf=⟨6,8⟩⋅u=0\slope{D_u f} = \slope{\langle 6, 8 \rangle} \cdot u = 0, uu must be perpendicular to ⟨6,8⟩\slope{\langle 6, 8 \rangle}. Swapping components and flipping one sign gives ⟨−8,6⟩\langle -8, 6 \rangle and ⟨8,−6⟩\langle 8, -6 \rangle, each of length (−8)2+62=10\sqrt{(-8)^2 + 6^2} = 10. Dividing by 1010 gives the two unit vectors:
u\displaystyle u =⟨−45,35⟩andu\displaystyle = \left\langle -\frac{4}{5}, \frac{3}{5} \right\rangle \quad \text{and} \quad u =⟨45,−35⟩\displaystyle = \left\langle \frac{4}{5}, -\frac{3}{5} \right\rangle
Answer⟨−45,35⟩\left\langle -\frac{4}{5}, \frac{3}{5} \right\rangle and ⟨45,−35⟩\left\langle \frac{4}{5}, -\frac{3}{5} \right\rangle
6

At a point on a smooth hill, the East slope is ∂f∂x=5\slope{\frac{\partial f}{\partial x}} = \slope{5}. If the directional derivative in the direction of the vector v=⟨3,4⟩v = \langle 3, 4 \rangle is Duf=7\slope{D_u f} = \slope{7}, what is the North slope ∂f∂y\slope{\frac{\partial f}{\partial y}} at that point?

Divide v=⟨3,4⟩v = \langle 3, 4 \rangle by its length to get a unit vector uu first, then set up the dot product ⟨5,∂f∂y⟩⋅u=7\slope{\left\langle 5, \frac{\partial f}{\partial y} \right\rangle} \cdot u = \slope{7}.

Since ∣v∣=32+42=5|v| = \sqrt{3^2 + 4^2} = 5, the unit direction vector is u=⟨35,45⟩u = \left\langle \frac{3}{5}, \frac{4}{5} \right\rangle. (Watch out: forgetting to divide v=⟨3,4⟩v = \langle 3, 4 \rangle by its length 55 sets up 5(3)+∂f∂y(4)=7\slope{5}(3) + \slope{\frac{\partial f}{\partial y}}(4) = \slope{7}, which gives the wrong answer ∂f∂y=−2\slope{\frac{\partial f}{\partial y}} = -2.) Set up Duf=∇f⋅u=7\slope{D_u f} = \slope{\nabla f} \cdot u = \slope{7} and solve for ∂f∂y\slope{\frac{\partial f}{\partial y}}:
5(35)+∂f∂y(45)=73+45∂f∂y=745∂f∂y=4∂f∂y=5\displaystyle \begin{aligned} \slope{5}\left(\frac{3}{5}\right) + \slope{\frac{\partial f}{\partial y}}\left(\frac{4}{5}\right) &= \slope{7} \\ 3 + \frac{4}{5}\slope{\frac{\partial f}{\partial y}} &= \slope{7} \\ \frac{4}{5}\slope{\frac{\partial f}{\partial y}} &= 4 \\ \slope{\frac{\partial f}{\partial y}} &= 5 \end{aligned}
Answer55