Max/min for functions of two variables - University of Surrey