I'm trying to evaluate the following:
$$\frac{\sin x}{1-\cos\beta\cos x} - 2\cot\beta \arctan\left(\sin \left(\frac{\beta-x}{2}\right) \csc \left(\frac{\beta+x}{2}\right)\right)$$
This is the result of an integral and I need to evaluate at $x = \pi$ and $x=0$.
The first part of the expression evaluates to zero for both $x = \pi$ (upper limit) and $x=0$ (lower limit). For $x=0$, I think the expression yields $0.5\pi \cot\beta$. I'm getting stuck when $x=\pi$ although I suspect that this also evaluates to $0.5\pi \cot\beta$