Tutorials › Calculus II › Polynomial Long Division Before Partial Fractions

Improper Rational Functions · Tutorial 203 of 998

Polynomial Long Division Before Partial Fractions

Use polynomial long division to rewrite an improper rational function as a polynomial plus a proper rational function, and check the result by recombination.

Intermediate 10 min read

What You'll Learn

  • Identify when the numerator’s degree makes a rational function improper
  • Apply polynomial long division one leading term at a time
  • Keep track of missing powers and subtraction signs
  • Express the result as a polynomial plus a proper rational function
  • Verify a division by recombining the quotient and remainder

Why Divide Before Decomposing?

A rational function is a quotient of polynomials. If the numerator’s degree is at least the denominator’s degree, the rational function is called improper. In that case, the expression is not yet in the form of a polynomial plus a proper rational function. Polynomial long division produces that form.

This matters when preparing rational functions for later integration methods. The division itself is an algebraic step: it separates out the polynomial part and leaves a remainder whose degree is smaller than the denominator’s degree. The remainder, not the original numerator, is then the numerator of the proper rational part.

Definition: Let \(P(x)\) and \(D(x)\) be polynomials, with \(D(x)\) not the zero polynomial. The rational function \(P(x)/D(x)\) is proper if \(\deg P<\deg D\), and improper if \(\deg P\geq\deg D\). The degree of a nonzero polynomial is the greatest exponent with a nonzero coefficient.

The polynomial division identity says that there are polynomials \(Q(x)\) and \(R(x)\) such that

$$ P(x)=D(x)Q(x)+R(x), \qquad R(x)=0\ \text{or}\ \deg R<\deg D. $$

Here, \(Q(x)\) is the quotient and \(R(x)\) is the remainder. Wherever \(D(x)\ne 0\), dividing the identity by \(D(x)\) gives

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

This is the desired form: a polynomial plus a proper rational function, unless the remainder is zero, in which case only the polynomial remains.

The Long-Division Procedure

Polynomial long division follows the same principle as numerical long division. At each stage, divide the leading term of the current expression by the leading term of the divisor. Place that result in the quotient, multiply the entire divisor by it, and subtract. Repeat with the new remainder until its degree is smaller than the divisor’s degree.

1
Compare leading terms.
Divide the highest-degree term still to be processed by the divisor’s leading term. This gives the next term of the quotient.
2
Multiply and subtract.
Multiply every term of the divisor by the new quotient term, then subtract that whole product from the current expression.
3
Repeat while possible.
If the new remainder has degree at least the divisor’s degree, find another quotient term and subtract again.
4
Write the result in quotient–remainder form.
Stop when the remainder is zero or has smaller degree than the divisor. Then write \(P/D=Q+R/D\).

Subtraction applies to the whole product, not just its first term. Writing the terms in descending powers and including zero coefficients for missing powers helps keep the alignment clear.

Worked Division

Worked Example: A Cubic Divided by a Quadratic

Divide \(2x^3+3x^2-5x+6\) by \(x^2+x-2\), and express the resulting rational function as a polynomial plus a proper rational function.

The leading-term division is \(2x^3/x^2=2x\). Multiply the divisor by \(2x\):

$$2x(x^2+x-2)=2x^3+2x^2-4x.$$

Subtract this product from the numerator:

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

Now divide the leading term \(x^2\) by \(x^2\), giving \(1\). Multiply the divisor by \(1\) and subtract:

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

The remainder \(-2x+8\) has degree \(1\), less than the divisor’s degree \(2\). Thus the quotient is \(2x+1\), and the remainder is \(-2x+8\):

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

Check by recombination:

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

The numerator is recovered, and the remainder’s degree is smaller than the divisor’s degree, so the division is verified.

Missing Powers and Nonmonic Divisors

A missing power has coefficient zero; it is not a reason to skip or shift a term. For instance, \(3x^4-2x^2+x-5\) has the same coefficients as \(3x^4+0x^3-2x^2+x-5\). Keeping the zero term in view can prevent errors in multiplication and subtraction.

Worked Example: A Missing Power in the Numerator

Divide \(3x^4-2x^2+x-5\) by \(x^2-1\). First divide the leading terms: \(3x^4/x^2=3x^2\). Subtract the product \(3x^2(x^2-1)=3x^4-3x^2\):

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

