Unless you are asked for "max" and "min" on a limited region, in which case they might occur on the boundary of the region, they occur at "critical points", points where the derivative does not exist or where the partial derivatives are 0. So first find the partial derivatives of the function and set them equal to 0.