Historical Context & Motivation
The problem of computing antiderivatives has occupied mathematicians since the earliest days of calculus. When Isaac Newton and Gottfried Wilhelm Leibniz independently formalized integral calculus in the late seventeenth century, they recognized that many integrands do not present themselves in a form that matches a known differentiation rule. The task of rewriting an integrand—algebraically massaging it until a standard antiderivative formula applies—became a central concern of the discipline. Two algebraic techniques, polynomial long division and completing the square, trace their roots to antiquity and the Islamic Golden Age, respectively, yet they remain indispensable preprocessing steps in modern integration.
Despite centuries of theoretical advancement, the core challenge persists: most functions we encounter in applications—especially rational functions with polynomial numerator degree equal to or exceeding the denominator degree, or expressions involving irreducible quadratics—are not directly integrable by inspection. The question that motivates this lesson is therefore practical: How do we systematically rewrite an integrand so that it matches a form whose antiderivative we already know? Long division and completing the square are two of the most powerful answers.
Core Principles & Definitions
Both techniques in this lesson serve the same strategic role: they are algebraic preprocessing steps that convert an integrand into a sum of terms, each of which matches a standard antiderivative formula. Neither technique is itself an integration rule; rather, they prepare the way for rules you already know—the power rule, the natural logarithm form, and the arctangent form, among others.
Improper vs. Proper Rational Functions
Polynomial Long Division
Completing the Square
Standard Integral Forms
Synergy of the Two Techniques
Visual Explanation — Long Division Flow
The following diagram illustrates the decision process and algebraic flow when encountering a rational integrand. Starting from the raw integral, you first assess the degrees of numerator and denominator. If the function is improper, polynomial long division decomposes it. If the remaining denominator contains an irreducible quadratic, completing the square transforms it into a standard form.
Notice how the two techniques occupy different stages of the pipeline. Long division acts first, handling the global structure of the rational function by separating the polynomial part from the proper fractional part. Completing the square then acts locally on the denominator of whatever proper fraction remains, reshaping it to match a standard integral template. This sequential relationship means you should always consider long division before completing the square when both might apply.
Mathematical Framework
Long Division for Integration
Given a rational function P(x)/Q(x) where deg(P) ≥ deg(Q), the division algorithm for polynomials guarantees the existence of unique polynomials S(x) (the quotient) and R(x) (the remainder) such that the following decomposition holds.
Because S(x) is a polynomial, its antiderivative is immediate. The remaining proper fraction R(x)/Q(x) may then be integrated via partial fractions, logarithmic forms, or—after completing the square—inverse trigonometric forms.
Completing the Square for Integration
When the denominator of a proper fraction is an irreducible quadratic ax² + bx + c (i.e., b² − 4ac < 0), completing the square rewrites it as a sum of a squared linear term and a constant. This matches the integrands for the arctangent and related inverse trigonometric families.
Detailed Breakdown of the Two Techniques
Polynomial Long Division — Step by Step
Polynomial long division mirrors arithmetic long division. You divide the leading term of the numerator by the leading term of the denominator, multiply the entire denominator by that quotient term, subtract from the numerator, and repeat until the remainder has degree strictly less than the denominator. The following diagram walks through the division of (x³ + 2x² − x + 3) by (x + 1).
Completing the Square — Algebraic Detail
Consider the quadratic x² + 6x + 13 in a denominator. The discriminant is 6² − 4(1)(13) = 36 − 52 = −16 < 0, confirming the quadratic is irreducible over the reals. To complete the square, take half the coefficient of x (which is 3), square it (9), and add and subtract that value: x² + 6x + 9 + 4 = (x + 3)² + 4. The integral ∫ dx/(x² + 6x + 13) becomes ∫ dx/((x + 3)² + 4), which with the substitution u = x + 3 yields (1/2) arctan((x + 3)/2) + C.
Worked Examples
Example 1: Long Division then Integration
Example 2: Completing the Square then Integration
Example 3: Combined — Long Division then Completing the Square
Strengths, Limitations & When to Use Each
| Criterion | Long Division | Completing the Square |
|---|---|---|
| When Required | deg(numerator) ≥ deg(denominator) | Irreducible quadratic in denominator |
| Output | Polynomial + proper fraction | Sum-of-squares form: (x − h)² + k² |
| Target Integral Forms | Power rule, ln|x − a|, further partial fractions | (1/k) arctan(u/k), arcsin, logarithmic forms |
| Strengths | Purely mechanical; always reduces degree; prerequisite for partial fractions | Handles integrands no other elementary method can; pairs with trig substitution |
| Limitations | Does not help with proper fractions; result may still need further processing | Only applies to quadratic expressions; requires careful algebra to avoid sign errors |
| Common Error | Forgetting to subtract correctly (sign errors in intermediate steps) | Dropping the constant term after adding/subtracting the square |
Connection to Advanced Techniques
Long division and completing the square are often gateway steps to more sophisticated integration methods. Understanding where they fit in the larger ecosystem helps you develop strategic fluency—knowing not just how to execute a technique, but when and why to deploy it.
| Foundation Technique | Leads Into | How They Connect |
|---|---|---|
| Long Division | Partial Fraction Decomposition | Long division is a mandatory first step; partial fractions only apply to proper fractions. |
| Completing the Square | Trigonometric Substitution | After completing the square yields u² + a² or a² − u², a trig substitution (u = a tan θ or u = a sin θ) finishes the integral. |
| Completing the Square | Integration involving √(ax² + bx + c) | Radicals of quadratics require completing the square to identify the appropriate trig or hyperbolic substitution. |
| Both Techniques | Laplace Transforms (Diff. Eq.) | Inverse Laplace transforms of rational functions in s require partial fractions (hence long division) and completing the square to match transform table entries. |
In courses beyond Calculus 2, you will encounter these techniques repeatedly—in real and complex analysis, in solving ordinary and partial differential equations, and in applied fields such as signal processing and control theory. Mastering them now builds algebraic fluency that pays compounding returns throughout your mathematical career.
Practice Problems
Lesson Summary
This lesson covered two essential algebraic preprocessing techniques for integration. Polynomial long division converts improper rational functions (where deg(P) ≥ deg(Q)) into the sum of a directly integrable quotient polynomial and a proper fraction that may be processed further via partial fractions, logarithmic forms, or other methods.
Completing the square transforms an irreducible quadratic denominator ax² + bx + c into the form a(x − h)² + k², enabling the application of the standard arctangent integral (1/k) arctan(u/k) + C. When the numerator is linear, a numerator-splitting strategy separates the integrand into a logarithmic part and an arctangent part. Together, these techniques form the algebraic foundation upon which partial fractions, trigonometric substitution, and many applied methods in differential equations and engineering analysis are built.