Getting all the functions of two variables of a function of three variables