Introduction
Priya, a second-year engineering student in Manchester, is stuck on a partial fractions problem. She needs to integrate (x³ + 2x² - 3x + 1) divided by (x² + x - 2). Her professor said the first step is polynomial long division because the numerator has a higher degree than the denominator. Priya tries it by hand. On the second line she forgets to subtract a negative term, flipping the sign. Two pages of scratch work later, her answer does not match the textbook. She needs a tool that shows every step so she can find where her arithmetic went wrong.
Polynomial long division is the algebraic analogue of the long division you learned in elementary school. Instead of dividing numbers digit by digit, you divide polynomials term by term, working from the highest power down. The method produces a quotient and a remainder that together satisfy a simple identity. According to Khan Academy, mastering this technique is a prerequisite for partial fractions, root-finding, and simplifying rational expressions.
What This Calculator Does and Why It Matters
This calculator divides one polynomial by another using the long division algorithm and shows the quotient, the remainder, and a step-by-step breakdown of every subtraction. You enter the coefficients of both polynomials as comma-separated values, highest power first. The tool handles integer and decimal coefficients, missing terms (when you include zero placeholders), and the edge case where the divisor has a higher degree than the dividend.
The outputs are a quotient polynomial and a remainder polynomial whose degree is strictly less than the divisor. These two pieces let you rewrite any rational expression in a simpler form, which is the starting point for integration by partial fractions and for finding asymptotes of rational functions. If you are reducing a cubic to a quadratic after finding one root, the Quadratic Equation Calculator can solve what remains. When you already know a factor and want to break an expression apart, pair this tool with the Factoring Calculator.
How the Calculation Works
Polynomial long division rests on a single identity. When you divide a dividend D(x) by a divisor d(x), the result is always a quotient Q(x) and a remainder R(x) such that:
D(x) = d(x) · Q(x) + R(x)
The degree of R(x) is always less than the degree of d(x). The algorithm reaches this result through repeated steps:
- Divide the leading term of the current dividend by the leading term of the divisor. This gives the next term of the quotient.
- Multiply that term by the entire divisor to form a product polynomial.
- Subtract the product from the current dividend. This cancels the leading term and produces a new, lower-degree dividend.
- Repeat until the remaining polynomial has a degree smaller than the divisor. What remains is the remainder.
Each cycle strips away the highest-degree term, so the process always terminates. The number of iterations equals the difference in degrees between the dividend and the divisor, plus one. MIT OpenCourseWare covers this method in the context of solving linear differential equations, where partial fractions depend on correct polynomial division.
How to Use the Calculator
- Write your dividend polynomial in standard form, highest power first. Note the coefficient of every power, including zeros for missing terms.
- Enter those coefficients in the dividend field, separated by commas. For x³ - 4x + 4, type 1,0,-4,4.
- Do the same for the divisor. For x - 2, type 1,-2.
- Read the quotient and remainder from the result card on the right.
- Scroll through the step-by-step section to see each division, multiplication, and subtraction in order.
Example Calculations
Example 1: Priya's Partial Fractions Setup
Priya divides x³ + 2x² - 3x + 1 by x² + x - 2. She enters 1,2,-3,1 for the dividend and 1,1,-2 for the divisor. Step one divides x³ by x² to get x. Multiplying x by the divisor gives x³ + x² - 2x. Subtracting leaves x² - x + 1. Step two divides x² by x² to get 1. Multiplying 1 by the divisor gives x² + x - 2. Subtracting leaves -2x + 3. The quotient is x + 1 and the remainder is -2x + 3. She can now rewrite her rational expression as x + 1 plus (-2x + 3) over (x² + x - 2), ready for partial fraction decomposition.
Example 2: Finding a Root by Testing a Factor
Marcus, a high school senior in Toronto, suspects x - 2 is a factor of x³ - 4x + 4. He enters 1,0,-4,4 and 1,-2. Step one divides x³ by x to get x². Multiplying gives x³ - 2x². Subtracting leaves 2x² - 4x + 4. Step two divides 2x² by x to get 2x. Multiplying gives 2x² - 4x. Subtracting leaves 4. Step three divides 4 by x to get 0x, but since the remainder 4 has degree zero, which is less than the divisor degree one, the process stops. The quotient is x² + 2x and the remainder is 4. Because the remainder is not zero, x - 2 is not a factor, and 2 is not a root. Marcus now knows to test another value.
Real-World Scenarios
Finding Roots of Higher-Degree Polynomials
Cubic and quartic equations rarely have simple formulas you can apply in one shot. The practical approach is to guess one rational root using the rational root theorem, confirm it with the remainder theorem, then divide the polynomial by (x minus that root). The result is a polynomial one degree lower. Repeat until you reach a quadratic, which you can solve with the quadratic formula. Polynomial division is the engine that reduces degree step by step in this root-finding pipeline.
Partial Fractions for Integration
In calculus, integrating a rational function often requires partial fractions. But partial fractions only work when the numerator has a lower degree than the denominator. When it does not, you first perform polynomial long division to extract a polynomial quotient plus a proper fraction. The polynomial part integrates directly. The proper fraction splits into simpler pieces using partial fractions. Without correct division, the entire integration chain breaks down. Paul Dawkins covers this workflow in detail in his Paul's Online Math Notes on partial fractions.
Signal Processing and Control Systems
Engineers in signal processing and control theory work with transfer functions, which are ratios of polynomials in the Laplace domain. When the numerator degree meets or exceeds the denominator degree, the system is improper and must be rewritten. Polynomial long division separates the transfer function into a polynomial part (representing direct feedthrough) and a proper rational part (representing the transient response). This division step is standard practice when analyzing stability and designing controllers.
Common Mistakes to Avoid
- Forgetting zero coefficients: A polynomial like x³ - 4x + 4 has no x² term. You must enter 1,0,-4,4, not 1,-4,4. Omitting the zero shifts every lower term and produces a completely wrong quotient.
- Sign errors in subtraction: The algorithm subtracts the product from the current dividend. When the product has a negative term, subtracting a negative means adding. This is where most hand calculations fail. Double-check every sign change.
- Stopping too early: The process ends only when the remainder has a lower degree than the divisor. If you stop while the remainder still has an equal or higher degree, you have not finished. Keep going until the degree drops.
- Entering coefficients in the wrong order: Coefficients go from highest power to constant. Reversing the order divides the constant term by the leading coefficient first, which is meaningless. Always start with the largest exponent.
Limitations
This calculator performs polynomial long division only. It does not perform synthetic division, which is a separate shortcut for linear divisors. It does not multiply polynomials, factor them, or solve equations directly. It works with real number coefficients, including decimals, but does not handle complex coefficients. For very large coefficient values, floating-point rounding can introduce small errors in the later steps. If you need to factor the quotient after division, use the Factoring Calculator. If you need to solve the resulting quadratic, use the Quadratic Equation Calculator.
Authoritative Research and Resources
- Khan Academy: Polynomial long division review - A free, structured walkthrough with video lessons and practice problems covering the full algorithm.
- Paul's Online Math Notes: Dividing polynomials - Clear worked examples from Lamar University, including cases with missing terms and higher-degree divisors.
- MIT OpenCourseWare: Differential Equations - Shows how polynomial division feeds into partial fractions and Laplace transforms in applied mathematics.