Long division & completing the square
This section introduces two techniques for rewriting an integral into a more familiar form, so you can apply standard integration rules or -substitution.
- Long division
- Completing the square
Long division
When integrating a rational function where the degree of the numerator is greater than or equal to the degree of the denominator, try polynomial long division first. The goal is to rewrite the integrand as a polynomial plus a proper fraction.
Solution
Using polynomial long division,
So the integral becomes
Split it into simpler pieces:
Use the reverse power rule on . For the logarithm-type integral, use -substitution with
Then
Solution
Using polynomial long division,
So the integral becomes
Split it into two integrals:
The remaining fraction is easier if we separate it:
For , use -substitution with
Then
Rewrite and integrate:
For , use the standard inverse tangent form:
Putting everything together,
Completing the square
If the integrand has a quadratic expression in the denominator or under a square root and it doesn’t factor nicely, try completing the square. This often turns the expression into a form that matches an inverse trig integral.
Solution
Complete the square in the denominator:
This matches the standard form
after the substitution
Rewrite and integrate:
Solution
First rewrite the quadratic inside the square root and complete the square:
This matches the inverse sine form
after the substitution
Rewrite and integrate:
Solution
Complete the square in the denominator:
This is close to the standard inverse tangent form
but we need the constant term to be instead of . Multiply the numerator and denominator by :
Rewrite as :
Now use the substitution
Then the integral becomes