Maximum and Minimum of Multivariable Functions