So I came across this question while studying for the GRE Subject Exam, and I am not really sure how I am supposed to handle it. Let $$ f(x) = \int _0 ^{\pi} \sin t \cos (x+t) dt $$ I am to find where $f$ gets its minimum and maximum values when $x \in [0,2\pi]$.
Since it is a GRE-question, I believe that the answer should not be that difficult. Could someone please explain?
easiest way: calculate integral $$\int _0 ^{\pi} \sin t \cos (x+t) dt=\frac{1}{2}\int _0 ^{\pi} (\sin (2t+x) -\sin (x) )dt=\\ \frac{1}{2}(-\frac{1}{2}\cos (2t+x)-t\sin (x))|^{\pi}_{0}=-\frac{\pi}{2}\sin (x)$$