SECTION 1
Historical Context & Motivation
Integration has never been a one-size-fits-all operation. Unlike differentiation, where a handful of rules can handle almost any function, finding antiderivatives often requires creative algebraic manipulation before you can even begin. Two of the oldest and most reliable tools in this algebraic toolkit are polynomial long division and completing the square. Both techniques were developed centuries before calculus itself existed, but they remain essential for rewriting integrands into recognizable forms.
~300 BCE • Euclid's Division Algorithm
~820 CE • Al-Khwārizmī and Completing the Square
1660s • Newton & Leibniz Develop Calculus
1700s • Euler Systematizes Integration Techniques
The central question these techniques answer is: What do you do when the integrand doesn't match any standard antiderivative rule? Rather than inventing new formulas, you reshape the function algebraically until it matches a pattern you already know. Long division handles rational functions where the degree of the numerator is at least as large as the degree of the denominator. Completing the square transforms quadratic expressions in the denominator into forms that lead to logarithmic or inverse trigonometric antiderivatives.
SECTION 2
Core Principles & Definitions
Before diving into calculations, you need to understand why these techniques work and when to apply each one. Both methods are forms of algebraic preprocessing—rewriting an integrand so that it fits a known integration pattern. The key is recognizing which tool to reach for based on the structure of the function you're integrating.
Polynomial Long Division
Completing the Square
Proper vs. Improper Rational Functions
Standard Forms to Recognize
KEY TAKEAWAY
SECTION 3
Visual Explanation: Decision Flowchart
When you encounter a rational function to integrate, the first decision is whether the fraction is improper (numerator degree ≥ denominator degree) or proper (numerator degree < denominator degree). The following flowchart guides you through the decision process for choosing the right algebraic technique.
Notice how the flowchart always funnels toward a standard integral form. The entire strategy is about simplification: long division peels off a polynomial that you can integrate term-by-term, and completing the square reshapes the remaining denominator so it matches an arctan or natural log pattern. Neither technique changes the value of the integral—they just reveal a structure that was hidden.
SECTION 4
Mathematical Framework
Long Division for Integration
When you divide a polynomial P(x) by another polynomial Q(x), you get a quotient S(x) and a remainder R(x). This is the same division algorithm you learned in Algebra, applied to polynomials instead of numbers. The result is the fundamental identity that makes this technique work.
POLYNOMIAL DIVISION IDENTITY
where S(x) is the polynomial quotient, R(x) is the remainder with deg(R) < deg(Q), and Q(x) is the original denominator.
Because S(x) is a polynomial, you integrate it using the power rule term by term. The remaining fraction R(x)/Q(x) is now a proper rational function, which you can handle with other techniques like completing the square, u-substitution, or partial fractions.
INTEGRATION AFTER LONG DIVISION
The first integral uses the power rule. The second integral is a proper fraction that can be evaluated using completing the square, partial fractions, or substitution.
Completing the Square for Integration
When the denominator of a proper fraction contains a quadratic expression ax² + bx + c that doesn't factor nicely, you can rewrite it in vertex form. This converts the quadratic into a sum or difference of squares, which matches standard integral formulas.
COMPLETING THE SQUARE
The expression is rewritten by adding and subtracting (b/(2a))² inside the parentheses. The constant h = −b/(2a) shifts the variable, and k = c − b²/(4a) is the remaining constant.
STANDARD ARCTANGENT INTEGRAL
This is the target form. After completing the square with a = 1, set u = x + b/2 and match the denominator to u² + a². If the leading coefficient is not 1, factor it out first.
STANDARD LOGARITHMIC INTEGRAL
When the denominator is linear (degree 1), the antiderivative is a natural logarithm. This form often appears as part of the remainder after long division.
SECTION 5
Step-by-Step Breakdown of Each Technique
Long Division: The Process Visualized
Polynomial long division follows the same logic as numerical long division: divide, multiply, subtract, bring down. The diagram below walks through the division of (x³ + 2x² − x + 3) by (x + 1), showing each stage of the process and how the quotient and remainder emerge.
Completing the Square: The Process
Completing the square rewrites a quadratic from standard form (ax² + bx + c) into vertex form (a(x − h)² + k). Here's the step-by-step procedure, illustrated with the example x² + 6x + 13.
- Step 1: Start with the quadratic: x² + 6x + 13. Make sure the coefficient of x² is 1 (if it's not, factor it out first).
- Step 2: Take half the coefficient of x: 6/2 = 3. Square it: 3² = 9.
- Step 3: Add and subtract 9 inside the expression: x² + 6x + 9 − 9 + 13 = (x + 3)² + 4.
- Step 4: Recognize the form: (x + 3)² + 2² matches u² + a² with u = x + 3 and a = 2.
- Step 5: Apply the standard integral: ∫ 1/((x+3)² + 4) dx = (1/2) arctan((x+3)/2) + C.
When to Use Each Technique
SECTION 6
Worked Examples
Example 1: Long Division Before Integrating
- 1
Step 1 — Identify the Problem
Evaluate ∫ (x² + 3x + 5)/(x + 1) dx. The degree of the numerator (2) is greater than the degree of the denominator (1), so this is an improper rational function. We must perform long division first. - 2
Step 2 — Perform Long Division
Divide x² + 3x + 5 by x + 1. First: x² ÷ x = x. Multiply: x(x + 1) = x² + x. Subtract: (x² + 3x) − (x² + x) = 2x. Next: 2x ÷ x = 2. Multiply: 2(x + 1) = 2x + 2. Subtract: (2x + 5) − (2x + 2) = 3.(x² + 3x + 5)/(x + 1) = x + 2 + 3/(x + 1) - 3
Step 3 — Integrate Each Term
Now integrate term by term: ∫ x dx = x²/2. ∫ 2 dx = 2x. ∫ 3/(x + 1) dx = 3 ln|x + 1|. Each of these uses a basic antiderivative rule. - 4
Step 4 — Combine and Add Constant
Putting it all together, we get the final antiderivative.∫ (x² + 3x + 5)/(x + 1) dx = x²/2 + 2x + 3 ln|x + 1| + C
Example 2: Completing the Square Before Integrating
- 1
Step 1 — Identify the Problem
Evaluate ∫ 1/(x² + 4x + 13) dx. The numerator has degree 0 and the denominator has degree 2, so this is already a proper fraction. The denominator x² + 4x + 13 does not factor over the reals (its discriminant is 4² − 4(13) = 16 − 52 = −36 < 0), so we need to complete the square. - 2
Step 2 — Complete the Square
Take half the coefficient of x: 4/2 = 2. Square it: 2² = 4. Rewrite: x² + 4x + 13 = (x² + 4x + 4) + 9 = (x + 2)² + 9 = (x + 2)² + 3².x² + 4x + 13 = (x + 2)² + 3² - 3
Step 3 — Match the Standard Form
The integral is now ∫ 1/((x + 2)² + 3²) dx. This matches the pattern ∫ 1/(u² + a²) du = (1/a) arctan(u/a) + C with u = x + 2 and a = 3. Since du = dx (no chain rule adjustment needed), we apply the formula directly. - 4
Step 4 — Write the Final Answer
Substituting u = x + 2 and a = 3 into the arctangent formula gives us the antiderivative.∫ 1/(x² + 4x + 13) dx = (1/3) arctan((x + 2)/3) + C
SECTION 7
Strengths, Limitations & When to Use Each
| Feature | Long Division | Completing the Square |
|---|---|---|
| When to use | deg(numerator) ≥ deg(denominator) | Irreducible quadratic in denominator |
| Prerequisite skill | Polynomial division (Algebra 2) | Completing the square (Algebra 1/2) |
| Result form | Polynomial + proper fraction | (x − h)² + k² form in denominator |
| Leads to | Power rule + ln or arctan | Arctan (or ln for factorable quadratics) |
| Limitation | Only applies to improper fractions; remainder may still need further techniques | Only works on quadratics; if numerator has x-terms, may need u-sub first |
| Can be combined? | Yes — do long division first, then complete the square on the remainder | Yes — often follows long division or precedes a u-substitution |
Comparison of the two algebraic preprocessing techniques for integration
KEY TAKEAWAY
SECTION 8
Connection to Advanced Integration Techniques
Long division and completing the square are foundational techniques that connect directly to more advanced methods you'll encounter in Calculus 2 and beyond. Understanding them now builds a bridge to partial fraction decomposition, trigonometric substitution, and even complex analysis methods for integration.
| This Lesson's Technique | Advanced Extension | What Changes |
|---|---|---|
| Long division to simplify improper fractions | Partial fraction decomposition | After long division, the proper remainder is further split into simpler fractions with linear or irreducible quadratic denominators |
| Completing the square → arctan | Trigonometric substitution | Instead of using the arctan formula, you substitute x = a tan(θ) directly, which handles cases with √(x² + a²) in the numerator |
| Completing the square → ln | Integration by parts | When the numerator has higher powers of x multiplied by the fraction, integration by parts combined with completing the square handles the extra complexity |
How today's techniques connect to Calculus 2 methods
The important thing to realize is that these techniques don't become obsolete as you learn more calculus. Instead, they remain as essential first steps in a longer chain of transformations. In Calculus 2, when you face ∫ (3x⁴ + 2x² − 1)/(x³ + x) dx, you'll still start with long division before applying partial fractions to the remainder. The algebra always comes first.
Looking Ahead
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
When faced with integrals of rational functions, two algebraic preprocessing techniques are essential. Polynomial long division applies whenever the degree of the numerator is greater than or equal to the degree of the denominator. It splits the integrand into a polynomial quotient (integrated via the power rule) and a proper rational remainder that can be handled by other techniques.
Completing the square transforms an irreducible quadratic denominator into the form (x − h)² + k², which matches the standard arctangent integral formula: ∫ 1/(u² + a²) du = (1/a) arctan(u/a) + C. These two techniques, used separately or together, allow you to integrate a wide class of rational functions by reducing them to forms involving power rules, natural logarithms, and inverse trigonometric functions. Mastering them prepares you for partial fraction decomposition and trigonometric substitution in Calculus 2.