The domain and range of the function f given by f(x) = 2 − |x − 5|, is
(a) Domain = R+, Range = (−∞, 1]
(b) Domain = R, Range = (−∞, 2]
(c) Domain =R, Range = (−∞, 2)
(d) Domain = R+, Range = (−∞, 2]
Open in App
Solution
f(x) = 2 − |x − 5|
Since f(x) is defined for every x∈R
Domain is R
also |x − 5| ≥ 0
i.e −|x − 5| ≤ 0
i.e 2 − |x − 5| ≤ 2
f(x) ≤ 2
i.e Range for f (x) is (−∞, 2]
Hence, the correct answer is option B.