The purpose of this lab is to acquaint you with techniques for finding global extreme values of functions of two variables.
We know that the global extrema occur either inside the three-dimensional domain where the derivative is zero or doesn't exist, where the two-dimensional boundaries equal zero or doesn't exist, or at one of the corners.
>f:=(x,y)->2+x^2+y^2;Keep your work organized; you may want to work your way through dimensions. Starting with the three dimensional function find the critical points by setting both partials equal to zero; you can do this in one command line. (Notice that there are no undefined points)
>solve({diff(f(x,y),x)=0,diff(f(x,y),y)=0},{x,y});Next find the critical points along the two-dimensional domain which is the rectangular boundary.The trick is to replace one of the variables with part of the boundary.Since there are four 2-d functions (or sides) this will be done four times.
>solve(diff(f(-1,y),y)=0); >solve(diff(f(3,y),y)=0); >solve(diff(f(x,-1),x)=0); >solve(diff(f(x,3),x)=0);This gives us the four points , and . Now the one-dimensional domain is simply the corners: , and . Now that you have all possible points listed you simply need to plug them into the original function to find the nine z-values. The highest and lowest will be the absolute maximum and absolute minimum.