Let . Its ring of integers of a quadratic field is , and its fundamental field discriminant is .
First compute the class number. The ideal-form correspondence for imaginary quadratic fields identifies the ideal classes with proper equivalence classes of primitive positive definite binary quadratic forms of discriminant . Each has a unique reduced positive definite binary quadratic form representative under the convention , with when or . From we get . Checking these three possible leading coefficients gives exactly
For , neither odd residue choice makes integral. The listed forms are primitive and satisfy the reduction convention, so
This computes the ideal class group of Q of square root minus thirty-one.
Now take a root of , and let be its splitting field over . There is no rational root: the only candidates are , and neither vanishes. Thus the cubic is irreducible. Its polynomial discriminant is
Since this is nonsquare, the Galois group of an irreducible cubic is . Its quadratic subfield is : the product of pairwise root differences squares to and changes sign under odd permutations. Thus is cyclic of degree three, and . Indeed the cubic field and have coprime degrees, so their compositum already has the full splitting-field degree six. The squarefree polynomial discriminant also shows, by the discriminant-index formula for an integral lattice, that is the full integer ring of the cubic field.
It remains to prove that is unramified everywhere. At any rational prime , the reduction of is separable. Over a finite residue extension in which it splits, all residue roots are simple and lift by Hensel lemma to the corresponding unramified extension of . Therefore the local splitting field is unramified over , and its extension over a completion of is unramified as well.
At the only possible ramified prime, direct reduction gives
The simple root lifts to . Write , with monic quadratic over . The discriminant product formula gives
Here is a unit, so the quadratic discriminant has square class . Hence the entire local splitting field is
It is quadratic over , but its extension over the completion of is trivial. Thus the prime over splits completely in ; in particular it is not ramified there. This is the local splitting-field argument behind an unramified cyclic cubic extension from a prime-discriminant cubic. There are no real places of the imaginary quadratic field , so no infinite-place ramification remains to check.
The Hilbert class field theorem identifies the maximal everywhere unramified abelian extension with an extension of degree . Our cyclic unramified extension already has that degree, so it must be the whole Hilbert class field. Therefore
Equivalently, it is the splitting field of , of degree six over and degree three over . Replacing by gives the alternative defining cubic . This is the Hilbert class field of Q of square root minus thirty-one.
Let
Over , the Newton polygon has three length-one segments of slopes . The resulting roots can also be obtained directly from Hensel lemma. There is one unit root because is even and is odd. For the two remaining roots, put
whose parenthesized polynomial has a simple root , and
whose parenthesized polynomial has a simple root . Thus splits completely over , with roots of valuations . There are three primes above , and for each one
Over , is an Eisenstein polynomial. Hence there is one prime above , and if is the chosen root then
with and .
The polynomial is irreducible over by the Eisenstein criterion at . Its polynomial discriminant is
which is not a square number, so the Galois group of an irreducible cubic is
At , all three roots already lie in , so the local splitting field is trivial and
At , the cubic is totally and tamely ramified. The square class of its discriminant is represented by , a nonsquare unit, so the quadratic resolvent field of a cubic is the unramified quadratic extension of . The local splitting field therefore has degree six, with
These calculations are summarized by local factorization of X3 plus 25X2 minus 50X plus 40.
Let be a root of
The polynomial is Eisenstein at , so is totally ramified of degree three and . Its discriminant is
Its odd valuation makes nonsquare in , so the Galois group of an irreducible cubic shows that the splitting field has Galois group . The quadratic extension obtained by adjoining is ramified, so is totally ramified. Therefore
because the wild inertia group is the unique Sylow -subgroup of .
It remains to find the wild break. Since
and is a unit, the different ideal of has exponent . The extension is a tamely ramified quadratic extension and has different exponent one. The different in a tower therefore gives different exponent
On the other hand, the different exponent from ramification groups is
where is the last index for which . Thus , and
If a monic polynomial has roots in a splitting field, its polynomial discriminant is
It is a symmetric polynomial in the roots, so it belongs to the base field; it is nonzero exactly when is a separable polynomial.
Put
the Vandermonde determinant. A root permutation sends to . Hence the Galois group of a polynomial is contained in the alternating group exactly when every Galois automorphism fixes , which by the fixed-field property is equivalent to . This implies that is a square in . Conversely, if for , then , so . The Galois group therefore fixes and consists of even permutations. This proves the discriminant criterion for an alternating Galois group.
Now let
The rational root theorem shows that none of is a root, so this cubic is irreducible over . The discriminant of a depressed cubic is
This is not a square in , so the Galois group of an irreducible cubic is over .
Over , the discriminant is the square
The cubic remains irreducible: a root in the degree-two extension would generate over both a degree-three field, by irreducibility, and a subfield of a degree-two field, contradicting the tower law for field extensions. Its Galois group over is consequently .
The rational-root test shows that is irreducible. Its discriminant is
which is not a square in . The Galois group of an irreducible cubic therefore gives
Quadratic subfields correspond to order-three subgroups. The unique such subgroup is , and its fixed field is generated by the alternating product of root differences, whose square is . Thus the unique quadratic subfield is
Let the roots be and choose
, so . Put . A nonidentity even permutation moves and fixes , so it cannot fix . An odd permutation negates . If it fixes , it plainly does not fix . If it sends to and fixed , then . Cancelling the factor in the expression for would give
But , so this would make equal to or , contradicting the irreducibility of its cubic minimal polynomial. The other transpositions are identical. Hence has trivial stabilizer, so