In
number theory
Number theory (or arithmetic or higher arithmetic in older usage) is a branch of pure mathematics devoted primarily to the study of the integers and integer-valued functions. German mathematician Carl Friedrich Gauss (1777–1855) said, "Math ...
, the law of
quadratic reciprocity
In number theory, the law of quadratic reciprocity is a theorem about modular arithmetic that gives conditions for the solvability of quadratic equations modulo prime numbers. Due to its subtlety, it has many formulations, but the most standard s ...
, like the
Pythagorean theorem
In mathematics, the Pythagorean theorem or Pythagoras' theorem is a fundamental relation in Euclidean geometry between the three sides of a right triangle. It states that the area of the square whose side is the hypotenuse (the side opposit ...
, has lent itself to an unusually large number of
proofs. Several hundred proofs of the law of quadratic reciprocity have been published.
Proof synopsis
Of the elementary combinatorial proofs, there are two which apply types of
double counting. One by
Gotthold Eisenstein
Ferdinand Gotthold Max Eisenstein (16 April 1823 – 11 October 1852) was a German mathematician. He specialized in number theory and analysis, and proved several results that eluded even Gauss. Like Galois and Abel before him, Eisenstein died ...
counts
lattice point
In geometry and group theory, a lattice in the real coordinate space \mathbb^n is an infinite set of points in this space with the properties that coordinate wise addition or subtraction of two points in the lattice produces another lattice po ...
s. Another applies
Zolotarev's lemma to
, expressed by the
Chinese remainder theorem
In mathematics, the Chinese remainder theorem states that if one knows the remainders of the Euclidean division of an integer ''n'' by several integers, then one can determine uniquely the remainder of the division of ''n'' by the product of the ...
as
and calculates the
signature of a permutation.
The shortest known proof also uses a simplified version of double counting, namely double counting modulo a fixed prime.
Eisenstein's proof
Eisenstein's proof of quadratic reciprocity is a simplification of Gauss's third proof. It is more geometrically intuitive and requires less technical manipulation.
The point of departure is "Eisenstein's lemma", which states that for distinct odd primes ''p'', ''q'',
:
where
denotes the
floor function
In mathematics and computer science, the floor function is the function that takes as input a real number , and gives as output the greatest integer less than or equal to , denoted or . Similarly, the ceiling function maps to the least ...
(the largest integer less than or equal to ''x''), and where the sum is taken over the ''even'' integers ''u'' = 2, 4, 6, ..., ''p''−1. For example,
:
This result is very similar to
Gauss's lemma, and can be proved in a similar fashion (proof given
below
Below may refer to:
*Earth
* Ground (disambiguation)
* Soil
* Floor
* Bottom (disambiguation)
* Less than
*Temperatures below freezing
* Hell or underworld
People with the surname
* Ernst von Below (1863–1955), German World War I general
* Fr ...
).
Using this representation of (''q''/''p''), the main argument is quite elegant. The sum
counts the number of lattice points with even ''x''-coordinate in the interior of the triangle ABC in the following diagram:
Because each column has an even number of points (namely ''q''−1 points), the number of such lattice points in the region BCYX is the same ''modulo 2'' as the number of such points in the region CZY:

Then by flipping the diagram in both axes, we see that the number of points with even ''x''-coordinate inside CZY is the same as the number of points inside AXY having ''odd'' ''x''-coordinates. This can be justified mathematically by noting that
.

