Find out the local maxima/minima of $\sin x$ where $x\in\left[\dfrac{\pi}{2},\dfrac{3\pi}{2}\right]$
My attempt is as follows:-
$f'(x)=\cos x$
So getting local minima/maxima at endpoints, is it fine to declare endpoints as minima/maxima?