how to know if two functions are inverses