Domain and range with inverse functions