2.2 Discriminants
Let \(K\) be a number field and let \(B=\{ b_1,\dots ,b_n\} \) be a set of elements in \(K\). The discriminant of \(B\) is defined as
If needed we will denote the matrix
by \(T_B\).
Let \(K=\mathbb {Q}(\sqrt{d})\) with \(d\) square-free. Then lets take \(B=\{ 1,\sqrt{d}\} \) which is our basis for \(K\). Then we have
Let \(K\) be a number field and let \(B=\{ b_1,\dots ,b_n\} \) be a set of elements in \(K\). Then \(\Delta (B) \neq 0\) if and only if the elements in \(B\) are linearly independent.
First recall from linear algebra, that if we have a finite dimensional vector space \(V\) with a non-degenerate bilinear form \(\langle , \rangle \) on \(V\), then \(\{ v_1,\dots ,v_n\} \) a basis of \(V\) if and only if
(This matrix appearing here is called the matrix associated to the pairing \(\langle ,\rangle \) with respect to our chosen basis).
Now, by Proposition 1.7.8 we know that the trace pairing is perfect, which in particular means it is non-degenerate. Moreover, \(\Delta (B)\) is exactly the determinant of the matrix associated to the trace pairing. So, we see that \(B\) consists on linearly independent vectors if and only if \(\Delta (B) \neq 0\).
So this is a good way to check if a set of elements are a basis for \(K/\mathbb {Q}\). Now, lets see how \(\Delta (B)\) is related to \(\Delta (B')\) for \(B,B'\) two different bases for \(K/\mathbb {Q}\).
Let \(K\) be a number field and \(B,B'\) bases for \(K/\mathbb {Q}\). If \(P\) denotes the change of basis matrix, then
Let \(T_B=(\operatorname {Tr}_{K/\mathbb {Q}}(b_i b_j))_{i,j}\) be the matrix associated to the trace pairing with respect to \(B\). Then, it is a basic result in linear algebra that if you have the matrix associated to a bilinear pairing and change the basis, then the matrix gets conjugated by the change of basis matrix. This means that \(T_B=P^{t}T_{B'}P\), (where \(()^t\) denotes transpose). Now, taking determinants we get \(\Delta (B)=\det (T_B)=\det (P^t T_{B'}P)=\det (P^t)\det (T_{B'})\det (P)\) which gives the result once you remember that \(\det (P^t)=\det (P)\).
Now, by the Primitive element theorem 1.5.11 we know that for a number field we can always find some \(\alpha \) such that \(K=\mathbb {Q}(\alpha )\) and in this case \(\{ 1,\alpha ,\dots ,\alpha ^{n-1}\} \) is a basis of \(K/\mathbb {Q}\) where \(n=[K:\mathbb {Q}]\). But as we mentioned above, we cant do this for rings of integers. But, using the discriminant we can check if we have a basis for our ring of integers.
First note that:
Let \(K\) be a number field and \(B=\{ b_1,\dots ,b_n\} \) be elements in \(\mathcal{O}_K\), then \(\Delta (B) \in \mathbb {Z}\).
If \(b_i b_k\) is an algebraic integer, then \(\operatorname {Tr}_{K/\mathbb {Q}}(b_i b_j) \in \mathbb {Z}\). Therefore the matrix \(T_B\) has integers coefficients, and therefore the determinant is a integer.
Just because we take a basis consisting of algebraic integers, it doesn’t mean that it is an integral basis. To find an integral basis we need to be a bit more careful.
Let \(K\) be a number field and \(B=\{ b_1,\dots ,b_n\} \) be a basis for \(K/\mathbb {Q}\) consisting of algebraic integers. If \(B\) is not an integral basis then there exists an algebraic integer of the form
where \(p\) is a prime and \(x_i \in \{ 0,\dots ,p-1\} \) with not all \(x_i\) zero. Moreover, if \(x_i \neq 0\) and we let \(B'\) be the basis obtained by replacing \(b_i\) with \(\alpha \), then
In particular \(p^2 \mid \Delta (B)\).
If \(B\) is not an integral basis then we can find some element \(\phi \in \mathcal{O}_K\) such that
with not all the \(y_i\) in \(\mathbb {Z}\). So, let \(N\) be the least common multiple of the denominators of the \(y_i\) (meaning \(Ny_i \in \mathbb {Z}\) for all \(i\)). Now, let \(p\) be a prime factor of \(N\). If we now consider \((N/p)\phi \) then all of the coefficients of \(b_i\) are in \(\frac{1}{p} \mathbb {Z}\) (so they have denominator \(1\) or \(p\).) and at least one of them has denominator \(p\) (since not all the \(y_i\) where in \(\mathbb {Z}\)). So by relabelling, wlog we can assume
with \(y_i \in \frac{1}{p} \mathbb {Z}\)
Now look at
(here \(\lfloor x \rfloor \) denotes the integer part of \(x\)). The both \(\psi \) and \(\phi \) are algebraic integers (as the \(b_i\) are algebraic integers). Therefore, so is \(\theta =\phi -\psi \). By construction, \(\theta \) has coefficients of the for \(\frac{x_i}{p}:=y_i-\lfloor y_i \rfloor \) where \(x_i \in \{ 0,\dots ,p-1\} \) and not all the \(x_i\) are zero (since, again, not all the \(y_i\) were in \(\mathbb {Z}\)). This gives the first part of the lemma.
Now, assume \(x_i \neq 0\), then let us replace \(b_i \in B\) with \(\theta \) to get a new basis \(B'\) which again consists of algebraic integers. Next, we note that the change of basis matrix from \(B\) to \(B'\) is
(here the column of \(x_j/p\)’s is in the \(i\)-th column).
This matrix has determinant \(\frac{x_i}{p}.\) Therefore, by Proposition 2.2.4 we see that \(\Delta (B')=\frac{x_i^2}{p^2}\Delta (B)\). But both \(\Delta (B),\Delta (B')\) are in \(\mathbb {Z}\) by Proposition 2.2.5, therefore \(p^2 \mid \Delta (B)\) giving the result.
There exists a (finite) integral basis in \(K\).
The fact that it is finite follows from \(K\) being a finite extension of \(\mathbb {Q}\). Let \(B\) be a basis consisting of algebraic integers, now by repeatedly applying Lemma 2.2.7, we can obtain \(B\) such that \(\mid \Delta (B) \mid \) is as small as possible. This must now be an integral basis, otherwise Lemma 2.2.7 would allow us to find a new basis \(B'\) with \(|\Delta (B')| {\lt} |\Delta (B)|\) contradicting our choice of \(B\).
From this we also get:
If \(B\) is a basis consisting of integral elements and \(\Delta (B)\) is square-free, then \(B\) is an integral basis.
This follows at once from Lemma 2.2.7.
Note that the converse is not true! For example if \(K=\mathbb {Q}(\sqrt{-1})\) then \(B=\{ 1,\sqrt{-1}\} \) is an integral basis, but \(\Delta (B)=-4\) which is not square-free.
Note that this also gives us an algorithm for finding an integral basis as follows:
Pick \(B\) a basis consisting of algebraic integers and calculate \(\Delta (B)\).
For each prime \(p\) such that \(p^2 \mid \Delta (B)\) we can use Lemma 2.2.7 to get a new basis \(B'\) with smaller discriminant.
Now, repeat step one.
Let \(K=\mathbb {Q}(\sqrt{5})\) and take \(B=\{ 1,\sqrt{5}\} \). Then we have \(\Delta (B)=2^2\cdot 5\). So, if we apply Lemma 2.2.7 we get a new basis \(B'=\{ 1,\frac{1+\sqrt{5}}{2}\} \) which has discriminant \(5\), which is square-free, and therefore is a basis of \(\mathcal{O}_K\).
Let \(B,B'\) be two integral bases of a number field \(K\). Then \(\Delta (B)= \Delta (B')\).
In this case the change of basis matrix from \(B\) to \(B'\) is an invertible matrix with integer coefficients, so its determinant is \(\pm 1\). Using Proposition 2.2.4, we see that a change of basis matrix won’t alter the discriminant, since the factor of the determinant squared is what appears.
Let \(K\) be a number field, and let \(B\) be an integral basis. Then we define the discriminant of \(K\) as \(\Delta (B)\). Note that by Proposition 2.2.13, this definition does not depend on the choice of integral basis. So we will sometimes denote it simply by \(\Delta (\mathcal{O}_K)\).