Make a substitution to express the integrand as a rational function and then evaluate the integral