#Doubt Responded
modulus
<p>please explain the solution of this question </p>


Comments2

Superman - iQuanta
Since a ≤ x ≤ 100, the first two terms simplify directly. |x-a| = x-a and |x-100| = 100-x, so these cancel: f(x) = 100-a+|x-a-50|. The max of |x-a-50| over x in [a, 100] is 50 (check both endpoints; for a = 50 both give 50). So max f(x) = 100-a+50, set equal to 100 => a = 50. 50

Raj Ishu
For a <= x <= 100 Check first two term |x -a| + |x - 100| (x - a) + (100-x) 100 - a (a is constant here) Next, |x-a-50| is largest At x = a |a-a-50| =50 at x = 100 |50-a| <=50) So,max f(x) (100 - a) + 50 150 - a 150-a = 100 a = 50
Log in to join the discussion.