Primitive of Reciprocal of Power of Sine of a x

Theorem

 * $\displaystyle \int \frac {\mathrm d x} {\sin^n a x} = \frac {- \cos a x} {a \left({n - 1}\right) \sin^{n - 1} a x} + \frac {n - 2} {n - 1} \int \frac {\mathrm d x} {\sin^{n - 2} a x}$

Proof
With a view to expressing the primitive in the form:
 * $\displaystyle \int u \frac {\mathrm d v}{\mathrm d x} \ \mathrm d x = u v - \int v \frac {\mathrm d u}{\mathrm d x} \ \mathrm d x$

let:

and let:

Then:

Also see

 * Primitive of $\dfrac 1 {\cos^n a x}$