If the function f:{−3,−2,−1,0,1,2,3}→{0,1,2,3,4,5} is defined as f(x)=|x−1|, then the number of elements in the range of f is
Open in App
Solution
f:{−3,−2,−1,0,1,2,3}→{0,1,2,3,4,5} f(x)=|x−1|
We find the image of −3,−2,−1,0,1,2,3 under f. f(−3)=|−3−1|=|−4|=4 f(−2)=3,f(−1)=2,f(0)=1,f(1)=0,f(2)=1,f(3)=2 ∴ Range of function is {0,1,2,3,4}
Number of elements in range is 5.