Unit 7: Non-Linear Diophantine Equations & Fermat's Descent
Higher-degree Diophantine equations and quadratic reciprocity: algebraic classification of all primitive Pythagorean triples $(m^2 - n^2, 2mn, m^2 + n^2)$, Fermat's Method of Infinite Descent, impossibility of $x^4 + y^4 = z^2$ and Fermat's Last Theorem for $n = 4$, non-existence of right triangles with square area, quadratic residues and Euler's Criterion, and Gauss's Law of Quadratic Reciprocity.
§7.1 Primitive Pythagorean Triples & Geometric Characterization
1. Pythagorean Triples
Definition 7.1 (Pythagorean Triple): A Pythagorean triple is a triplet of positive integers $(x, y, z) \in \mathbb{N}^3$ satisfying the Pythagorean equation:
The triple is called primitive if $\gcd(x, y, z) = 1$.
Lemma 7.1 (Parity in Primitive Triples): In any primitive Pythagorean triple $(x, y, z)$:
- Exactly one of $x, y$ is even and the other is odd.
- The hypotenuse $z$ is always odd.
Proof: If both $x$ and $y$ were even, then $4 \mid (x^2 + y^2) = z^2 \implies 2 \mid z$, contradicting $\gcd(x, y, z) = 1$. If both $x$ and $y$ were odd, then $x \equiv 1 \text{ or } 3 \pmod 4 \implies x^2 \equiv 1 \pmod 4$, and $y^2 \equiv 1 \pmod 4$. Thus $z^2 = x^2 + y^2 \equiv 1 + 1 = 2 \pmod 4$. But a square of an integer can only be $0$ or $1$ modulo $4$, never $2$! Thus, one of $x, y$ is even and the other is odd, which forces $z^2$ (and hence $z$) to be odd. $\blacksquare$
2. Complete Classification of Primitive Pythagorean Triples
Theorem 7.1 (Euclid's Formula for Pythagorean Triples): Without loss of generality, let $y$ be the even member. Then $(x, y, z)$ is a primitive Pythagorean triple if and only if there exist coprime positive integers $m > n > 0$ of opposite parity ($\gcd(m, n) = 1$ and $m \not\equiv n \pmod 2$) such that:
Proof: Verification ($\impliedby$): $x^2 + y^2 = (m^2 - n^2)^2 + (2mn)^2 = m^4 - 2m^2 n^2 + n^4 + 4m^2 n^2 = m^4 + 2m^2 n^2 + n^4 = (m^2 + n^2)^2 = z^2$. Coprimality follows because any prime dividing both $z$ and $x$ must divide $z + x = 2m^2$ and $z - x = 2n^2$, forcing $p \mid 2$ (ruled out since $z$ is odd) or $p \mid \gcd(m, n) = 1$.
Derivation ($\implies$): Rearrange $x^2 + y^2 = z^2$ with $y$ even:
Since $x$ and $z$ are both odd, $\frac{z - x}{2}$ and $\frac{z + x}{2}$ are integers. Let $d = \gcd\left(\frac{z - x}{2}, \frac{z + x}{2}\right)$. Then $d \mid \left(\frac{z + x}{2} + \frac{z - x}{2}\right) = z$, and $d \mid \left(\frac{z + x}{2} - \frac{z - x}{2}\right) = x$. Since $\gcd(x, z) = 1$, we have $d = 1$. Two coprime positive integers whose product is a perfect square must each be perfect squares! Therefore:
for some positive integers $m > n > 0$ with $\gcd(m, n) = 1$. Adding and subtracting these two equations gives:
And:
§7.2 Fermat's Method of Infinite Descent & Impossibility of x^4 + y^4 = z^2
1. The Method of Infinite Descent
Pierre de Fermat invented the Method of Infinite Descent (descente infinie), a proof-by-contradiction technique based on the Well-Ordering Principle of $\mathbb{N}$:
- Assume a Diophantine equation possesses a non-trivial solution in positive integers.
- Select a solution that minimizes a specific positive invariant (such as $z > 0$).
- Use the algebraic properties of the equation to construct a strictly smaller positive integer solution ($0 < z' < z$).
- The existence of an infinite descending sequence of positive integers $z > z' > z'' > \dots > 0$ contradicts the Well-Ordering Principle!
- Conclude that no positive integer solutions exist.
2. Impossibility of $x^4 + y^4 = z^2$
Theorem 7.2 (Fermat's Theorem on Sums of Fourth Powers): The Diophantine equation:
has no solutions in non-zero integers $x, y, z \in \mathbb{Z} \setminus \{0\}$.
Proof: Suppose for contradiction that non-zero solutions exist. We may assume $x, y, z > 0$ and $\gcd(x, y) = 1$ (dividing out any common factors). By the Well-Ordering Principle, choose a solution with the smallest possible positive value of $z$. Write the equation as:
This is a primitive Pythagorean triple $(x^2, y^2, z)$. By Theorem 7.1, exactly one of $x^2, y^2$ is even; without loss of generality, let $x^2$ be odd and $y^2$ be even. Then there exist coprime integers $m > n > 0$ of opposite parity such that:
Rewrite $x^2 = m^2 - n^2$ as:
Since $\gcd(x, y) = 1$ and $y^2 = 2mn$, we have $\gcd(m, n) = 1$, so $(x, n, m)$ is also a primitive Pythagorean triple! Since $x$ is odd, $n$ must be even. Applying Euclid's formula (Theorem 7.1) a second time:
where $\gcd(a, b) = 1$ and $a, b > 0$. Now examine $y^2 = 2 m n = 2(a^2 + b^2)(2 a b) = 4 a b (a^2 + b^2)$:
Since $\gcd(a, b) = 1$, the three integers $a, b,$ and $a^2 + b^2$ are pairwise coprime! Since their product is a square $(y/2)^2$, each factor must individually be a square:
for some positive integers $u, v, w > 0$. Substituting $a = u^2$ and $b = v^2$ into $a^2 + b^2 = w^2$:
Thus, $(u, v, w)$ is another positive integer solution to the original equation! We now compare $w$ with $z$:
Thus $0 < w < z$, contradicting the minimality of $z$! Therefore, no non-zero integer solutions exist. $\blacksquare$
§7.3 Fermat's Last Theorem for n = 4 & Congruent Number Problem
1. Fermat's Last Theorem for $n = 4$
Corollary 7.1 (Fermat's Last Theorem for $n = 4$): The equation:
has no solutions in non-zero integers $x, y, z$.
Proof: If $x^4 + y^4 = z^4$ had a solution $(x, y, z)$, then setting $Z = z^2$ would yield:
By Theorem 7.2, $x^4 + y^4 = Z^2$ has no non-zero integer solutions. Thus $x^4 + y^4 = z^4$ has no non-zero integer solutions. $\blacksquare$
2. Non-Existence of Right Triangles with Square Area
Fermat noted in the margin of Diophantus's Arithmetica that the area of a right triangle with integer sides cannot be a square.
Theorem 7.3 (No Right Triangle with Square Area): There do not exist positive integers $a, b, c, w$ such that:
Proof: Suppose such a triangle exists. Adding and subtracting $4 w^2 = 2 a b$ from $c^2 = a^2 + b^2$:
Multiplying these two equations:
Setting $X = a^2 - b^2$, $Y = 2 w$, and $Z = c$:
This leads directly to a solution of $u^4 + v^4 = t^2$, which was proved impossible in Theorem 7.2! $\blacksquare$
§7.4 Quadratic Residues, The Legendre Symbol & Euler's Criterion
1. Quadratic Residues
Definition 7.2 (Quadratic Residue and Non-Residue): Let $p$ be an odd prime and $\gcd(a, p) = 1$. $a$ is called a quadratic residue modulo $p$ if the congruence:
has an integer solution. If no solution exists, $a$ is called a quadratic non-residue modulo $p$.
Among the reduced residues $\{1, 2, \dots, p - 1\}$, exactly half ($\frac{p-1}{2}$) are quadratic residues, and the other half ($\frac{p-1}{2}$) are quadratic non-residues.
2. The Legendre Symbol
Definition 7.3 (The Legendre Symbol): For an odd prime $p$ and $a \in \mathbb{Z}$:
3. Euler's Criterion
Theorem 7.4 (Euler's Criterion, 1748): For any odd prime $p$ and integer $a$:
Proof: If $p \mid a$, then $0 \equiv 0 \pmod p$. Now assume $p \nmid a$.
- Case 1: $a$ is a quadratic residue.
Then $x^2 \equiv a \pmod p$ for some $x$. By Fermat's Little Theorem (Theorem 4.1):
- Case 2: $a$ is a quadratic non-residue.
For each $u \in \{1, 2, \dots, p - 1\}$, there is a unique $v \in \{1, 2, \dots, p - 1\}$ such that $u v \equiv a \pmod p$. Since $a$ is a non-residue, $u \ne v$ always. Thus the $p - 1$ integers pair up into $\frac{p-1}{2}$ pairs $\{u_i, v_i\}$ each having product $a$. Multiplying them all together:
By Wilson's Theorem (Theorem 4.6), $(p - 1)! \equiv -1 \pmod p$. Thus:
Corollary 7.2 (First Supplement to Quadratic Reciprocity): Setting $a = -1$ in Euler's Criterion:
Thus $-1$ is a quadratic residue modulo $p$ if and only if $p \equiv 1 \pmod 4$!
§7.5 Gauss's Lemma & The Law of Quadratic Reciprocity
1. Gauss's Lemma
Theorem 7.5 (Gauss's Lemma, 1808): Let $p$ be an odd prime and $\gcd(a, p) = 1$. Consider the set of multiples:
Reduce each element to its least positive residue modulo $p$. Let $\nu$ be the number of these residues that exceed $p/2$. Then:
2. The Second Supplement: When is 2 a Quadratic Residue?
Theorem 7.6 (Second Supplement to Quadratic Reciprocity): For any odd prime $p$:
3. The Law of Quadratic Reciprocity
Gauss called this theorem the Theorema Aureum ("Golden Theorem"), publishing eight distinct proofs over his lifetime.
Theorem 7.7 (The Law of Quadratic Reciprocity - Gauss, 1796): Let $p$ and $q$ be distinct odd prime numbers. Then:
Equivalently:
Eisenstein's geometric proof counts integer lattice points inside the rectangle $\left[1, \frac{p-1}{2}\right] \times \left[1, \frac{q-1}{2}\right]$, establishing the identity through triangular partition.
Step-by-step rigorous derivations with unskipped proofs, categorized into Foundational Concepts, Advanced Structural Analysis, and Honors / Proof Challenge tiers.
Compute the Legendre symbol:
given that $383$ is a prime number.
- Factor the numerator $219$ into prime factors.
- Apply the multiplicativity of the Legendre symbol.
- Use the Law of Quadratic Reciprocity and its supplements to evaluate the symbol completely.
1. Factorization of the Numerator
Factor $219$:
Both $3$ and $73$ are prime numbers. By the multiplicativity of the Legendre symbol:
2. Evaluating $\left(\frac{3}{383}\right)$
Check the primes modulo $4$:
Since both $3 \equiv 3 \pmod 4$ and $383 \equiv 3 \pmod 4$, the Law of Quadratic Reciprocity introduces a negative sign:
Reduce $383$ modulo $3$:
Thus:
Therefore:
3. Evaluating $\left(\frac{73}{383}\right)$
Check $73$ modulo $4$:
Since $73 \equiv 1 \pmod 4$, Quadratic Reciprocity preserves the sign:
Reduce $383$ modulo $73$:
Thus:
Now evaluate $\left(\frac{2}{73}\right)$ using the Second Supplement: Check $73$ modulo $8$:
By Theorem 7.6:
Therefore:
4. Final Product
Multiplying the two symbols:
Thus, $219$ is a quadratic residue modulo $383$!
Prove that there does not exist any right-angled triangle with integer side lengths whose area is a perfect square.
- Formulate the problem as a system of Diophantine equations: $a^2 + b^2 = c^2$ and $\frac{1}{2}ab = w^2$.
- Reduce the problem to primitive Pythagorean triples where $a = m^2 - n^2, b = 2mn, c = m^2 + n^2$.
- Deduce that $mn(m^2 - n^2) = w^2$ and use coprimality to derive that $m, n, m-n, m+n$ are all perfect squares.
- Conclude by deriving a strictly smaller solution to $x^4 - y^4 = z^2$ via infinite descent.
1. Mathematical Formulation
Let the right triangle have integer legs $a, b$ and hypotenuse $c$, with area $\frac{1}{2} a b = w^2$. Dividing out common factors, we may assume $\gcd(a, b, c) = 1$, so $(a, b, c)$ is a primitive Pythagorean triple with minimal hypotenuse $c > 0$. $\blacksquare$
2. Parametric Form
By Theorem 7.1, there exist coprime integers $m > n > 0$ of opposite parity such that:
The area condition is:
3. Pairwise Coprimality of Factors
We examine the four factors $m, n, m - n, m + n$:
- $\gcd(m, n) = 1$.
- Any prime dividing $m$ and $m - n$ must divide $n$, contradiction.
- Any prime dividing $n$ and $m - n$ must divide $m$, contradiction.
- Any prime dividing $m - n$ and $m + n$ must divide their sum $2m$ and difference $2n$. Since $m, n$ have opposite parity, $m - n$ and $m + n$ are both odd, so $p \ne 2$. Thus $p \mid m$ and $p \mid n$, contradiction.
Therefore, the four factors $m, n, m - n, m + n$ are pairwise relatively prime! Since their product is a perfect square $w^2$, each factor must individually be a square:
for some positive integers $u, v, r, s > 0$. $\blacksquare$
4. Descent Contradiction
Notice that:
Adding and subtracting:
This forms a new right triangle with legs $X = \frac{r + s}{2}, Y = \frac{r - s}{2}$ and hypotenuse $u$. Its area is:
Now compare hypotenuses:
Thus, we have constructed a strictly smaller right triangle $(X, Y, u)$ with integer sides and square area! This generates an infinite descending sequence of positive integer hypotenuses, which contradicts the Well-Ordering Principle of $\mathbb{N}$! Hence, no such right triangle can exist. $\blacksquare$
Provide a complete, unskipped line-by-line proof that the Diophantine equation:
has no solutions in non-zero integers $x, y, z$.
- Set up the minimal counterexample $(x, y, z)$ with $z > 0$ minimal.
- Apply the Pythagorean parametrization to $(x^2, y^2, z)$ and show $y^2 = 2mn$.
- Apply the parametrization a second time to $x^2 + n^2 = m^2$.
- Derive the existence of a new non-trivial solution $(u, v, w)$ with $w < z$, establishing Fermat's infinite descent contradiction.
1. Minimal Counterexample Setup
Suppose non-zero integer solutions exist. Without loss of generality, assume $x, y, z > 0$ and $\gcd(x, y) = 1$. By the Well-Ordering Principle, choose a solution $(x, y, z)$ such that $z$ is the strictly minimal positive integer among all solutions. $\blacksquare$
2. First Pythagorean Reduction
View the equation as:
Since $\gcd(x, y) = 1$, $(x^2, y^2, z)$ is a primitive Pythagorean triple. By Lemma 7.1, one of $x^2, y^2$ is even and the other odd. Without loss of generality, assume $x^2$ is odd and $y^2$ is even. By Theorem 7.1, there exist coprime integers $m > n > 0$ of opposite parity such that:
3. Second Pythagorean Reduction
Rewrite $x^2 = m^2 - n^2$ as:
Since $\gcd(m, n) = 1$, this is another primitive Pythagorean triple $(x, n, m)$. Since $x$ is odd, $n$ must be even, and $m$ is odd. Applying Theorem 7.1 again, there exist coprime integers $a > b > 0$ of opposite parity such that:
4. Factorization of $y^2$ and Synthesis of New Solution
Now substitute $m = a^2 + b^2$ and $n = 2ab$ into $y^2 = 2 m n$:
Dividing by $4$:
Since $\gcd(a, b) = 1$ and $a, b$ have opposite parity:
- $\gcd(a, a^2 + b^2) = \gcd(a, b^2) = 1$.
- $\gcd(b, a^2 + b^2) = \gcd(b, a^2) = 1$.
Thus, $a, b,$ and $a^2 + b^2$ are pairwise coprime positive integers whose product is a perfect square. By unique prime factorization, each factor must be a square:
for some positive integers $u, v, w > 0$. Substitute $a = u^2$ and $b = v^2$ into $a^2 + b^2 = w^2$:
Thus $(u, v, w)$ is a new non-zero integer solution to the original equation!
Now compare $w$ with $z$:
Thus:
This directly contradicts the assumption that $z$ was the minimal positive integer! Therefore, no non-zero integer solutions exist. $\blacksquare$