Integrating the rational function f(x)g(x){f(x)\over g(x)} is therefore reduced to integrating a sum of a polynomial and some expressions of the form
Case (i) is straightforward to integrate as in Chapter 5 of MATH101: substituting u=x-au=x-a we have dudx=1{du\over{dx}}=1 and hence