Question
Question: The minimum value of f(x) = \|x – 1\| + \|x - 2\| + \|x - 3\| is equal to....
The minimum value of f(x) = |x – 1| + |x - 2| + |x - 3| is equal to.
A
1
B
2
C
3
D
Zero
Answer
2
Explanation
Solution
We get f(x) =
⇒ f'(x) = ⎩⎨⎧−3,−1,1,3,x<11<x<22<x<3x>3
Thus f(x) decreasing for x < 2 and increasing for x > 2. Hence f (x) |min = f(2) = 2 .