Given
f(x)=|x−2|
Case 1 ,if x>2
Then,
f(x)>0
(x−2)>0
x>2
Domain become all real number greater than 2
And range also become all real number greater than 2
Case 2 if x<2
Then ,
f(x)<0
−(x−2)<0
−x+2<0
−x<−2
x>2
Domain become all real number greater than 2
And range also
become all real number greater than 2