Integration with long division and completing the square
AP Calculus BCΒ· AP Calculus BC CED β Integration and Accumulation of ChangeΒ· 14 min read
1. Integration of Improper Rational Functions via Polynomial Long Divisionβ β ββββ± 4 min
A rational function is improper if , and cannot be integrated directly using standard templates. Polynomial long division rewrites the improper integrand as:
where is the quotient polynomial, and is the remainder polynomial with . This is analogous to rewriting an improper fraction like as : we separate the whole polynomial part from the proper rational remainder, which can then be integrated with other techniques. The entire expression is integrated term-by-term: uses the power rule, and is handled with other methods.
Evaluate .
- 1
- Confirm the integrand is improper: , , so , requiring long division.
- 2
- Perform polynomial long division, giving quotient and remainder 4. The integrand becomes:
- 3
- 4
- Integrate term-by-term using the power rule and natural log rule:
- 5
- 6
- Verify by differentiating the result, which matches the original integrand.
Exam tip:
Always check the degree of the numerator and denominator before starting integration. If , you must do long division first β skipping this step guarantees an incorrect result.
2. Completing the Square for Irreducible Quadratic Denominatorsβ β β βββ± 4 min
After long division (or when starting with a proper rational function), you may encounter an irreducible quadratic denominator , where the discriminant , so it cannot be factored into real linear terms. Completing the square rewrites the quadratic to match one of two standard inverse trigonometric integral templates.
To complete the square for : 1. Factor the leading coefficient out of the first two terms. 2. Add and subtract inside the parentheses to form a perfect square, resulting in where . This matches the form needed for substitution into the standard templates:
Evaluate .
- 1
- Check discriminant: , so denominator is irreducible over the reals.
- 2
- Complete the square: group -terms, add and subtract :
- 3
- 4
- Rewrite integral to match the arctangent template, substitute , :
- 5
- 6
- Apply the arctangent integral formula:
- 7
Exam tip:
Always factor out the leading coefficient of the quadratic before completing the square if it is not 1. Forgetting this step gives an incorrect constant term that will not match standard inverse trig forms.
3. Integrating Linear Over Irreducible Quadratic Functionsβ β β β ββ± 4 min
A common AP exam integrand is where the denominator is irreducible. You cannot directly apply inverse trig rules here; instead split the numerator into a multiple of the derivative of the denominator plus a constant. The method is:
Let , compute
Write , solve for constants and by equating coefficients
Split the integrand into two terms:
Integrate the first term with the logarithmic rule, and the second term by completing the square and inverse trig rule
The first term is always of the form , which integrates to . Since irreducible quadratics are always positive, you can drop the absolute value bar for simplicity.
Evaluate .
- 1
- Confirm denominator is irreducible: . Let , so .
- 2
- Split numerator: . Equate coefficients: , then .
- 3
- Split the integral:
- 4
- 5
- Integrate the first term with the log rule:
- 6
- 7
- Integrate the second term by completing the square: , so:
- 8
- 9
- Combine results to get the final antiderivative:
- 10
Exam tip:
Always drop the absolute value around an irreducible quadratic in the log term, since the quadratic is always positive and never crosses the x-axis, simplifying your final answer.
4. AP-Style Concept Checkβ β β βββ± 2 min
Test your understanding of core techniques with this AP-style multiple choice question:
Which of the following is the antiderivative of ?
Reveal answer
1 βCorrect! After long division, the integrand simplifies to , which integrates to this result.
5. Common Pitfalls
Wrong move:
Stopping after long division and integrating the quotient but forgetting to add the remainder term over the denominator.
Why:
Students focus on completing the long division calculation and omit the non-zero remainder, which is present in most problems.
Correct move:
After completing long division, always write the full result: before integrating term-by-term.
Wrong move:
When the degree of the numerator equals the degree of the denominator, skipping long division and trying to use partial fractions or inverse trig directly.
Why:
Students think you only need long division when the numerator degree is strictly higher, not equal.
Correct move:
Always check for : if degrees are equal, the condition is satisfied, so perform long division first.
Wrong move:
When completing the square for , writing .
Why:
The student forgot to factor out the leading coefficient 2 from the x terms before completing the square.
Correct move:
Always factor the leading coefficient out of the first two terms first: .
Wrong move:
When integrating , trying to use inverse trig directly without splitting the numerator.
Why:
Students see a quadratic denominator and immediately complete the square, forgetting the linear numerator produces a logarithmic term.
Correct move:
Always split the numerator into a multiple of the derivative of the denominator plus a constant before integrating.
Wrong move:
When applying the arctangent formula to , stopping at .
Why:
The student forgot the substitution step for , which requires accounting for the chain rule factor of 2 from .
Correct move:
After rewriting the quadratic, always do the u-substitution explicitly and carry the constant factor through: the correct result here is .
6. Quick Reference Cheatsheet
Category | Formula/Rule | Notes |
|---|---|---|
Improper rational function | Requires long division before integration | |
Long division result | = quotient, = remainder | |
Completing the square general form | Factor out from terms first | |
Arctangent integral template | For irreducible quadratic denominators | |
Arcsine integral template | For difference of squares under square root | |
Linear numerator split | Split before integrating linear over irreducible quadratic | |
Log integral rule | Drop absolute value for irreducible quadratics | |
Result for | Log term from split, arctan from completed square |
When this came up on past exams
AI-estimated based on syllabus patterns β cross-check with official past papers for accuracy. Use only as revision-focus signals.
- 2022 Β· MCQ
Long division for improper integrand
- 2023 Β· FRQ
Integration with completing the square
What's Next
This topic is the critical prerequisite for partial fraction decomposition, the next major technique for integrating rational functions in AP Calculus BC. Partial fraction decomposition only works for proper rational functions, so you must master long division to reduce improper integrands before you can split them into partial fractions. Completing the square is also required to integrate the irreducible quadratic terms that often result from partial fraction decomposition, so this skill will be used repeatedly in the next section of the unit. Beyond integration of rational functions, completing the square appears when rewriting quadratics in polar coordinate and area problems later in the course, and the algebraic manipulation skills from this topic are required for almost all non-basic integration problems on the AP exam.
