How to Integrate a Complicated Rational Function
At a glance
- 1. Check the degrees
If the numerator’s degree is at least the denominator’s, use polynomial long division first.
- 2. Factor the denominator
Factor it into linear factors and irreducible quadratic factors over the real numbers.
- 3. Set up fractions
Use partial fractions, including every power of each repeated factor.
- 4. Integrate each term
Apply logarithms, powers, and inverse tangent formulas, then add the constant.
An integral of a polynomial divided by another polynomial is called a rational-function integral. The expression may look complicated, but a reliable method breaks it into simpler pieces that have standard antiderivatives.
The main steps are to check the degrees, divide if necessary, factor the denominator, and use partial fractions. The exact decomposition depends on the denominator’s factors, so there is no single formula that fits every rational function.
1. Make the fraction proper
A rational function is proper when the degree of its numerator is less than the degree of its denominator. If it is not proper, use polynomial long division:
where is a polynomial and . Integrate directly, then work on the proper fraction.
For example, the degree of equals the degree of , so division is needed before partial fractions.
2. Factor the denominator and choose a decomposition
Factor the denominator over the real numbers. The factors determine the partial-fraction terms:
- For a linear factor appearing once, include .
- For a repeated factor , include every power: .
- For an irreducible quadratic , include a numerator of the form . If it is repeated, include such a term over every power of the quadratic.
The numerator over an irreducible quadratic must be linear so the decomposition has enough flexibility to match the original numerator. After writing the terms, find their constants by combining the fractions and matching coefficients, or by substituting convenient values of when possible.
3. Work through an example
Evaluate
First expand the denominator:
Long division gives
The denominator has a linear factor and a repeated linear factor. Set up the partial fractions as
Multiplying by gives
Substituting gives , so . Substituting gives , so . Comparing the coefficient of gives , so .
Thus
Integrate term by term:
The last term follows from . The logarithms use absolute values because their arguments may be negative.
4. Recognize the standard antiderivatives
Once the decomposition is correct, the individual terms are usually straightforward:
For an irreducible quadratic, split a linear numerator into a multiple of the derivative of the denominator plus a constant. For instance,
Here , and completing the square gives . The first part integrates to a logarithm; the second becomes an inverse tangent after scaling.
Common mistakes
- Skipping long division: Partial fractions in the usual form apply to a proper fraction. Divide first when the numerator’s degree is not smaller.
- Omitting repeated-factor terms: A denominator containing needs terms over both and .
- Using a constant over a quadratic: An irreducible quadratic generally needs a linear numerator, such as .
- Losing a sign or coefficient: Verify the decomposition by recombining it, or differentiate the final antiderivative and compare with the integrand.
- Forgetting the domain: The antiderivative is valid on intervals that do not cross points where the original denominator is zero. Include absolute values in logarithms of linear factors.
If the denominator has factors that do not split into real linear factors, complete the square in irreducible quadratics and use the logarithm and inverse-tangent forms. For some rational functions, a substitution can simplify the expression first, but long division followed by partial fractions is the standard general approach.
References
Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.