Consider the function f(y) = max(-y, y - 2). In which range does f take its minimum value? A. -6 <= y <= -2 B. -2 <= y <= 0 C. 0 <= y <= 2 D. 0 <= d <= 10
GATE 2010 · General Aptitude · Maxima Minima · medium
Answer: f(y) attains its minimum value of -1 at y = 1, which lies in the range 0 <= y <= 2 (option C).
- Find where -y = y - 2: -y = y - 2 => 2 = 2y => y = 1. At this point f(1) = max(-1, 1-2) = max(-1, -1) = -1.
- Verify on either side: For y < 1: f is -y, which is decreasing as y increases, so f decreases toward y=1. For y > 1: f is y-2, which increases away from y=1. So y=1 is indeed the global minimum. Since 1 is in [0, 2], the minimum is attained in the range 0 <= y <= 2.