How to calculate
Decompose the rational function. Complete the square in each quadratic factor. A positive squared offset produces an arctangent term. A negative squared offset produces a logarithmic term.
Worked example
Use Numerator polynomial in x 1 ยท Denominator factors, one per line x^2 + 1. The result is arctan(x) + C.
Input and result notes
Enter each linear or quadratic factor on a separate line. Use (x โ 1)^2 for a repeated factor. The total denominator degree can be up to 12. The antiderivative applies on any interval that excludes zeros of the original denominator.
OpenStax integration by partial fractions