Primitive of Reciprocal of p plus q by Cosine of a x/Weierstrass Substitution

Lemma for Primitive of Reciprocal of $p + q \cos a x$
The Weierstrass Substitution of $\ds \int \frac {\d x} {p + q \cos a x}$ is:
 * $\ds \frac 2 {a \paren {p - q} } \int \frac {\d u} {u^2 + \dfrac {p + q} {p - q} }$

where $u = \tan \dfrac {a x} 2$.