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

Theorem

 * $\ds \int \frac {\mathrm d x} {p + q \cos a x} = \begin {cases}

\dfrac 2 {a \sqrt {p^2 - q^2} } \map \arctan {\sqrt {\dfrac {p - q} {p + q} } \tan \dfrac {a x} 2} + C & : p^2 > q^2 \\ \dfrac 1 {a \sqrt {q^2 - p^2} } \ln \size {\dfrac {\tan \dfrac {a x} 2 + \sqrt {\dfrac {q + p} {q - p} } } {\tan \dfrac {a x} 2 - \sqrt {\dfrac {q + p} {q - p} } } } + C & : p^2 < q^2 \\ \end {cases}$

Also see

 * For $p = q$: Primitive of $\dfrac 1 {1 + \cos a x}$


 * For $p = -q$: Primitive of $\dfrac 1 {1 - \cos a x}$


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


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


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


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


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