Steply

Directional derivative of f(x, y) = xy at (2, 1) in the direction of…

Step by step, with the reason for every step · Gradient and directional derivative · Calculus 3

Step by step

The question

Question: find the directional derivative of f(x, y) = xy at (2, 1), in the direction of ⟨4, 3⟩.

f(x, y) = xy

1 The partial derivatives

Term by term.

In xy, y is fixed and waits in front.

x gives 1.

So y.

So ∂f/∂x = y.

∂f∂x = y

Term by term.

In xy, x is fixed and waits in front.

y gives 1.

So x.

So ∂f/∂y = x.

∂f∂y = x

2 Find the gradient

The gradient ∇f puts the partial derivatives together as one vector.

∇f = ⟨∂f∂x, ∂f∂y⟩

So ∇f = ⟨y, x⟩.

∇f = ⟨y, x⟩

At the point, put x = 2 and y = 1 in: ∇f(2, 1) = ⟨1, 2⟩.

∇f(2, 1) = ⟨1, 2⟩

3 Make it a unit vector

The direction ⟨4, 3⟩ has length 5.

A direction must have length 1.

‖v‖ = √4² + 3² = 5

So divide each part by 5: u = ⟨4/5, 3/5⟩.

u = ⟨45, 35⟩

4 Dot with the gradient

The slope in direction u is the gradient dot u.

Duf = ∇f • u

Multiply the matching parts and add.

Duf = 1 × 45 + 2 × 35

Careful!

With ⟨4, 3⟩ itself, the answer would be 5 times too big.

Careful: use the unit vector u

1 times 4/5 is 4/5.

2 times 3/5 is 6/5.

Duf = 45 + 65

Add: the slope is 2.

Duf = 2

5 Check

Let's check: take a tiny step of 0.001 along u.

The change in f/0.001 is about 2.

f(2.0008, 1.0006) − f(2, 1)0.001 ≈ 2

Our answer 2 is 2.

Almost the same.

Right!

2 = 2

Let's look back.

First: the partial derivatives.

Then: find the gradient.

Then: make it a unit vector.

Then: dot with the gradient.

Last: check.

Answer
Duf = 2

Your turn

Try this one yourself, then check:

Find the directional derivative of f(x, y) = 2xy
Show the answer
Duf = 4

More from Gradient and directional derivative

The whole lesson: Gradient and directional derivative →