Tutorials › Calculus II › When Polynomial Division Should Come First

Integration Strategy · Tutorial 16 of 998

When Polynomial Division Should Come First

Use the degrees of the numerator and denominator to identify when polynomial division must come before partial fractions.

Beginner 10 min read

What You'll Learn

  • Compare numerator and denominator degrees to decide whether a rational function is proper.
  • Divide an improper rational function into a polynomial quotient and a proper remainder.
  • Use polynomial division before partial fractions when the numerator degree is at least the denominator degree.
  • Integrate the quotient and the partial-fraction terms separately.
  • Check an antiderivative by differentiating it on its domain.

Why Degree Comparison Comes First

A rational integrand is a quotient of polynomials. Its denominator may have factors that suggest familiar antiderivative forms, but those factors do not by themselves tell you whether partial fractions can represent the whole quotient. First compare the degrees of the numerator and denominator.

If the numerator has degree at least as large as the denominator, the rational function is improper. In that case, polynomial division separates it into a polynomial and a rational function with a lower-degree numerator. That separation matters because the usual partial-fraction decomposition applies to the proper remainder, not to the original improper expression alone.

Definition: A rational function \(P(x)/D(x)\), where \(P\) and \(D\) are polynomials and \(D\) is not the zero polynomial, is proper if \(\deg P<\deg D\). It is improper if \(\deg P\ge\deg D\). The function is defined only where \(D(x)\ne 0\).

For a nonzero polynomial, its degree is the exponent of its highest-power term with a nonzero coefficient. For example, \(4x^3-x+2\) has degree \(3\). When comparing degrees, look at the polynomials after any valid simplification or cancellation.

The Division Step

Polynomial division gives polynomials \(Q(x)\) and \(R(x)\) such that

$$ P(x)=D(x)Q(x)+R(x), $$

where either \(R(x)=0\) or \(\deg R<\deg D\). Dividing by \(D(x)\), wherever \(D(x)\ne 0\), gives

$$ \frac{P(x)}{D(x)} = Q(x)+\frac{R(x)}{D(x)}. $$

If \(P/D\) is improper, this is the useful rewrite: \(Q\) is a polynomial, and \(R/D\) is proper. The polynomial part can be integrated using the power rule. If the proper remainder has a denominator that factors suitably, partial fractions can then be applied to that remainder.

Decision rule: If \(\deg P\ge\deg D\), divide before attempting partial fractions. If \(\deg P<\deg D\), the rational function is already proper, so polynomial division is not needed.

Why the Method Works

The key is the division identity, not a change to the value of the integrand. On the domain where \(D(x)\ne 0\), the identity \(P=DQ+R\) guarantees that the original quotient equals the sum of the quotient polynomial and the remainder fraction. Linearity of integration then lets us handle these parts separately.

1
Compare degrees.
Determine whether the numerator degree is at least the denominator degree.
2
Divide if needed.
Write the numerator as denominator times quotient, plus a remainder of lower degree.
3
Integrate the polynomial part.
Apply the power rule term by term.
4
Handle the proper remainder.
When its denominator factors into distinct linear factors, decompose it into constant multiples of reciprocals of those factors, then integrate.
5
Check the result.
Differentiate the proposed antiderivative and compare it with the original integrand on its domain.

For instance, if the proper remainder has denominator \((x-a)(x-b)\), with \(a\ne b\), a decomposition of the form \(A/(x-a)+B/(x-b)\) can be tested by multiplying through by the denominator and matching coefficients. This form is appropriate for a proper remainder; if the original numerator degree is too high, the quotient polynomial must not be omitted.

Worked Examples

Worked Example: Divide Before Integrating a Linear Denominator

Find \(\int \frac{x^2+3x+5}{x+1}\,dx\).

The numerator has degree \(2\), while the denominator has degree \(1\). The rational function is improper, so divide:

$$ \begin{aligned} x^2+3x+5 &=x(x+1)+(2x+5)\\ &=x(x+1)+2(x+1)+3\\ &=(x+1)(x+2)+3. \end{aligned} $$

Therefore, for \(x\ne -1\),

$$ \frac{x^2+3x+5}{x+1} =x+2+\frac{3}{x+1}. $$

Integrate each term:

$$ \int \frac{x^2+3x+5}{x+1}\,dx =\frac{x^2}{2}+2x+3\ln|x+1|+C. $$

To check, differentiate the proposed antiderivative:

$$ \frac{d}{dx}\left(\frac{x^2}{2}+2x+3\ln|x+1|\right) =x+2+\frac{3}{x+1} =\frac{(x+1)(x+2)+3}{x+1} =\frac{x^2+3x+5}{x+1}. $$

The derivative matches the original integrand wherever \(x\ne -1\).

Worked Example: Divide, Then Use Partial Fractions

Find \(\int \frac{2x^3+3x^2}{x^2-1}\,dx\).

The numerator degree is \(3\), greater than the denominator degree \(2\). Polynomial division gives

$$ \begin{aligned} 2x^3+3x^2 &=2x(x^2-1)+(3x^2+2x)\\ &=2x(x^2-1)+3(x^2-1)+(2x+3)\\ &=(x^2-1)(2x+3)+(2x+3). \end{aligned} $$

Thus the quotient and remainder are both \(2x+3\), and

$$ \frac{2x^3+3x^2}{x^2-1} =2x+3+\frac{2x+3}{x^2-1}. $$

