Tutorials › Calculus I › Polynomial Long Division in Rational Functions

Algebraic Function Structures · Tutorial 73 of 1495

Polynomial Long Division in Rational Functions

Learn how to divide polynomial numerators by polynomial denominators and verify the resulting quotient-and-remainder form.

Beginner 10 min read

What You'll Learn

  • Identify when a rational function is already proper and when polynomial long division is needed.
  • Arrange polynomials in descending powers and include missing terms with zero coefficients.
  • Find each quotient term by dividing leading terms and subtracting the corresponding product.
  • Stop when the remainder has lower degree than the denominator.
  • Check the quotient and remainder by multiplying back.
  • Preserve the original denominator restriction when rewriting a rational function.

Why Divide Polynomials in a Rational Function?

A rational function is a quotient of polynomials. When the numerator has degree at least as large as the denominator, polynomial long division rewrites that quotient as a polynomial plus a fraction whose numerator has lower degree than its denominator. The rewritten form can make the algebraic structure easier to read and work with.

For instance, the expression \(\frac{x^2+3x+1}{x+1}\) can be written as a polynomial and a remainder fraction. The goal is not merely to obtain a shorter expression: the quotient and remainder must satisfy an exact polynomial identity, and the rational expression is still defined only where its denominator is nonzero.

Definition: Let \(N(x)\) and \(D(x)\) be polynomials, with \(D(x)\) not the zero polynomial. Polynomial division finds polynomials \(Q(x)\) and \(R(x)\) such that $$ N(x)=D(x)Q(x)+R(x), $$ where either \(R(x)=0\), or the degree of \(R\) is less than the degree of \(D\). For values of \(x\) where \(D(x)\ne 0\), this gives $$ \frac{N(x)}{D(x)}=Q(x)+\frac{R(x)}{D(x)}. $$

The degree of a nonzero polynomial is the highest exponent with a nonzero coefficient. A rational expression \(\frac{R(x)}{D(x)}\) is called proper when the degree of its numerator is less than the degree of its denominator. If the numerator already has lower degree than the denominator, no division steps are needed: the quotient is zero and the remainder is the original numerator.

How Long Division Works

Write both polynomials in descending powers of \(x\), aligning matching powers. If a power is missing, write its coefficient as zero. This keeps every subtraction in the correct column.

At each step, divide the leading term of the current polynomial by the leading term of the divisor. That gives the next term of the quotient. Multiply the entire divisor by this term, subtract the product, and continue with the new polynomial. Stop when the remainder is zero or has degree smaller than the divisor.

1
Arrange the polynomials.
Write terms in descending powers and include zero-coefficient terms for missing powers.
2
Find the next quotient term.
Divide the leading term of the current dividend by the leading term of the divisor.
3
Multiply and subtract.
Multiply the divisor by the new quotient term, then subtract that product from the current dividend.
4
Check the stopping condition.
Stop when the remainder is zero or has degree less than the divisor.

Worked Examples

Worked Example: Divide a Cubic by a Quadratic

Rewrite \(\frac{2x^3+3x^2-5x+6}{x^2-x+2}\) as a polynomial plus a proper fraction.

First divide the leading terms: \(2x^3\div x^2=2x\). Multiply the divisor by \(2x\), then subtract:

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

The new leading-term division is \(5x^2\div x^2=5\). Multiply the divisor by \(5\) and subtract:

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

The remainder has degree \(1\), which is less than the divisor's degree \(2\), so division stops. The quotient is \(2x+5\) and the remainder is \(-4x-4\). Thus, wherever \(x^2-x+2\ne0\),

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

Check: Multiply the divisor by the quotient and add the remainder:

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

This recovers the original numerator, and the remainder degree is less than the divisor degree.

Worked Example: Divide When the Divisor Is Not Monic

Divide \(3x^4-2x^3+0x^2+5x-7\) by \(2x^2+x-1\). The explicit zero coefficient keeps the missing \(x^2\) term visible.

Divide leading terms: \(3x^4\div 2x^2=\frac{3}{2}x^2\). Multiply and subtract:

$$ \begin{aligned} \left(\frac{3}{2}x^2\right)(2x^2+x-1) &=3x^4+\frac{3}{2}x^3-\frac{3}{2}x^2,\\ (3x^4-2x^3+0x^2+5x-7) &-\left(3x^4+\frac{3}{2}x^3-\frac{3}{2}x^2\right)\\ &=-\frac{7}{2}x^3+\frac{3}{2}x^2+5x-7. \end{aligned} $$

Now \(-\frac{7}{2}x^3\div 2x^2=-\frac{7}{4}x\). Multiply and subtract again:

$$ \begin{aligned} \left(-\frac{7}{4}x\right)(2x^2+x-1) &=-\frac{7}{2}x^3-\frac{7}{4}x^2+\frac{7}{4}x,\\ \left(-\frac{7}{2}x^3+\frac{3}{2}x^2+5x-7\right) &-\left(-\frac{7}{2}x^3-\frac{7}{4}x^2+\frac{7}{4}x\right)\\ &=\frac{13}{4}x^2+\frac{13}{4}x-7. \end{aligned} $$

The next quotient term is \(\frac{13}{4}x^2\div 2x^2=\frac{13}{8}\). Multiply and subtract:

$$ \begin{aligned} \frac{13}{8}(2x^2+x-1) &=\frac{13}{4}x^2+\frac{13}{8}x-\frac{13}{8},\\ \left(\frac{13}{4}x^2+\frac{13}{4}x-7\right) &-\left(\frac{13}{4}x^2+\frac{13}{8}x-\frac{13}{8}\right)\\ &=\frac{13}{8}x-\frac{43}{8}. \end{aligned} $$

