advanced35 min studyLesson 571 in Mathematics

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

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 Q\mathbb Q, with degree n. An element is an algebraic integer if it satisfies a monic polynomial in Z[x]\mathbb Z[x]. The full set of such elements in K is OK\mathcal O_K, 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.

OK={α∈K:αm+am−1αm−1+⋯+a0=0 for some ai∈Z}\mathcal O_K=\{\alpha\in K:\alpha^m+a_{m-1}\alpha^{m-1}+\cdots+a_0=0\text{ for some }a_i\in\mathbb Z\}
The displayed polynomial is monic. Finite degree over Q defines a number field, while integrality singles out its integer ring.↔ Scroll wide equations horizontally.

Integral bases are lattice bases

The additive group of OK\mathcal O_K 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 Z[θ]\mathbb Z[\theta] is a full-rank order but need not equal OK\mathcal O_K. 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.

OK≅Zn additively,[OK:Z[θ]]<∞(K=Q(θ), θ integral)\mathcal O_K\cong\mathbb Z^n\text{ additively},\qquad[\mathcal O_K:\mathbb Z[\theta]]<\infty\quad(K=\mathbb Q(\theta),\ \theta\text{ integral})
The finite index need not be one. A field generator supplies a power order, not automatically an integral basis.↔ Scroll wide equations horizontally.

Quadratic fields expose the distinction

For squarefree integer d different from zero and one, the ring of integers of Q(d)\mathbb Q(\sqrt d) is Z[(1+d)/2]\mathbb Z[(1+\sqrt d)/2] when d is congruent to one modulo four, and Z[d]\mathbb Z[\sqrt d] 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.

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.

  1. Squaring omega gives omega²=omega+1, so it is a root of x²−x−1. This monic integer polynomial proves integrality.

  2. 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.

  3. 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 result

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.

Explore the model

Interactive lab

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.

Visualize a finite-index lattice defectThe 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. Current readings: Area scale · det A: 1.4; Singular values · σmax, σmin: 1.597, 0.876; Condition number · κ₂(A): 1.823. All parameters are adjustable with the labeled controls below.Matrix A with first row 1.4, 0.6 and second row zero, one; display interpolates between identity and A while final determinant remains 1.4.−4−2024−2−1012x · equal geometric scaleyA = [ 1.4 0.6 ; 0 1 ]Display blend: 0% · final values below
Interpolated geometryOriginal unit squareSelected final transform
Area scale · det A
1.4
Singular values · σmax, σmin
1.597, 0.876
Condition number · κ₂(A)
1.823
t = 0 s

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.

Check your understanding

What is guaranteed when an integral theta generates a number field K over Q?

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.

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.