We have f(x)=∣x−1∣
Here, f(x) is a modulus function and since modulus of a real number is uniquely defined ∀ real positive number. ∴ The domain of f(x) is R.
We see that f(x)=∣x−1∣ f(x)=⎩⎨⎧x−1,−(x−1),if x≥1if x<1 ⇒f(x)=⎩⎨⎧x−1,1−x,if x≥1if x<1
From above, we observe that in both cases f(x)≥0.
Hence, range of f(x) is [0,∞).