How do I find the integral of a rational function?