Primitive of Reciprocal of 1 minus Sine of a x

Theorem

 * $\displaystyle \int \frac {\mathrm d x} {1 - \sin a x} = \frac 1 a \tan \left({\frac \pi 4 + \frac {a x} 2}\right) + C$

Proof
Then: