how to determine that the function has an inverse?​