Consider the following for the next two (02) items that follow :
Consider the function
f(x) = |x - 2| + |3 - x| + |4 - x|, where x ∈ R.
At what value of x does the function attain minimum value ?
- AOption (a)
2
- BOption (b)
3
- COption (c)
4
- DOption (d)
0
View answer & explanationHide answer & explanation
Correct answer
3
Why this answer is correct
Concept:
Modulus function:
It is a function that gives the absolute value of a variable (x). It is defined as such that |x| = x, if x ≥ 0 else |x| = - x
Calculation:
f(x) = |x - 2| + |3 - x| + |4 - x|, where x ∈ R.
For x < 2, f(x) = 2 - x + 3 - x + 4 - x = 9 - 3x
For 2 ≤ x < 3, f(x) = x - 2 + 3 - x + 4 - x = 5 - x
For 3 ≤ x < 4, f(x) = x - 2 + x - 3 + 4 - x = x - 1
For x ≥ 4, f(x) = x - 2 + 3 - x + x - 4 = 3x - 9
∴ Minimum value of f(x) is given by:
fmin = \(\left{\begin{matrix} 3, x < 2 \3, 2 \leq x< 3 \2, 3 \leq x < 4 \3, 4 \leq x \end{matrix}\right.\)
∴ Minimum value of f(x) is at x = 3.