Skip to main contentSkip to solution

Let 0≤a≤x≤1000 \leq a \leq x \leq 100 and f(x)=∣x−a∣+∣x−100∣+∣x−a−50∣f(x)=|x-a|+|x-100|+|x-a-50|. Then the maximum value of f(x)f(x) becomes 100100 when aa is equal to

Solution

✅ Correct Option: 1

We need to find the value of aa such that the maximum value of f(x)=∣x−a∣+∣x−100∣+∣x−a−50∣f(x) = |x-a| + |x-100| + |x-a-50| equals 100, given the constraint 0≤a≤x≤1000 \leq a \leq x \leq 100.


Since f(x)f(x) is a sum of absolute value functions, it's piecewise linear. The maximum value will occur either at the endpoints of our domain [a,100][a, 100] or at critical points where the expressions inside the absolute values equal zero.

The critical points are where:

x=ax = a

x=100x = 100

x=a+50x = a + 50


Let us substitute a=50a = 50 into our function:

f(x)=∣x−50∣+∣x−100∣+∣x−50−50∣f(x) = |x-50| + |x-100| + |x-50-50|

f(x)=∣x−50∣+∣x−100∣+∣x−100∣f(x) = |x-50| + |x-100| + |x-100|

f(x)=∣x−50∣+2∣x−100∣f(x) = |x-50| + 2|x-100|


Since our domain is x∈[50,100]x \in [50, 100] (because a≤x≤100a \leq x \leq 100), we need to determine the sign of each absolute value expression:

For x∈[50,100]x \in [50, 100]: x−50≥0x - 50 \geq 0, so ∣x−50∣=x−50|x-50| = x-50

For x∈[50,100]x \in [50, 100]: x−100≤0x - 100 \leq 0, so ∣x−100∣=100−x|x-100| = 100-x

Therefore:

f(x)=(x−50)+2(100−x)f(x) = (x-50) + 2(100-x)

f(x)=x−50+200−2xf(x) = x - 50 + 200 - 2x

f(x)=150−xf(x) = 150 - x


Since f(x)=150−xf(x) = 150 - x is a decreasing linear function on the interval [50,100][50, 100], the maximum occurs at the left endpoint x=50x = 50:

f(50)=150−50=100f(50) = 150 - 50 = 100


The maximum value of f(x)f(x) becomes 100 when a=50a = 50.

When dealing with sums of absolute value functions, always identify the critical points and check the behavior on each interval. The maximum often occurs at domain endpoints for such piecewise linear functions.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question