betaFeedback

WorksMathematics

Quadratic Reciprocity via Vandermonde Matrix

Abstract

This paper presents a proof of the law of quadratic reciprocity using the Vandermonde matrix and Zolotarev's lemma.

Introduction

Let pp be an odd prime, and aa an integer not divisible by pp. We define the Legendre symbol (ap)\left(\frac{a}{p}\right) by setting (ap)=1\left(\frac{a}{p}\right)=1 if aa is a square modulo pp and (ap)=−1\left(\frac{a}{p}\right)=-1 otherwise. Euler gave the following simple criterion to determine the value of (ap)\left(\frac{a}{p}\right):

(ap)≡a(p−1)/2(modp).\left(\frac{a}{p}\right) \equiv a^{(p-1)/2} \pmod p.

The goal of this paper is to establish Gauss’ famous law of quadratic reciprocity, stated in Theorem 1.

Theorem 1 (Law of quadratic reciprocity). Let pp and qq be distinct odd primes. Then

(qp)=(−1)(p−1)(q−1)/4(pq).\left(\frac{q}{p}\right)=(-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right).

This result is probably the most proven theorem in mathematics, after Pythagoras’ theorem. As of the time of this writing, no fewer than 300 proofs have been discovered, and they are well documented in Oswald Baumgart’s [1] book.

Our approach combines two methods: a matrix method by Jean Delsarte [2] and a permutation method by Yegor Ivanovich Zolotarev [3]. We are aware of several other papers that have attempted similar approaches, but these papers do not explicitly draw the link between the two aforementioned methods. For a deeper discussion, we refer the reader to § 5 below.

Vandermonde matrix

Consider the following Vandermonde matrix:

V=V(ζ1,ζ2,ζ3,…,ζp)=(1ζ1(ζ1)2⋯(ζ1)p−11ζ2(ζ2)2⋯(ζ2)p−11ζ3(ζ3)2⋯(ζ3)p−1⋮⋮⋮⋱⋮1ζp(ζp)2⋯(ζp)p−1).V=V(\zeta^1,\zeta^2,\zeta^3,\ldots,\zeta^p)= \begin{pmatrix} 1 & \zeta^1 & (\zeta^1)^2 & \cdots& (\zeta^1)^{p-1}\\ 1 & \zeta^2 & (\zeta^2)^2 & \cdots& (\zeta^2)^{p-1}\\ 1 & \zeta^3 & (\zeta^3)^2 & \cdots& (\zeta^3)^{p-1}\\ \vdots& \vdots& \vdots& \ddots& \vdots\\ 1 & \zeta^p & (\zeta^p)^2 & \cdots& (\zeta^p)^{p-1} \end{pmatrix}.

where ζk=e2πik/p\zeta^k=e^{2\pi i k/p}, 1≤k≤p1\leq k\leq p are the pp-th roots of unity. We prove our first lemma.

Lemma 2. det⁡(V)2=(−1)(p−1)/2pp\det(V)^2=(-1)^{(p-1)/2}p^p.

Proof. One can compute this by finding VTVV^{T}V directly. Indeed, the (i,j)(i,j)-th entry of VTVV^{T}V is