The conclusion is that
:
where μ is the ''total'' number of lattice points in the interior of AXY.
Switching ''p'' and ''q'', the same argument shows that
:
where ν is the number of lattice points in the interior of WYA. Since there are no lattice points on the line AY itself (because ''p'' and ''q'' are
relatively prime
In mathematics, two integers and are coprime, relatively prime or mutually prime if the only positive integer that is a divisor of both of them is 1. Consequently, any prime number that divides does not divide , and vice versa. This is equival ...
), and since the total number of points in the rectangle WYXA is
:
we obtain
:
Proof of Eisenstein's lemma
For an even integer ''u'' in the range 1 ≤ ''u'' ≤ ''p''−1, denote by ''r''(''u'') the least positive residue of ''qu'' modulo ''p''. (For example, for ''p'' = 11, ''q'' = 7, we allow ''u'' = 2, 4, 6, 8, 10, and the corresponding values of ''r''(''u'') are 3, 6, 9, 1, 4.) The numbers (−1)
''r''(''u'')''r''(''u''), again treated as least positive residues modulo ''p'', are all ''even'' (in our running example, they are 8, 6, 2, 10, 4.) Furthermore, they are all distinct, because if (−1)
''r''(''u'')''r''(''u'') ≡ (−1)
''r''(''t'')''r''(''t'') (mod ''p''), then we may divide out by ''q'' to obtain ''u'' ≡ ±''t'' (mod ''p''). This forces ''u'' ≡ ''t'' (mod ''p''), because both ''u'' and ''t'' are ''even'', whereas ''p'' is odd. Since there exactly (''p''−1)/2 of them and they are distinct, they must be simply a rearrangement of the even integers 2, 4, ..., ''p''−1. Multiplying them together, we obtain
:
Dividing out successively by 2, 4, ..., ''p''−1 on both sides (which is permissible since none of them are divisible by ''p'') and rearranging, we have
:
On the other hand, by the definition of ''r''(''u'') and the floor function,
:
and since ''p'' is odd and ''u'' is even,
:
implies that
and ''r''(''u'') are congruent modulo 2.
Finally this shows that
:
We are finished because the left hand side is just an
alternative expression for (''q''/''p'').
Addendum to the lemma
This lemma essentially states that the number of least residues after doubling that are odd gives the value of (''q''/''p''). This follows easily from Gauss' lemma.
Also,
implies that
and ''r''(''u'') are either congruent modulo 2, or incongruent, depending solely on the parity of ''u''.
This means that the residues
are (in)congruent to
, and so
where
.
For example, using the previous example of
, the residues are
and the floor function gives
. The pattern of congruence is
.
Proof using quadratic Gauss sums
The proof of Quadratic Reciprocity using Gauss sums is one of the more common and classic proofs. These proofs work by comparing computations of single values in two different ways, one using
Euler's Criterion In number theory, Euler's criterion is a formula for determining whether an integer is a quadratic residue modulo a prime. Precisely,
Let ''p'' be an odd prime and ''a'' be an integer coprime to ''p''. Then
:
a^ \equiv
\begin
\;\;\,1\pmod& \tex ...
and the other using the
Binomial theorem
In elementary algebra, the binomial theorem (or binomial expansion) describes the algebraic expansion of powers of a binomial. According to the theorem, it is possible to expand the polynomial into a sum involving terms of the form , where the ...
. As an example of how Euler's criterion is used, we can use it to give a quick proof of the first supplemental case of determining
for an odd prime ''p'': By Euler's criterion
, but since both sides of the equivalence are ±1 and ''p'' is odd, we can deduce that
.
The second supplemental case
Let
, a primitive 8th
root of unity
In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important i ...
and set
. Since
and
we see that
. Because
is an algebraic integer, if ''p'' is an odd prime it makes sense to talk about it modulo ''p''. (Formally we are considering the commutative ring formed by factoring the algebraic integers
with the ideal generated by ''p''. Because
is not an algebraic integer, 1, 2, ..., ''p'' are distinct elements of
.) Using Euler's criterion, it follows that
We can then say that
But we can also compute
using the binomial theorem. Because the cross terms in the binomial expansion all contain factors of ''p'', we find that
. We can evaluate this more exactly by breaking this up into two cases
*
.
*
.
These are the only options for a prime modulo 8 and both of these cases can be computed using the exponential form
. We can write this succinctly for all odd primes ''p'' as
Combining these two expressions for
and multiplying through by
we find that
. Since both
and
are ±1 and 2 is invertible modulo ''p'', we can conclude that
The general case
The idea for the general proof follows the above supplemental case: Find an algebraic integer that somehow encodes the Legendre symbols for ''p'', then find a relationship between Legendre symbols by computing the ''q''th power of this algebraic integer modulo ''q'' in two different ways, one using Euler's criterion the other using the binomial theorem.
Let
where
is a primitive ''p''th root of unity. This is a
quadratic Gauss sum. A fundamental property of these Gauss sums is that
where
. To put this in context of the next proof, the individual elements of the Gauss sum are in the cyclotomic field
but the above formula shows that the sum itself is a generator of the unique quadratic field contained in ''L''. Again, since the quadratic Gauss sum is an algebraic integer, we can use modular arithmetic with it. Using this fundamental formula and Euler's criterion we find that
Therefore
Using the binomial theorem, we also find that
, If we let ''a'' be a multiplicative inverse of
, then we can rewrite this sum as
using the substitution
, which doesn't affect the range of the sum. Since
, we can then write
Using these two expressions for
, and multiplying through by
gives
Since
is invertible modulo ''q'', and the Legendre symbols are either ±1, we can then conclude that
Proof using algebraic number theory
The proof presented here is by no means the simplest known; however, it is quite a deep one, in the sense that it motivates some of the ideas of
Artin reciprocity
Artin may refer to:
* Artin (name), a surname and given name, including a list of people with the name
** Artin, a variant of Harutyun
Harutyun ( hy, Հարություն and in Western Armenian Յարութիւն) also spelled Haroutioun, Harut ...
.
Cyclotomic field setup
Suppose that ''p'' is an odd prime. The action takes place inside the
cyclotomic field
In number theory, a cyclotomic field is a number field obtained by adjoining a complex root of unity to , the field of rational numbers.
Cyclotomic fields played a crucial role in the development of modern algebra and number theory because o ...
where ζ
p is a primitive ''p''
th root of unity
In mathematics, a root of unity, occasionally called a de Moivre number, is any complex number that yields 1 when raised to some positive integer power . Roots of unity are used in many branches of mathematics, and are especially important i ...
. The basic theory of cyclotomic fields informs us that there is a canonical isomorphism
:
which sends the automorphism σ
''a'' satisfying
to the element
In particular, this isomorphism is injective because the
multiplicative group
In mathematics and group theory, the term multiplicative group refers to one of the following concepts:
*the group under multiplication of the invertible elements of a field, ring, or other structure for which one of its operations is referre ...
of a field is a cyclic group:
.
Now consider the subgroup ''H'' of ''squares'' of elements of ''G''. Since ''G'' is cyclic, ''H'' has
index
Index (or its plural form indices) may refer to:
Arts, entertainment, and media Fictional entities
* Index (''A Certain Magical Index''), a character in the light novel series ''A Certain Magical Index''
* The Index, an item on a Halo megastru ...
2 in ''G'', so the subfield corresponding to ''H'' under the Galois correspondence must be a ''quadratic'' extension of Q. (In fact it is the ''unique'' quadratic extension of Q contained in ''L''.) The
Gaussian period
In mathematics, in the area of number theory, a Gaussian period is a certain kind of sum of roots of unity. The periods permit explicit calculations in cyclotomic fields connected with Galois theory and with harmonic analysis (discrete Fourier tra ...
theory determines which one; it turns out to be
, where
:
At this point we start to see a hint of quadratic reciprocity emerging from our framework. On one hand, the image of ''H'' in
consists precisely of the (nonzero) ''quadratic residues modulo p''. On the other hand, ''H'' is related to an attempt to take the ''square root of p'' (or possibly of −''p''). In other words, if now ''q'' is a prime (different from ''p''), we have shown that
:
The Frobenius automorphism
In the ring of integers