Polynomial Division Calculator
See how each division step changes the polynomial. Compare long and synthetic division, inspect exact coefficients, and check the quotient and remainder at a chosen value of x.
See how each term cancels.
Divide exactly, follow long and synthetic division, and verify the result at a value of x.
The polynomial being divided. Use x, powers such as x^3, parentheses and exact decimal or fraction coefficients.
Any nonzero polynomial up to degree 20. A linear divisor also enables synthetic division.
Supported notation and limits
Use +, -, *, /, parentheses and integer powers from 0 to 20. Examples: 2x(x+1), (2/3)x^2, 1e-4*x. A denominator must simplify to a nonzero constant.
Write fraction coefficients with parentheses: (2/3)x. Ambiguous forms such as 2/3x are rejected. -x^2 means -(x^2).
Each expression allows 1,200 characters, 400 tokens and 16 parenthesis levels. Expanded and intermediate degree is limited to 20. Numeric literals allow 24 significant digits, magnitude zero or 1e−100 through 1e100, and scientific exponents from −100 through 100.
Exact work is bounded by 4,096 digits per rational component and 100,000 rational operations. An unsupported expression is reported rather than rounded into a result. Use a single unsigned integer after ^; simplify exponent expressions first.
This is formal polynomial algebra: raising an accepted base to power zero denotes the constant polynomial 1, including a zero base. This convention does not resolve a numerical limit of the form 0^0.
Try an example
Enter an exact constant expression, such as -2 or 2/3. This inspection does not change the polynomial division.
Review the normalized inputs
P(x)
2x^3 - 3x^2 + 4x + 5D(x)
x + 2Like terms are combined exactly. Missing powers have zero coefficients in the ledgers.
Quotient Q(x)
Degree 2. Exact coefficients.
Remainder R(x)
Degree 0, below the divisor’s degree 1.
P(x) = D(x) Q(x) + R(x)
The exact reconstruction matches every dividend coefficient. A zero remainder identifies this divisor as a factor; it does not list every factor or root.
Follow the division
Select a step to see its exact inputs and result.
Use k = -2 for the normalized divisor x + 2.
D = (1)(x - (-2)). The table divides by x - (-2) and produces S. Divide every coefficient of S by 1 to obtain the actual quotient Q. The remainder is unchanged.
Bring down the leading coefficient
Read the actual quotient coefficient
For x^2: 2 ÷ (1) = 2.
View the complete synthetic table
| Row | ||||
|---|---|---|---|---|
| Dividend | 2 | -3 | 4 | 5 |
| Multiply by k | Bring down | -4 | 14 | -36 |
| Sum | 2 | -7 | 18 | -31 |
| Actual result | 2quotient x^2 | -7quotient x^1 | 18quotient x^0 | -31remainder |
Remainder theorem
P(k) = -31 = remainder -31.
This k is not a root of P because the remainder is nonzero.
Quotient degree 2. A nonzero remainder remains. Complete export available. Synthetic column 1 of 4.
Inspect the identity
Exact substitution checks the polynomial identity, including at a zero of the divisor.
At x = -2:
- Dividend P(x)
- -31
- Divisor D(x)
- 0
- Quotient Q(x)
- 40
- Remainder R(x)
- -31
- D(x)Q(x) + R(x)
- -31
- Exact identity residual
- 0
The original ratio P(x)/D(x) is undefined here because D(x)=0, even if the polynomial identity or a simplified quotient remains defined.
Exact coefficient ledger and export
Polynomials, aligned steps and the complete verification use the same exact calculation.
View exact polynomial coefficients
| Power | P | D | Q | R | D Q + R | Residual |
|---|---|---|---|---|---|---|
| x^3 | 2 | 0 | 0 | 0 | 2 | 0 |
| x^2 | -3 | 0 | 2 | 0 | -3 | 0 |
| x | 4 | 1 | -7 | 0 | 4 | 0 |
| Constant | 5 | 2 | 18 | -31 | 5 | 0 |
View every long-division step
| Step | Quotient term | Before | Subtract | After |
|---|---|---|---|---|
| 2x^2 | 2x^3 - 3x^2 + 4x + 5 | 2x^3 + 4x^2 | -7x^2 + 4x + 5 | |
| -7x | -7x^2 + 4x + 5 | -7x^2 - 14x | 18x + 5 | |
| 18 | 18x + 5 | 18x + 36 | -31 |
Selectable CSV text
Method, assumptions and sources
Long division cancels the leading term of the current remainder until it is zero or its degree is below the divisor’s. Every coefficient calculation uses exact rational arithmetic, and the complete identity P = DQ + R is checked coefficient by coefficient.
For a linear divisor ax+b, k=−b/a. Synthetic division first divides by x−k, then divides the normalized quotient coefficients by a. The remainder P(k) is unchanged. A zero remainder certifies this particular divisor, not a complete factorization.
The polynomial identity holds even where D(x)=0. The ratio P(x)/D(x) remains undefined there; cancelling a factor does not make the original expression defined at that point. Formal polynomial power zero is the constant 1, including a zero base, under this tool’s stated algebraic convention.
All coefficients and division steps are exact rational quantities. Scientific and binary64 values are separate approximations.
P = DQ + R is a polynomial identity. The ratio P/D is only defined where D is nonzero; cancellation does not restore excluded values.
A zeroth power is the formal polynomial empty product 1, including a zero base. This convention is not a claim about every numerical limit involving 0^0.
Synthetic division identifies the remainder at one linear-divisor root. This tool does not find every root or factor of a polynomial.
Method references: OpenStax: Dividing Polynomials and OpenStax: Zeros of Polynomial Functions.
How to use this calculator
- Enter Dividend P(x) and Divisor D(x) using x, numbers, operators and parentheses. The divisor must not simplify to zero. Missing powers are retained as zero coefficients in the step tables.
- Read the exact quotient and remainder. Inspect a long-division step to follow its leading term, multiplication and subtraction, or select a synthetic column when the divisor is linear.
- For a nonmonic linear divisor, compare the normalized synthetic quotient with the quotient for the entered divisor. The leading-coefficient adjustment changes the quotient, not the remainder.
- Enable Inspect the identity at a value of x and enter Inspection value of x. Compare both sides of the polynomial identity; if the divisor is zero at that point, the ratio is unavailable even though the identity still holds.
- Use the exact coefficient and step ledger, then request the CSV download or select the identical CSV text. Correct or disable invalid optional inspection before exporting the complete calculation.
The Formula
The mathematical logic powering this calculation is:
For a polynomial P(x) and a nonzero polynomial D(x), division gives P(x) = D(x)Q(x) + R(x). The remainder is zero or has degree below the divisor. A lower-degree dividend has quotient zero and remains the remainder. A nonzero constant divisor divides every coefficient exactly. The zero polynomial has no ordinary degree.
Long division repeatedly divides the current leading term by the divisor's leading term, multiplies the divisor by that quotient term and subtracts. The ledger shows exact coefficient rows aligned by power, including missing terms with coefficient zero.
Synthetic division applies to a linear divisor ax + b with a ≠ 0. Set k = −b/a, so D(x) = a(x − k). The synthetic recurrence yields a quotient S(x) for x − k and a constant remainder r = P(k). The quotient for the entered divisor is Q(x) = S(x)/a; the remainder is unchanged. A nonlinear or constant divisor has no ordinary synthetic table.
The identity P(x) = D(x)Q(x) + R(x) is valid at every x. The ratio P(x)/D(x) is defined only when D(x) ≠ 0, including when a factor cancels or the remainder is zero. A zero remainder establishes that the entered divisor divides P; this is not an algorithm for finding every root or factor.
Expressions use the single variable x, decimal/scientific literals, +, −, *, /, parentheses and nonnegative integer powers. Implicit multiplication such as 2x and (x + 1)(x − 1) is accepted. A denominator must simplify to a nonzero constant. Write (2/3)*x rather than ambiguous 2/3x. Unary minus binds below powers, so −x^2 means −(x^2). Powers contain one unsigned integer from 0 through 20; use parentheses for repeated powers. The formal polynomial convention P(x)^0 = 1 includes 0^0; this is an algebraic empty-product convention, not a claim about an indeterminate limit.
Each expression permits 1,200 characters, 400 tokens and 16 parenthesis levels. Intermediate degree cannot exceed 20, even if later terms would cancel. Each numeric literal permits 24 significant digits after insignificant zeros are removed, an explicit exponent from −100 through 100, and magnitude zero or 1e−100 through 1e100. Exact rational arithmetic permits at most 4,096 digits in a numerator or denominator and 100,000 operations per core calculation, with a separate budget for optional inspection. Unsupported inputs or work limits produce an explanation instead of an approximate fallback.
Inspection accepts a constant expression using the same grammar. An invalid enabled inspection leaves valid division results available but blocks complete CSV export until corrected or disabled. Disabled inspection text is retained without evaluation. The exact ledger and CSV are authoritative; any numerical approximations in the workspace are identified separately.Worked Example
If you input:
- Dividend P(x): 2x^3 - 3x^2 + 4x + 5
- Divisor D(x): x + 2
- Inspect the identity at a value of x: Yes
- Inspection value of x: -2
Result:
The quotient is 2x² − 7x + 18 and the remainder is −31. Multiplying (x + 2)(2x² − 7x + 18) and subtracting 31 restores 2x³ − 3x² + 4x + 5 exactly. Synthetic division uses k = −2, and P(−2) = −31. At this inspection point D(−2) = 0, so the polynomial identity holds while the original ratio P(−2)/D(−2) is undefined.
Frequently Asked Questions
When can I use synthetic division instead of long division?
The synthetic table is available for a linear divisor ax + b with a nonzero coefficient a. It uses k = −b/a. If a is not 1, the table's normalized quotient must be divided by a to obtain the quotient for the entered divisor. General long division also handles higher-degree and nonzero constant divisors; these do not receive a synthetic table.
Which expressions can I enter?
Use the single variable x, signed decimal or scientific numbers, addition, subtraction, multiplication, parentheses and integer powers from 0 to 20. Fractions are accepted when the denominator simplifies to a nonzero constant. Implicit multiplication such as 2x or x(x + 1) is supported, but ambiguous forms such as 2/3x require explicit grouping. Other variables, functions, equality signs, negative or fractional powers and variable denominators are outside this tool's grammar.
What happens to missing powers, zero and constant divisors?
A missing power contributes a zero coefficient; it is not silently skipped in a synthetic row. A divisor that simplifies to zero is invalid. A nonzero constant divisor divides the coefficients and leaves zero remainder. If the dividend has lower degree than the divisor, the quotient is zero. A zero dividend also produces zero quotient and remainder; its degree is shown as undefined rather than negative or zero.
Does a zero remainder mean the fraction is defined everywhere?
No. A zero remainder means the entered divisor divides the dividend as polynomials. The ratio of the original expressions is still undefined wherever the divisor is zero, even when its factors cancel. The inspection reports this domain distinction while retaining the valid polynomial identity. The tool does not enumerate all roots or fully factor a polynomial.
Are decimal inputs and displayed fractions exact?
Accepted decimal and scientific strings are converted to reduced rational coefficients, so the division and reconstruction do not depend on rounded floating-point subtraction. The ledger and export retain exact integers or fractions. Very large or small derived values remain exact even when an ordinary numerical approximation is unavailable. Explicit expression, degree, digit and operation bounds prevent an unbounded calculation.
Why does 0^0 return 1 here?
This is formal polynomial algebra: raising a polynomial to the zeroth power returns the multiplicative identity 1, including when that polynomial is zero. The convention makes coefficient operations consistent. It is not intended to resolve an indeterminate limit or define every use of 0^0 in other mathematical contexts.
Why can the division remain visible when inspection needs correction?
The optional inspection is a separate evaluation at a constant value of x. A malformed or nonconstant inspection expression does not invalidate a well-formed dividend and divisor. Main results remain available, but the complete CSV is blocked until inspection is corrected or turned off. Turning it off preserves the draft so it can be revisited.
Similar Calculators
Quadratic Formula Calculator
Solve any quadratic equation ax² + bx + c = 0 and find its real or complex roots instantly.
System of Equations Calculator
Solve 2–4 simultaneous linear equations with exact fractions, elimination steps, a two-variable graph, and checks for unique, infinite or no solutions.
Fraction Calculator
Add, subtract, multiply, and divide fractions with step-by-step simplified results.
Inequality Calculator
Solve linear, quadratic and absolute-value inequalities in one real variable. Combine conditions, inspect exact intervals and graph the solution on a number line.
