If OK is the ring of integers of K, and tr denotes the field trace from K to the rational number fieldQ, then
is an integral quadratic form on OK. Its discriminant as quadratic form need not be +1 (in fact this happens only for the case K = Q). Define the inverse different or codifferent[3][4] or Dedekind's complementary module[5] as the set I of x ∈ K such that tr(xy) is an integer for all y in OK, then I is a fractional ideal of K containing OK. By definition, the different ideal δK is the inverse fractional ideal I−1: it is an ideal of OK.
The different of an element α of K with minimal polynomial f is defined to be δ(α) = f′(α) if α generates the field K (and zero otherwise):[6] we may write
where the α(i) run over all the roots of the characteristic polynomial of α other than α itself.[7] The different ideal is generated by the differents of all integers α in OK.[6][8] This is Dedekind's original definition.[9]
The relative different δL / K is defined in a similar manner for an extension of number fields L / K. The relative norm of the relative different is then equal to the relative discriminant ΔL / K.[10] In a tower of fieldsL / K / F the relative differents are related by δL / F = δL / KδK / F.[5][11]
The ideal class of the relative different δL / K is always a square in the class group of OL, the ring of integers of L.[13] Since the relative discriminant is the norm of the relative different it is the square of a class in the class group of OK:[14] indeed, it is the square of the Steinitz class for OL as a OK-module.[15]
Ramification
The relative different encodes the ramification data of the field extension L / K. A prime ideal p of K ramifies in L if the factorisation of p in L contains a prime of L to a power higher than 1: this occurs if and only if p divides the relative discriminant ΔL / K. More precisely, if
p = P1e(1) ... Pke(k)
is the factorisation of p into prime ideals of L then Pi divides the relative different δL / K if and only if Pi is ramified, that is, if and only if the ramification index e(i) is greater than 1.[11][16] The precise exponent to which a ramified prime P divides δ is termed the differential exponent of P and is equal to e − 1 if P is tamely ramified: that is, when P does not divide e.[17] In the case when P is wildly ramified the differential exponent lies in the range e to e + eνP(e) − 1.[16][18][19] The differential exponent can be computed from the orders of the higher ramification groups for Galois extensions:[20]
Local computation
The different may be defined for an extension of local fields L / K. In this case we may take the extension to be simple, generated by a primitive element α which also generates a power integral basis. If f is the minimal polynomial for α then the different is generated by f'(α).