Readings:
Gaussian Integers
Eisenstein Integers
We first view a quadratic number field naively as the set of all polynomials in the square root of some non-square, for example Q[√5]. This representation allows us to define most of the operations we want, but for some analysis we will have to use a more subtle point of view.
Addition & Multiplication: We add and multiply two elements of the quadratic number field in the usual way:
Division takes a bit more thought, but can be done in a manner analogous to what we did in the Gaussian Integers, using something like complex conjugation to rationalize the denominator.
Division: We divide and then rationalize the denominator:
(x+y√d)/(z+w√d)
= ((x+y√d)(z-w√d))/((z+w√d)(z-w√d))
= ((xz-ywd)+(yz-xw)√d)/(z2-w2d)
= ((xz-ywd)/(z2-w2d)+√d(yz-xw)/(z2-w2d))
In order to rationalize the denominator we multiply by something other than the complex conjugate (unless d<0), but a more general conjugate, where √d → -√d. We will generalize this still further in the next section.
Defn: conjugate
Defn: trace
Defn: norm
Defn: minimal polynomial
Defn: α is an algebraic integer if it is the root of a polynomial whose coefficients are all rational integers.
In order to reduce (or increase) confusion we refer to the usual integers, {...,-2,-1,0,1,2,...}=Z⊂Q, as the rational integers.
We may specify that the minimal polynomial, mα(x) (when the number field is viewed as an extension of Q) rational integers for all of its coefficients.
Characterizing the algebraic integers in a number field is not an easy task in general, but in the quadratic number field case we can easily characterize the algebraic integers. Consider the quadratic number field Q[√d]. We ask if the general element α=(a+b√d)c is an algebraic integer.
α=(a+b√d)c, assuming
WLOG that gcd(a,b,c)=1.
m&alpha(x) = x2 + Tr(α)x + N(α)
= x2 + (2a/c)x + (a2-db2)/c2
So α is an integer iff both (2a/c) and (a2-db2)/c2 are rational integers.
Claim: For no prime p≠2 does p divide c
Were this true, then p|c|a (as (2a/c)
is a rational integer). Thus, as (a2-db2)/c2 is a rational integer and d is squarefree, we have
that p|b and gcd(a,b,c)≠1, a
contradiction. Thus c is a power of 2. In fact, the same argument shows
that c is either 1 or 2.
The case c=1 is easy, a and b can take any integer
values.
The case c=2 is equivalent to requiring that
The algebraic integers in Q[√d] have the form:
It is common to reformulate this in terms of an element ω. The algebraic integers in Q[√d] are the Z-linear combinations of {1, ω}, where:
Thm: The algebraic integers form a ring with closure under addition and multiplication.
proof: In the case of quadratic number fields this is easily proven by looking at the form algebraic integers take in this case (see above).
Thm: (Dirichlet's Unit Theorem)
In[1]:= FactorInteger[2, GaussianIntegers->True]
>