Primitive of Square of Cotangent Function

Theorem

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

where $C$ is an arbitrary constant.