Steply

Partial derivatives of f(x, y, z) = 2x^2 z - 3xy + z at (1, 2, -1)

Step by step, with the reason for every step · Partial derivatives · Calculus 3

Step by step

The question

Question: find the partial derivatives of f(x, y, z) = 2x²z − 3xy + z at (1, 2, −1).

f(x, y, z) = 2x2z − 3xy + z

1 Partial by x

The partial derivative ∂f/∂x is the slope when only x changes.

∂f/∂x: only x changes

For ∂f/∂x, only x changes.

y and z stay fixed: they act like plain numbers.

They are purple now.

f(x, y, z) = 2x2z − 3xy + z

Term by term.

In 2x²z, 2z is fixed and waits in front.

x² gives 2x.

So 4xz.

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

x gives 1.

So 3y.

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

∂f∂x = 4xz − 3y + 0

Drop the zeros: ∂f/∂x = 4xz − 3y.

∂f∂x = 4xz − 3y

Careful!

A fixed letter is not 0!

In x²y, y stays in front.

Only a term with no x at all gives 0.

Careful: fixed y and z is not 0

2 Partial by y

For ∂f/∂y, only y changes.

x and z stay fixed: they act like plain numbers.

They are purple now.

f(x, y, z) = 2x2z − 3xy + z

Term by term.

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

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

y gives 1.

So 3x.

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

∂f∂y = 0 − 3x + 0

Drop the zeros: ∂f/∂y = −3x.

∂f∂y = −3x

3 Partial by z

For ∂f/∂z, only z changes.

x and y stay fixed: they act like plain numbers.

They are purple now.

f(x, y, z) = 2x2z − 3xy + z

Term by term.

In 2x²z, 2x² is fixed and waits in front.

z gives 1.

So 2x².

3xy has no z: it is a fixed number, so it gives 0.

z gives 1.

∂f∂z = 2x2 + 0 + 1

Drop the zeros: ∂f/∂z = 2x² + 1.

∂f∂z = 2x2 + 1

4 Put the point in

Put x = 1, y = 2, z = −1 into ∂f/∂x.

fx(1, 2, −1) = 4(1)(−1) − 3(2)

Work out each term.

fx(1, 2, −1) = −4 − 6

So f_x(1, 2, −1) = −10.

fx(1, 2, −1) = −10

Put x = 1, y = 2, z = −1 into ∂f/∂y.

fy(1, 2, −1) = −3(1)

So f_y(1, 2, −1) = −3.

fy(1, 2, −1) = −3

Put x = 1, y = 2, z = −1 into ∂f/∂z.

fz(1, 2, −1) = 2(1)2 + 1

Work out each term.

fz(1, 2, −1) = 2 + 1

So f_z(1, 2, −1) = 3.

fz(1, 2, −1) = 3

5 Check

The slope between two very close points.

Move x by 0.001: the change in f, over 0.001, is about −10.

f(1.001, 2, −1) − f(1, 2, −1)0.001 = −9.010002 − (−9)0.001 ≈ −10.002

And ∂f/∂x at that point is −10.

Almost the same.

Right!

∂f∂x at (1, 2, −1) = −10

Now move y by 0.001: the change in f, over 0.001, is about −3.

f(1, 2.001, −1) − f(1, 2, −1)0.001 = −9.003 − (−9)0.001 ≈ −3

And ∂f/∂y at that point is −3.

Almost the same.

Right!

∂f∂y at (1, 2, −1) = −3

Now move z by 0.001: the change in f, over 0.001, is about 3.

f(1, 2, −0.999) − f(1, 2, −1)0.001 = −8.997 − (−9)0.001 ≈ 3

And ∂f/∂z at that point is 3.

Almost the same.

Right!

∂f∂z at (1, 2, −1) = 3

Let's look back.

First: partial by x.

Then: partial by y.

Then: partial by z.

Then: put the point in.

Last: check.

Answer
Careful: fixed y and z is not 0

Your turn

Try this one yourself, then check:

Find the partial derivatives of f(x, y, z) = 5x2z − 2xy + 5z
Show the answer
∂f∂x = 10xz − 2y, ∂f∂y = −2x, ∂f∂z = 5x² + 5

More from Partial derivatives

The whole lesson: Partial derivatives →