An investigation of the teaching and learning of function inverse