Calculus
![Question 9, GATE 2012: Consider the function f(x) = sin(x) in the interval x ∈ [π/4, 7π/4]. The number and location(s) of the
local minima of this function are
(A) One, at π/2
(B) One, at 3π/2
(C) Two, at π/2 and 3π/2
(D) Two, at π/4 and 3π/2](../../assets/questions/CS-2012-Q19-1.webp)
Answer & solution
Official answer: D
On the restricted domain [π/4, 7π/4], the left endpoint π/4 is a one-sided local minimum because sin x increases immediately to its right. The interior stationary points satisfy cos x=0: π/2 is a maximum and 3π/2 is a minimum. The right endpoint is not a minimum because sin x increases toward it from the left. Thus the restricted-domain convention yields two local minima, π/4 and 3π/2, D. If local extrema are defined to exclude endpoints, only the interior minimum remains; the official key uses the former convention.
Check: A local minimum on a domain means comparison with nearby points belonging to that domain. At the left endpoint there are no allowed comparison points to its left. At 7π/4 there are smaller nearby values to the left, so it is not a minimum.