Determine whether two functions are inverses