AP Calculus AB · Unit 6 · Integration and Accumulation of Change
6.10 Long division and completing the square
Simplify rational functions by long division or completing the square, then integrate the rewritten expressions.
1/4Long division separates a rational function into simpler terms
Part 1 of 4: Long division separates a rational function into simpler terms
A rational function is a quotient of polynomials. Use polynomial long division when the numerator’s degree is at least the denominator’s degree. Divide the leading terms, multiply the result by the denominator, and subtract. Repeat until the remainder has a lower degree than the denominator. Write the result as a polynomial plus a fraction containing that remainder.
This rewrite is valid wherever the original denominator is nonzero. It often turns an unfamiliar integral into a polynomial integral and a simpler rational integral. Keep the denominator’s excluded values in mind, even if the rewritten expression looks simpler.
Key terms · tap one for its definition
rational function
A rational function is a quotient of two polynomials, defined where its denominator is nonzero.
polynomial long division
Polynomial long division writes a polynomial quotient as a polynomial plus a remainder over the original divisor.
Part 2 of 4: Completing the square reveals a useful quadratic form
Use completing the square to rewrite a quadratic denominator around a squared binomial. For a monic quadratic, . First halve the coefficient of . Then square that value and adjust the constant term. If the leading coefficient is not one, factor it from the quadratic first.
A positive constant after the squared binomial gives a sum-of-squares form, . This form makes the inverse tangent integral recognizable. A zero or negative constant calls for a different approach. Completing the square rewrites the denominator; it does not change the function’s values.
Key terms · tap one for its definition
completing the square
Completing the square rewrites a quadratic using a squared binomial and a constant.
sum-of-squares form
A sum-of-squares form has a squared variable expression plus a positive squared constant.

Quick check
One question on the part you just read
Easy
Show answer and explanation
Answer: C · Worked explanation
Part 3 of 4: Integrate each term after polynomial long division
After division, integrate the polynomial and remainder fraction separately. A linear remainder over a linear denominator may simplify to a constant. A constant over a linear denominator gives a logarithmic antiderivative. For a denominator of , the integral of is .
Worked example
Divide before integrating
- Divide leading terms: . Subtract to get .
- Divide again: . Subtract to get remainder 2.
- Rewrite: , for .
- Integrate each term: .
Answer: , for .
Key term
logarithmic antiderivative
For a nonzero constant , an antiderivative of is .
Part 4 of 4: A completed square can lead to inverse tangent
The inverse tangent pattern is for . Once the denominator is a sum of squares, check its scale and the numerator. An integral with may require a constant factor after rewriting the denominator. Differentiate the result to check that factor.
Worked example
Complete the square before integrating
- Complete the square: .
- Set , so and .
- Apply the pattern: .
- Replace : .
Answer: .
The denominator is always positive, so this antiderivative works for every real . Differentiating it gives , matching the original integrand.
Key term
inverse tangent pattern
For , an antiderivative of with respect to is .
Check your recall[12 marks]
5 written questions. Answer each one in your head or on paper, then open the mark scheme.
- 1.State[1 mark]
State when polynomial long division is useful before integrating a rational function.
Show mark schemeHide mark scheme
Model answer
Use it when the numerator’s degree is at least the denominator’s degree.
- 1 mark for stating that the numerator’s degree is at least the denominator’s degree
- 2.Describe[2 marks]
Describe how polynomial long division rewrites a rational function, including a nonzero remainder.
Show mark schemeHide mark scheme
Model answer
It gives a polynomial quotient plus the remainder divided by the original denominator. The remainder has lower degree than the denominator.
- 1 mark for writing the result as a polynomial quotient plus the remainder over the original denominator
- 1 mark for stating that the remainder has lower degree than the denominator
- 3.Calculate[4 marks]
Calculate using long division.
Show mark schemeHide mark scheme
Model answer
Division gives . Therefore, the integral is , for .
- 1 mark for finding the polynomial quotient
- 1 mark for finding the remainder fraction
- 1 mark for integrating the polynomial terms to obtain
- 1 mark for integrating the remainder fraction to obtain
- 4.Show[2 marks]
Show that is a sum of squares.
Show mark schemeHide mark scheme
Model answer
Since , it equals .
- 1 mark for adding and subtracting the square-completion value 4, or showing an equivalent rearrangement
- 1 mark for obtaining
- 5.Calculate[3 marks]
Calculate by completing the square.
Show mark schemeHide mark scheme
Model answer
The denominator is . Applying the inverse tangent pattern gives .
- 1 mark for rewriting the denominator as
- 1 mark for recognizing the inverse tangent pattern with and
- 1 mark for giving

Practice this topic
10 quick-fire multiple-choice questions, easy to hard. Tap an answer to see if you're right and the worked explanation. (The written questions with mark schemes are under “Check your recall” above.)
0 right0 of 10 answered
Includes the quick check in the note above.
EasyState[1 mark]
Show answer and explanation
Answer: A · Worked explanation
EasyIdentify[1 mark]
Show answer and explanation
Answer: C · Worked explanation
EasyIdentify[1 mark]
Show answer and explanation
Answer: B · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: C · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: B · Worked explanation
MediumCalculate[2 marks]
Show answer and explanation
Answer: D · Worked explanation
MediumDetermine[2 marks]
Show answer and explanation
Answer: D · Worked explanation
HardDetermine[2 marks]
Show answer and explanation
Answer: A · Worked explanation