C H. answered 08/16/20
Patient and Knowledgeable Math Tutor
To find the abesolute maximum/minimum points of a function in a region, you need to find the local maximum/minimum points of the function, find the local maximum/minimum points of the function along the boundaries, and compare them. To find the local maximum/minimum points of a function, you need to find the critical points of the function first.
First, let us find the critical points, namely solve ∂f/∂x=0 and ∂f/∂y=0. I assume you know how to find the partial derivative. So we will have a system of equations:
∂f/∂x = y(3-x-y)-xy = 0 (*) and ∂f/∂y = x(3-x-y)-xy = 0.
Subtract these two equations, we have
(x-y)(3-x-y)=0.
We have two cases: 1) x=y, 2) x+y=3. In the first case, substitute x=y into the equation (*), we have 3x-3x2 =0, which gives us two solutions (0,0) and (1,1). In the second case, substitute x+y=3 into the equation (*), we have xy=0, which, together with x+y=3, gives us another two solutions (3,0) and (0,3).
So the critical points are (0,0), (1,1), (3,0), and (0,3). To decide whether a critical points are local maximum/minimum or not, you need to compute the determinant of the Hessian matrix
⌈∂2f/∂x2 ∂2f/∂x∂y⌉
⌊∂2f/∂x∂y ∂2f/∂y2⌋.
The critical point is local maximum/minimum if the value of the determinant is positive. Otherwise, the critical point is the saddle point. In this problem, the Hessian matrix is
⌈-2y 3-2x-2y⌉
⌊3-2x-2y -2x⌋.
At point (0,0), we have
⌈-2y 3-2x-2y⌉ = ⌈0 3⌉
⌊3-2x-2y -2x⌋ ⌊3 0⌋.
The determinant is -9<0. So (0,0) is a saddle point.
At point (1,1), we have
⌈-2y 3-2x-2y⌉ = ⌈-2 -1⌉
⌊3-2x-2y -2x⌋ ⌊-1 -2⌋.
The determinant is 3>0. So (1,1) is a local maximum/minimum. With the fact that ∂2f/∂x2=-2<0, we know (1,1) is a local maximum, with value f(1,1)=1. (This would be local minimum if ∂2f/∂x2>0).
At point (3,0) and point (0,3), both determinants are negative. So they are saddle points.
Once we sort out the local maximum/minimum, we need to consider the boundary.
On the boundary, the function is reduced to one variable function. We have three lines on the boundary, x = 0, y = 0, and x+y = 4.
Along x = 0, we have f(0,y) = 0, a constant function. Along y = 0, we have f(x,0) = 0.
Along x+y = 4, we have f(x, 4-x) = -x(4-x), a function on variable x. To clarify things, let us call this function g(x) = -x(4-x), a quadratic function. Again, we need to find the local maximum/minimum for g(x). The function g(x) has a minimum at x=2, with value -4. The hidden condition here is that 0≤x≤4, because of the boundary we have for f(x). In other words, g(x) has two local maximums at x=0 and x=4, with g(0)=g(4)=0. Returning back to f(x), the above computation tells us that f(x) along x+y=4 has local minimum at (2,2) with f(2,2)=-4, and local maximums at (0,4), (4,0) with f(0,4)=f(4,0)=0.
Summerize everything. We have local maximums at (1,1) with f(1,1)=1. Along the boundary, we have local maximums at {(x,0),(0,y), 0≤x,y≤4} and we have local minimums at (2,2) with f(2,2)=-4. Compare them, we can say, the abesolute maximum of f(x,y) in R is (1,1) and the abesolute minimum of f(x,y) in R is (2,2).
Aktug Y.
Thank you so much. :)08/17/20