Week 9 Discussion Notes
Table of Contents
Second Partials Test
If f(x,y) is a twice differentiable function, then a point (a,b) is a critical point if ∇f(a,b)=0. The discriminant of f at (a,b) is
D(a,b)=fxx(a,b)fyy(a,b)−fxy2(a,b).
With the definitions out of the way, we have this nice result that helps you classify critical points:
Theorem (second partials test)
Assume that (a,b) is a critical point of f(x,y). Then we have the following chart:
D(a,b)>0>0<0=0fxx(a,b)>0<0classificationlocal minimumlocal maximumsaddle pointinconclusive
Remark.
When D(a,b)>0, you can check the sign of either fxx(a,b) or fyy(a,b) to figure out if it's a local minimum or local maximum.
Also, if you're curious, the discriminant is
D(a,b)=det(fxx(a,b)fyx(a,b)fxy(a,b)fyy(a,b))
and the matrix above is called the Hessian of f at (a,b).
Optimization
Generally, if you want to optimize a function f(x,y) on some domain D, there are two steps:
- Optimize on the boundary of D.
- You can do this by parametrizing the boundary with r(t), and then optimizing the 1D function f(r(t)).
- Later, you'll learn that you can do this with Lagrange multipliers.
- Optimize on the interior of D.
- To do this, you'll want to find the critical points of f that lie in D.
Example 1.
Optimize f(x,y)=x2+y2+x on the domain x2+y2≤1, and classify the critical points of f in this interior of the domain.
Solution.
Let's follow the two steps. The domain here is the disk of radius 1, so its boundary is the unit circle.
Boundary:
To parametrize the unit circle, we can use r(t)=⟨cost,sint⟩. Then we need to optimize
f(r(t))=cos2t+sin2t+cost=1+cost.
cost is maximized when t=0 and minimized when t=π, so these give the critical points
r(0)=⟨1,0⟩andr(π)=⟨−1,0⟩.
Interior:
For the interior, we'll want to use the second partials test. The gradient of f is
∇f(x,y)=⟨2x+1,2y⟩=⟨0,0⟩.
This gives the critical point (a,b)=(−21,0).
To find the global minimum and maximum, we just need to try all the critical points:
f(1,0)f(−1,0)f(−21,0)=2=0=−41,
so the global minimum is −41 at (−21,0) and the global maximum is 2 at (1,0).
Lastly, the problem wants us to classify the critical point (−21,0). We just need to calculate the discriminant:
fxx(x,y)fyy(x,y)fxy(x,y)=2=2=0.
so for this problem,
D(−21,0)=4>0andfxx(−21,0)=2>0.
Thus, by the second partials test, (−21,0) is a local minimum of f.