The function and its inverse are exactly the same. You find the inverse of a function by switching the x and the y and then solving for the new y. If your function is y = -x + 5 and you switch the x and the y, you get x = -y +5. Now solve for the new y to get y = -x + 5. The domain and range for those is all real numbers.