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:
Concept: U Substitution — we complete the square inside the square root to match the form a2−u2, then use the standard integral ∫a2−u2du=2ua2−u2+2a2sin−1au+C.
The key idea is to rewrite the quadratic under the square root by completing the square, then use a trigonometric substitution (sine) to integrate. The final result is 21((x−23)1+3x−x2+413arcsin(132x−3))+C.
Why this approach works
When you see a square root of a quadratic like ax2+bx+c, the first instinct is to complete the square. That turns the expression into something like A−(x−h)2 or (x−h)2+A, which then screams for a trigonometric substitution. Here, the coefficient of x2 is negative, so we’ll get a form A−(x−h)2 — perfect for a sine substitution.
The goal is to eliminate the square root by using the identity 1−sin2θ=cos2θ. That turns the integral into something purely trigonometric, which we can handle with standard formulas.
Step-by-step solution
1. Complete the square
We have 1+3x−x2. Write it as −(x2−3x)+1. Complete the square inside the parentheses:
Method: Complete the square, then use a standard formula
To integrate quadratic, rewrite the quadratic as (x+p)2±a2 or a2−(x+p)2 by completing the square, substitute t=x+p, and quote the matching standard integral.
Steps
Step 1: Complete the square on the quadratic under the root, so it becomes (x+p)2+k for some constant k.
Step 2: Substitute t=x+p (so dt=dx); the integral becomes ∫t2±a2dt or ∫a2−t2dt.