Formally, Gaussian integers are the set
The norm of a Gaussian integer is the natural number defined as
The norm is multiplicative, i.e.
The units of Z[i] are therefore precisely those elements with norm 1, i.e. the elements
The Gaussian integers form a unique factorization domain with units 1, -1, i, and -i.
The prime elements of Z[i] are also known as Gaussian primes.
A Gaussian integer is prime if and only if:
The following elaborates on these conditions.
The necessary conditions can be stated as following: a Gaussian integer is prime only when its norm is prime, or its norm is a square of a prime. This is because for any Gaussian integer , notice . Now is an integer, and so can be factored as a product of rational primes, that is, as prime numbers in by the fundamental theorem of arithmetic. By definition of prime, if is prime then it divides for some . Also, divides , so . This gives only two options: either the norm of is prime, or the square of a prime.
If in fact for some rational prime , then both and divide . Neither can be a unit, and so and where is a unit. This is to say that either or , where
However, not every rational prime is a Gaussian prime. 2 is not because . Neither are primes of the form because Fermat's theorem on sums of two squares assures us they can be written for integers and , and . The only type of primes remaining are of the form .
Rational primes of the form are also Gaussian primes. For suppose for a prime, and it can be factored . Then . If the factorization is non-trivial, then . But no sum of squares -- prime sum or not -- can be written . So the factorization must have been trivial and is a Gaussian prime.
Likewise times a rational prime of the form is a Gaussian prime, but times a prime of the form is not.
If is a Gaussian integer with prime norm, then is a Gaussian prime. This is because if , then and being prime one of , or must be 1, hence one of , must be a unit.
The ring of Gaussian integers is the integral closure of Z in the field of Gaussian rationals Q(i) consisting of the complex numbers whose real and imaginary part are both rational.
The ring of Gaussian integers was introduced by Carl Friedrich Gauss in 1829 - 1831 (see
) while studying reciprocity laws which are generalisations of the theorem of quadratic reciprocity which he had first succeeded in proving in 1796. In particular, he was looking for relationships between p and q such that q should be a cubic residue of p (i.e. x3≡ q mod p) or such that q should be a biquadratic residue of p (i.e. x4≡ q mod p). During this research he discovered that some results were more easily provable by working in the ring of Gaussian integers, rather than the ordinary integers.
He developed the properties of factorisation and proved the uniqueness of factorisation into primes in Z[i], and despite publishing little, he made some comments which indicate that he was aware of the significance of Eisenstein integers in stating and proving results on cubic reciprocity.
Complex Gaussian Integers for 'Gaussian Graphics'