This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Since the function is always positive, I first change to the equivalent problem of minimizing ∣ x + 1 ∣ + ∣ x + 2 ∣ + ∣ x − 3 ∣ . You could either examine the function on each interval, which will give you linear equations in each case, where you can just check the endpoints of each interval of the piecewise function; or you could take the derivative, which is ∣ x + 1 ∣ x + 1 + ∣ x + 2 ∣ x + 2 + ∣ x − 3 ∣ x − 3 . Looking at the derivative, each fraction is either 1, -1 or undefined. Since three odd numbers cannot add up to the even number 0, simply check the points where the derivative is undefined, i.e., x = − 2 , − 1 , 3 . One finds that the minimum of the three is achieved when x = − 1 , which leads to the minimum value 5 . In other words, the sought answer is 5 1 .