how to find the domain of an inverse function