The Central Problem
The theory of quadratic residues asks a fundamental question:
Given distinct odd primes and , when does the congruence
have a solution?
Equivalently, when is
At first glance, the residue behavior of modulo and the residue behavior of modulo appear unrelated. The law of quadratic reciprocity reveals a remarkable symmetry between them.
This theorem is one of the deepest and most beautiful results in elementary number theory.
Statement of the Law
Theorem (Quadratic Reciprocity). Let and be distinct odd primes. Then
Equivalently,
$$ \left(\frac{p}{q}\right)
\left(\frac{q}{p}\right) $$
unless both and are congruent to
If both are congruent to , then
$$ \left(\frac{p}{q}\right)
-\left(\frac{q}{p}\right). $$
Thus the residue relationship between two primes is almost symmetric.
First Examples
Consider and .
Since
quadratic reciprocity predicts
$$ \left(\frac{3}{11}\right)
-\left(\frac{11}{3}\right). $$
Now
and is not a square modulo . Hence
$$ \left(\frac{11}{3}\right)
\left(\frac{2}{3}\right) =-1. $$
Therefore
Indeed,
So is a quadratic residue modulo .
A Symmetric Example
Now take
Since
quadratic reciprocity gives
$$ \left(\frac{13}{17}\right)
\left(\frac{17}{13}\right). $$
Reducing modulo ,
Since
we have
Therefore
Hence is a quadratic residue modulo .
Supplementary Laws
Quadratic reciprocity is accompanied by two supplementary laws describing the symbols for and .
First Supplementary Law
$$ \left(\frac{-1}{p}\right)
(-1)^{(p-1)/2}. $$
Thus:
So is a quadratic residue modulo exactly when
Second Supplementary Law
$$ \left(\frac{2}{p}\right)
(-1)^{(p^2-1)/8}. $$
Thus:
Together, these formulas allow efficient computation of Legendre symbols.
Computational Strategy
Quadratic reciprocity reduces complicated symbols to simpler ones.
Suppose we wish to compute
Since
we may reverse the symbol without changing sign:
$$ \left(\frac{101}{383}\right)
\left(\frac{383}{101}\right). $$
Reducing modulo ,
Factor:
Thus
$$ \left(\frac{80}{101}\right)
\left(\frac{2}{101}\right)^4 \left(\frac{5}{101}\right). $$
Since the fourth power is ,
$$ \left(\frac{80}{101}\right)
\left(\frac{5}{101}\right). $$
Reciprocity and reduction continue until only small symbols remain.
This process resembles the Euclidean algorithm and makes quadratic residue computations practical even for large primes.
Gauss and the Theory of Congruences
Quadratic reciprocity was first conjectured by entity[“people”,“Leonhard Euler”,“Swiss mathematician”] and entity[“people”,“Adrien-Marie Legendre”,“French mathematician”], but the first rigorous proof was given by entity[“people”,“Carl Friedrich Gauss”,“German mathematician”].
Gauss called it the “fundamental theorem” of arithmetic modulo primes.
He later discovered several different proofs. Over time, mathematicians found hundreds of proofs using methods from:
- elementary number theory,
- algebra,
- finite fields,
- Fourier analysis,
- geometry,
- topology,
- algebraic number theory.
The theorem became a gateway to modern reciprocity laws.
Structural Meaning
Quadratic reciprocity reveals that quadratic residue behavior is not random. The solvability of
is closely connected to the solvability of
This hidden symmetry reflects deeper algebraic structures inside number fields.
Modern reciprocity laws generalize quadratic reciprocity to higher powers and more general fields. These generalizations eventually lead to class field theory and the Langlands program.
Thus quadratic reciprocity stands at the beginning of one of the main structural themes of modern number theory.