Rings and Fields

Previous page
(Subrings and ideals)
Contents Next page
(Ring homomorphisms and isomorphisms)

Division and Euclidean algorithms

We now investigate some rather special rings. We start with a very familiar result.

The division algorithm for s1

If a, b belongs s1 with b noteq 0 then thereexists q, r belongs s1 such that a = bq + r with |r| <|b|.

The element q is called the quotient and r is the remainder.

Proof
Assume a > b > 0. Subtract multiples of b from a until just before things go negative. The quotient q is the number of times you subtract and r = a - bq.

Remarks

  1. The remainder is smaller than the divisor. In s1 we measure "size" by absolute value.

  2. Note that in fact there is a choice of remainders: you can either take it to be positive or negative.

Definition

The greatest common divisor (or highest common factor) of two integers a, b belongs s1 is the largest integer which divides them both.

Remarks

  1. We measure the "largeness" using the absolute value.

  2. The gcd is only unique up to multiplication by plusminus1. These are the invertible elements or units of s1.

We can use the division algorithm to prove

The Euclidean algorithm

If d is the gcd of a, b there are integers x, y such that d = ax + by.

Proof
Here is an example: Take a = 76, b = 32 :


In general, use the procedure: divide (say) a by b to get remainder r1. Note that one can write r1 in terms of a and b.
Then divide b by r1 to get remainder r2. Note that one can write r2 in terms of b and r1 and hence in terms of a and b.
Repeat the process getting smaller and smaller remainders r1 , r2 , ... which must eventually lead to a remainder of 0.
At each stage ri can be expressed in terms of a and b. the last non-zero remainder d divides all the previous ones and hence both a and b. Hence it divides gcd(a, b). Since d can be written in terms of a and b the gcd(a, b) divides d and must therefore be plusminusd.

As a consequence of this algorithm we can now prove:

Theorem

Every ideal of s1 is principal.

Proof
Let I be a non-zero ideal. Choose the smallest (non-zero) element a in the ideal I. If b is any other element then the Euclidean algorithm shows that gcd(a, b) is in I and this must be either plusminusa since a is the smallest element in I. So b is a multiple of a.
Thus I = < a > .

We now prove similar results for another ring.

The division algorithm for s1[x]

If a(x), b(x) belongs s1[x] with b(x) noteq 0 then thereexists q(x), r(x) belongs s1[x] such that a(x) = b(x)q(x) + r(x) with either r(x) = 0 or deg(r(x)) < deg(b(x)).

Remarks

  1. Note that this is almost word-for-word the same as the s1 case.

  2. The remainder is smaller than the divisor. In s1[x] we measure "size" by the degree.

Proof
We use the (slightly less well-known) process of dividing one polynomial by another (of lower degree). It is just like long division.
One example will suffice!
Take a(x) = 3x4 + 2x3 + x2 - 4x + 1 and b = x2 + x + 1


Remark

The above shows that if you divide by a monic polynomial (one with leading coefficient 1) you can do it in s1[x], but in general you may need to invert some elements so you'd better be in s1[x].

Definition

The greatest common divisor of two polynomials a(x), b(x) belongs s1[x] is a polynomial of highest degree which divides them both.

Remarks

  1. This is the largest polynomial dividing both where we measure the "largeness" using the degree.

  2. The gcd is only determined up to multiplication by a non-zero real number. These are the invertible elements or units of s1[x].

  3. Note that if you calculate the gcd of (say) 2 and 4 as polynomials you get the answer 1, while as integers the result is 2.

One can then prove:

The Euclidean algorithm for polynomials.

If d(x) is the gcd of a(x), b(x) there are polynomials p(x), q(x) such that d = a(x)p(x) + b(x)q(x).

Proof
Just the same as for s1 -- except that the divisions are more tedious.

Remarks

In Maple the integer gcd is impemented with igcd and the Euclidean algorithm with igcdex. For polynomials use gcd and gcdex.

The above result on principal ideals follows for this ring.

Every ideal of s1[x] is principal.

Proof
Just as in the s1 case, an ideal is generated by its smallest (in degree) element.

Remarks

  1. An integral domain in which every ideal is principal is called a principal ideal domain or PID.

  2. The results about the real polynomials above can be proved for the ring of polynomials F[x] over any field F. What we have just proved is that: F[x] is a PID.

Now let us prove the same result for a completely different ring.

Definition

The ring of Gaussian integers is the subring {a + bi | a, b belongs s1} of s1. It is denoted s1[i].

We'll prove the division and Euclidean algorithms for this ring but first we have to decide when one Gaussian integer is bigger or smaller than another.

Definition

The norm (or length) of the Gaussain integer a + bi is a2 + b2. We will write it as N(a + bi).

Remarks

  1. This is, of course, |z|2 with z = a + bi. It is more convenient not to take the square root, since it keeps the norm as an integer.

  2. If u, v are Gaussian integers, the norm satisfies N(uv) = N(u)N(v).

The division algorithm for s1[i]

If u, v belongs s1[i] with v noteq 0 then thereexists q, r belongs s1[i] such that u = vq + r with N(r) < N(v).

Remarks

  1. The remainder is smaller than the divisor. In s1[i] we measure "size" by the norm.

  2. We will see that in fact there is sometimes a choice of remainders.

Proof
This proof is very different to the other proofs above.

First divide u by v in s1. You get a complex number u /v which lies in one of the "cells of the integer lattice".
At least one corner of the square is within distance 1 of u/v. This is the quotient q. The remainder is then r = u - vq and since |u/v - q| < 1 we have |u - qv| < |v| and so N(r) < N(v) as required.


Remark

For most positions of u/v there will be a choice of 2, 3 or even four Gaussian integers for the quotient.


Example

Divide 3 + 4i by 1 - i. In s1 we have (3 + 4i)/(1 - i) = [multiplying top and bottom by 1 + i] (-1 + 7i)/2 and this is in the square:
So we have a choice of four quotients and remainders:
q1 = 3i, r1 = 3 + 4i - (1 - i)3i = i ;
q2 = -1 + 3i, r2 = 1 ; q3 = 4i, r3 = -1 ; q4 = -1 + 4i, r4 = -i.
In each case N(ri) < N(1 - i) = 2

Definition

The greatest common divisor of two Gaussian integers u, v belongs s1[i] is a Gaussian integer of largest norm which divides them both.

Remarks

  1. Note that we measure the "largeness" using the norm.

  2. The gcd is only determined up to multiplication by an invertible Gaussian integer. These units of s1[i] are plusminus1 and plusminusi.

Then we can calculate just as before and prove:

The Euclidean algorithm for Gaussian integers.

If w is the gcd of u, v there are Gaussian integers g, h such that w = ug + vh.

and then we can deduce:

Every ideal of s1[i] is principal.

Remark

  1. A ring in which one can define a sensible notion of size which leads to a Euclidean algorithm is called a Euclidean ring.

  2. In the Microlab you will find there is an Algebra package in MacTutor and the stack Gaussian integers there will let you calculate with these (and with certain other interesting subrings of s1 also).


Previous page
(Subrings and ideals)
Contents Next page
(Ring homomorphisms and isomorphisms)

JOC/EFR September 2004