Step 1:
Given f(x)=|x−1|
Step 2:Domain of function
Clearly, the function |x−1| is defined for all real numbers.
Hence, Domain of function =R
Step 3:Range of function
Output of a Modulus function is always non-negative.
f(x) will take non-negative real numbers.
∴ Range of function [0,∞).