
Local Max & Min
- A function f(x,y) has a local max at (a,b) if f(x,y)≤f(a,b) near the point (a,b)
- A function f(x,y) has a local min at (a,b) if f(x,y)≥f(a,b) near the point (a,b)
- If f has a local max or min at the point (a,b), then there is a critical point at (a,b) and fx(a,b)=fy(a,b)=0
Second Derivative Test
Suppose that f has a critical point at (a,b).
Let D(a,b)=fxx(a,b)fyy(a,b)−[fxy(a,b)]2.
D++−fxx+−Conclusionf(a,b) is a local minf(a,b) is a local maxf(a,b) is a saddle point*It’s a local min or max depending onthe path you take towards the point
Example
Identify all local max, min, and saddle points of the function f(x,y)=x2−4xy+y2
Critical points occur when the first partials equal 0:
- fx=2x−4y=0
- fy=−4x+2y=0
Solving these 2 equations, we see that the only critical point is (0,0)
Second partials:
- fxx=2
- fyy=2
- fxy=−4
D=fxx(0,0)fyy(0,0)−[fxy(0,0)]2=(2)(2)−(−4)2=−12
Since D is negative at this critical point, we know that (0,0) is a saddle point.

Absolute Max & Min
If f is continuous on a closed and bounded domain, then f attains an absolute max and absolute min values at some points on this domain.
Steps to finding the absolute max & min
- Find all critical points (x,y) of f on the domain, and find their corresponding f values
- Find the extreme values of f on the boundary of the domain
- Compare all of these f values - the largest is the absolute max, the smallest is the absolute min
Example
Find the absolute max and min values of the function f(x,y)=x2y+y2 on the closed triangular region with vertices (1, 0), (0, 1), and (−1, 0)
1. We first need to find the critical points
fx=2xy=0
fy=x2+2y=0
The only point that satisfies both of these equations is (0,0), so this is the only critical point.
f(0,0)=0
2. Now we need to find the max and min on the boundary of the domain, which consists of the 3 lines in the following graph:

On line 1:
- The max value of f is when x=0, y=1 → f(0,1)=1
- The min value of f is when x=1, y=0 → f(1,0)=0
On line 2:
- The y=0 and −1≤x≤1, so the max and min value of f on this line is 0
One line 3:
- The max value of f is when x=0, y=1 → f(0,1)=1
- The min value of f is when x=−1, y=0 → f(−1,0)=0
3. Comparing these values, we see that the absolute max is 1 at the point (0,1) and the absolute min is 0 at (1,0), (−1,0) and (0,0).

Lagrange Multipliers
To find the max and min values of the function f(x,y) subject to the constraint g(x,y)=0:
- Write a new function F(x,y,λ)=f(x,y)+λ g(x,y)
- Find ∇F=⟨Fx, Fy, Fz⟩
- Solve for points that satisfy Fx=0, Fy=0, Fλ=0 → these are the critical points
- Classify these critical points as max or min
Example
Find the maximum value of f(x,y)=x+y subject to the constraint x2+y2=32
First we need to rewrite the constraint as x2+y2−32=0, now we can use the method of Lagrange Multipliers:
1. F(x,y,λ)=x+y+λ(x2+y2−32)
2. ∇F=⟨1+2λx, 1+2λy, x2+y2−32⟩
3. We need to solve ⎩⎨⎧1+2λx=01+2λy=0x2+y2−32=0
From the first equation: x=−2λ1
From the second equation: y=−2λ1
Substitute both of these into the third equation:
4λ21+4λ21−32=0
2λ21=32
λ2=641
λ=±81
So, the corresponding critical points are (4,4) and (−4,−4)
4. f(4,4)=8 and f(−4,−4)=−8
Therefore, the max value is 8 and it occurs at (4,4), and the min value is −8 and it occurs at (−4, −4)
Practice: Lagrange Multipliers
Which of the following is true about f(x,y)=2x−y subject to the constraint x2+y2=20?