Question

As x ranges over all real values, what is the minimum value of f(x)=|x-123|+|x-456| + |x-789|

Answers

Steve
Note that |x-a|+|x-b| is constant (b-a) for a<=x<=b

So, since |x-123|+|x-789| is constant for 123<=x<=789, the minimum occurs at x=456, and is 666.

devilishly clever!
stranger
Strange r meets stranger

Related Questions