A few patterns recur so often that recognising them is part of the calculus literacy you need. Each is a derivative of a ln or an inverse-trigonometric function in disguise.
The denominators-with-squares family
Integral
Result
∫x2−a2dx
$\dfrac{1}{2a}\ln\left
∫a2−x2dx
$\dfrac{1}{2a}\ln\left
∫x2+a2dx
a1tan−1(ax)+C
∫x2−a2dx
$\ln!\left
∫a2−x2dx
sin−1(ax)+C
∫x2+a2dx
$\ln!\left
The first two come from partial fractions: x2−a21=2a1(x−a1−x+a1). The middle one is the definition of tan−1. The radical forms come from trigonometric substitution.
Completing the square
The integrals above always have a "naked" x2+a2 or x2−a2. Real problems give you ax2+bx+c. The strategy: complete the square to write
ax2+bx+c=a[(x+2ab)2+4a24ac−b2].
Then substitute u=x+b/(2a) to reach one of the standard forms.
Linear numerator over quadratic
For ∫ax2+bx+cpx+qdx , algebraic or under a radical , split the numerator: write px+q=2ap(2ax+b)+(q−2apb). The first chunk is a perfect derivative of the denominator (giving a log or 2⋅). The second is a constant times a standard form. This decomposition is in routine board-exam playbooks.
Two further integrals
Two more patterns worth knowing.
∫a2−x2dx=2xa2−x2+2a2sin−1(x/a)+C.
∫x2+a2dx=2xx2+a2+2a2lnx+x2+a2+C.
∫x2−a2dx=2xx2−a2−2a2lnx+x2−a2+C.
Each is derived by trigonometric (or hyperbolic) substitution. Memorise the patterns; don't try to re-derive on exam day.
Derivations of two key results
Why is ∫x2+a2dx=ln∣x+x2+a2∣+C?
Substitute x=atanθ. Then dx=asec2θdθ, x2+a2=asecθ. The integral becomes ∫asecθasec2θdθ=∫secθdθ=ln∣secθ+tanθ∣+C. Restore x: tanθ=x/a, secθ=x2+a2/a, so secθ+tanθ=ax+x2+a2. Absorbing lna into the constant:
∫x2+a2dx=ln∣x+x2+a2∣+C.
Why does ∫a2−x2dx=2xa2−x2+2a2sin−1(x/a)?
Substitute x=asinθ. Then a2−x2=acosθ, dx=acosθdθ. Integral becomes ∫a2cos2θdθ=a2⋅2θ+sinθcosθ. Restore: θ=sin−1(x/a), sinθcosθ=(x/a)(a2−x2/a). Multiply through and rearrange to get the stated form.
Worked examples
Example 1.∫x2+2x+5dx.
Complete the square: x2+2x+5=(x+1)2+4. So ∫(x+1)2+22dx=21tan−1(2x+1)+C.
Example 2.∫4x2−9dx.
Factor: 4x2−9=2x2−9/4. So ∫2x2−(3/2)2dx=21lnx+x2−9/4+C.
Example 3.∫x2+4x+52x+3dx.
Split: 2x+3=(2x+4)−1. So the integral splits as
∫x2+4x+52x+4dx−∫x2+4x+5dx.
First piece: numerator is derivative of x2+4x+5, so it's 2x2+4x+5. Second piece: complete the square (x+2)2+1, giving ln∣(x+2)+x2+4x+5∣.
Putting it together: 2x2+4x+5−ln∣(x+2)+x2+4x+5∣+C.
Example 4.∫9−x2dx.
By the standard form with a=3: 2x9−x2+29sin−1(x/3)+C.
Example 5.∫x2−6x+13dx.
Complete the square: (x−3)2+4. So integral =21tan−1(2x−3)+C.
Example 6.∫5x2−2xdx.
Factor inside: 5x2−2x=5(x2−52x)=5[(x−51)2−251]. So integrand is 5(x−1/5)2−1/251, giving 51ln(x−1/5)+(x−1/5)2−1/25+C.
Try it yourself
∫x2+4x+8dx
∫16−x2dx
∫x2+6x+13dx
∫x2+2x+52x−1dx
∫1−4x2x+1dx
∫x2+2x+5dx (complete the square, then standard form)
∫3x2−5dx
∫1−x−x2dx
∫(x+1)x2+2x+1dx , note the singularity!
∫4x−x23x+2dx
∫x2+1x2dx (write x2=(x2+1)−1)
∫4−9x2dx
∫(x−1)x2−1dx (substitute x=secθ)
∫x2+5x−62x+5dx
Pitfalls and tricks
Always complete the square first for quadratics in denominators.
Pull out the leading coefficient before applying a standard form , 5x2 is not x2.
For linear-over-quadratic, split into a "derivative of denominator" piece and a constant piece.
The radical forms with ln have no absolute-value confusion when a>0 and the expression under the root is positive , but the natural domain restriction comes from the radicand.
Memorise the table. These integrals appear in nearly every JEE paper.