Steply

Second partial derivatives of f(x, y) = x^2 y + 3xy^2

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

Step by step

The question

Question: find the second partial derivatives of f(x, y) = x²y + 3xy².

f(x, y) = x2y + 3xy2

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 stays fixed: it acts like a plain number.

It is purple now.

f(x, y) = x2y + 3xy2

Term by term.

In x²y, y is fixed and waits in front.

x² gives 2x.

So 2xy.

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

x gives 1.

So 3y².

So ∂f/∂x = 2xy + 3y².

∂f∂x = 2xy + 3y2

2 Partial by y

Term by term.

In x²y, x² is fixed and waits in front.

y gives 1.

So x².

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

y² gives 2y.

So 6xy.

So ∂f/∂y = x² + 6xy.

∂f∂y = x2 + 6xy

3 The second partials

Now take each answer's partial derivatives again.

f_xy means: first by x, then by y.

Term by term.

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

x gives 1.

So 2y.

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

fxx = 2y + 0

Drop the zeros: f_xx = 2y.

fxx = 2y

Term by term.

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

y gives 1.

So 2x.

3y²: the power 2 comes down: 3 times 2 is 6.

The power goes down by 1.

So 6y.

So f_xy = 2x + 6y.

fxy = 2x + 6y

Term by term.

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

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

y gives 1.

So 6x.

fyy = 0 + 6x

Drop the zeros: f_yy = 6x.

fyy = 6x

Term by term.

x²: the power 2 comes down.

The power goes down by 1.

So 2x.

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

x gives 1.

So 6y.

So f_yx = 2x + 6y.

fyx = 2x + 6y

4 Check

Let's check.

The two mixed ones, f_xy and f_yx, must come out the same.

They do.

Right!

fxy = 2x + 6y and fyx = 2x + 6y

Let's look back.

First: partial by x.

Then: partial by y.

Then: the second partials.

Last: check.

Answer
fyx = 2x + 6y

Your turn

Try this one yourself, then check:

Find the second partial derivatives of f(x, y) = 6x2y + xy2
Show the answer
fxx = 12y, fyy = 2x, fxy = fyx = 12x + 2y

More from Partial derivatives

The whole lesson: Partial derivatives →