Answer
a. $f(\pi/4)=0$ local minimum.
$f(\pi/4)=0$ absolute minimum, no absolute maximum in the interval.
b. See graph and explanations.
Work Step by Step
a. Step 1. Given the function $f(x)=csc^2(x)-2cot(x), 0\lt x\lt\pi$, we have $f'(x)=-2csc^{2}(x)cot (x)+2\csc^{2}x=2csc^2x(1-cot(x))$.
Step 2. The extrema happen when $f'(x)=0$, undefined, or at endpoints; thus we have $cot(x)=1$ and the critical point within the domain is $x=\pi/4$.
Step 3. We have $f(\pi/4)=csc^2((\pi/4)-2cot((\pi/4)=0$. Test signs of $f'(x)$ across critical point $..(-)..(\pi/4)..(+)..$; thus we have $f(\pi/4)=0$ as a local minimum.
Step 4. We can identify $f(\pi/4)=0$ as an absolute minimum and there is no absolute maximum in the interval.
b. See graph. We can see that when $f'\lt0$, $f$ decreases; While when $f'\gt0$, $f$ increases (both with the tangent slopes corresponding to the values of $f'$). When $f'=0$, $f$ will be at an extrema with tangent slopes of zero. We can also observe the change of signs in $f'$ on different sides of critical points where $f'=0$.