Class 12 integration: how to handle integrals with a quadratic in the denominator or under a square root by completing the square and reducing them to standard forms.
This lesson covers integrals of the type one over a quadratic and one over the square root of a quadratic. The method is to complete the square so the quadratic becomes a standard expression, then apply the matching standard integral for inverse tangent, inverse sine, or a logarithm. Five worked examples show the full working, including how to make the leading coefficient one and how to handle a negative coefficient of x squared.
What you'll learn
How to complete the square on a quadratic and reduce it to a standard form before integrating
When completing the square leads to an inverse tangent, an inverse sine, or a logarithm answer
How to make the coefficient of x squared equal to one, and how to handle a negative coefficient
Lesson chapters
0:01The two special types and the completing-the-square method
1:27Example 1: one over x squared plus 6x plus 13
3:03Example 2: leading coefficient nine
5:13Example 3: square root with a negative x squared term
6:49Example 4: square root of eight plus three x minus x squared
8:21Example 5: square root form giving a logarithm
Lesson notes
This lesson handles two special types of integral: ∫ax2+bx+cdx and ∫ax2+bx+cdx. In both we complete the square on the quadratic to reach a standard form, then integrate.
The method: completing the square
Given ax2+bx+c:
If the coefficient of x2 is not 1, take it outside so the bracket starts with x2.
Add and subtract the square of half the coefficient of x, that is (2b)2.
Group the first three terms as a perfect square (x±k)2, leaving a constant behind.
This turns the quadratic into one of the standard forms below, which we then integrate directly.
Example 1: ∫x2+6x+13dx
The coefficient of x2 is already 1. Half of 6 is 3, and 32=9, so add and subtract 9:
x2+6x+13=(x2+6x+9)−9+13=(x+3)2+4=(x+3)2+22.
This is the standard form ∫x2+a2dx=a1tan−1ax with a=2 and the variable x+3:
∫(x+3)2+22dx=21tan−12x+3+C.
Example 2: ∫9x2+6x+5dx
The coefficient of x2 is 9, so take 9 outside:
∫9x2+6x+5dx=91∫x2+32x+95dx.
Half of 32 is 31, and (31)2=91. Add and subtract it:
Here the coefficient of x2 inside the root is negative, so take −1 outside:
7−6x−x2=−(x2+6x−7).
Complete the square on x2+6x−7 using 32=9:
x2+6x−7=(x+3)2−9−7=(x+3)2−16.
So
7−6x−x2=−[(x+3)2−16]=16−(x+3)2=42−(x+3)2.
This is the standard form ∫a2−x2dx=sin−1ax with a=4:
∫42−(x+3)2dx=sin−14x+3+C.
Example 4: ∫8+3x−x2dx
Again take −1 outside:
8+3x−x2=−(x2−3x−8).
Half of 3 is 23, and (23)2=49:
x2−3x−8=(x−23)2−49−8=(x−23)2−441,
since −49−8=4−9−32=−441. Therefore
8+3x−x2=441−(x−23)2=(241)2−(x−23)2.
Using ∫a2−x2dx=sin−1ax with a=241:
sin−1241x−23=sin−1412x−3+C.
Example 5: ∫5x2−2xdx
The coefficient of x2 is 5, so take it outside the root as 5:
∫5x2−2xdx=51∫x2−52xdx.
Half of 52 is 51, and (51)2=251:
x2−52x=(x−51)2−251=(x−51)2−(51)2.
This is the standard form ∫x2−a2dx=logx+x2−a2 with variable x−51 and a=51:
51log(x−51)+x2−52x+C.
Note that the square root term keeps the reduced expression x2−52x, because the factor 5 was already taken outside.
Key takeaways
Complete the square first: ax2+bx+c becomes (x±k)2±m, and a negative x2 term becomes a2−(x±k)2 after taking −1 outside.
A quadratic denominator gives an inverse tangent; a square root of the form a2−x2 gives an inverse sine; a square root of the form x2−a2 gives a logarithm.
When the coefficient of x2 is not 1, take it outside first, and remember it stays as ⋅ outside the root in the square-root cases.