Concept understanding — Integration By Completing Square
Integration by Completing the Square
You can integrate x2+11 or x2−a21 on sight. But a quadratic denominator such as x2+4x+5 fits neither standard form directly. The fix is to rewrite the quadratic as a perfect square plus (or minus) a constant, turning it into a form you already know.
The move
For x2+bx+c, add and subtract (2b)2:
x2+bx+c=(x+2b)2+(c−4b2).
After substituting u=x+2b the integral collapses to ∫u2+k2du or ∫u2−k2du.
Case A — leads to inverse tangent
∫x2+4x+5dx.
Complete the square: x2+4x+5=(x+2)2+1. With u=x+2,
∫u2+1du=tan−1u+C=tan−1(x+2)+C.
Tip
∫u2+a2du=a1tan−1au+C is the workhorse when the constant left over is positive.
Case B — leads to a logarithm
∫x2−6x+5dx.
Here x2−6x+5=(x−3)2−4. With u=x−3 the denominator u2−4 factors, so use partial fractions:
We integrate 1+2x+3x25x−2 by first completing the square in the denominator, then splitting the numerator into a derivative-matching part and a constant part. The result is 65log∣1+2x+3x2∣−3211tan−1(23x+1)+C.
When you see a quadratic denominator like 1+2x+3x2, the first instinct is often to check if the numerator is a multiple of the derivative of the denominator. That would give a simple log. Here, the derivative of the denominator is 2+6x, and our numerator is 5x−2 — not a perfect match, but close. The trick is to complete the square in the denominator to turn it into something like a2+(x+b)2, which then invites an arctan substitution for the leftover constant part.
Let’s walk through it cleanly.
Complete the square in the denominator
We have 3x2+2x+1. Factor out the 3 from the quadratic terms:
3x2+2x+1=3(x2+32x)+1
Complete the square inside the bracket: x2+32x=(x+31)2−91.
So
3[(x+31)2−91]+1=3(x+31)2−31+1=3(x+31)2+32
Factor the constant to make it look like a2+u2:
=3[(x+31)2+92]
So the denominator becomes 3[(x+31)2+(32)2].
Tip
A quicker way: for ax2+bx+c, the completed form is a[(x+2ab)2+4a24ac−b2]. Here a=3, b=2, c=1 gives 4ac−b2=12−4=8, so the constant inside is 368=92. Same result, faster.
Rewrite the integral
I=∫3[(x+31)2+92]5x−2dx=31∫(x+31)2+925x−2dx
Split the numerator to match the derivative of the denominator
The derivative of (x+31)2+92 is 2(x+31)=2x+32. We want to express 5x−2 as A(2x+32)+B.
Notice that the numerator 2x+32 is exactly the derivative of the denominator (x+31)2+92. So
∫(x+31)2+922x+32dx=log(x+31)2+92+C1
But (x+31)2+92=31(1+2x+3x2), so the log is log31(1+2x+3x2)=log∣1+2x+3x2∣−log3. The constant −log3 gets absorbed into C, so we can simply write log∣1+2x+3x2∣. …
Method: quadraticlinear — split into a log part and an arctan part
For a linear numerator over a quadratic with no real roots, split the numerator into (a multiple of the derivative of the denominator) + (a constant); the first gives a logarithm, the second an arctangent.
Steps
Step 1: Split the numerator. With denominator D(x)=ax2+bx+c and D′(x)=2ax+b,
Mistake 1: Forgetting the leading coefficient when completing the square.
Why it's wrong: for 3x2+2x+1 you must first factor out the 3; ignoring it scales the arctan term wrongly. Correct approach: write D(x)=a[(x+h)2+k2] and keep the a1 outside.
Mistake 2: Using a log-of-difference form for the constant piece. …