Integrating Functions Using Long Division and Completing the Square
How do we integrate a fraction of polynomials?
What you will learn
Understand that dividing or completing the square rewrites a fraction into rules you know.
Know the arctangent form with its 1 ÷ a factor.
Understand how to split a numerator into a multiple of the derivative plus a constant.
You must be able to
Divide an improper fraction before integrating.
Complete the square in an irreducible quadratic denominator.
Integrate with arctangent and include the 1 ÷ a.
Integrate a root of a completed square with arcsine.
Evaluate a definite integral with the original limits.
In the exam. Section I multiple choice, Part A: an indefinite or definite integral of a rational function, such as ∫x−1x2+1dx or ∫x2+4x+131dx, usually with exact options. These questions are short, and the whole question is recognizing which rewrite to use. In free response the techniques turn up inside area and accumulation parts.
1Long division
Proper fraction = numerator degree is less than denominator degree. Improper fraction = numerator degree is greater than or equal to the denominator degree.
The remainder term x+23 is a constant over a linear function. Its integral is a logarithm: ∫ax+bkdx=akln∣ax+b∣+C.
Example (invented): ∫x−1x2+1dx. Divide: x2+1=(x−1)(x+1)+2, so the fraction is x+1+x−12. The integral is 2x2+x+2ln∣x−1∣+C.
Example (invented): ∫x+12x+5dx. Here 2x+5=2(x+1)+3, so the fraction is 2+x+13, and the integral is 2x+3ln∣x+1∣+C.
For a definite integral, divide first and then use the limits on the antiderivative.
Example (invented): ∫02x+1x+3dx. Here x+3=(x+1)+2, so the integrand is 1+x+12.
∫02(1+x+12)dx=[x+2ln∣x+1∣]02=(2+2ln3)−0=2+2ln3
A quick way to divide when the denominator is linear: write the numerator in terms of the denominator, as in 2x+5=2(x+1)+3. Check by multiplying out.
2Completing the square
When the denominator is a quadratic with no real roots, it cannot be factored over the real numbers. Rewrite it as a square plus a positive constant.
x2+bx+c=(x+2b)2+(c−4b2)
Example: x2+4x+13=(x+2)2+9.
Now the integral looks like ∫u2+a21du, which has a known answer.
The arctangent form.
∫x2+a21dx=a1arctanax+C
To see why, substitute x=aw, so dx=adw. The integral becomes ∫a2(w2+1)adw=a1∫w2+1dw=a1arctanw.
Example (invented): ∫x2+4x+131dx=∫(x+2)2+91dx.
Let u=x+2, so du=dx. The integral is ∫u2+321du.
With a=3: 31arctan3u+C.
Back in x: 31arctan3x+2+C.
The constant a1 is the one students forget. Check by differentiating: dxd[31arctan3x+2]=31⋅1+(3x+2)21/3=(x+2)2+91.
For a definite integral, use the antiderivative with the original limits.
Example (invented): ∫01x2+2x+21dx=∫01(x+1)2+11dx=[arctan(x+1)]01=arctan2−4π≈0.322.
Example (invented): ∫03x2+91dx=[31arctan3x]03=31⋅4π=12π.
3The arcsine form
A square root of a quadratic, 1, uses the other inverse trig integral.
∫a2−u21du=arcsinau+C
Example (invented): ∫6x−x21dx. Complete the square: 6x−x2=9−(x−3)2. With u=x−3 and a=3, the answer is arcsin3x−3+C.
4When the numerator is not constant
If the denominator is an irreducible quadratic and the numerator is a linear term, split the numerator into a multiple of the denominator's derivative plus a constant.
Example (invented): ∫x2+2x+53x+1dx. The derivative of the denominator is 2x+2, and 3x+1=23(2x+2)−2. So
∫x2+2x+53x+1dx=23∫x2+2x+52x+2dx−2∫(x+1)2+41dx
The first part is 23ln(x2+2x+5), by substitution with u=x2+2x+5. The second is −2⋅21arctan2x+1. The result is
23ln(x2+2x+5)−arctan2x+1+C
5Choosing the technique
For a rational integrand q(x)p(x), ask these questions in order.
Is the numerator's degree at least the denominator's? Divide first.
Is the numerator (up to a constant) the derivative of the denominator? Use u=q(x) and get a logarithm (6.9).
Is the denominator an irreducible quadratic with a constant numerator? Complete the square and use arctangent.
Does the denominator factor into different linear factors? Partial fractions (6.12, BC only).
Only the first three are needed for AB.
Practice questions
30 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.
Practice · 6.10 Integrating Functions Using Long Division and Completing the Square