Integration by
Long Division & Completing the Square
Master two powerful algebraic techniques for rewriting rational integrands into forms you already know how to integrate.
Why Algebraic Rewriting Before Integrating?
Not every rational function fits a standard integration rule. When the degree of the numerator is greater than or equal to the degree of the denominator, or when the denominator is an irreducible quadratic, we must first transform the integrand into a friendlier form.
When to Use Long Division
Polynomial long division applies whenever the degree of the numerator \(\geq\) the degree of the denominator. The goal: rewrite the improper rational function as a polynomial plus a proper fraction.
When to Complete the Square
Completing the square is your tool when the denominator contains an irreducible quadratic (no real roots). It transforms \(ax^2 + bx + c\) into the form \(a(x-h)^2 + k\), which matches the \(\arctan\) or \(\arcsin\) integration formulas.
The Long Division Algorithm
Completing the Square: Step by Step
Long Division vs. Completing the Square
| Long Division | Completing the Square | |
|---|---|---|
| When to use | \(\deg P \geq \deg D\) | Irreducible quadratic in denominator |
| Goal | Reduce to proper fraction | Match \(\arctan\)/\(\arcsin\) form |
| Result | Polynomial + \(\frac{R}{D}\) | \(\frac{1}{u^2+a^2}\) or similar |
| Then integrate via | Power rule, \(\ln\), partial fractions | Inverse trig formulas |
Decision Flowchart
Example 1: Long Division
Step 1: Since \(\deg(x^3 + 2x^2 - x + 3) = 3 \geq 1 = \deg(x+1)\), we divide.
Example 1: Finishing the Integral
Step 2: Integrate each piece using the power rule and \(\ln\):
Example 2: Completing the Square
Step 1: Complete the square in the denominator:
Example 2: Final Answer
Step 2: Apply the formula \(\displaystyle\int\frac{du}{u^2+a^2} = \frac{1}{a}\arctan\!\frac{u}{a}+C\):
Example 3: Both Techniques Combined
Observe: \(\deg(\text{num}) = \deg(\text{den}) = 2\), so we need long division first.
Now the remainder fraction is proper. Next, we'll handle \(\dfrac{-4x-7}{x^2+4x+8}\) by completing the square in the denominator.
Example 3: Splitting the Remainder
Complete the square: \(x^2+4x+8 = (x+2)^2 + 4\). Let \(u = x+2\), so \(x = u - 2\) and the remainder numerator \(-4x - 7 = -4(u-2) - 7 = -4u + 1\).
Example 3: Complete Solution
Combining everything and substituting back \(u = x+2\):
Common Mistakes to Avoid
Summary: Integration Toolkit
| Integrand Form | Technique | Resulting Form |
|---|---|---|
| \(\frac{x^3+\cdots}{x+a}\) | Long Division | Polynomial + \(\frac{R}{x+a}\) |
| \(\frac{1}{x^2+bx+c}\) | Complete the Square | \(\frac{1}{(x-h)^2+k} \to \arctan\) |
| \(\frac{x}{x^2+bx+c}\) | Complete + Split | \(\ln + \arctan\) |
| \(\frac{x^2+\cdots}{x^2+bx+c}\) | Long Div + Complete | Polynomial + \(\ln + \arctan\) |
Question 1 of 5
What is the first step when evaluating \(\displaystyle\int\frac{x^3 - 1}{x - 2}\,dx\)?
Question 2 of 5
Completing the square on \(x^2 - 4x + 13\) gives:
Question 3 of 5
Evaluate \(\displaystyle\int\frac{dx}{x^2+2x+5}\).
Question 4 of 5
After performing long division on \(\dfrac{2x^2 + 3x + 1}{x + 1}\), what is the quotient and remainder?
Question 5 of 5
To evaluate \(\displaystyle\int\frac{2x+3}{x^2+4x+13}\,dx\), you should split the numerator into which two parts?