Answer
Domain: (-infinity , infinity)
Range: {1, 5}
Work Step by Step
f(x) is defined for all real numbers. This means that the domain of f is set of all real numbers. Value of function is 1 when x is rational and 5 when x is irrational. This means that the range that the range of f consists only of two numbers: 1 and 5.