Finding the Inverse of a Function