NDA · Question 39
Consider the function f(x) = |x - 2| + |3 - x| + |4 - x|, where x ∈ ℝ. At what value of x does the function attain its minimum value?
Show answer & explanationShow explanation
Answer: (B) 3
Rewrite the function as f(x) = |x - 2| + |x - 3| + |x - 4|. A sum of absolute value terms of the form Σ[i=1 → k] |x - aᵢ| attains its minimum at the median of the critical points a₁, a₂, …, aₖ. Here, the critical points are 2, 3, 4, whose median is 3. Therefore, f(x) attains its minimum value at x = 3.