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

Theorem

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

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

Proof
The discriminant of $p u^2 + 2 q u + p$ is $4 q^2 - 4 p^2$.

Thus:

Also see

 * Primitive of $\dfrac 1 {p + q \cos 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}$