In applications, it is often useful to calculate indefinite integrals of rational functions such as
Recall that a typical rational function has the shape
where and are polynomials.
At the beginning of this section we will study a general method for integrating rational functions.