Steply

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

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) = 9 − x² − y² + 2y.

f(x, y) = 9 − x2 − y2 + 2y

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.

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

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

The power goes down by 1.

So 2x.

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

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

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

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

∂f∂x = −2x

Term by term.

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

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

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

The power goes down by 1.

So 2y.

2y gives 2.

∂f∂y = 0 + 0 − 2y + 2

Drop the zeros: ∂f/∂y = −2y + 2.

∂f∂y = −2y + 2

Set ∂f/∂x = 0.

It has only x in it.

−2x = 0

Divide by −2: x = 0.

x = 0

Set ∂f/∂y = 0.

It has only y in it.

−2y + 2 = 0

Move the number: take away 2 on both sides.

−2y = −2

Divide by −2: y = 1.

y = 1

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

= (0, 1)

2 The second partials

Term by term.

2x gives 2.

So f_xx = −2.

fxx = −2

Term by term.

2y gives 2.

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

fyy = −2 + 0

Drop the zeros: f_yy = −2.

fyy = −2

Term by term.

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

fxy = 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 (0, 1): f_xx is −2, f_yy is −2, f_xy is 0.

So D is 4.

D(0, 1) = (−2) × (−2) − 0² = 4

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 negative: a dome.

A local maximum.

There f is 10.

(0, 1): = local maximum, f = 10

4 Check

Let's check.

Here is the surface near (0, 1).

It is a dome: the point is at the top.

Now small steps away from the point.

Near (0, 1), one step gives a smaller value, the other a smaller one.

That fits a local maximum.

Right!

f(0, 1) = 10: f(0.1, 1) = 9.99, f(0, 1.1) = 9.99

Let's look back.

First: find the critical points.

Then: the second partials.

Then: test each point.

Last: check.

Answer
= (0, 1)

Your turn

Try this one yourself, then check:

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

More from Local maximum, minimum and saddle points

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