Steply

Local max and min of f(x, y) = x^2 + 3y^2 - 6x + 6y

Step by step, with the reason for every step · Local maximum, minimum and saddle points · Calculus 3

Step by step

The question

Question: find and classify the critical points of f(x, y) = x² + 3y² − 6x + 6y.

f(x, y) = x2 + 3y2 − 6x + 6y

1 Find the critical points

At a top, a bottom or a saddle, the surface is flat: both partial derivatives are 0.

Term by term.

x²: the power 2 comes down.

The power goes down by 1.

So 2x.

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

6x gives 6.

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

∂f∂x = 2x + 0 − 6 + 0

Drop the zeros: ∂f/∂x = 2x − 6.

∂f∂x = 2x − 6

Term by term.

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

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

The power goes down by 1.

So 6y.

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

6y gives 6.

∂f∂y = 0 + 6y + 0 + 6

Drop the zeros: ∂f/∂y = 6y + 6.

∂f∂y = 6y + 6

Set ∂f/∂x = 0.

It has only x in it.

2x − 6 = 0

Move the number: add 6 on both sides.

2x = 6

Divide by 2: x = 3.

x = 3

Set ∂f/∂y = 0.

It has only y in it.

6y + 6 = 0

Move the number: take away 6 on both sides.

6y = −6

Divide by 6: y = −1.

y = −1

So there is one critical point: (3, −1).

= (3, −1)

2 The second partials

Term by term.

2x gives 2.

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

fxx = 2 + 0

Drop the zeros: f_xx = 2.

fxx = 2

Term by term.

6y gives 6.

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

fyy = 6 + 0

Drop the zeros: f_yy = 6.

fyy = 6

Term by term.

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

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

fxy = 0 + 0

Drop the zeros: f_xy = 0.

fxy = 0

The test number: D = f_xx × f_yy − (f_xy)².

D = fxx × fyy − (fxy)²

3 Test each point

At (3, −1): f_xx is 2, f_yy is 6, f_xy is 0.

So D is 12.

D(3, −1) = 2 × 6 − 0² = 12

Careful!

f_xx alone is not enough.

If D is negative, it is a saddle, whatever f_xx is.

Careful: D first, then the sign of fxx

D is positive and f_xx is positive: a bowl.

A local minimum.

There f is −12.

(3, −1): = local minimum, f = −12

4 Check

Let's check.

Here is the surface near (3, −1).

It is a bowl: the point is at the bottom.

Now small steps away from the point.

Near (3, −1), one step gives a bigger value, the other a bigger one.

That fits a local minimum.

Right!

f(3, −1) = −12: f(3.1, −1) = −11.99, f(3, −0.9) = −11.97

Let's look back.

First: find the critical points.

Then: the second partials.

Then: test each point.

Last: check.

Answer
= (3, −1)

Your turn

Try this one yourself, then check:

Find and classify the critical points of f(x, y) = x2 + 3y2 − 4x + 6y
Show the answer
local minimum at (2, −1)

More from Local maximum, minimum and saddle points

The whole lesson: Local maximum, minimum and saddle points →