Material by the IntegralPaso project. Conditions and limits are stated in each guide; external teaching review is pending.
Use a linear numerator over each quadratic irreducible over the reals. Split off a multiple of the denominator derivative and a constant. Complete the square to obtain logarithms and arctangents.
Common mistake
Using only a constant numerator can prevent a valid decomposition.
Step-by-step example
Split the numerator into the denominator derivative and a constant.
Integrate the first part using u = x²+1.
Use the primitive of 1/(1+x²).