Primitive of Square of Tangent Function

Theorem

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

where $C$ is an arbitrary constant.