The remainder has degree \(1\), less than the divisor's degree \(2\). Therefore the quotient is \(\frac{3}{2}x^2-\frac{7}{4}x+\frac{13}{8}\), and the remainder is \(\frac{13}{8}x-\frac{43}{8}\). The rational expression is

$$ \frac{3x^4-2x^3+5x-7}{2x^2+x-1} = \frac{3}{2}x^2-\frac{7}{4}x+\frac{13}{8} +\frac{\frac{13}{8}x-\frac{43}{8}}{2x^2+x-1}, \qquad 2x^2+x-1\ne0. $$

Check: Multiplying the divisor by the quotient gives \(3x^4-2x^3+0x^2+\frac{27}{8}x-\frac{13}{8}\). Adding the remainder gives \(3x^4-2x^3+5x-7\), since \(\frac{27}{8}+\frac{13}{8}=5\) and \(-\frac{13}{8}-\frac{43}{8}=-7\). The identity checks.

Worked Example: An Exact Division

Divide \(x^3+2x^2-5x-6\) by \(x+3\). The leading-term division gives \(x^3\div x=x^2\). After multiplying and subtracting, continue with the new leading term:

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

The quotient is \(x^2-x-2\), and the remainder is zero. Thus, for \(x\ne-3\),

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

Check: Multiplying back gives

$$ (x+3)(x^2-x-2) =x^3-x^2-2x+3x^2-3x-6 =x^3+2x^2-5x-6. $$

The original rational expression is still undefined at \(x=-3\), even though the quotient polynomial is defined there. The division identity does not change the original domain.

Why the Procedure Must Finish Correctly

Each subtraction is chosen to cancel the current leading term. If the current polynomial has leading term \(a x^m\) and the divisor has leading term \(b x^n\), with \(a\ne0\) and \(b\ne0\), their quotient term is \(\frac{a}{b}x^{m-n}\). Multiplying the divisor by this term produces leading term \(a x^m\). Subtracting therefore removes the highest power currently present.

As long as the current polynomial's degree is at least the divisor's degree, this step lowers its degree. A nonzero polynomial has a nonnegative integer degree, so the degree cannot keep decreasing indefinitely. The process stops with zero or a polynomial of lower degree than the divisor. At every step, the current expression equals the divisor times the quotient terms found so far, plus the current remainder. Consequently the final polynomials satisfy \(N(x)=D(x)Q(x)+R(x)\).

Theorem: For a polynomial \(N(x)\) and a nonzero polynomial \(D(x)\), there is exactly one pair of polynomials \(Q(x)\) and \(R(x)\) such that \(N(x)=D(x)Q(x)+R(x)\), where \(R(x)=0\) or \(\deg R<\deg D\).

The construction above establishes existence. To see uniqueness, suppose there are two such pairs, \(Q_1,R_1\) and \(Q_2,R_2\). Subtract their identities:

$$ D(x)(Q_1(x)-Q_2(x))=R_2(x)-R_1(x). $$

If \(Q_1-Q_2\) were nonzero, the degree of the left side would be \(\deg D+\deg(Q_1-Q_2)\), which is at least \(\deg D\). But the right side has degree less than \(\deg D\), unless it is zero. A nonzero polynomial cannot have two different degrees in this identity, so both sides must be zero. Since \(D\) is nonzero, \(Q_1=Q_2\); then the original identity gives \(R_1=R_2\). The quotient and remainder are therefore unique.

A Common Subtraction Error

When subtracting the product of the divisor and a quotient term, the subtraction applies to every term in that product. For example, divide \(x^2+3x+1\) by \(x+1\). The first quotient term is \(x\), and \(x(x+1)=x^2+x\). A common incorrect step is to write

$$ (x^2+3x+1)-(x^2+x)=2x+1 \quad\text{incorrectly as}\quad x^2+3x+1-x^2+x=4x+1. $$

The sign in front of the product changes both terms: \(-(x^2+x)=-x^2-x\), not \(-x^2+x\). The correct subtraction is

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

Dividing \(2x\) by \(x\) gives \(2\). Subtract \(2(x+1)=2x+2\), leaving \(-1\). Thus the quotient is \(x+2\) and the remainder is \(-1\). Checking gives \((x+1)(x+2)-1=x^2+3x+1\).

Keep the Domain in View

Polynomial division gives an identity between polynomials. Turning that identity into a rational-expression equality requires the denominator to be nonzero. For an original expression \(\frac{N(x)}{D(x)}\), the division form \(Q(x)+\frac{R(x)}{D(x)}\) has the same restriction \(D(x)\ne0\). Do not use the quotient polynomial alone to claim that the original expression is defined at values excluded by its denominator.

The main practical checks are simple: every subtraction must be performed across all terms; the final remainder must have lower degree than the divisor; and multiplying the divisor by the quotient, then adding the remainder, must recover the original numerator.

Check Your Understanding

Use the quotient-and-remainder identity to answer these questions.

  1. When is a rational expression already proper, and what are its quotient and remainder in that case?
  2. Why must a missing power be represented with a zero coefficient during long division?
  3. Divide \(x^2+4x+1\) by \(x+2\). State the quotient and remainder, and verify by multiplying back.
  4. What condition on the remainder tells you that the division is complete?
  5. If a quotient polynomial is defined at a value where the original denominator is zero, does that make the original rational expression defined there? Explain.

Test yourself: Calculus I 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