Math 2.0

Number theory Proof

Proof of Fermat's right triangle theorem by infinite descent

Builds on Pythagorean tripleClassification of Pythagorean triplesProof by infinite descentWell-ordering principleCoprime integersEuclid's lemmaP-adic valuationP-adic valuation of a productFundamental theorem of arithmeticPythagorean theorem

Proof

We argue by infinite descent: we take a solution with smallest xx and build a smaller one.

Lemma. If pairwise coprime positive integers u1,…,uru_1, \dots, u_r have a square product, then each uiu_i is a square.

  1. Let pp be a prime and νp\nu_p the p-adic valuation. By the valuation of a product, ∑iνp(ui)\sum_i \nu_p(u_i) is even. At most one uiu_i is divisible by pp, so each νp(ui)\nu_p(u_i) is even.
  2. By the fundamental theorem of arithmetic, each uiu_i is the square of ∏ppνp(ui)/2\prod_p p^{\nu_p(u_i)/2}.

The equation x4−y4=z2x^4 - y^4 = z^2 has no solution in positive integers.

  1. Suppose there are solutions. By the well-ordering principle, choose one with xx smallest.
  2. If a prime qq divides xx and yy, then q4∣z2q^4 \mid z^2. So 2νq(z)≥42\nu_q(z) \ge 4, and q2∣zq^2 \mid z. Then (x/q,y/q,z/q2)(x/q, y/q, z/q^2) is a solution with smaller xx. So gcd⁡(x,y)=1\gcd(x, y) = 1.
  3. Now (y2)2+z2=(x2)2(y^2)^2 + z^2 = (x^2)^2. A prime dividing y2y^2 and x2x^2 divides yy and xx by Euclid's lemma. So this Pythagorean triple is primitive.
  4. Case 1: yy odd. In a primitive triple not both legs are odd, since a sum of two odd squares is 22 modulo 44. As y2y^2 is odd, zz is even.
  5. So by the classification of Pythagorean triples with b=zb = z, there are coprime m>n≥1m > n \ge 1 with y2=m2−n2y^2 = m^2 - n^2, z=2mnz = 2mn and x2=m2+n2x^2 = m^2 + n^2.
  6. Then m4−n4=(m2−n2)(m2+n2)=(xy)2m^4 - n^4 = (m^2 - n^2)(m^2 + n^2) = (xy)^2. So (m,n,xy)(m, n, xy) is a solution in positive integers.
  7. But m2<m2+n2=x2m^2 < m^2 + n^2 = x^2, so m<xm < x. This contradicts the choice of xx.
  8. Case 2: yy even. Then zz is odd, since a primitive triple has not both legs even. So the classification with b=y2b = y^2 gives coprime m>n≥1m > n \ge 1, with m−nm - n odd, such that z=m2−n2z = m^2 - n^2, y2=2mny^2 = 2mn and x2=m2+n2x^2 = m^2 + n^2.
  9. Exactly one of m,nm, n is even. Call it ee and the other one oo. Then o2+e2=x2o^2 + e^2 = x^2, and this triple is primitive because gcd⁡(m,n)=1\gcd(m, n) = 1.
  10. By the classification with b=eb = e, there are coprime g>h≥1g > h \ge 1 with o=g2−h2o = g^2 - h^2, e=2ghe = 2gh and x=g2+h2x = g^2 + h^2.
  11. Then y2=2oe=4gh(g2−h2)y^2 = 2oe = 4gh(g^2 - h^2), so gh(g2−h2)=(y/2)2gh(g^2 - h^2) = (y/2)^2 is a square.
  12. The factors gg, hh and g2−h2g^2 - h^2 are pairwise coprime. Indeed, a prime dividing gg and g2−h2g^2 - h^2 divides h2h^2, hence hh; similarly for hh.
  13. By the lemma, g=X2g = X^2, h=Y2h = Y^2 and g2−h2=Z2g^2 - h^2 = Z^2 with positive integers X,Y,ZX, Y, Z. Hence X4−Y4=Z2X^4 - Y^4 = Z^2.
  14. But X≤X2=g≤g2<g2+h2=xX \le X^2 = g \le g^2 < g^2 + h^2 = x. This contradicts the choice of xx.
  15. Both cases are impossible. So x4−y4=z2x^4 - y^4 = z^2 has no solution in positive integers.

