Primitive of Reciprocal of p x + q by Root of a x + b

Theorem

 * $\displaystyle \int \frac {\d x} {\paren {p x + q} \sqrt{a x + b} } = \begin{cases}

\dfrac 1 {\sqrt {b p - a q} \sqrt p} \ln \size {\dfrac {\sqrt {p \paren {a x + b} } - \sqrt {b p - a q} } {\sqrt {p \paren {a x + b} } + \sqrt {b p - a q} } } & : b p - a q > 0 \\ \dfrac 2 {\sqrt {a q - b p} \sqrt p} \arctan \sqrt {\dfrac {p \paren {a x + b} } {a q - b p} } & : b p - a q < 0 \\ \end{cases}$

Proof
Let:

Then:

Now let $z = \sqrt p u$

Thus:

Let $b p - a q > 0$.

Let $d = \sqrt {b p - a q}$.

Then:

Let $b p - a q < 0$.

Let $d = \sqrt {-\paren {b p - a q} } = \sqrt {a q - b p}$.

Then: