Steply

Gradient of f(x, y, z) = xyz at (1, 2, 3)

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

Step by step

The question

Question: find the gradient of f(x, y, z) = xyz at (1, 2, 3).

f(x, y, z) = xyz

1 The partial derivatives

Term by term.

In xyz, yz is fixed and waits in front.

x gives 1.

So yz.

So ∂f/∂x = yz.

∂f∂x = yz

Term by term.

In xyz, xz is fixed and waits in front.

y gives 1.

So xz.

So ∂f/∂y = xz.

∂f∂y = xz

Term by term.

In xyz, xy is fixed and waits in front.

z gives 1.

So xy.

So ∂f/∂z = xy.

∂f∂z = xy

2 Find the gradient

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

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

So ∇f = ⟨yz, xz, xy⟩.

∇f = ⟨yz, xz, xy⟩

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

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

Careful!

The answer has two parts, here three: one for each letter.

It is an arrow, not one number.

Careful: the gradient is a vector, not one number

3 Check

Let's check each part with a tiny step.

Move x by 0.001: about 6.

It matches 6.

Right!

x: f(…x + 0.001…) − f(1, 2, 3)0.001 ≈ 6

Move y by 0.001: about 3.

It matches 3.

Right!

y: f(…y + 0.001…) − f(1, 2, 3)0.001 ≈ 3

Move z by 0.001: about 2.

It matches 2.

Right!

z: f(…z + 0.001…) − f(1, 2, 3)0.001 ≈ 2

Let's look back.

First: the partial derivatives.

Then: find the gradient.

Last: check.

Answer
∇f(1, 2, 3) = ⟨6, 3, 2⟩

Your turn

Try this one yourself, then check:

Find the gradient of f(x, y, z) = 2xyz
Show the answer
∇f(2, 2, 2) = ⟨8, 8, 8⟩

More from Gradient and directional derivative

The whole lesson: Gradient and directional derivative →