Some rational functions don’t fit any basic rule or an obvious substitution as they stand. Two algebra tools from earlier courses fix that. Long division splits a “top-heavy” fraction into a polynomial plus a simpler fraction. Completing the square turns a quadratic denominator into the form (x−h)2+a2, which integrates to an arctangent.
For a linear denominator (from a quick substitution u=ax+b):
∫ax+b1dx=a1ln∣ax+b∣+C
For a sum of squares (from ∫1+u21du=arctanu+C with u=ax):
∫x2+a21dx=a1arctan(ax)+C(a>0)
Here’s where the second one comes from. Factor out a2 and let u=ax, so dx=adu:
∫a2(1+a2x2)1dx=a21∫1+u2adu=a1arctanu+C
If the degree of the numerator is greater than or equal to the degree of the denominator, divide first. The result is
denominatornumerator=quotient+denominatorremainder,
and both pieces are easy to integrate. You can use long division, synthetic division, or just rewrite the numerator cleverly (for example, x+1x+3=x+1(x+1)+2=1+x+12).
If the denominator is a quadratic with no real zeros (its discriminant is negative), complete the square:
x2+bx+c=(x+2b)2+(c−4b2)
Then substitute u=x+2b (so du=dx) and use the arctangent integral.
If the numerator is a linear term, first split off a multiple of the derivative of the denominator (which gives a logarithm), and complete the square on what’s left (see Practice 9).
| What you see | What to do |
|---|
| Numerator degree ≥ denominator degree | Long division first |
| Numerator is a multiple of the denominator’s derivative | Substitution, giving a ln |
| 1 over a quadratic with no real zeros | Complete the square, giving an arctan |
In AP Calculus AB, only these cases come up. Denominators that factor into distinct (non-repeating) linear factors usually need partial fractions, which is BC-only in AP.
Find ∫x+1x2+3x+1dx.
Solution. The top has degree 2 and the bottom degree 1, so divide. Since (x+1)(x+2)=x2+3x+2,
x2+3x+1=(x+1)(x+2)−1⇒x+1x2+3x+1=x+2−x+11.
∫(x+2−x+11)dx=2x2+2x−ln∣x+1∣+C
Find (a) ∫x2+91dx and (b) ∫4x2+11dx.
Solution.
(a) This is x2+a21 with a=3:
∫x2+91dx=31arctan(3x)+C
(b) Write 4x2=(2x)2 and let u=2x, so dx=21du:
∫(2x)2+11dx=21∫u2+11du=21arctan(2x)+C
Find ∫x2+6x+131dx.
Solution. The discriminant is 36−52<0, so the denominator doesn’t factor. Complete the square:
x2+6x+13=(x2+6x+9)+4=(x+3)2+22
Let u=x+3, du=dx:
∫u2+221du=21arctan(2u)+C=21arctan(2x+3)+C
Evaluate ∫13x2−2x+51dx.
Solution. Complete the square: x2−2x+5=(x−1)2+4. With u=x−1, the limits become u=0 and u=2:
∫02u2+41du=[21arctan2u]02=21arctan1−21arctan0=21⋅4π=8π
(Arctangent values are in radians: arctan1=4π.)
Skipping the division. ∫x+1x2dx is not 3x3ln∣x+1∣ or anything like it. When the top’s degree is at least the bottom’s, divide first.
Forgetting the remainder. After dividing, the remainder term is usually where the logarithm comes from. Check your division by multiplying back.
Losing the 1/a. ∫x2+91dx=31arctan3x+C. Both the 31 in front and the 3x inside are needed.
Using ln for every fraction. ∫x2+41dx is not ln(x2+4); the numerator isn’t the derivative of the denominator. A logarithm appears only when the top is a multiple of the bottom’s derivative.
Errors completing the square. Half the x-coefficient, square it, add and subtract. For x2−2x+5: (x−1)2−1+5=(x−1)2+4.
1. (Warm-up) Find ∫x−53dx.
Solution
3ln∣x−5∣+C
2. (Warm-up) Find ∫x2+161dx.
Solution
With a=4:
41arctan(4x)+C
3. (Warm-up) Find ∫x+1x+3dx.
Solution
x+1x+3=x+1(x+1)+2=1+x+12:
∫(1+x+12)dx=x+2ln∣x+1∣+C
4. (Core) Find ∫x−2x2−4x+7dx.
Solution
x2−4x+7=(x−2)2+3=(x−2)(x−2)+3, so
x−2x2−4x+7=x−2+x−23.∫(x−2+x−23)dx=2x2−2x+3ln∣x−2∣+C
5. (Core) Find ∫x2+1x2+2dx.
Solution
The degrees are equal, so divide: x2+1x2+2=x2+1(x2+1)+1=1+x2+11.
∫(1+x2+11)dx=x+arctanx+C
6. (Core) Find ∫x2+4x+81dx.
Solution
x2+4x+8=(x+2)2+4. With u=x+2:
∫u2+221du=21arctan(2x+2)+C
7. (Core) Find ∫x+2x3+2x2+1dx.
Solution
x3+2x2=x2(x+2), so x3+2x2+1=x2(x+2)+1 and
x+2x3+2x2+1=x2+x+21.∫(x2+x+21)dx=3x3+ln∣x+2∣+C
8. (Challenge) Evaluate ∫01x2+1x3dx.
Solution
Divide: x3=x(x2+1)−x, so x2+1x3=x−x2+1x.
For the second piece, u=x2+1 gives ∫x2+1xdx=21ln(x2+1).
∫01(x−x2+1x)dx=[2x2−21ln(x2+1)]01=21−21ln2≈0.153
9. (Challenge) Find ∫x2+2x+52x+6dx.
Solution
The derivative of the denominator is 2x+2. Split the numerator: 2x+6=(2x+2)+4.
∫x2+2x+52x+2dx+∫x2+2x+54dxThe first is a logarithm (u=x2+2x+5): ln(x2+2x+5). No absolute value is needed, because x2+2x+5=(x+1)2+4 is always positive.
For the second, complete the square: ∫(x+1)2+44dx=4⋅21arctan(2x+1).
∫x2+2x+52x+6dx=ln(x2+2x+5)+2arctan(2x+1)+C