Steply

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

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) = 2xy − y² at (3, 1), in the direction of ⟨1, 0⟩.

f(x, y) = 2xy − y2

1 The partial derivatives

Term by term.

In 2xy, 2y is fixed and waits in front.

x gives 1.

So 2y.

y² has no x: it is a fixed number, so it gives 0.

∂f∂x = 2y + 0

Drop the zeros: ∂f/∂x = 2y.

∂f∂x = 2y

Term by term.

In 2xy, 2x is fixed and waits in front.

y gives 1.

So 2x.

y²: the power 2 comes down: −1 times 2 is −2.

The power goes down by 1.

So 2y.

So ∂f/∂y = 2x − 2y.

∂f∂y = 2x − 2y

2 Find the gradient

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

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

So ∇f = ⟨2y, 2x − 2y⟩.

∇f = ⟨2y, 2x − 2y⟩

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

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

3 Make it a unit vector

⟨1, 0⟩ already has length 1.

u = ⟨1, 0⟩

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 = 2 × 1 + 4 × 0

Careful!

With ⟨1, 0⟩ itself, the answer would be 1 times too big.

Careful: use the unit vector u

2 times 1 is 2.

4 times 0 is 0.

Duf = 2 + 0

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(3.001, 1) − f(3, 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) = 3xy − 3y2
Show the answer
Duf = 3

More from Gradient and directional derivative

The whole lesson: Gradient and directional derivative →