Learning about inverse of a function