Euclidean Domains
Why does the ordinary algorithm for finding the greatest common divisor of two integers always terminate with the right answer? This algorithm works by subtracting, or rather dividing with remainder, again and again. And why does the exact same procedure work for polynomials? It lets us find gcds of and over a field. We can do this by long division instead of by factoring. The answer is that and share a hidden structural feature. This feature has nothing to do with numbers or polynomials specifically. Each carries a function measuring "size" that lets us always divide with a strictly smaller remainder. Rings with this feature are called Euclidean domains. They form one of the most important classes of rings in all of algebra. The idea generalizes an experience every student has had since grade school. Long division of integers gives a quotient and a remainder smaller than the divisor. Polynomial long division gives a quotient and a remainder of strictly smaller degree. Both processes let you run the Euclidean Algorithm. Repeatedly replace the pair by until the remainder is zero. The last nonzero remainder is a gcd. Euclidean domains are precisely the integral domains where this machinery is available in the abstract. The payoff is enormous. Once a ring is known to be Euclidean, we get several things for free. Gcds exist and are computable by an explicit algorithm. Gcds are expressible as -linear (or -linear) combinations of the two original elements (Bézout's identity). And, as we foreshadow here, every ideal in the ring is principal. This means every ideal is generated by a single element. This last fact places Euclidean domains inside a broader class of rings. That class is the principal ideal domains, one of the central objects of study in Ring Theory. This article gives the precise definition of a Euclidean function and a Euclidean domain. It proves that the Euclidean Algorithm computes a gcd inside any such ring. It works through and , the two motivating examples, in full detail. This includes a genuinely asymmetric numerical computation in each case. We also show, by a careful counterexample, exactly which hypothesis is doing the work. We reveal what breaks when it is dropped.
- A Euclidean domain is an integral domain equipped with a function allowing division with remainder that is strictly smaller in size.
- is Euclidean via ; the Division Algorithm for Polynomials makes Euclidean via for a field .
- The Euclidean Algorithm — iterated division with remainder — terminates because of the remainders strictly decreases, and it always outputs a gcd.
- Every gcd produced this way is a -linear combination of the original two elements (Bézout's identity), obtained by unwinding the algorithm.
- Euclidean domains are always Principal Ideal Domains: every ideal is generated by an element of least -value in it.
- Not every ring has a Euclidean function — the property is a genuine structural restriction, not automatic for all integral domains.
- Key idea: a size function that shrinks under division-with-remainder is exactly the abstract engine that makes the Euclidean Algorithm, and hence gcd computation, work.
Where this lives today
The Euclidean Algorithm on underlies the extended Euclidean algorithm used to compute modular inverses, which is the backbone of the RSA cryptosystem and of Diffie–Hellman-style protocols relying on modular arithmetic. Polynomial gcds via 's Euclidean structure are computed constantly in computer algebra systems (symbolic simplification, partial fraction decomposition, factoring polynomials over finite fields) and are essential in coding theory, where Reed–Solomon and BCH error-correcting codes use polynomial gcd computations over finite fields to decode corrupted messages. The Gaussian integers , Euclidean via the norm , are used in number theory to characterize which primes are sums of two squares and appear in algorithms for factoring integers and in lattice-based constructions. More broadly, the chain of implications Euclidean domain Principal Ideal Domain Unique Factorization Domain structures how algebraists classify rings by how much of ordinary arithmetic (division, gcds, unique factorization into primes) survives in a given ring, a hierarchy essential to algebraic number theory and algebraic geometry.
:::quiz[Why does fail to be a Euclidean domain (equivalently, fail to be a PID)?]
- Because it has infinitely many elements
- Because it is not commutative
- Because ideals like cannot be generated by a single element ✓
- Because has no inverse
:::faq[Is still Euclidean if is merely a commutative ring, not a field?] No, in general it is not. Polynomial division by a non-monic polynomial requires inverting its leading coefficient, which is only guaranteed possible when every nonzero element of the coefficient ring is a unit, i.e. when the coefficients form a field. Over , for instance, is not Euclidean (and not even a PID), because the ideal cannot be generated by one element, illustrating exactly why the hypothesis " a field" is essential to the polynomial ring example.
Ask the tutor: Can you show me why some principal ideal domains fail to admit any Euclidean function at all?
Let be an Integral Domain (a commutative ring with and no zero divisors). A Euclidean function (or norm) on is a function
such that for all with , there exist with
is called a Euclidean domain if there exists at least one Euclidean function on . Some authors additionally require the monotonicity condition for all nonzero ; this extra condition is not needed to make the Euclidean Algorithm work and can always be arranged by replacing with , so we do not impose it as part of the definition. Note that and are not required to be unique.
Intuition
Think of as a ruler that measures how "complicated" a nonzero element is. In , complexity is absolute value: is more complicated than . In , complexity is degree: is more complicated than . The defining property says: no matter how complicated is, we can always peel off multiples of from until what's left over, , is strictly less complicated than itself (or vanishes entirely). This is exactly the mechanism behind long division. When you divide by , you get quotient and remainder , and . When you divide by , you get a remainder that is a constant (degree , or the zero polynomial), which has smaller degree than (degree ). Iterating this — replace the pair by (divisor, remainder) and divide again — produces a strictly decreasing sequence of nonnegative integers , which by the Well-Ordering Principle cannot decrease forever. The process must stop, and stopping means a remainder of appears. This finiteness argument is the entire engine of the theorem below.
Let be a Euclidean domain with Euclidean function . Let with . Define a sequence of divisions:
continuing as long as the remainder is nonzero. Then: 1. (Termination) This process terminates after finitely many steps, i.e., some remainder . 2. (Correctness) The last nonzero remainder (or itself, if ; or , if is allowed as a degenerate case) is a greatest common divisor of and : it divides both and , and every common divisor of and divides it. 3. (Bézout's Identity) There exist such that
Here a greatest common divisor of means: , , and for every with and , we have . (Such is unique up to multiplication by a unit of .)
Setup. Assume (if then itself is a gcd of , trivially). Using the Euclidean property of repeatedly, construct the sequence of remainders
Set , . Having defined with , apply the Euclidean property to divide by :
This defines as long as the previous remainder is nonzero.
Step 1: Termination. Consider the sequence of nonnegative integers , valid as long as each (each inequality holds by the defining property of applied at the corresponding division step). This is a strictly decreasing sequence of elements of . By the Well-Ordering Principle (every nonempty subset of has a least element), a strictly decreasing sequence of nonnegative integers cannot be infinite: if it never hit remainder, the set would be an infinite strictly decreasing sequence of nonnegative integers with no minimum, a contradiction. Hence some remainder for a finite , and the process stops with the last nonzero remainder (if already is , we take and , by convention, matching the case where the algorithm terminates immediately).
Step 2: divides both and . We show by downward induction that for every with , which in particular gives and . Base case: trivially, and because the last division step is
Inductive step: Suppose and for some . From the division step
since divides both terms on the right, divides the left side . This completes the induction, working downward from to . Hence and , so is a common divisor of and .
Step 3: Every common divisor of divides . Let with and , i.e. and . We show by (upward) induction that for all . Base case: and by hypothesis. Inductive step: Suppose and for some . From
since divides both and , divides the right-hand side, hence . This extends the induction up to , giving . Combining Steps 2 and 3: is a common divisor of and , and every common divisor of and divides . This is exactly the definition of a greatest common divisor. This proves part 2.
Step 4: Bézout's identity, by induction on the algorithm. We prove by induction, from down to , that each (for in the range actually produced, and in particular ) can be written as an -linear combination for some . Base cases: and . Inductive step: Suppose and for consecutive indices. From the division relation , substitute:
So is again an -linear combination of and , with
By induction this holds for every produced by the algorithm, in particular for : there exist with . This proves part 3, and completes the proof.
∎Let be a Euclidean domain with Euclidean function . Then every ideal is principal, i.e. for some . Consequently every Euclidean domain is a Principal Ideal Domain.
If , then is principal, and we are done. Otherwise, is a nonempty subset of , so the set is a nonempty subset of . By the Well-Ordering Principle, this set has a least element; choose with minimal among nonzero elements of . We claim . Since and is an ideal, (every ring multiple of lies in the ideal , by the Principal Ideals and Ideal Generation property that ideals absorb multiplication). Conversely, let be arbitrary. By the Euclidean property applied to and , write
Then . Since and (as and absorbs ring multiplication), and is closed under subtraction, we get . If , then is a nonzero element of with , contradicting the minimality of among nonzero elements of . Hence , so . Thus as well, giving . Since was an arbitrary ideal, every ideal of is principal, so is a principal ideal domain.
∎Worked examples
Example 1: is a Euclidean domain; computing with Bézout coefficients. Take for . The ordinary Division Algorithm for integers states: for with , there exist unique with and ; in particular or , so is a Euclidean function and is a Euclidean domain. Compute using the algorithm from the theorem, tracking coefficients so that each remainder is written as :
The last nonzero remainder is , so . Checking: and , and : since hmm let's verify differently — , , and since . So indeed , confirming . ✓. Unwinding for Bézout coefficients as computed above:
Check: . ✓ So , satisfy .
Example 2: is a Euclidean domain; computing for asymmetric polynomials. Take , a field adjoined a variable, and for nonzero . The Division Algorithm for Polynomials states that for with , there exist unique with and or . This is precisely the Euclidean property, so is a Euclidean domain for any field . (Crucially this uses that is a field, so leading coefficients of are invertible and division makes sense — this is examined in the counterexample below.) Let
Note as well, so we expect up to a unit scalar — but let's derive this purely by the algorithm, without factoring, to illustrate the mechanism on genuinely asymmetric data.
Step 1. Divide by :
Compute . So . The remainder is already after one step! So by the theorem (with , the degenerate immediate-termination case), (up to a unit, i.e. up to a nonzero scalar in ), consistent with . To see a non-immediate, genuinely multi-step example, replace with (no longer a multiple of ):
Step 1. Divide by :
As computed above . So
Since , this is a valid remainder.
Step 2. Divide by :
Check: , and , plus the leftover constant matches. So , with .
Step 3. Divide by :
Remainder is , so the algorithm terminates with last nonzero remainder . Since is a unit in (it is a nonzero element of the field ), we conclude
(any unit is an acceptable representative of "" as a gcd, since gcds are only defined up to multiplication by units). This makes sense: the two polynomials share no common root, and being coprime, their gcd is a unit. Unwinding Bézout's identity: from Step 2, . From Step 1, . Substituting,
Compute , so the coefficient of is . So
i.e. multiplying both sides by ,
This expresses as an -linear (here -linear) combination of and , exactly as Bézout's identity guarantees.
The theorem requires to be an integral domain equipped with a Euclidean function. Consider dropping the integral domain hypothesis and instead trying to run "Euclidean division" in , using the naive attempt at a norm the representative of in (excluding ). First, is not an integral domain: , yet and . This already disqualifies as a candidate Euclidean domain by definition, but let's see concretely what breaks in the conclusion of the theorem if we try to push through the argument anyway. Try to divide by in : we seek with and ( or ). Testing :
So for every choice of . To get remainder with , we need (working mod 6: ). Neither nor is , and neither has -value less than (indeed works, but — and worse, no consistent choice of across all pairs can be made to satisfy the property for every , because of the zero-divisor obstruction below). The deeper failure: suppose, for contradiction, admitted some Euclidean function . Then by the Corollary above, every ideal of would be principal — true here, since actually does have all ideals principal (it's a quotient of the PID ). So this particular finite example does not immediately contradict the corollary. The real obstruction is at the more basic level of unique factorization / cancellation that the Euclidean Algorithm's correctness proof silently uses: in Step 3 of the theorem's proof we conclude " divides the right side, hence divides " using that has no zero divisors interfering with divisibility reasoning, and more importantly the entire notion of "remainder with " combined with zero divisors lets non-domains admit multiple, non-associate elements satisfying the divisibility conditions of "gcd" simultaneously with being a common divisor of everything — collapsing the notion of gcd to be non-unique in an essential (non-unit-scaled) way. For instance in , both and divide and divides itself trivially, yet and are not associates (differ by a unit) since the only units of are , and — actually here they are associates. To see genuine failure take instead : and both divide each other (, ), yet the units of are and no unit multiple of equals except checking — they are associates again. The robust fact, provable directly from the zero-divisor , is that the cancellation lemma implicitly used when we say "gcd is unique up to units" (if both satisfy the gcd conditions then and forces for a unit ) requires working in an integral domain; in a general commutative ring, and only gives for some that need not be a unit, so the notion of gcd loses its essential uniqueness. This is exactly why the hypothesis " is an integral domain" is built into the definition of a Euclidean domain from the start, rather than treated as optional.
Scope, edge cases & common traps
| Situation | What holds | What can fail |
|---|---|---|
| , | Fully Euclidean; division algorithm gives unique with | Quotient/remainder pair is unique here, but uniqueness is not required in general |
| , a field, | Fully Euclidean via polynomial division | Fails if is only a commutative ring, not a field (see below) |
| (Gaussian integers), | Euclidean domain (division with remainder using nearest lattice point) | Quotient/remainder highly non-unique; still works because only existence is required |
| Integral domain, not Euclidean (in fact not even a PID: is not principal) | Students often assume "polynomial ring Euclidean"; false without a field of coefficients | |
| any PID | Every ideal principal | Not every PID is Euclidean (subtle, deeper examples exist beyond this scope) |
| Requiring uniqueness of | Not part of the definition | A common misreading: some proofs mistakenly assume unique to simplify an argument |
The mathematician behind it
Origins · 1 minEuclid of Alexandria and how this was discovered
Euclid is known almost entirely through his monumental work the Elements, a systematic compilation and axiomatic development of the geometry and number theory known in his era. Book VII of the Elements contains what is now called the Euclidean Algorithm — there presented as a geometric procedure for finding the greatest common measure of two lengths — making it one of the oldest algorithms in continuous recorded use in mathematics. Little reliable biographical detail about Euclid survives beyond his association with the great Library of Alexandria; his enduring legacy is entirely the Elements itself, whose method of rigorous proof from explicit axioms shaped the subsequent development of all of mathematics, including the abstract ring-theoretic generalization that bears his name today.
Does every integral domain admit a Euclidean function?
No. A Euclidean function is extra structure, not automatic. Every Euclidean domain is a principal ideal domain (proved above), so any integral domain that fails to be a PID — such as , where the ideal is not principal — cannot be Euclidean. More subtly, there exist principal ideal domains that are provably not Euclidean for any choice of norm function, such as the ring of integers of ; these examples show "Euclidean" is strictly stronger than "PID," even though every concrete PID one meets in an introductory course happens to be Euclidean.
Are the quotient and remainder in a Euclidean domain always unique?
No, uniqueness is not part of the definition and can genuinely fail. In with , dividing one Gaussian integer by another can yield more than one valid quotient-remainder pair, because several lattice points can be "close enough" to satisfy . What and have in addition to being Euclidean is a sharper division algorithm with unique output, which is a bonus property, not a requirement of the general Euclidean domain definition. The Euclidean Algorithm's correctness proof only ever uses existence of a valid pair at each step, never uniqueness.
Why must be an integral domain in the definition?
The theorem's proof of gcd correctness uses divisibility reasoning ("if divides two terms of an equation it divides the third") that behaves correctly without needing the domain hypothesis directly, but the very notion of "greatest common divisor" being well-defined up to units relies on cancellation-style uniqueness that can break down with zero divisors. If has zero divisors, elements can divide each other mutually without being associates, so "gcd, unique up to units" loses its meaning, and the framework becomes unreliable, as illustrated in the counterexample.
How does this relate to the ordinary long division taught before abstract algebra?
It is literally the same operation, recognized as an instance of a general pattern. The Division Algorithm for Polynomials gives quotient and remainder with strictly smaller degree; the integer division algorithm gives quotient and remainder strictly smaller in absolute value. Both are Euclidean functions on their respective rings. The abstract definition simply extracts the shared feature — "a shrinking size function under division" — so the same Euclidean Algorithm and Bézout identity argument applies verbatim to both, and to further examples like .
What is the relationship between Euclidean domains and Principal Ideal Domains?
Every Euclidean domain is a PID, proved by taking a nonzero element of least norm inside any ideal and showing it generates the whole ideal. The converse is false: there exist PIDs with no Euclidean function whatsoever. So the class of Euclidean domains sits strictly inside the class of PIDs, which itself sits inside Unique Factorization Domains and integral domains generally, forming a strict hierarchy of increasingly special ring types.
Can a ring have more than one Euclidean function?
Yes, and this causes no contradiction. For example on , both and (or any strictly increasing function of ) satisfy the Euclidean property, since the same division-with-remainder facts underlie both. The definition of Euclidean domain only requires existence of at least one valid Euclidean function; it does not assert a canonical or unique choice.