Primitives of Functions involving a x + b and p x + q

Theorem
This page gathers together the primitives of some rational functions involving $a x + b$ and $p x + q$.