Primitive of Square of Cotangent Function

Theorem

 * $\displaystyle \int \cot^2 x \rd x = -\cot x - x + C$

where $C$ is an arbitrary constant.