AP® Calculus AB · Unit 6 · Topic 6.10
Integrating Functions Using Long Division and Completing the Square
When a rational function's numerator has degree greater than or equal to the denominator's, divide first; when a quadratic denominator won't factor, complete the square to reveal an arctangent integral.
Integration rules work on simple shapes: a polynomial, or a fraction where the numerator is the denominator's derivative. Messy rational functions don't start in either shape, so you reshape them. If the numerator's degree is at least the denominator's, the fraction is top-heavy, like an improper fraction such as 7/2. Long division splits it into a polynomial plus a proper remainder fraction, and each piece integrates separately: polynomial terms by the power rule, the remainder often by the log rule.
A quadratic denominator that doesn't factor nicely, like x2 + 4x + 8, hides a perfect-square-plus-constant structure. Completing the square rewrites it as (x+2)2 + 4, turning the integral into the arctangent pattern: the antiderivative of 1/(u2+m2) du is (1/m) arctan(u/m) + C. This works because the denominator is a sum of squares, never zero, with no derivative-matching numerator available, so a log is impossible and arctangent is the only antiderivative that fits.
Both techniques are preparation moves. They don't integrate anything by themselves; they convert an unfamiliar fraction into pieces that match rules already known: power rule, log rule, arctangent rule. This topic closes out the antidifferentiation toolkit before the course turns to accumulation and the Fundamental Theorem, where recognizing which rule an integrand matches becomes the main skill being tested in every setup.
Key terms
- Long division (polynomial)
- Dividing a top-heavy polynomial fraction into a polynomial plus a proper remainder fraction.
- Completing the square
- Rewriting a quadratic as a squared binomial plus or minus a constant.
- Arctangent rule
- The antiderivative of 1/(u2+m2) du is (1/m) arctan(u/m) + C.
- Top-heavy (improper) fraction
- A rational function whose numerator degree is greater than or equal to its denominator degree.
Watch it explained
- How it worksHow does completing the square turn a quadratic denominator into an arctangent form?
- Common mistakeWhy isn't the integral of 1/(x2 + 1) a logarithm?
- Worked exampleFind the integral of (x2 + 3x)/(x + 1) dx using polynomial long division.
- Worked exampleFind the integral of 1/(x2 + 4x + 8) dx by completing the square.
Check yourself
End of topic.