∑k=0p−1ζ(i+j−2)k={p,if i+j≡2(modp),0,if i+j≢2(modp).\sum_{k=0}^{p-1}\zeta^{(i+j-2)k} = \begin{cases} p, & \text{if } i+j \equiv2 \pmod{p},\\ 0, & \text{if } i+j \not\equiv2 \pmod{p}. \end{cases}

Thus

det⁡(V)2=det⁡(VTV)=∣p00⋯00000⋯0p000⋯p0⋮⋮⋮⋱⋮⋮0p0⋯00∣=(−1)(p−1)/2pp.\det(V)^2=\det(V^{T}V)= \begin{vmatrix} p & 0 & 0 & \cdots& 0 & 0\\ 0 & 0 & 0 & \cdots& 0 & p\\ 0 & 0 & 0 & \cdots& p & 0\\ \vdots& \vdots& \vdots& \ddots& \vdots& \vdots\\ 0 & p & 0 & \cdots& 0 & 0 \end{vmatrix} =(-1)^{(p-1)/2}p^p.

Remark 3. The formula for det⁡(V)\det(V) given in §3 shows that we have, in fact, computed the discriminant of Xp−1X^p-1 in Lemma 2.

Zolotarev’s lemma

On the other hand, being a Vandermonde matrix, the determinant of VV has the simple form of

det⁡(V)=∏i<j(ζj−ζi).\det(V)=\prod_{i<j}(\zeta^j-\zeta^i).

Note that, under the qq-th power map σ:ζ↦ζq\sigma:\zeta\mapsto\zeta^q, the determinant det⁡(V)\det(V) becomes

det⁡(σ(V))=∏i<j(ζqj−ζqi)=(−1)μdet⁡(V),\det(\sigma(V))=\prod_{i<j}(\zeta^{qj}-\zeta^{qi})=(-1)^\mu\det(V),

where μ\mu is the number of times qi(modp)>qj(modp)qi\pmod p>qj\pmod p, when taken as integers between $0andandp-1. This is exactly the number of inversions under the multiplication map τq:x↦qx\tau_q:x\mapsto qx of residue classes modulo pp. Therefore, we have

det⁡(σ(V))=sgn⁡(τq)det⁡(V),(1)\det(\sigma(V))=\operatorname{sgn}(\tau_q)\det(V), \tag*{(1)}

where sgn⁡(⋅)\operatorname{sgn}(\cdot) is the signature of the permutation. Conveniently, this permutation is related to the Legendre symbol through Zolotarev’s lemma, given below.

Lemma 4 (Zolotarev’s lemma). Let pp be an odd prime. If a∈(Z/pZ)∗a\in(\mathbb{Z}/p\mathbb{Z})^*, then

(ap)=sgn⁡(τa),\left(\frac{a}{p}\right)=\operatorname{sgn}(\tau_a),

where τa:x↦ax\tau_a:x\mapsto ax is the multiplication-by-aa map on (Z/pZ)∗(\mathbb{Z}/p\mathbb{Z})^*.

Proof. Let gg be a primitive root modulo pp. The map τg\tau_g is a cycle of length p−1p-1, which is even. Hence, τg\tau_g is an odd permutation, and sgn⁡(τg)=−1\operatorname{sgn}(\tau_g)=-1. Moreover, since gg is not a square modulo pp, we have

(gp)=−1.\left(\frac{g}{p}\right)=-1.

For a=gia=g^i, the multiplicativity of both the Legendre symbol and the signature of a permutation implies that

(ap)=(gip)=(gp)i=sgn⁡(τg)i=sgn⁡(τa).\left(\frac{a}{p}\right)=\left(\frac{g^i}{p}\right)=\left(\frac{g}{p}\right)^i=\operatorname{sgn}(\tau_g)^i=\operatorname{sgn}(\tau_a).

Law of quadratic reciprocity

Finally, we are ready to prove the law of quadratic reciprocity.

Proof of Theorem 1. Observe that det⁡(V),det⁡(σ(V))∈Z[ζ]\det(V), \det(\sigma(V)) \in\mathbb{Z}[\zeta]. Working modulo qZ[ζ]q\mathbb{Z}[\zeta] in the ring Z[ζ]\mathbb{Z}[\zeta], the map σ\sigma preserves addition and multiplication. Thus, det⁡(σ(V))≡det⁡(V)q(modqZ[ζ])\det(\sigma(V)) \equiv\det(V)^q \pmod{q\mathbb{Z}[\zeta]}. By Equation (1) and Lemma 4, we can write this as

(qp)det⁡(V)≡det⁡(V)q(modqZ[ζ]).\left(\frac{q}{p}\right)\det(V) \equiv\det(V)^q \pmod{q\mathbb{Z}[\zeta]}.

Multiplying both sides by det⁡(V)\det(V) and using Lemma 2 yields

(qp)(−1)(p−1)/2pp≡det⁡(V)q−1(−1)(p−1)/2pp(modqZ[ζ]).\left(\frac{q}{p}\right)(-1)^{(p-1)/2}p^p \equiv\det(V)^{q-1}(-1)^{(p-1)/2}p^p \pmod{q\mathbb{Z}[\zeta]}.

This simplifies to

(qp)≡det⁡(V)q−1(modqZ[ζ]).(2)\left(\frac{q}{p}\right) \equiv\det(V)^{q-1} \pmod{q\mathbb{Z}[\zeta]}. \tag*{(2)}

On the other hand, since det⁡(V)q−1=(det⁡(V)2)(q−1)/2\det(V)^{q-1}=(\det(V)^2)^{(q-1)/2}, an application of Lemma 2 and Euler’s criterion gives

det⁡(V)q−1≡(−1)(p−1)(q−1)/4pq(q−1)/2≡(−1)(p−1)(q−1)/4(pq)(modqZ[ζ]).\det(V)^{q-1} \equiv(-1)^{(p-1)(q-1)/4}p^{q(q-1)/2} \equiv(-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right) \pmod{q\mathbb{Z}[\zeta]}.

As pp is odd, this simplifies to

det⁡(V)q−1≡(−1)(p−1)(q−1)/4(pq)(modqZ[ζ]).(3)\det(V)^{q-1} \equiv(-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right) \pmod{q\mathbb{Z}[\zeta]}. \tag*{(3)}

It follows from Equations (2) and (3) that

(qp)=(−1)(p−1)(q−1)/4(pq)(modqZ[ζ]).\left(\frac{q}{p}\right) = (-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right) \pmod{q\mathbb{Z}[\zeta]}.

Both sides of this congruence are in Z\mathbb{Z}, and we know that Z∩qZ[ζ]=qZ\mathbb{Z} \cap q\mathbb{Z}[\zeta] = q\mathbb{Z} (see below for details), so the congruence also holds modulo qq, i.e.,

(qp)≡(−1)(p−1)(q−1)/4(pq)(modq).\left(\frac{q}{p}\right) \equiv(-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right) \pmod{q}.

Since both sides are ±1\pm1 and q>2q>2, the equivalence is in fact an equality, and we get

(qp)=(−1)(p−1)(q−1)/4(pq),\left(\frac{q}{p}\right) = (-1)^{(p-1)(q-1)/4}\left(\frac{p}{q}\right),

as desired.

It remains to justify the fact that Z∩qZ[ζ]=qZ\mathbb{Z} \cap q\mathbb{Z}[\zeta] = q\mathbb{Z}. Since xp−1+xp−2+…+x+1x^{p-1}+x^{p-2}+\ldots+x+1 is irreducible over Z\mathbb{Z} and ζ\zeta is a root of this polynomial, we see that every element in Z[ζ]\mathbb{Z}[\zeta] can be written uniquely as a0+a1ζ+…+ap−2ζp−2a_0+a_1\zeta+\ldots+a_{p-2}\zeta^{p-2}, where a0,a1,…,ap−2∈Za_0,a_1,\ldots,a_{p-2}\in\mathbb{Z}. It follows from this that Z∩qZ[ζ]=qZ\mathbb{Z}\cap q\mathbb{Z}[\zeta] = q\mathbb{Z}. □\square

Similar proofs

The matrix VV has been the starting point in several other proofs of the law of quadratic reciprocity, for example, by Jean Delsarte [2], Frans Keune [4], and Kaoru Motose [5]. Interestingly, Motose uses a modified matrix, which makes his computation somewhat longer. Despite this difference, our method closely resembles Motose’s in that it is carried out over the complex numbers. In contrast, Delsarte and Keune work within a finite field. Both approaches are ultimately equivalent.

A key distinction in our proof is the realization that the change of sign of det⁡(V)\det(V) under σ\sigma is already captured by Zolotarev’s lemma (Lemma 4). The other papers follow the same reasoning as in the proof of Zolotarev’s lemma above, but without referencing it. Nevertheless, all the aforementioned papers serve as valuable supplements to ours.

Additionally, we have conducted a quick survey of proofs based on Zolotarev’s lemma. To our knowledge, these proofs rely on a combinatorial argument, none of which involve the matrix VV. Thus, we present our proof as a bridge that connects both approaches.

References

  1. [1]Baumgart O. The quadratic reciprocity law: a collection of classical proofs. Lemmermeyer F, translator; editor. 2nd ed. Cham: Birkhäuser/Springer, 2015.DOI
  2. [2]Delsarte J. Une démonstration de la loi de réciprocité quadratique. Œuvres de Jean Delsarte 2 (1950), 847–850.
  3. [3]Zolotarev G. Nouvelle démonstration de la loi de réciprocité de Legendre. Nouv. Ann. Math. 11 (1872), 354–362.
  4. [4]Keune F. Quadratic reciprocity and finite fields. Nieuw. Arch. Wisk. 9 (1991), 263–266.
  5. [5]Motose K. On Gauss sums and Vandermonde matrices. Bull. Fac. Sci. Technol. Hirosaki Univ. 6 (2003), 19–23.

Paper details

vlnc:W_78xq8ryp
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 6

downloads · 2

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents