Tool for performing long polynomial division, calculating the quotient and remainder, checking factors, performing step-by-step polynomial divisions.
Polynomial Long Division - dCode
Tag(s) : Functions
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
Polynomial division is an algebraic operation that divides a polynomial $ A(x) $ (called the dividend) by another non-zero polynomial $ B(x) $ (called the divisor), in order to obtain a quotient $ Q(x) $ and a remainder $ R(x) $ such that $$ A(x) = B(x) \times Q(x) + R(x) $$
This operation generalizes Euclidean division of integers to polynomials.
The long division procedure involves three steps:
— a) Divide the highest-degree term of the dividend by the highest-degree term of the divisor; the resulting partial quotient becomes the first term of Q(x).
— b) Multiply the entire divisor by this partial quotient
— c) Subtract this product from the dividend, which gives a partial remainder
Repeat steps a,b,c until the degree of the remainder is less than that of the divisor (or until the remainder is zero)
Example: Divide $ x^3+2x+1 $ by $ x^2+1 $
a) $ x^3 / x^2 = \boxed{x} $
b) $ (x^2+1) \times x = x^3 + x $
c) $ (x^3+2x+1) - (x^3+x) = \boxed{x+1} $
The quotient is $ Q(x) = x $ and the remainder is $ R(x) = x+1 $
If $ B(x) $ divides $ A(x) $ without remainder, then $ B(x) $ is a factor of $ A(x) $
dCode retains ownership of the "Polynomial Long Division" source code. Any algorithm for the "Polynomial Long Division" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Polynomial Long Division" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Polynomial Long Division" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Polynomial Long Division" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Polynomial Long Division on dCode.fr [online website], retrieved on 2025-12-04,