Integration by Completing the Square and Substitution

Find a real antiderivative of a rational function using polynomial division, partial fractions, and completing the square.

Result
—

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

Related calculators