The domain is a set of all possible values for variables that are input in to a function.
The range of a funciton is a set of values that may be the output of a funciton.
For one to one functions, the inverse function has the range of the domain of the original function, and has the domain of the range of the original function.