Primitive of Reciprocal of p plus q by Tangent of a x

Theorem

 * $\displaystyle \int \frac {\mathrm d x}{p + q \tan a x} = \frac {p x} {p^2 + q^2} + \frac q {a \left({p^2 + q^2}\right)} \ln \left\vert{q \sin a x + p \cos a x}\right\vert + C$

Also see

 * Primitive of $\dfrac 1 {p + q \cot a x}$