Number fields and rings of integers
Find the integral arithmetic inside a finite rational extension and distinguish a power order from the full ring of integers.
On this page
The question for today
What you’ll understand
- Define algebraic integrality using a monic integer polynomial.
- Distinguish a field basis from an integral basis.
- Calculate an index-two quadratic order.
Adjoining an algebraic number gives a field, but arithmetic needs a distinguished analogue of the ordinary integers inside that field. The ring of integers consists of elements satisfying monic equations with integer coefficients. It is generally larger than the ring generated by a convenient field generator. This difference affects prime factorization, discriminants, and modular computations. We begin with quadratic fields, where one can see the distinction explicitly, while keeping the general finite-extension definitions that support the later ideal and local-field theory.
A finite field extension contains an integral subring
A number field K is a finite extension of , with degree n. An element is an algebraic integer if it satisfies a monic polynomial in . The full set of such elements in K is , the integral closure of Z in K. Algebraic integers form a ring; this uses closure properties of integral extensions, not the claim that adding two roots of arbitrary equations simply adds their equations. Every rational number that is integral over Z is an ordinary integer.
Monicity is essential. Every algebraic number satisfies some nonzero integer polynomial after denominators are cleared, but that weaker property does not characterize integrality. For example a rational fraction can satisfy an integer polynomial with leading coefficient greater than one while failing every monic integer equation. An element's monic minimal polynomial over Q has integer coefficients exactly when the element is an algebraic integer. This criterion is useful for computations, provided the polynomial used really is the minimal one rather than an unrelated multiple.
Integral bases are lattice bases
The additive group of is free of rank n. An integral basis is a Z-basis of that group and is also a Q-basis of K. The converse fails: a Q-basis made of integral elements may span only a proper finite-index sublattice of the full integer ring. Likewise, if an integral element θ generates K as a field, the power ring is a full-rank order but need not equal . Not every number field has a power integral basis.
An order is a subring containing one whose additive group is a full-rank lattice in the number field. Its finite index in the maximal order measures a genuine arithmetic defect, not an error in the field degree. Passing from one order to another can change which ideals behave well under factorization and whether a polynomial reduction reads prime splitting correctly. It is therefore useful to distinguish field generation, integral generation, and additive lattice generation before attempting any modular or discriminant calculation.
Quadratic fields expose the distinction
For squarefree integer d different from zero and one, the ring of integers of is when d is congruent to one modulo four, and otherwise. This statement includes negative squarefree d. The half-integral basis arises because trace and norm can both be integral for those particular halves. It does not mean that dividing any integral element by two preserves integrality.
A derivation writes an arbitrary quadratic element in rational coordinates, uses its trace and norm to constrain denominators, and exploits squarefreeness. The resulting classification is stronger than checking a few convenient elements. In higher degree, finding the full integer ring can require more than detecting one missing half-integer. An explicit quadratic calculation is a good reference case for an algorithm: verify the monic polynomial, the additive basis relation, and the index separately rather than assuming that one successful check establishes all three.
Work it through
The golden-ratio integer is missing from a power order
Let K=Q(sqrt(5)) and omega=(1+sqrt(5))/2. Show omega is integral and compute the index of Z[sqrt(5)] in the full ring of integers.
Squaring omega gives omega²=omega+1, so it is a root of x²−x−1. This monic integer polynomial proves integrality.
Because five is squarefree and congruent to one modulo four, the quadratic integer-ring theorem gives O_K=Z+Z omega. The relation sqrt(5)=2omega−1 shows that Z[sqrt(5)] consists of those coordinates whose omega coefficient is even.
There are exactly two cosets according to that coefficient's parity. Thus the order has index two. It has the same rational span and field degree as the full integer ring, so the missing coset is not a missing field direction.
The full ring is Z[omega], while Z[sqrt(5)] is an index-two order. The Q-basis (1,sqrt(5)) is not an integral basis of O_K.
The living notebook
Explore the model
Interactive lab · matrix
Visualize a finite-index lattice defect
Pause and Reset, then set both controls to a=1 and b=0; predict determinant and fundamental area 1. Reset and set a=2 and b=0; predict area 2 and an index-two integer sublattice. This triangular lattice model illustrates the index calculation; it is not the actual Minkowski embedding or the basis-change matrix of Q(sqrt(5)). Readouts refer to the selected final matrix even while Play interpolates the geometry.
- Area scale · det A
- 1.4
- Singular values · σmax, σmin
- 1.597, 0.876
- Condition number · κ₂(A)
- 1.823
The selected matrix is A = [[a,b],[0,1]]. Playback interpolates geometry between the identity and A; readouts always describe A. Its determinant is a and its singular values come from AᵀA. Positive a makes every supported matrix invertible. This two-dimensional family is not a general eigensolver or a learned network. Parameter changes pause playback and recompute the model at the current elapsed time. Reset restores both parameters and returns time to zero. Playback starts paused. Adjust either parameter, then choose Play or Step.
Look forEqual real or rational spans can contain different integer lattices with finite index.
Pause & reason
Check your understanding
Your turn
Try it yourself
In Q(sqrt(2)), decide whether alpha=(1+sqrt(2))/2 is integral. Compute its trace and norm and compare with the known integer ring.
Take a moment to make a prediction or work it out on paper. Open a hint when you need one.
Give me a hint
Conjugation changes sqrt(2) to its negative. An integral quadratic element must have integer trace and norm.
Compare with the solution
The trace is one, but the norm is (1−2)/4=−1/4, which is not an integer. Therefore alpha is not integral. Its monic minimal polynomial is x²−x−1/4, confirming the failure. Since two is squarefree and not congruent to one modulo four, the full ring is Z[sqrt(2)]. The valid half-integral basis in Q(sqrt(5)) cannot be transferred merely because both fields are quadratic.
Keep the idea
Take it with you
- Monic equations define the integral arithmetic inside a number field.
- A field basis and an integral basis solve different spanning problems.
- Power orders can miss finite-index parts of the maximal integer ring.
Read further
Original sources and deeper explanations to follow at your own pace.
Optional progress, saved in this browser when available. Revisit any lesson at any time.
Lesson not marked complete.