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. Define the inverse different or codifferent or Dedekind's complementary module as the set I of x ∈ K such that tr 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 ideal norm of δK is equal to the ideal of Z generated by the field discriminantDK of K. The different of an element α of K with minimal polynomialf is defined to be δ = f′ if α generates the field K : we may write where the αrun over all the roots of the characteristic polynomial of α other than α itself. The different ideal is generated by the differents of all integers α in OK. This is Dedekind's original definition. The different is also defined for a finite degree extension of local fields. It plays a basic role in Pontryagin duality for p-adic fields.
Relative different
The relative different δL / K is defined in a similar manner for an extension of number fieldsL / K. The relative norm of the relative different is then equal to the relative discriminant ΔL / K. In a tower of fieldsL / K / F the relative differents are related by δL / F = δL / KδK / F. The relative different equals the annihilator of the relative Kähler differential module : 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. Since the relative discriminant is the norm of the relative different it is the square of a class in the class group of OK: indeed, it is the square of the Steinitz class for OL as a OK-module.
Ramification
The relative different encodes the ramification data of the field extensionL / K. A prime idealp 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 ifp divides the relative discriminant ΔL / K. More precisely, if 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 indexe is greater than 1. The precise exponent to which a ramified primeP 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. In the case when P is wildly ramified the differential exponent lies in the range e to e + νP − 1. The differential exponent can be computed from the orders of the higher ramification groups for Galois extensions:
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'.