How to Integrate Rational Functions: Long Division and Partial Fractions

Integrating rational functions is one of the most systematic techniques in calculus. This guide covers the complete strategy: when to use substitution, when long division is needed, and when to apply partial fractions โ€” with worked examples for every case.

When Substitution Works

Before reaching for heavy machinery, check whether a simple u-substitution handles the rational function. This works when the numerator is closely related to the derivative of the denominator.

When Long Division Is Required

When the numerator degree is greater than or equal to the denominator degree, perform polynomial long division first to obtain a polynomial plus a proper fraction.

When Partial Fractions Are Required

For proper rational functions, use partial fraction decomposition to split the integrand into simpler pieces.

Integration Results by Factor Type

Linear Denominator

Repeated Linear Factor

Irreducible Quadratic Factor

Want to check your understanding?

Our interaction checks test whether you truly understand a concept โ€” not just whether you can repeat a procedure.

Try an interaction check

Strategy Decision Tree

Worked Calculus Examples

Common Integration Traps

Forgetting to do long division first

Partial fractions only work on proper fractions. Always check degrees before attempting decomposition.

Missing the absolute value in logarithms

The integral of 1/(x-a) is ln|x-a| + C, not ln(x-a) + C. The absolute value matters for the domain.

Practice Integrals

Related Guides

Frequently Asked Questions

How do you know when to use partial fractions for integration?

Use partial fractions when you have a proper rational function (numerator degree less than denominator degree) whose denominator can be factored into linear and/or irreducible quadratic factors. If the fraction is improper, perform polynomial long division first.

What is the integral of 1/(x-a)?

The integral of 1/(x-a) is ln|x-a| + C. This is the most basic result from partial fraction integration and appears whenever you decompose into distinct linear factors.

When does arctangent appear in integration?

Arctangent appears when integrating fractions with irreducible quadratic denominators of the form 1/(xยฒ+aยฒ). After completing the square if necessary, the integral becomes (1/a)arctan(x/a) + C.

What is the difference between substitution and partial fractions?

Substitution works when the numerator is (or can be adjusted to be) the derivative of the denominator, allowing a simple u-substitution. Partial fractions is a more general technique that works for any rational function by breaking it into simpler pieces, regardless of the numerator-denominator relationship.

Can you integrate all rational functions?

Yes. Every rational function can be integrated using a combination of polynomial long division and partial fraction decomposition. The resulting integrals always involve polynomials, logarithms, and/or arctangent functions.

What are the most common mistakes when integrating rational functions?

Common mistakes include forgetting to do long division when the fraction is improper, using the wrong partial fraction template (especially for repeated or quadratic factors), sign errors when solving for coefficients, and forgetting the absolute value in logarithm results.

About Sense of Study

Sense of Study is a concept-first learning platform that helps students build deep understanding in math, physics, chemistry, statistics, and computational thinking. Our approach maps prerequisite relationships between concepts so students master foundations before moving forward โ€” eliminating the gaps that cause confusion later.

With 800+ interconnected concepts and mastery tracking, we help students and parents see exactly where understanding breaks down and how to fix it.

Start Your Concept Mastery Journey

Explore 800+ interconnected concepts with prerequisite maps, mastery tracking, and interaction checks that build real understanding.