1.4.3. The Quadratic Reciprocity Law
Our aim is to prove Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5), which, given a pair of distinct odd primes , relates the Legendre symbols and by the beautifully simple formula
Proposition 1.4.3.1 (Eisenstein’s Lemma).
Let be an odd prime and be odd and such that . Then
Proof.
By Gauß’ Lemma (Theorem 1.4.2.10), we have
where is the number of elements in the set
whose remainder upon division by is larger than . Therefore, it is enough to prove that and have the same parity, that is, .
For , using the Division with Remainder Theorem (Theorem 1.1.1.8), write
Then
Moreover, since the integer is not divisible by . We now rely on part of the proof of Gauß’ Lemma (Theorem 1.4.2.10). Let be the remainders obtained by dividing the elements in by , and recall that and . Thus, up to reordering, the integers are precisely the integers . Hence, adding the equations (1.4.3.2) yields
Theorem 1.4.3.5 (Gauß’ Quadratic Reciprocity Law).
Let be distinct odd primes. Then
Eisenstein’s Proof.
By Eisenstein’s Lemma (Proposition 1.4.3.1),
where
Thus, it is enough to prove that
We turn the above equality into a neat counting problem.
Consider the rectangle in the Euclidean plane with vertices , , and :
Figure composed with AI assistance.
Since the primes and are odd, we have
Hence,
Thus, we need to prove that .
The diagonal from the point to the point divides into two triangles and as indicated in the figure. We claim that the diagonal contains no points from . Indeed, the diagonal is part of the line with the equation , so a point with satisfies
Since the primes and are distinct, Euclid’s Lemma (Theorem 1.1.4.2) implies that and also that . But this is impossible since and . We conclude that equals the number of points in that lie in the interior of either of the triangles and .
Since the roles of the primes and are symmetric, the same is true for the triangles and . We focus our attention on and prove that the number of points in that lie in the interior of equals
Indeed, for each integer , the vertical line meets the diagonal at the point . Hence, lies on the vertical line if and only if and satisfies
Here, we use that is not an integer: we have since , and since , so that by Euclid’s Lemma (Theorem 1.1.4.2). We obtain the result by taking the sum over .
Similarly, the number of points in that lie in the interior of equals
Therefore,
This finishes the proof. ∎
We now deduce a number of corollaries from Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5). The formulas for and (Corollary 1.4.2.6 and Theorem 1.4.2.12) are often called the supplements to Gauß’ Quadratic Reciprocity Law.
Corollary 1.4.3.6.
Let be distinct odd primes. Then
Proof.
The integer is even if and only if for some , and it is odd if for some . The claim now follows from Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5). ∎
Corollary 1.4.3.7.
Let be distinct odd primes. Then
Proof.
Since , the claim follows by multiplying the equalities in Corollary 1.4.3.6 by . ∎
Theorem 1.4.3.8.
Let be an odd prime. Then
Proof.
Taking in Corollary 1.4.3.7, we obtain
Since is prime, we have and
Combining the above, we have
precisely in the following cases:
-
•
and .
-
•
and .
We now apply the Chinese Remainder Theorem (Theorem 1.2.7.1): since , each of the systems of linear congruences
and
has a unique solution modulo . By direct inspection, is a solution of the first system while is a solution of the second system. Since , we conclude that the above conditions hold if and only if . Finally, if the latter congruence does not hold, so that , then
Since , to finish the proof it is enough to show that
Indeed, if , then , in contradiction to the fact that the prime is different from . For the same reason, if , then , which is false. This finishes the proof. ∎
Example 1.4.3.9.
If or , we have . By Theorem 1.4.3.8,
in agreement with Example 1.4.1.11 (for ) and Example 1.4.2.3 (for ).
Remark 1.4.3.10.
Not covered in the lecture The results in Sections 1.4.2 and 1.4.3 provide an algorithm to evaluate arbitrary Legendre symbols. Let be an odd prime and with . Using the Fundamental Theorem of Arithmetic (Theorem 1.1.4.5), write
for integers , pairwise-distinct odd primes (since we have ) and positive integers . Here, if and only if is odd, and the sign appears if and only if . We proceed as follows:
-
•
By Proposition 1.4.2.4(4),
-
•
The Legendre symbols and are known (Proposition 1.4.2.4(5) and Theorem 1.4.2.12).
-
•
It remains to compute the Legendre symbols whenever is odd, as otherwise .
-
•
We are reduced to computing for distinct odd primes .
-
–
If , by the Division with Remainder Theorem (Theorem 1.1.1.8) and Proposition 1.4.2.4(1), dividing by yields a remainder that satisfies
The remainder admits a factorisation of the same form as that of the original integer , and we may continue the process as in the first bullet point.
-
–
If , use Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5) (or one of its corollaries) to replace by , where the sign is known. Then apply the previous point to .
-
–
-
•
In the above algorithm, each application of Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5) decreases the prime denominator. Therefore, the algorithm terminates: one necessarily arrives at Legendre symbols with numerator or , whose values are given by Proposition 1.4.2.4(5) and Theorem 1.4.2.12.
Example 1.4.3.11.
Not covered in the lectureLet and . We compute using the method described in Remark 1.4.3.10. We have
We have seen in Example 1.4.2.3 that
Hence,
Using Gauß’ Quadratic Reciprocity Law (Theorem 1.4.3.5), we obtain
so that
Next, we observe that and therefore
Here, the penultimate equality uses Theorem 1.4.2.12 and Theorem 1.4.3.8. Combining the above, we obtain the sought-after value
Recall Proposition 1.3.2.10. The following result illustrates the utility of Theorem 1.4.3.8.
Proposition 1.4.3.12.
Not covered in the lectureLet be an integer and suppose that is prime. Then the integer is a primitive root of .
Proof.
We claim that . Indeed, and
Inductively, for all integers . Then, since for some ,
Therefore, . In particular, and . By Theorem 1.4.3.8,
Recall from Corollary 1.3.1.6 that divides
Since every positive divisor of is a power of , each proper positive divisor of must divide
Suppose that
so that divides . By Theorem 1.3.1.5,
On the other hand, Euler’s Criterion (Corollary 1.4.1.10) yields the congruence
Hence,
which is impossible since . This shows that and, by definition, the integer is a primitive root of . ∎