Question
Evaluate ∫x2+4x+131dx.
Solution — Step by Step
x2+4x+13=(x2+4x+4)+9=(x+2)2+32.
Let u=x+2, du=dx.
∫u2+9du.
∫u2+a2du=a1tan−1(au)+C.
Here a=3:
∫u2+9du=31tan−1(3u)+C.
∫x2+4x+131dx=31tan−1(3x+2)+C
Final answer: 31tan−1(3x+2)+C.
Why This Works
Whenever the denominator is a quadratic with negative discriminant (no real roots), completing the square turns it into the form (u2+a2), which has the inverse-tangent integral as its antiderivative.
If the discriminant were positive, partial fractions would be the move. If zero, completing the square gives (x−r)2 and the integral becomes −1/(x−r).
So the discriminant of the denominator tells you the technique:
- Δ<0: complete the square, tan−1.
- Δ=0: complete the square, perfect-square integration.
- Δ>0: partial fractions, log of factors.
Alternative Method
If we recognize the form immediately, we can shortcut: ∫dx/((x+2)2+9) matches ∫du/(u2+9) at sight, no substitution needed mentally. With practice, this becomes a one-liner.
Common Mistake
Students often forget to divide by a in the tan−1 formula. The general result is (1/a)tan−1(u/a) — that 1/a outside is easy to drop. Always verify by differentiating: dxd[a1tan−1(u/a)]=a1⋅1+u2/a21/a=a2+u21. Check.