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 - essentially an algebraic rewriting step that sets up a straightforward integration.
Solution
Using polynomial long division, divide by :
- . Multiply: . Subtract: .
- . Multiply: . Subtract: .
So the quotient is with remainder :
The integral becomes
Split it into simpler pieces:
Use the reverse power rule on . For the logarithm-type integral, use -substitution with
Then
Try the next example yourself before expanding the solution.
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 the constant term is instead of . Factor from the denominator:
so the integral becomes
Now use the substitution
Then the integral becomes