Primitive of x over a x + b by p x + q

Theorem

 * $\displaystyle \int \frac {x \ \mathrm d x} {\left({a x + b}\right) \left({p x + q}\right)} = \frac 1 {b p - a q} \left({\frac b a \ln \left\vert{a x + b}\right\vert - \frac q p \ln \left\vert{p x + q}\right\vert}\right) + C$