Steply

Local maximum, minimum and saddle points

Calculus 3 ยท 20 problems, easy to harder

โ–ถ Watch the first one solved

How we do it

  1. Find the critical points
  2. The second partials
  3. Test each point
  4. Check

The steps for Local max and min of f(x, y) = x^2 + y^2 - 4x + 6y. Every solution names its steps, so you always know what comes next.

Worked examples

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

The question

Question: find and classify the critical points of f(x, y) = xยฒ + yยฒ โˆ’ 4x + 6y.

f(x, y) = x2 + y2 โˆ’ 4x + 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.

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

4x gives 4.

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

โˆ‚fโˆ‚x = 2x + 0 โˆ’ 4 + 0

Drop the zeros: โˆ‚f/โˆ‚x = 2x โˆ’ 4.

โˆ‚fโˆ‚x = 2x โˆ’ 4

Term by term.

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

yยฒ: the power 2 comes down.

The power goes down by 1.

So 2y.

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

6y gives 6.

โˆ‚fโˆ‚y = 0 + 2y + 0 + 6

Drop the zeros: โˆ‚f/โˆ‚y = 2y + 6.

โˆ‚fโˆ‚y = 2y + 6

Set โˆ‚f/โˆ‚x = 0.

It has only x in it.

2x โˆ’ 4 = 0

Move the number: add 4 on both sides.

2x = 4

Divide by 2: x = 2.

x = 2

Set โˆ‚f/โˆ‚y = 0.

It has only y in it.

2y + 6 = 0

Move the number: take away 6 on both sides.

2y = โˆ’6

Divide by 2: y = โˆ’3.

y = โˆ’3

So there is one critical point: (2, โˆ’3).

= (2, โˆ’3)

2 The second partials

Term by term.

2x gives 2.

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

2y gives 2.

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

4 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 (2, โˆ’3): f_xx is 2, f_yy is 2, f_xy is 0.

So D is 4.

D(2, โˆ’3) = 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 positive: a bowl.

A local minimum.

There f is โˆ’13.

(2, โˆ’3): = local minimum, f = โˆ’13

4 Check

Let's check.

Here is the surface near (2, โˆ’3).

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

Now small steps away from the point.

Near (2, โˆ’3), one step gives a bigger value, the other a bigger one.

That fits a local minimum.

Right!

f(2, โˆ’3) = โˆ’13: f(2.1, โˆ’3) = โˆ’12.99, f(2, โˆ’2.9) = โˆ’12.99

Let's look back.

First: find the critical points.

Then: the second partials.

Then: test each point.

Last: check.

Answer
= (2, โˆ’3)

โ–ถ Watch it solved

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

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)

โ–ถ Watch it solved

Critical points of f(x, y) = x^3 + y^3 - 3x - 12y Harder

The question

Question: find and classify the critical points of f(x, y) = xยณ + yยณ โˆ’ 3x โˆ’ 12y.

f(x, y) = x3 + y3 โˆ’ 3x โˆ’ 12y

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 3 comes down.

The power goes down by 1.

So 3xยฒ.

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

3x gives 3.

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

โˆ‚fโˆ‚x = 3x2 + 0 โˆ’ 3 + 0

Drop the zeros: โˆ‚f/โˆ‚x = 3xยฒ โˆ’ 3.

โˆ‚fโˆ‚x = 3x2 โˆ’ 3

Term by term.

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

yยณ: the power 3 comes down.

The power goes down by 1.

So 3yยฒ.

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

12y gives 12.

โˆ‚fโˆ‚y = 0 + 3y2 + 0 โˆ’ 12

Drop the zeros: โˆ‚f/โˆ‚y = 3yยฒ โˆ’ 12.

โˆ‚fโˆ‚y = 3y2 โˆ’ 12

Set โˆ‚f/โˆ‚x = 0.

It has only x in it.

3x2 โˆ’ 3 = 0

Move the number and divide by 3: xยฒ = 1.

x2 = 1

Two numbers square to 1: x = 1 or โˆ’1.

x = 1 or x = โˆ’1

Set โˆ‚f/โˆ‚y = 0.

It has only y in it.

3y2 โˆ’ 12 = 0

Move the number and divide by 3: yยฒ = 4.

y2 = 4

Two numbers square to 4: y = 2 or โˆ’2.

y = 2 or y = โˆ’2

Every x goes with every y: 4 critical points.

= (1, 2), (1, โˆ’2), (โˆ’1, 2), (โˆ’1, โˆ’2)

2 The second partials

Term by term.

3xยฒ: the power 2 comes down: 3 times 2 is 6.

The power goes down by 1.

So 6x.

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

fxx = 6x + 0

Drop the zeros: f_xx = 6x.

fxx = 6x

Term by term.

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

The power goes down by 1.

So 6y.

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

fyy = 6y + 0

Drop the zeros: f_yy = 6y.

fyy = 6y

Term by term.

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

3 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 (1, 2): f_xx is 6, f_yy is 12, f_xy is 0.

So D is 72.

D(1, 2) = 6 ร— 12 โˆ’ 0ยฒ = 72

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 โˆ’18.

(1, 2): = local minimum, f = โˆ’18

At (1, โˆ’2): f_xx is 6, f_yy is โˆ’12, f_xy is 0.

So D is โˆ’72.

D(1, โˆ’2) = 6 ร— (โˆ’12) โˆ’ 0ยฒ = โˆ’72

D is negative: up one way, down the other.

A saddle point.

(1, โˆ’2): = saddle point

At (โˆ’1, 2): f_xx is โˆ’6, f_yy is 12, f_xy is 0.

So D is โˆ’72.

D(โˆ’1, 2) = (โˆ’6) ร— 12 โˆ’ 0ยฒ = โˆ’72

D is negative: up one way, down the other.

A saddle point.

(โˆ’1, 2): = saddle point

At (โˆ’1, โˆ’2): f_xx is โˆ’6, f_yy is โˆ’12, f_xy is 0.

So D is 72.

D(โˆ’1, โˆ’2) = (โˆ’6) ร— (โˆ’12) โˆ’ 0ยฒ = 72

D is positive and f_xx is negative: a dome.

A local maximum.

There f is 18.

(โˆ’1, โˆ’2): = local maximum, f = 18

4 Check

Let's check.

Here is the surface near (1, 2).

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

Now small steps away from the point.

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

That fits a local minimum.

Right!

f(1, 2) = โˆ’18: f(1.1, 2) = โˆ’17.969, f(1, 2.1) = โˆ’17.939

Near (1, โˆ’2), one step gives a bigger value, the other a smaller one.

That fits a saddle point.

Right!

f(1, โˆ’2) = 14: f(1.1, โˆ’2) = 14.031, f(1, โˆ’1.9) = 13.941

Near (โˆ’1, 2), one step gives a bigger value, the other a smaller one.

That fits a saddle point.

Right!

f(โˆ’1, 2) = โˆ’14: f(โˆ’1, 2.1) = โˆ’13.939, f(โˆ’0.9, 2) = โˆ’14.029

Near (โˆ’1, โˆ’2), one step gives a smaller value, the other a smaller one.

That fits a local maximum.

Right!

f(โˆ’1, โˆ’2) = 18: f(โˆ’0.9, โˆ’2) = 17.971, f(โˆ’1, โˆ’1.9) = 17.941

Let's look back.

First: find the critical points.

Then: the second partials.

Then: test each point.

Last: check.

Answer
= (1, 2), (1, โˆ’2), (โˆ’1, 2), (โˆ’1, โˆ’2)

โ–ถ Watch it solved

Practice

Try each one, then open the answer. Stuck? Open the problem to watch every step.

Easy

  1. local max and min of f(x, y) = x^2 + y^2 - 4x + 6y
    Answer
    = (2, โˆ’3)
  2. local max and min of f(x, y) = x^2 + y^2 + 2x - 4y
    Answer
    = (โˆ’1, 2)
  3. local max and min of f(x, y) = 4 - x^2 - y^2
    Answer
    = (0, 0)
  4. critical points of f(x, y) = x^2 - y^2
    Answer
    = (0, 0)
  5. local max and min of f(x, y) = 2x^2 + y^2 - 8x
    Answer
    = (2, 0)
  6. local max and min of f(x, y) = 9 - x^2 - y^2 + 2y
    Answer
    = (0, 1)

Medium

  1. local max and min of f(x, y) = x^2 + 3y^2 - 6x + 6y
    Answer
    = (3, โˆ’1)
  2. classify the critical points of f(x, y) = 2xy - x^2 - 2y^2 + 4y
    Answer
    = (2, 2)
  3. critical points of f(x, y) = x^2 + 4xy + y^2
    Answer
    = (0, 0)
  4. critical points of f(x, y) = x^3 - 3x + y^2
    Answer
    = (1, 0), (โˆ’1, 0)
  5. critical points of f(x, y) = xy
    Answer
    = (0, 0)
  6. classify the critical points of f(x, y) = x^2 + xy + y^2 - 3x
    Answer
    = (2, โˆ’1)
  7. classify the critical points of f(x, y) = x^2 + xy + y^2 - 6y
    Answer
    = (โˆ’2, 4)
  8. critical points of f(x, y) = 12x - x^3 - 3y^2
    Answer
    = (2, 0), (โˆ’2, 0)
  9. critical points of f(x, y) = y^3 - 3y + x^2
    Answer
    = (0, 1), (0, โˆ’1)
  10. classify the critical points of f(x, y) = x^2 + 2xy + 3y^2 - 4y
    Answer
    = (โˆ’1, 1)

Harder

  1. critical points of f(x, y) = x^3 + y^3 - 3x - 12y
    Answer
    = (1, 2), (1, โˆ’2), (โˆ’1, 2), (โˆ’1, โˆ’2)
  2. critical points of f(x, y) = 2x^3 - 6x + y^2 - 4y
    Answer
    = (1, 2), (โˆ’1, 2)
  3. classify the critical points of f(x, y) = x^2 - 2xy + 3y^2 - 4x
    Answer
    = (3, 1)
  4. critical points of f(x, y) = x^3 - 12x - y^2 + 2y
    Answer
    = (2, 1), (โˆ’2, 1)