The next quotient term is \(x^2/x^2=1\). Subtract \(1(x^2-1)=x^2-1\):

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

The remainder has degree \(1<2\), so the quotient and remainder are \(3x^2+1\) and \(x-4\). Therefore,

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

Check by recombining:

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

This recovers the numerator, and the remainder has lower degree than the divisor.

The divisor need not be monic—that is, its leading coefficient need not be \(1\). When it is not, divide the leading coefficients as well as the powers of \(x\). The next example shows why the coefficient arithmetic must be kept exact.

Worked Example: A Divisor with Leading Coefficient 2

Divide \(2x^4+x^3-3x+1\) by \(2x^2-x+1\). The numerator has a missing \(x^2\) term, so write it as \(2x^4+x^3+0x^2-3x+1\). The first quotient term is \(2x^4/(2x^2)=x^2\). Subtract:

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

Divide the new leading term by the divisor’s leading term: \(2x^3/(2x^2)=x\). Subtract the product \(x(2x^2-x+1)=2x^3-x^2+x\):

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

Since the remainder has degree \(1<2\), stop. The quotient is \(x^2+x\) and the remainder is \(-4x+1\):

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

Check the identity:

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

The recombination gives the original numerator, and the remainder satisfies the required degree condition.

Why the Procedure Works

Each subtraction removes the current highest-degree term without changing the division identity. Suppose at some stage the current polynomial is \(S(x)\), and its leading term is \(a x^m\). Let the divisor’s leading term be \(b x^n\), where \(a\ne0\) and \(b\ne0\). If \(m\ge n\), choose the next quotient term \((a/b)x^{m-n}\). Multiplying the divisor by this term produces leading term \(a x^m\). Subtracting cancels that term, leaving a polynomial of strictly smaller degree.

Thus the process cannot continue indefinitely: the nonnegative degree drops at each subtraction. It stops when the remaining polynomial is zero or has degree less than \(n\), the divisor’s degree. The quotient terms collected along the way form \(Q(x)\), and the final remainder is \(R(x)\). Because the subtractions account for exactly the products of the divisor and the quotient terms, they give \(P(x)=D(x)Q(x)+R(x)\).

Why the degree condition matters: The final inequality \(\deg R<\deg D\) is what makes \(R(x)/D(x)\) proper. If the remainder still had degree at least that of the divisor, another quotient term could be found, so the division would not be finished.

A Common Subtraction Error

A frequent mistake is to subtract only the first term of the divisor’s product, or to forget that subtraction changes the sign of every term in that product. For example, in the first worked example, after choosing \(2x\), the product is \(2x^3+2x^2-4x\). Subtracting the full product gives

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

A wrong calculation would keep the \(-4x\) term’s sign unchanged during subtraction:

$$\begin{aligned} (2x^3+3x^2-5x+6)-(2x^3+2x^2-4x) &\mathrel{\not=}x^2-9x+6. \end{aligned}$$

The correction is to distribute the minus sign: \(-(-4x)=+4x\), so the \(x\)-coefficient is \(-5+4=-1\), not \(-5-4=-9\). Recombining the quotient and remainder is an effective way to catch this kind of error.

Using the Result

Before proceeding to any later decomposition of a rational function, check that the division is complete and that the result has the correct form. The quotient is a polynomial; the remainder term is proper; and recombining them must recover the original numerator over the original denominator. If the remainder is zero, there is no proper rational part.

  • Compare the degrees of the original numerator and denominator to decide whether division is needed.
  • Carry out each multiplication and subtraction across every term.
  • Stop only when the remainder is zero or has lower degree than the divisor.
  • Verify the quotient and remainder with \(P=DQ+R\).

Check Your Understanding

For each question, use the quotient–remainder identity to check your reasoning.

  1. What degree condition makes a rational function improper?
  2. When dividing \(4x^3+0x^2-2x+1\) by \(2x-1\), why should the zero \(x^2\) term be kept visible during the calculation?
  3. Divide \(x^3+2x^2-1\) by \(x+1\). State the quotient and remainder, then verify by recombination.
  4. If a division produces a nonzero remainder of the same degree as the divisor, has the long division finished? Explain.
  5. What two checks confirm that an expression \(Q(x)+R(x)/D(x)\) is the result of dividing \(P(x)\) by \(D(x)\)?

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