A rational function is a ratio of two polynomials . In this lesson we will give a general method for integrating rational functions that is based on the idea of decomposing a rational function into a sum of simple rational functions that can be integrated by the methods studied in earlier sections.