Primitive of x over a x + b by p x + q/Partial Fraction Expansion

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

 * $\dfrac x {\paren {a x + b} \paren {p x + q} } \equiv \dfrac b {\paren {b p - a q} \paren {a x + b} } - \dfrac q {\paren {b p - a q} \paren {p x + q} }$

Proof
Setting $p x + q = 0$ in $(1)$:

Setting $a x + b = 0$ in $(1)$:

Summarising:

Hence the result.