chetan2u
What is the minimum value of |x-4| + |x+3| + |x-5| ?
A. -3
B. 3
C. 5
D. 7
E. 8OA after three days
Self Made
The ranges that this question needs to be looked at are:
1. x<-3
2. -3 \(\leq\) x < 4
3. 4 \(\leq\) x < 5
4. x \(\geq\) 5
Taking each one of them one by one:
1. x<-3 , the given expression will become, f(x) = |x-4| + |x+3| + |x-5| = -(x-4)-(x+3)-(x-5) = -3x+6 . Slope of the line f(x) = -3x+6 is <0 and thus this line will not have a defined minimum (= -inf !)
2. In the range, -3 \(\leq\) x < 4, the equation takes the form, f(x) = 12-x, again negative slope, potential of a minimum value in the given range. The minimum value will be at x=-3 ---> 12+3=15. Not in the options, move on.
3. 4 \(\leq\) x < 5 , equation becomes f(x) = x+4, positive slope ---> minimum value will be when x=4 ---> 4+4 =8 .
4. x \(\geq\) 5, equation becomes, f(x)= 3x-6, positive slope and as such the minimum will be at x=5 , giving you f(x)=9 as the minimum value.
Hence E, 8 is the correct answer.
Method 2:|x-a| is the distance of x from a.
Thus f(x) = |x-4| + |x+3| + |x-5| = distance of x from 4 + distance of x from -3 + distance of x from 5.
The ranges remain the same as the ones mentioned above, but now let us assume some values in the given ranges, (ignore the first one as it should be pretty obvious that this range will not give a minimum value!)
Ranges # 2 and 3, -3 \(\leq\) x < 4, take x=-2, you get f(x) =13, move to x=0, you get f(x) = 12, the values are decreasing, good. Now take x= 3, you get f(x) = 9, for x=4, you get f(x)=8, when you take x=5, f(x) = 9, starts to increase again.
Thus 8 , E is the correct answer.
This method though depends on the fact that the options given are integers and the nature of the values (decreasing to increasing) does not vary inconsistently. If the options would have been decimals or the nature of the values would have been varying, then this method will not be a recommended course of action.
Hope this helps.
FYI, the graph of the given functions look like this:
Attachment:
2016-03-12_23-27-34.jpg [ 58.43 KiB | Viewed 38823 times ]