Steply

Classify the critical points of f(x, y) = x^2 + xy + y^2 - 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² + xy + y² − 6y.

f(x, y) = x2 + xy + y2 − 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.

In xy, y is fixed and waits in front.

x gives 1.

So y.

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

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

∂f∂x = 2x + y + 0 + 0

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

∂f∂x = 2x + y

Term by term.

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

In xy, x is fixed and waits in front.

y gives 1.

So x.

y²: the power 2 comes down.

The power goes down by 1.

So 2y.

6y gives 6.

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

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

∂f∂y = x + 2y − 6

Both partial derivatives must be 0.

Call them ① and ②.

① 2x + y = 0
② x + 2y − 6 = 0

From ②, get x alone: x = −2y + 6.

x = −2y + 6

Put it into ①.

2(−2y + 6) + y = 0

Open the bracket and add the like terms.

−3y + 12 = 0

So y = 4.

y = 4

Back into x = −2y + 6: x = −2.

x = −2

So there is one critical point: (−2, 4).

= (−2, 4)

2 The second partials

Term by term.

2x gives 2.

y 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.

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

2y gives 2.

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

fyy = 0 + 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.

y gives 1.

fxy = 0 + 1

Drop the zeros: f_xy = 1.

fxy = 1

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

D = fxx × fyy − (fxy)²

3 Test each point

At (−2, 4): f_xx is 2, f_yy is 2, f_xy is 1.

So D is 3.

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

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.

(−2, 4): = local minimum, f = −12

4 Check

Let's check.

Here is the surface near (−2, 4).

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

Now small steps away from the point.

Near (−2, 4), one step gives a bigger value, the other a bigger one.

That fits a local minimum.

Right!

f(−2, 4) = −12: f(−1.9, 4) = −11.99, f(−2, 4.1) = −11.99

Let's look back.

First: find the critical points.

Then: the second partials.

Then: test each point.

Last: check.

Answer
= (−2, 4)

Your turn

Try this one yourself, then check:

Find and classify the critical points of f(x, y) = x2 + 5xy + 5y2 − 5y
Show the answer
saddle point at (5, −2)

More from Local maximum, minimum and saddle points

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