CAT 2022 Slot 1 — QA Question 22
ModulusEasy
Let 0 ≤ a ≤ x ≤ 100 and f(x) = |x - a| + |x - 100| + |x - a - 50|. Then the maximum value of f(x) becomes 100 when a is equal to
Answer & solution
- A
0
- B
25
50
- D
100
Solution
Easy
On the given range two of the moduli open cleanly: and . They cancel the , leaving . Test each option to see which keeps the maximum at exactly .
1
Simplify on :
A
: . At , . Rejected.
B
: . At , but at e.g. it is ; however the simplified form only holds for , and checking the full range gives values exceeding near the other end. Rejected.
C
:
Maximum is exactly . Correct.
D
: the range forces only, giving . Maximum is , not . Rejected.
. Option (c).