$$f(x)=\cot x-\sqrt 2 \csc x,\quad I=(0,\pi)$$
Show that the function $f$ has an absolute extremum on the given interval $I$ and find that value.
I've found the local maximum point from the first derivative. I've showed that the second derivative at that point is less than zero. I will find the values of endpoints but what points should I take as the endpoints on an open interval? I'll also find the value of the critical point and say that is the only critical point on the interval and then compare all values to determine which one the absolute maximum value is. Are these steps right?