The Division Algorithm for Polynomials

Can you divide one polynomial by another and get a meaningful remainder? This is the same way you divide integers. This simple question is familiar from high-school algebra. But it hides a subtle structural fact. The answer depends delicately on what kind of coefficients you allow. Over a field like Q\mathbb{Q} or R\mathbb{R}, division with remainder always works. Over a general ring like Z\mathbb{Z}, it can fail outright. You cannot divide x2x^2 by 2x2x inside Z[x]\mathbb{Z}[x]. There is no way to get an integer-coefficient quotient and a remainder of smaller degree. The Division Algorithm for Polynomials pins down exactly the hypotheses needed. These hypotheses make long division rigorous. It is the single load-bearing result underneath almost everything else in polynomial algebra. The importance of this theorem is hard to overstate. It is the engine behind the fact that a field's polynomial ring is a Euclidean Domain. This in turn forces unique factorization. It also forces the Euclidean algorithm for GCDs. And it forces the structure theory of ideals in F[x]F[x]. It is also the tool that proves the Factor Theorem. A root of a polynomial corresponds to a linear factor. This happens precisely because dividing by (x−a)(x-a) always leaves a remainder that is a constant. Every later theorem about Roots and Factorization rests on this division procedure. This includes bounding the number of roots, constructing splitting fields, and building finite fields. All of it ultimately depends on the division procedure being well-defined. The big picture is this: polynomial rings over fields behave like a "polynomial version" of the integers. The division algorithm is the precise dictionary entry that makes this analogy work. Z\mathbb{Z} has division with remainder because we can compare sizes of integers. Similarly, F[x]F[x] has division with remainder because we can compare degrees of polynomials. The leading coefficient of the divisor can always be inverted when FF is a field. This single invertibility requirement is the crux of the whole theory. Understanding exactly where it is used is the key. It explains why weaker rings behave differently. This article gives the precise statement of the division algorithm over a field. It includes a complete, self-contained proof. It also gives the natural generalization to arbitrary commutative rings. This generalization applies when the divisor is monic, or merely has invertible leading coefficient. It includes two fully worked long-division computations with non-trivial numbers. It includes a concrete counterexample showing the field hypothesis cannot be dropped. Finally, it discusses how this result seeds the theory of Polynomial Rings as Euclidean Domains.

Key takeaways
  • Division with remainder for polynomials: given f,gf, g with g≠0g \neq 0, write f=qg+rf = qg + r with rr of smaller degree than gg (or r=0r=0).
  • Over a field, this works for any nonzero divisor gg, because you can always invert the leading coefficient of gg.
  • Over a general commutative ring, the algorithm still works whenever the divisor's leading coefficient is a unit — in particular whenever gg is monic.
  • Existence is proved by an explicit recursive/inductive construction (this is long division); uniqueness follows from a degree argument.
  • The Factor Theorem, root-counting bounds, and the Euclidean algorithm in F[x]F[x] all follow directly from this one theorem.
  • Key idea: division with remainder for polynomials needs only that the divisor's leading coefficient be invertible — nothing more, nothing less.

Where this lives today

Inside pure mathematics, the division algorithm is the seed of the entire theory of Euclidean Domains: it is precisely what makes F[x]F[x] a Euclidean domain with degree as the Euclidean function, which then guarantees unique factorization into irreducibles, a Euclidean algorithm for computing gcd⁡(f,g)\gcd(f,g), and the fact that every ideal of F[x]F[x] is principal. It is also the mechanism behind constructing finite fields: Fp[x]/(f(x))\mathbb{F}_p[x]/(f(x)) for irreducible ff makes sense as a field precisely because division with remainder lets every coset be represented by a unique polynomial of degree less than deg⁡(f)\deg(f). In computer algebra and coding theory, polynomial long division underlies encoding and decoding algorithms for cyclic error-correcting codes (BCH and Reed–Solomon codes), where messages are polynomials over finite fields and syndrome computation is literally computing a remainder. In cryptography, fast polynomial modular reduction (division with remainder modulo an irreducible polynomial) is the core arithmetic operation in elliptic curve cryptography over binary fields and in lattice-based schemes that use polynomial rings such as Z[x]/(xn+1)\mathbb{Z}[x]/(x^n+1). In numerical analysis and control theory, Horner's method for evaluating polynomials and synthetic division for computing transfer function residues are direct computational avatars of the division algorithm proved here. In symbolic computation software (Gröbner basis algorithms, computer algebra systems), multivariate generalizations of this exact division-with-remainder idea are the backbone of polynomial ideal membership testing.

:::quiz[Dividing f(x)=x3−2f(x) = x^3 - 2 by g(x)=x−1g(x) = x - 1 in Q[x]\mathbb{Q}[x], what is the remainder?]

  • 00
  • −1-1 ✓
  • 11
  • x−2x - 2

:::quiz[Which statement about x2x^2 divided by 2x2x in Z[x]\mathbb{Z}[x] is correct?]

  • It has quotient 12x\tfrac12 x and remainder 00, both in Z[x]\mathbb{Z}[x]
  • No quotient/remainder pair with integer coefficients and remainder of degree <1<1 exists ✓
  • The remainder must be xx
  • Division is impossible because 2x2x is the zero polynomial

:::quiz[Which hypothesis on g(x)∈R[x]g(x) \in R[x] guarantees division with remainder for every f(x)∈R[x]f(x) \in R[x], even when RR is only a commutative ring, not a field?]

  • gg has even degree
  • gg is monic (leading coefficient equal to 11) ✓
  • gg has integer coefficients
  • g(0)=0g(0) = 0

:::faq[How does this theorem relate to F[x]F[x] being a Euclidean Domain?] A Euclidean domain is, by definition, an integral domain equipped with a "size" function (a Euclidean function) such that division with remainder producing a strictly smaller remainder always exists. The Division Algorithm over a field shows exactly that F[x]F[x], with the degree function as its Euclidean function, satisfies this defining property. This is not a coincidence or an analogy — it is the literal verification of the Euclidean domain axioms for F[x]F[x], and everything else about Euclidean domains (GCD algorithm, Bézout's identity, PID structure) applies to F[x]F[x] as an immediate consequence.

Ask the tutor: How does the division algorithm for F[x]F[x] let us prove that a nonzero polynomial of degree nn over a field has at most nn roots?

DefinitionDivision with Remainder in a Polynomial Ring

Let RR be a commutative ring with identity, and let R[x]R[x] be the polynomial ring in one variable over RR. For a nonzero polynomial

g(x)=bmxm+bm−1xm−1+⋯+b1x+b0,bm≠0,g(x) = b_m x^m + b_{m-1}x^{m-1} + \cdots + b_1 x + b_0, \qquad b_m \neq 0,

call m=deg⁡(g)m = \deg(g) the degree and bmb_m the leading coefficient of gg. By convention deg⁡(0)=−∞\deg(0) = -\infty. Given f,g∈R[x]f, g \in R[x] with g≠0g \neq 0, a division with remainder of ff by gg is a pair of polynomials q,r∈R[x]q, r \in R[x] satisfying

f=q g+r,and either r=0 or deg⁡(r)<deg⁡(g).f = q\,g + r, \qquad \text{and either } r = 0 \text{ or } \deg(r) < \deg(g).

The polynomial qq is called the quotient and rr the remainder.

Intuition

Long division of polynomials is exactly like long division of integers, with "degree" playing the role of "size." To divide ff by gg, you repeatedly cancel the top-degree term of the current remainder using a multiple of gg: subtract off c⋅xk⋅g(x)c \cdot x^k \cdot g(x) chosen so that the degree of what remains strictly decreases. Each such step requires solving

c⋅bm=(leading coefficient of the term you want to kill),c \cdot b_m = (\text{leading coefficient of the term you want to kill}),

which requires dividing by bmb_m, the leading coefficient of gg. If bmb_m is invertible in RR — automatic when RR is a field and g≠0g \neq 0 — you can always take this step, and the process terminates because the degree strictly decreases each time, hitting a floor at deg⁡(g)−1\deg(g) - 1 or lower. This is why the theorem naturally splits into two regimes. Over a field, every nonzero element is invertible, so every nonzero gg admits division with remainder by any ff. Over a general ring, the same recursive cancellation still works as long as bmb_m is a unit in RR; the most important case is bm=1b_m = 1, i.e. gg monic, since 11 is invertible in every ring. This is precisely the hypothesis used later for evaluating polynomials at ring elements and proving the Factor Theorem over rings that are not fields, such as Z[x]\mathbb{Z}[x].

:::svg[Long division of f(x)=x3−2f(x)=x^3-2 by g(x)=x−1g(x)=x-1 in Q[x]\mathbb{Q}[x], tracking degree] Degree ladder during division deg 3 2 1 0 r₀ = x³ − 2 (deg 3) r₁ = x² + x − 2 (deg 2) r₂ = 2x − 2 (deg 1) r₃ = 0 (stop, deg < deg g = 1)

TheoremDivision Algorithm for Polynomials over a Field

Let FF be a field, and let f(x),g(x)∈F[x]f(x), g(x) \in F[x] with g(x)≠0g(x) \neq 0. Then there exist unique polynomials q(x),r(x)∈F[x]q(x), r(x) \in F[x] such that

f(x)=q(x) g(x)+r(x),f(x) = q(x)\,g(x) + r(x),

and either r(x)=0r(x) = 0 or deg⁡(r)<deg⁡(g)\deg(r) < \deg(g).

LemmaDivision Algorithm over a Ring with Monic Divisor

Let RR be a commutative ring with identity, and let g(x)∈R[x]g(x) \in R[x] be a monic polynomial of degree m≥0m \geq 0 (leading coefficient 11). Then for every f(x)∈R[x]f(x) \in R[x] there exist unique q(x),r(x)∈R[x]q(x), r(x) \in R[x] with

f(x)=q(x) g(x)+r(x),f(x) = q(x)\,g(x) + r(x),

and either r(x)=0r(x) = 0 or deg⁡(r)<m\deg(r) < m. More generally, the same conclusion holds if gg has leading coefficient a unit of RR.

Proof

We prove the field version in full; the ring version with monic (or unit-leading-coefficient) divisor is identical verbatim, since the only place the proof uses invertibility of a coefficient is the leading coefficient of gg, and we indicate this explicitly. The technique is strong induction on deg⁡(f)\deg(f), which precisely mirrors the long division algorithm.

Existence. Write g(x)=bmxm+⋯+b0g(x) = b_m x^m + \cdots + b_0 with bm≠0b_m \neq 0 (in the field case) or bmb_m a unit (in the ring case); let m=deg⁡(g)m = \deg(g). Base case. If f=0f = 0, take q=0,r=0q = 0, r = 0; then f=qg+rf = qg + r holds and r=0r = 0 satisfies the remainder condition. If f≠0f \neq 0 and deg⁡(f)<m\deg(f) < m, take q=0q = 0 and r=fr = f; again f=qg+rf = qg + r and deg⁡(r)=deg⁡(f)<m\deg(r) = \deg(f) < m. Inductive step. Suppose f≠0f \neq 0 with deg⁡(f)=n≥m\deg(f) = n \geq m, and suppose (strong induction hypothesis) that division with remainder by gg has already been established for every polynomial of degree strictly less than nn (this includes the zero polynomial, covered by the base case). Write

f(x)=anxn+an−1xn−1+⋯+a0,an≠0.f(x) = a_n x^n + a_{n-1}x^{n-1} + \cdots + a_0, \qquad a_n \neq 0.

Since n≥mn \geq m, form the polynomial

f1(x):=f(x)−anbm−1xn−mg(x).f_1(x) := f(x) - a_n b_m^{-1} x^{n-m} g(x).

Here bm−1b_m^{-1} denotes the inverse of bmb_m in FF (field case) or in RR (ring case, where bmb_m is assumed a unit); this is the only step in the entire argument that requires invertibility of bmb_m. The polynomial anbm−1xn−mg(x)a_n b_m^{-1} x^{n-m} g(x) has degree exactly nn (as a product of xn−mx^{n-m}, a nonzero scalar anbm−1a_n b_m^{-1}, and gg which has degree mm and leading coefficient bmb_m; the leading term of this product is anbm−1bmxn=anxna_n b_m^{-1} b_m x^{n} = a_n x^n), and its leading coefficient is exactly ana_n, matching the leading coefficient of ff. Hence in the difference f1=f−anbm−1xn−mgf_1 = f - a_n b_m^{-1}x^{n-m}g, the degree-nn terms cancel exactly, so

deg⁡(f1)<norf1=0.\deg(f_1) < n \quad \text{or} \quad f_1 = 0.

By the strong induction hypothesis (applied to f1f_1, whose degree is strictly less than nn, or which is zero), there exist q1,r1∈R[x]q_1, r_1 \in R[x] (or F[x]F[x]) with

f1=q1g+r1,r1=0 or deg⁡(r1)<m.f_1 = q_1 g + r_1, \qquad r_1 = 0 \text{ or } \deg(r_1) < m.

Substituting back,

f=f1+anbm−1xn−mg=(q1+anbm−1xn−m)g+r1.f = f_1 + a_n b_m^{-1} x^{n-m} g = \left(q_1 + a_n b_m^{-1} x^{n-m}\right) g + r_1.

Setting q:=q1+anbm−1xn−mq := q_1 + a_n b_m^{-1}x^{n-m} and r:=r1r := r_1 gives f=qg+rf = qg + r with r=0r = 0 or deg⁡(r)<m\deg(r) < m, completing the induction. By strong induction on deg⁡(f)\deg(f) (with the convention that the base case handles deg⁡(f)=−∞\deg(f) = -\infty, i.e., f=0f=0, and all deg⁡(f)<m\deg(f) < m), existence holds for every f∈R[x]f \in R[x] (respectively F[x]F[x]).

Uniqueness. Suppose

f=q1g+r1=q2g+r2,f = q_1 g + r_1 = q_2 g + r_2,

with each ri=0r_i = 0 or deg⁡(ri)<m\deg(r_i) < m. Subtracting,

(q1−q2) g=r2−r1.(q_1 - q_2)\,g = r_2 - r_1.

Suppose toward contradiction that q1≠q2q_1 \neq q_2, so q1−q2≠0q_1 - q_2 \neq 0. In the field case, FF is an integral domain (indeed a field), so F[x]F[x] is an integral domain and degrees add under multiplication: for nonzero p,h∈F[x]p, h \in F[x], deg⁡(ph)=deg⁡(p)+deg⁡(h)\deg(ph) = \deg(p) + \deg(h). This is because the leading coefficient of a product of nonzero polynomials over a domain is the product of the leading coefficients, which is nonzero (no zero divisors), so no cancellation of the top degree term occurs. Hence

deg⁡((q1−q2)g)=deg⁡(q1−q2)+deg⁡(g)≥0+m=m.\deg\big((q_1-q_2)g\big) = \deg(q_1 - q_2) + \deg(g) \geq 0 + m = m.

But deg⁡(r2−r1)<m\deg(r_2 - r_1) < m or r2−r1=0r_2 - r_1 = 0 (since each rir_i is 00 or has degree less than mm, and the degree of a difference of two such polynomials, if nonzero, is at most the max of their degrees, hence still <m< m). This contradicts (q1−q2)g=r2−r1(q_1-q_2)g = r_2 - r_1 having degree ≥m\geq m unless (q1−q2)g=0(q_1-q_2)g = 0, which (since F[x]F[x] has no zero divisors and g≠0g \neq 0) forces q1−q2=0q_1 - q_2 = 0, contradicting our assumption. Hence q1=q2q_1 = q_2, and then r1=f−q1g=f−q2g=r2r_1 = f - q_1 g = f - q_2 g = r_2. In the ring case with gg monic (or leading coefficient a unit), the same degree-additivity argument applies: if q1−q2≠0q_1 - q_2 \neq 0 has leading coefficient c≠0c \neq 0, then the leading term of (q1−q2)g(q_1-q_2)g is c⋅bm⋅xdeg⁡(q1−q2)+mc \cdot b_m \cdot x^{\deg(q_1-q_2)+m}, and c⋅bm≠0c \cdot b_m \neq 0 because bmb_m is a unit (multiplying by a unit is injective — if cbm=0cb_m = 0 then c=cbmbm−1=0⋅bm−1=0c = c b_m b_m^{-1} = 0 \cdot b_m^{-1}=0, contradiction). So again deg⁡((q1−q2)g)≥m\deg((q_1-q_2)g) \geq m, forcing the same contradiction, and uniqueness follows identically. This completes the proof of both existence and uniqueness in both stated versions. ■\blacksquare

∎
CorollaryFactor Theorem

Let FF be a field, f(x)∈F[x]f(x) \in F[x], and a∈Fa \in F. Then f(a)=0f(a) = 0 if and only if (x−a)(x - a) divides f(x)f(x) in F[x]F[x].

Proof

Apply the theorem with g(x)=x−ag(x) = x - a, which is monic of degree 11 (so certainly has invertible leading coefficient 11). We obtain unique q,r∈F[x]q, r \in F[x] with f(x)=q(x)(x−a)+r(x)f(x) = q(x)(x-a) + r(x), and r=0r = 0 or deg⁡(r)<1\deg(r) < 1, i.e., rr is a constant c∈Fc \in F. Evaluating at x=ax = a (using that evaluation at a ring element is a ring homomorphism F[x]→FF[x] \to F, a basic property of Polynomial Rings):

f(a)=q(a)(a−a)+c=c.f(a) = q(a)(a-a) + c = c.

So c=f(a)c = f(a). Hence f(x)=q(x)(x−a)+f(a)f(x) = q(x)(x-a) + f(a). If f(a)=0f(a) = 0, this reads f(x)=q(x)(x−a)f(x) = q(x)(x-a), so (x−a)∣f(x)(x-a) \mid f(x). Conversely if (x−a)∣f(x)(x-a) \mid f(x), write f(x)=h(x)(x−a)f(x) = h(x)(x-a) for some hh; evaluating at aa gives f(a)=h(a)⋅0=0f(a) = h(a)\cdot 0 = 0. ■\blacksquare

∎

Worked examples

Example 1 (field case, asymmetric numbers). Divide f(x)=2x4−3x3+x−5f(x) = 2x^4 - 3x^3 + x - 5 by g(x)=x2−2x+1g(x) = x^2 - 2x + 1 in Q[x]\mathbb{Q}[x]. Here deg⁡(f)=4\deg(f) = 4, deg⁡(g)=2\deg(g) = 2, leading coefficient of gg is b2=1b_2 = 1 (already invertible; no denominators needed from gg itself, only from bookkeeping). Step 1. Kill the degree-4 term: leading term of ff is 2x42x^4, leading term of gg is x2x^2, so multiply gg by 2x22x^2:

2x2⋅g(x)=2x4−4x3+2x2.2x^2 \cdot g(x) = 2x^4 - 4x^3 + 2x^2.

Subtract:

f1=f−2x2g=(2x4−3x3+0x2+x−5)−(2x4−4x3+2x2)=x3−2x2+x−5.f_1 = f - 2x^2 g = (2x^4 - 3x^3 + 0x^2 + x - 5) - (2x^4 - 4x^3 + 2x^2) = x^3 - 2x^2 + x - 5.

Step 2. Kill the degree-3 term of f1f_1: leading term x3x^3, multiply gg by xx:

x⋅g(x)=x3−2x2+x.x \cdot g(x) = x^3 - 2x^2 + x.

Subtract:

f2=f1−xg=(x3−2x2+x−5)−(x3−2x2+x)=−5.f_2 = f_1 - x g = (x^3 - 2x^2 + x - 5) - (x^3 - 2x^2 + x) = -5.

Now deg⁡(f2)=0<2=deg⁡(g)\deg(f_2) = 0 < 2 = \deg(g) (or rather f2f_2 is a nonzero constant, degree 00), so we stop. Collecting quotient terms:

q(x)=2x2+x,r(x)=−5.q(x) = 2x^2 + x, \qquad r(x) = -5.

Check: compute q(x)g(x)+r(x)q(x) g(x) + r(x):

(2x2+x)(x2−2x+1)=2x4−4x3+2x2+x3−2x2+x=2x4−3x3+x,(2x^2+x)(x^2-2x+1) = 2x^4 -4x^3+2x^2 + x^3-2x^2+x = 2x^4 -3x^3 + x,

and adding r=−5r = -5 gives 2x4−3x3+x−5=f(x)2x^4 - 3x^3 + x - 5 = f(x). Confirmed. Also deg⁡(r)=−∞\deg(r) = -\infty (r is a nonzero constant, degree 00) which is indeed <deg⁡(g)=2< \deg(g) = 2.

Example 2 (monic divisor over Z\mathbb{Z}, illustrating the ring lemma with genuinely non-symmetric coefficients). Let R=ZR = \mathbb{Z}, and divide

f(x)=5x4−3x2+7x−11f(x) = 5x^4 - 3x^2 + 7x - 11

by the monic polynomial

g(x)=x2+3x−2∈Z[x].g(x) = x^2 + 3x - 2 \in \mathbb{Z}[x].

Even though Z\mathbb{Z} is not a field, gg is monic (leading coefficient 11, a unit in Z\mathbb{Z}), so the Lemma guarantees a division with integer-coefficient quotient and remainder. Step 1. Leading term of ff is 5x45x^4; leading term of gg is x2x^2. Multiply gg by 5x25x^2:

5x2g(x)=5x4+15x3−10x2.5x^2 g(x) = 5x^4 + 15x^3 - 10x^2.

Subtract:

f1=f−5x2g=(5x4+0x3−3x2+7x−11)−(5x4+15x3−10x2)=−15x3+7x2+7x−11.f_1 = f - 5x^2 g = (5x^4 + 0x^3 -3x^2+7x-11) - (5x^4+15x^3-10x^2) = -15x^3 + 7x^2 + 7x - 11.

Step 2. Leading term −15x3-15x^3; multiply gg by −15x-15x:

−15x g(x)=−15x3−45x2+30x.-15x\, g(x) = -15x^3 - 45x^2 + 30x.

Subtract:

f2=f1−(−15x)g=(−15x3+7x2+7x−11)−(−15x3−45x2+30x)=52x2−23x−11.f_2 = f_1 - (-15x)g = (-15x^3+7x^2+7x-11) - (-15x^3-45x^2+30x) = 52x^2 - 23x - 11.

Step 3. Leading term 52x252x^2; multiply gg by 5252:

52 g(x)=52x2+156x−104.52\, g(x) = 52x^2 + 156x - 104.

Subtract:

f3=f2−52g=(52x2−23x−11)−(52x2+156x−104)=−179x+93.f_3 = f_2 - 52 g = (52x^2 - 23x - 11) - (52x^2+156x-104) = -179x + 93.

Now deg⁡(f3)=1<2=deg⁡(g)\deg(f_3) = 1 < 2 = \deg(g), so we stop. Collecting:

q(x)=5x2−15x+52,r(x)=−179x+93,q(x) = 5x^2 - 15x + 52, \qquad r(x) = -179x + 93,

both with integer coefficients, exactly as the Lemma promises since gg is monic. Check: Expand q(x)g(x)q(x)g(x):

(5x2−15x+52)(x2+3x−2).(5x^2-15x+52)(x^2+3x-2).

Term by term: 5x2⋅(x2+3x−2)=5x4+15x3−10x25x^2\cdot(x^2+3x-2) = 5x^4+15x^3-10x^2; −15x⋅(x2+3x−2)=−15x3−45x2+30x-15x\cdot(x^2+3x-2) = -15x^3-45x^2+30x; 52⋅(x2+3x−2)=52x2+156x−10452\cdot(x^2+3x-2)=52x^2+156x-104. Sum:

5x4+(15−15)x3+(−10−45+52)x2+(30+156)x−104=5x4−3x2+186x−104.5x^4 + (15-15)x^3 + (-10-45+52)x^2 + (30+156)x - 104 = 5x^4 - 3x^2 + 186x - 104.

Add r(x)=−179x+93r(x) = -179x+93:

5x4−3x2+(186−179)x+(−104+93)=5x4−3x2+7x−11=f(x).✓5x^4 - 3x^2 + (186-179)x + (-104+93) = 5x^4 - 3x^2 + 7x - 11 = f(x). \checkmark

The identity holds exactly, and every coefficient of qq and rr is an integer, confirming that monic divisors permit division with remainder inside Z[x]\mathbb{Z}[x] even though Z\mathbb{Z} is not a field.

CounterexampleNon-monic divisor over a non-field ring: existence can fail

The hypothesis that the divisor's leading coefficient be a unit (automatic over a field, but a genuine restriction over a general ring) cannot be dropped. Work in R=ZR = \mathbb{Z}, and try to divide

f(x)=x2∈Z[x]byg(x)=2x∈Z[x].f(x) = x^2 \in \mathbb{Z}[x] \qquad \text{by} \qquad g(x) = 2x \in \mathbb{Z}[x].

Here deg⁡(g)=1\deg(g) = 1 and the leading coefficient of gg is 22, which is not a unit in Z\mathbb{Z}. Suppose, for contradiction, that there exist q(x),r(x)∈Z[x]q(x), r(x) \in \mathbb{Z}[x] with

x2=q(x)(2x)+r(x),r=0 or deg⁡(r)<1 (i.e. r is a constant integer).x^2 = q(x)(2x) + r(x), \qquad r = 0 \text{ or } \deg(r) < 1 \text{ (i.e. } r \text{ is a constant integer)}.

If q(x)=0q(x) = 0, then x2=r(x)x^2 = r(x) is a nonzero constant, impossible since x2x^2 is not constant. So q(x)≠0q(x) \neq 0; write q(x)=ckxk+⋯+c0q(x) = c_k x^k + \cdots + c_0 with ck≠0c_k \neq 0. Then q(x)⋅2xq(x)\cdot 2x has degree k+1k+1 and leading coefficient 2ck2c_k. Comparing with x2=q(x)(2x)+r(x)x^2 = q(x)(2x) + r(x): since rr has degree ≤0<2\leq 0 < 2, matching degree-22 terms forces k+1=2k+1 = 2, i.e. k=1k=1, and the leading coefficient of q(x)(2x)q(x)(2x) must equal 11 (the leading coefficient of x2x^2), i.e.

2c1=12 c_1 = 1

for some integer c1c_1. But 2c12c_1 is always even, so 2c1≠12c_1 \neq 1 for any c1∈Zc_1 \in \mathbb{Z} — there is no integer solution. This is a contradiction. Hence no such q,r∈Z[x]q, r \in \mathbb{Z}[x] exist: division of x2x^2 by 2x2x with integer-coefficient quotient and remainder of degree <1< 1 is impossible. (Over Q\mathbb{Q}, of course, x2=12x⋅2x+0x^2 = \tfrac{1}{2}x \cdot 2x + 0 works instantly — the field hypothesis, or at least invertibility of the leading coefficient 22, is exactly what is missing in Z\mathbb{Z}.) This shows precisely that the theorem's hypothesis — invertibility of the divisor's leading coefficient — is not a technical convenience but a strict logical necessity for existence.

Scope, edge cases & common traps

SituationWhat holdsWhy
FF a field, any g≠0g \neq 0Existence and uniqueness of q,rq, rEvery nonzero element of FF is invertible
RR a commutative ring, gg monicExistence and uniqueness in R[x]R[x]Leading coefficient 11 is always a unit
RR a commutative ring, gg has unit leading coefficientExistence and uniqueness in R[x]R[x]Same proof, unit plays role of 11
RR a commutative ring, gg has non-unit leading coefficientCan fail (see counterexample)Cancellation step requires inverting the coefficient
g=0g = 0Division is undefinedDegree of 00 is −∞-\infty; no meaningful remainder condition
f=0f = 0q=r=0q = r = 0 works triviallyBase case of the induction

The mathematician behind it

The division algorithm for polynomials, as an explicit symbolic procedure, crystallized gradually through the algebraic tradition running from al-Khwarizmi's foundational work on equations through the European algebraists of the sixteenth and seventeenth centuries, and it was given its modern axiomatic, ring-theoretic form largely through the structuralist program associated with Emmy Noether and her school in the early twentieth century.

Origins · 1 minEmmy Noether and how this was discovered
EN
Emmy Noether
1882–1935 · Abstract Algebra, Göttingen

Noether transformed algebra from a subject about computing with specific numbers and polynomials into a subject about the structures — rings, ideals, modules — that make such computations valid in the first place. Her insistence on identifying the precise hypotheses under which classical procedures like polynomial division remain valid is the direct ancestor of the "monic divisor" and "unit leading coefficient" refinements presented in this article. Working at Göttingen amid tremendous institutional resistance to women in academia, she nonetheless became the central figure whose lectures and ideas, transcribed by students including van der Waerden, became the backbone of modern abstract algebra.

History
- c. 830 — al-Khwarizmi's algebraic treatises systematize manipulation of polynomial-like expressions, laying groundwork for symbolic division.
- 1637 — Descartes' La Géométrie uses polynomial division and the Factor Theorem implicitly to analyze roots of equations.
- 1801 — Gauss, in Disquisitiones Arithmeticae, treats polynomial congruences and division with remainder with full rigor for the first time.
- 1920s — Noether and her collaborators recast division with remainder as a structural property distinguishing Euclidean domains from general rings.
- 1930 — van der Waerden's Moderne Algebra fixes the now-standard textbook statement of the division algorithm for F[x]F[x].
Why does the theorem need g≠0g \neq 0?

The zero polynomial has no well-defined degree (by convention deg⁡(0)=−∞\deg(0) = -\infty) and no leading coefficient to invert, so the entire inductive construction in the proof has no anchor: you cannot "cancel the leading term" of ff using 0⋅(anything)0 \cdot (\text{anything}), since that never changes ff at all. Moreover the remainder condition "r=0r = 0 or deg⁡(r)<deg⁡(g)\deg(r) < \deg(g)" becomes vacuous or ill-posed if deg⁡(g)\deg(g) is not a genuine non-negative integer. Just as dividing an integer by 00 is undefined, dividing a polynomial by the zero polynomial is excluded from the statement, not covered by some degenerate special case.

Is uniqueness automatic, or could different long-division strategies give different answers?

Uniqueness is not automatic from the construction alone; it is a separate fact proved using degree-additivity of products in an integral domain (or, more generally, using that multiplying by a unit does not zero out a nonzero leading coefficient). If two different quotient-remainder pairs existed, their difference would produce a nonzero multiple of gg with degree less than deg⁡(g)\deg(g), which is impossible unless that multiple is literally the zero polynomial. So although the long-division algorithm is deterministic in practice (you always cancel the current top degree term), the proof of uniqueness needs its own short argument, given explicitly above.

Does this work for polynomials in several variables?

Not directly in the same form. The theorem as stated is for a single variable, where "degree" gives a total order compatible with the division process. In several variables, there is no single canonical notion of "degree" that makes an analogous naive division algorithm well-defined and unique; instead one fixes a monomial order and divides by a whole set of polynomials, leading to the theory of Gröbner bases, where the remainder depends on the chosen monomial order and the division is not by a single polynomial with a clean uniqueness statement. The single-variable division algorithm is the base case that Gröbner basis theory generalizes.

Why does the Factor Theorem need the divisor x−ax - a to be monic, and does this generalize?

The Factor Theorem's proof invokes the division algorithm with g(x)=x−ag(x) = x-a, whose leading coefficient is 11, a unit in any ring. This is exactly why the Factor Theorem holds not just over fields but over any commutative ring RR: since x−ax-a is always monic, the ring version of the theorem applies verbatim, giving f(x)=q(x)(x−a)+f(a)f(x) = q(x)(x-a) + f(a) for any commutative ring RR and any a∈Ra \in R. The Factor Theorem is thus a genuinely ring-theoretic fact, and the field hypothesis in many textbook statements is stronger than necessary for this particular corollary.

Can the remainder have the same degree as gg in some edge case?

No — this is precisely what the theorem forbids, and it is exactly what the uniqueness proof rules out using degree-additivity. If a "remainder" had degree equal to or greater than deg⁡(g)\deg(g), you could always subtract one more multiple of gg to reduce its degree further (this is exactly the inductive step of the existence proof), so the terminating condition r=0r = 0 or deg⁡(r)<deg⁡(g)\deg(r) < \deg(g) is not an arbitrary stopping convention but the necessary condition making q,rq,r unique and the process well-defined.

What breaks if RR is commutative but not an integral domain, even with gg monic?

Existence still holds for monic gg over any commutative ring, since the existence proof only ever inverts the leading coefficient 11. Uniqueness also still holds, because the uniqueness argument for monic (or unit-leading-coefficient) divisors only needs that multiplying a nonzero element by the unit leading coefficient stays nonzero — units are never zero divisors in a nonzero ring. So remarkably, both existence and uniqueness survive even in rings with zero divisors, such as Z/6Z\mathbb{Z}/6\mathbb{Z}, as long as the divisor itself is monic; only the non-monic, non-field case is genuinely fragile.

Before this

Where this leads