No right triangle with integer sides has square area.

  1. Suppose a right triangle has integer legs a,ba, b, integer hypotenuse cc, and area ab/2=d2ab/2 = d^2 with dd a positive integer. By the Pythagorean theorem, a2+b2=c2a^2 + b^2 = c^2.
  2. Then c4−(2ab)2=(a2+b2)2−4a2b2=(a2−b2)2c^4 - (2ab)^2 = (a^2 + b^2)^2 - 4a^2b^2 = (a^2 - b^2)^2, and 2ab=4d22ab = 4d^2. So c4−(2d)4=(a2−b2)2c^4 - (2d)^4 = (a^2 - b^2)^2.
  3. If a=ba = b, then a2=2d2a^2 = 2d^2. The exponent of 22 in a2a^2 is even and in 2d22d^2 is odd, which is impossible. So a≠ba \ne b.
  4. Then (c,2d,∣a2−b2∣)(c, 2d, \abs{a^2 - b^2}) is a positive solution of x4−y4=z2x^4 - y^4 = z^2, which contradicts step 17.
  5. Conversely, let (x,y,z)(x, y, z) be a positive solution. Put L1=x4−y4=z2L_1 = x^4 - y^4 = z^2, L2=2x2y2L_2 = 2x^2y^2 and L3=x4+y4L_3 = x^4 + y^4. Then L12+L22=L32L_1^2 + L_2^2 = L_3^2.
  6. The triangle with vertices (0,0)(0, 0), (L1,0)(L_1, 0) and (0,L2)(0, L_2) in ℝ2\R^2 has a right angle at the origin, sides L1,L2,L3L_1, L_2, L_3, and area L1L2/2=(xyz)2L_1 L_2 / 2 = (xyz)^2. So the two forms of the statement are equivalent, and both hold.

Idea

A solution of x4−y4=z2x^4 - y^4 = z^2 gives a Pythagorean triple with legs y2y^2 and zz. Parametrizing it, and if needed a second triple, produces a new solution with a smaller xx. An infinite decreasing chain of positive integers is impossible, so there is no solution, and a right triangle with square area would give one.

Reading path

To understand this page from the ground up, read these 53 pages in order. The foundations come first. The path takes the proofs Proof of Bézout's identity, Proof of the generalized Euclid's lemma, Proof of the commutativity of addition by induction, Proof of the classification of Pythagorean triples, Proof of Euclid's lemma, Proof of the geometric formula for the dot product, Proof of strong induction from ordinary induction, Proof that the p-adic valuation of a product is the sum of the valuations, Proof of the fundamental theorem of arithmetic, Proof of the Pythagorean theorem and its converse with the dot product, Proof of the existence of prime factorization, Proof of the well-ordering principle from strong induction, Proof of the division algorithm, Proof of the existence of a prime divisor.

  1. Angle at a point concept
  2. Angle between two vectors concept
  3. Definition by recursion concept
  4. Divisibility definition
  5. Dot product concept
  6. Euclidean distance concept
  7. Length of a vector concept
  8. Mathematical induction concept
  9. Natural numbers object
  10. Peano axioms concept
  11. Proof by infinite descent concept
  12. Triangle concept
  13. Greatest common divisor definition
  14. Prime number definition
  15. Proof of the geometric formula for the dot product proof
  16. Successor function definition
  17. Coprime integers definition
  18. Pythagorean triple definition
  19. Prime factorization definition
  20. P-adic valuation definition
  21. Geometric formula for the dot product statement
  22. Addition of natural numbers definition
  23. The successor function is injective statement
  24. Zero is not a successor statement
  25. Vectors are perpendicular if and only if their dot product is zero statement
  26. Proof of the commutativity of addition by induction proof
  27. Order on the natural numbers definition
  28. Commutativity of addition statement
  29. Proof of the Pythagorean theorem and its converse with the dot product proof
  30. Proof of strong induction from ordinary induction proof
  31. Strong induction statement
  32. Pythagorean theorem statement
  33. Proof of the well-ordering principle from strong induction proof
  34. Well-ordering principle statement
  35. Proof of the division algorithm proof
  36. Proof of the existence of a prime divisor proof
  37. Division algorithm statement
  38. Existence of a prime divisor statement
  39. Proof of Bézout's identity proof
  40. Proof of the existence of prime factorization proof
  41. Bézout's identity statement
  42. Existence of prime factorization statement
  43. Proof of the generalized Euclid's lemma proof
  44. Generalized Euclid's lemma statement
  45. Proof of Euclid's lemma proof
  46. Euclid's lemma statement
  47. Proof of the fundamental theorem of arithmetic proof
  48. Proof that the p-adic valuation of a product is the sum of the valuations proof
  49. Fundamental theorem of arithmetic statement
  50. P-adic valuation of a product statement
  51. Proof of the classification of Pythagorean triples proof
  52. Classification of Pythagorean triples statement
  53. Proof of Fermat's right triangle theorem by infinite descent proof

Where this leads

4 pages build on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Fermat%27s_right_triangle_theorem, Fermat's proof
About this page
Tag8195EFVX2N
URIm2://8195EFVX2N
Kindproof
WritingW0 stub
MSC11D25
ProvesFermat's right triangle theorem
UsesPythagorean triple, Classification of Pythagorean triples, Proof by infinite descent, Well-ordering principle, Coprime integers, Euclid's lemma, P-adic valuation, P-adic valuation of a product, Fundamental theorem of arithmetic, Pythagorean theorem
Changed4 November 2026

Markdown · JSON · Edit on GitHub

What this page needs for W1

  • an inventory row: the row of the inventory that the node accounts for (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

No page links to this page yet.