Precalculus (6th Edition) Blitzer

Let us consider a function $f$ with $\left( x,\ y \right)$ as points on its graph where x shows the input and y shows the output. The domain of the function is the set of x and the range is the set of y. Thus the domain of the function is a range of its inverse function. Hence, domain and range of a function and its inverse are reversed.