The remainder fraction is proper. Since \(x^2-1=(x-1)(x+1)\), write

$$ \frac{2x+3}{(x-1)(x+1)} =\frac{A}{x-1}+\frac{B}{x+1}. $$

Multiplying by \((x-1)(x+1)\) gives \(2x+3=A(x+1)+B(x-1)\). Matching coefficients yields \(A+B=2\) and \(A-B=3\). Adding these equations gives \(2A=5\), so \(A=5/2\); then \(B=2-5/2=-1/2\). Therefore,

$$ \frac{2x^3+3x^2}{x^2-1} =2x+3+\frac{5/2}{x-1}-\frac{1/2}{x+1}. $$

Integrating term by term gives

$$ \int \frac{2x^3+3x^2}{x^2-1}\,dx =x^2+3x+\frac{5}{2}\ln|x-1|-\frac{1}{2}\ln|x+1|+C. $$

Differentiate to check:

$$ \begin{aligned} \frac{d}{dx}\left(x^2+3x+\frac{5}{2}\ln|x-1|-\frac{1}{2}\ln|x+1|\right) &=2x+3+\frac{5}{2(x-1)}-\frac{1}{2(x+1)}\\ &=2x+3+\frac{2x+3}{x^2-1}\\ &=\frac{(2x+3)(x^2-1)+(2x+3)}{x^2-1}\\ &=\frac{2x^3+3x^2}{x^2-1}. \end{aligned} $$

The check holds on the domain \(x\ne -1,1\).

Worked Example: Equal Degrees Still Require Division

Find \(\int \frac{x^2+2x+3}{x^2+x}\,dx\).

Both numerator and denominator have degree \(2\). Because the degrees are equal, the rational function is improper. Divide:

$$ x^2+2x+3=(x^2+x)\cdot 1+(x+3). $$

Consequently,

$$ \frac{x^2+2x+3}{x^2+x} =1+\frac{x+3}{x(x+1)}. $$

For the proper remainder, set \(\frac{x+3}{x(x+1)}=\frac{A}{x}+\frac{B}{x+1}\). Clearing the denominator gives \(x+3=A(x+1)+Bx\). Comparing constant terms gives \(A=3\), and comparing coefficients of \(x\) gives \(A+B=1\), so \(B=-2\). Hence

$$ \frac{x^2+2x+3}{x^2+x} =1+\frac{3}{x}-\frac{2}{x+1}. $$

Integrating produces

$$ \int \frac{x^2+2x+3}{x^2+x}\,dx =x+3\ln|x|-2\ln|x+1|+C. $$

Differentiate and combine the terms over a common denominator:

$$ \begin{aligned} \frac{d}{dx}\left(x+3\ln|x|-2\ln|x+1|\right) &=1+\frac{3}{x}-\frac{2}{x+1}\\ &=\frac{x(x+1)+3(x+1)-2x}{x(x+1)}\\ &=\frac{x^2+2x+3}{x^2+x}. \end{aligned} $$

This verifies the result for \(x\ne 0,-1\).

A Common Mistake: Trying Partial Fractions Too Soon

A frequent error is to try to represent an improper rational function using only the reciprocal factors of its denominator. For the first example, one might incorrectly try to write

$$ \frac{x^2+3x+5}{x+1}=\frac{A}{x+1}. $$

Multiplying through by \(x+1\) would require \(x^2+3x+5=A\), which cannot hold for every \(x\): the left side is a quadratic polynomial and the right side is constant. The error is not a poor choice of \(A\); the proposed form is missing a polynomial part.

Polynomial division supplies precisely that missing part:

$$ \frac{x^2+3x+5}{x+1} =x+2+\frac{3}{x+1}. $$

Only the proper remainder is represented by the reciprocal factor. Keep the quotient polynomial as part of the decomposition and integrate it as well.

When Division Is Not Needed

If the numerator degree is already less than the denominator degree, the rational function is proper. For example, \((2x+1)/(x^2-1)\) has numerator degree \(1\) and denominator degree \(2\). It is already in the right degree form for partial fractions, so polynomial division would add no useful step.

The test concerns degree, not the number of terms in either polynomial. A numerator with many terms can still have lower degree than the denominator; conversely, a short numerator can have degree at least as large. Also, a denominator factorization does not remove the need to check degrees first.

Why This Strategy Matters

Degree comparison is a small preliminary step that prevents a structural error. When division is required, it exposes a polynomial part that would otherwise be concealed in the rational quotient. It also leaves a proper remainder, making the subsequent decomposition easier to organize. The resulting pieces often have standard antiderivatives: powers for the polynomial terms and logarithms for the simple reciprocal factors.

Takeaway: Compare degrees before choosing a partial-fraction form. If the numerator degree is at least the denominator degree, write the rational function as a polynomial quotient plus a proper remainder, then integrate both parts.

Check Your Understanding

For each question, decide what the degree comparison implies before attempting any integration.

  1. Is \((3x^2+1)/(x^2+4)\) proper or improper? Should polynomial division come first?
  2. What degree condition must the remainder satisfy after dividing \(P(x)\) by \(D(x)\)?
  3. Divide \(x^2+4x+7\) by \(x+2\), and write the resulting quotient-plus-remainder expression for the rational function.
  4. Why can a decomposition using only constants over linear denominator factors fail for an improper rational function?
  5. After dividing an improper rational function, what should you check before applying partial fractions to the remainder?

Test yourself: Calculus II final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon