Pythagorean theorem
The Pythagorean theorem states something almost absurdly simple: in any right triangle, the square drawn on the hypotenuse has the same area as the two squares drawn on the other two sides combined. That is the whole claim. And yet this relationship has been proved more times, by more different methods, than possibly any other theorem in all of mathematics. A book called The Pythagorean Proposition catalogues 370 separate proofs. One of those proofs was devised by a sitting member of the United States Congress named James A. Garfield, who had not yet become president. Another is sometimes attributed to Albert Einstein. The theorem carries the name of Pythagoras, a Greek philosopher born around 570 BC, even though the mathematical knowledge behind it was in circulation in Egypt and Mesopotamia well over a thousand years before he was born. How did one man's name come to dominate a discovery that belongs to the whole ancient world? And why does a statement about triangles turn out to underlie Euclidean distance, complex numbers, the least squares method in statistics, and geometry on the surface of a sphere?
Written around 1800 BC, the Egyptian Middle Kingdom document known as the Berlin Papyrus 6619 poses a problem involving two squares whose areas sum to a third square. The solution uses the triple 6:8:10. The papyrus does not mention a triangle at all, yet the relationship is unmistakably there. Plutarch, writing many centuries after the fact, reported that the ancient Egyptians knew the 3:4:5 right triangle well enough to assign its three sides to the gods Osiris, Isis, and Horus. In Mesopotamia, historians of mathematics have concluded that the Pythagorean rule was in widespread use throughout the Old Babylonian period, which ran from the 20th to the 16th centuries BC. The tablet Plimpton 322, also written near the city of Larsa around 1800 BC, contains entries that can be read as the sides and diagonals of 15 different Pythagorean triples. A companion tablet, YBC 7289, works out the diagonal of a square directly. In India, the Baudhayana Shulba Sutra, dated variously between the 8th and 5th century BC, lists Pythagorean triples and states the theorem both for the special case of an isosceles right triangle and in the fully general form. The Apastamba Shulba Sutra, from around 600 BC, does the same. In China, the text known as the Zhoubi Suanjing works through a geometric reasoning for the 3:4:5 triangle, and some scholars believe the theorem was known there as early as the 11th century BC, attributed to an astronomer and mathematician named Shang Gao. The Chinese name for it today is the Gougu theorem.
Thomas L. Heath, who lived from 1861 to 1940 and produced the definitive English commentary on Euclid, observed that no surviving Greek text from the five centuries after Pythagoras explicitly credits him with the theorem. What exists instead is inference: when later writers like Plutarch and Cicero mentioned Pythagoras in connection with the result, they did so as though the attribution was already so well established it needed no argument. The classicist Kurt von Fritz addressed the attribution directly. He wrote that whether the formula is rightly credited to Pythagoras personally, one can safely assume it belongs to the very oldest period of Pythagorean mathematics. That is a careful formulation. It grants the Pythagorean school priority without granting any individual certainty. The philosopher Proclus, a Byzantine Neoplatonist writing in the fifth century AD, described two arithmetic rules for generating Pythagorean triples: one attributed to Pythagoras and one to Plato, who lived from 428/427 or 424/423 BC until 348/347 BC. The rule traced to Pythagoras starts from an odd number and produces a triple in which the leg and hypotenuse differ by exactly one unit. Recent scholarship has pushed further, casting increasing doubt on any direct creative role for Pythagoras in mathematics at all, though that debate has not been settled. What is settled is that around 300 BC, in Euclid's Elements, the oldest surviving axiomatic proof of the theorem was written down, along with Euclid's formula for generating all primitive Pythagorean triples.
Euclid's proof, recorded as Proposition 47 of Book I of the Elements, proceeds by dividing the large square on the hypotenuse into two rectangles and then showing, through a careful chain of congruent triangles and shared altitudes, that each rectangle has exactly the same area as one of the two smaller squares on the legs. It relies on four elementary results: the side-angle-side criterion for congruent triangles, the fact that a triangle's area is half that of any parallelogram sharing its base and height, and two results about the areas of rectangles and squares. Heath, in his commentary on this very proposition, speculated that Pythagoras may have known a different proof based on the rearrangement of squares. That rearrangement approach is the one most people encounter in school: two identical large squares, each filled with four copies of the same right triangle arranged differently, leaving behind either one square of area c-squared or two squares of areas a-squared and b-squared. Because both leftovers come from the same large square, they must be equal. A dissection proof sometimes attributed to Einstein drops a perpendicular from the right-angle vertex to the hypotenuse, splitting the original triangle into two smaller ones. Each smaller triangle is similar to the original, and because similar figures scale by the square of their linear dimensions, the areas add up in exactly the right proportion. The proof using similar triangles was considered so elegant that historians have wondered why Euclid did not use it. One answer is that the argument requires a developed theory of proportions, a topic Euclid does not introduce until later in the Elements. James Garfield's proof, published while he was a U.S. representative and before his election to the presidency, used a trapezoid rather than a square, halving the area calculation partway through by bisecting along a diagonal. A proof using differential calculus treats the hypotenuse as a function of one leg and integrates the resulting differential equation directly.
A Pythagorean triple is a set of three positive integers a, b, and c that satisfy the theorem exactly, meaning all three sides of the right triangle are whole numbers. The most familiar examples are (3, 4, 5) and (5, 12, 13). A primitive triple is one where the three numbers share no common divisor. Euclid's formula, the most well-known method for generating them, takes any two positive integers m and n and produces a triple directly. The Pythagorean school treated numbers as fundamentally whole, understanding proportions through the comparison of integer multiples of a shared unit. The theorem broke that assumption. By the same reasoning that gives integer triples, it guarantees the existence of lengths that cannot be expressed as a ratio of two whole numbers at all. The hypotenuse of a right triangle whose two legs each measure one unit has length equal to the square root of two, which is irrational. One legend says that a member of the Pythagorean circle named Hippasus of Metapontum, dated to around 470 BC, was drowned at sea for revealing this fact publicly. Whether the story is literally true is uncertain, but the scholar Kurt von Fritz wrote a careful study of Hippasus's contributions. The practical implication of irrational lengths is that a straightedge and compass can construct them without anyone needing to name them as a fraction: the theorem's square-root operation builds incommensurable lengths geometrically even when arithmetic cannot pin them down.
Euclidean distance in any number of dimensions is a direct extension of the theorem. In a flat plane with Cartesian coordinates, the distance between two points is the square root of the sum of the squares of the differences in each coordinate, which is the theorem stated one step removed. In n-dimensional Euclidean space the formula is identical in structure. The squared version of this distance, called the squared Euclidean distance, avoids the square root entirely and is a smooth, convex function of both points; it forms the basis of the least squares method used across optimization theory and statistics. Complex numbers use the theorem to define the absolute value or modulus of any complex number: the three quantities modulus, real part, and imaginary part satisfy the Pythagorean equation. The theorem also connects to the cross product and dot product of vectors through the Pythagorean trigonometric identity, and this connection can be used to define the cross product in seven dimensions. In Riemannian geometry the theorem appears inside the metric tensor, the object that measures distances in curved space and which may vary from point to point. The computer scientist Edsger W. Dijkstra restated the theorem's converse, classifying any triangle as right, acute, or obtuse by the sign of the difference between the square of its longest side and the sum of the squares of the other two. Outside flat Euclidean space the theorem fails: on the surface of a sphere, a right triangle whose two legs each have length pi-divided-by-2 also has a hypotenuse of that same length, which no Euclidean triangle could produce. De Gua's theorem, named for Jean Paul de Gua de Malves, extends the logic to three dimensions: for a tetrahedron with a right-angle corner, the square of the area of the face opposite that corner equals the sum of the squares of the areas of the other three faces.
Common questions
What does the Pythagorean theorem state?
The Pythagorean theorem states that in any right triangle, the area of the square on the hypotenuse equals the sum of the areas of the squares on the other two sides. Written as an equation, the square of the hypotenuse c equals the sum of the squares of legs a and b.
Did Pythagoras actually discover the Pythagorean theorem?
Pythagoras, born around 570 BC, is credited by tradition but scholars cannot confirm he discovered the theorem. The Mesopotamian tablet Plimpton 322 and the Egyptian Berlin Papyrus 6619, both written around 1800 BC, show knowledge of the underlying relationships more than a thousand years before Pythagoras was born. Thomas L. Heath noted that no surviving Greek text from the five centuries after Pythagoras explicitly names him as the discoverer.
How many proofs of the Pythagorean theorem are there?
The book The Pythagorean Proposition catalogues 370 separate proofs, and the theorem may have more known proofs than any other in mathematics. Proofs range from geometric rearrangements and dissections to algebraic arguments, similarity of triangles, area-preserving shear mappings, and differential calculus.
Who was Hippasus of Metapontum and what is his connection to the Pythagorean theorem?
Hippasus of Metapontum, dated to around 470 BC, is associated with the discovery that the Pythagorean theorem produces irrational lengths, specifically the square root of two as the hypotenuse of an isosceles right triangle with legs of length one. According to legend he was drowned at sea for making this finding public, as it contradicted the Pythagorean school's belief that all numbers are whole.
What is the Pythagorean theorem's connection to Euclidean distance?
The distance formula in Cartesian coordinates is derived directly from the Pythagorean theorem. In any number of dimensions, the Euclidean distance between two points equals the square root of the sum of squared differences in each coordinate. The squared version of this distance, which avoids the square root, forms the basis of least squares methods in statistics and optimization.
Does the Pythagorean theorem hold in non-Euclidean geometry?
No. In spherical geometry, a right triangle whose two legs each have length pi divided by two also has a hypotenuse of that same length, which violates the Pythagorean theorem. The theorem is equivalent to Euclid's fifth postulate, meaning any geometry that rejects that postulate also rejects the theorem. In very small triangles on a sphere or in hyperbolic space, the relationship approaches the Pythagorean form as the triangle shrinks toward a point.
All sources
80 references cited across the entry
- 1harvnbSally, Sally (2007) p. [https://books.google.com/books?id=nHxBw-WlECUC&pg=PA63 63]Sally, Sally — 2007
- 2harvnbNeugebauer (1969) p. 36Neugebauer — 1969
- 3bookMathematics in the Time of the PharaohsRichard J. Gillings — Dover — 1982
- 4bookMoralia V: Isis and OsirisPlutarch — Harvard University Press — 1936
- 5harvnbNeugebauer (1969)Neugebauer — 1969
- 7conferenceBabylon: Focus mesopotamischer Geschichte, Wiege früher Gelehrsamkeit, Mythos in der Moderne. 2. Internationales Colloquium der Deutschen Orient-Gesellschaft 24.–26. März 1998 in BerlinJens Høyrup — Berlin: Deutsche Orient-Gesellschaft / Saarbrücken: SDV Saarbrücker Druckerei und Verlag — 1999
- 8harvnbRobson (2008) p. 109Robson — 2008
- 9journalHomage to BabyloniaNick Mackinnon — March 1992
- 10bookMathematics in IndiaKim Plofker — Princeton University Press — 2009
- 11harvnbBoyer, Merzbach (2011) p. 187Boyer, Merzbach — 2011
- 12bookA Commentary of the First Book of Euclid's ElementsProclus — Princeton University Press — 1970
- 13webIntroduction and books 1,2The University Press — March 25, 1908
- 14harvnbHeath (1921) p. Vol I, p. 144Heath — 1921
- 15harvnbEuclid (1956) p. [https://books.google.com/books?id=UhgPAAAAIAAJ&pg=PA351 351]Euclid — 1956
- 16bookEpisodes From the Early History of MathematicsAsger Aaboe — Mathematical Association of America — 1997
- 17bookThe Great Equations: Breakthroughs in Science From Pythagoras to HeisenbergRobert P. Crease — W W Norton & Co. — 2008
- 18bookAstronomy and Mathematics in Ancient China: The 'Zhou Bi Suan Jing'Christopher Cullen — Cambridge University Press — 2007
- 19bookSherlock Holmes in Babylon: and Other Tales of Mathematical HistoryPhilip D. Jr. Straffin — Mathematical Association of America — 2004
- 20bookThe Nine Chapters on the Mathematical Art: Companion and CommentaryKangshen Shen et al. — Oxford University Press — 1999
- 21bookCentaurus, Volume 39Munksgaard — 1997
- 22bookEarly Chinese Work in Natural Science: a Re-examination of the Physics of Motion, Acoustics, Astronomy and Scientific ThoughtsCheng-Yih Chen — Hong Kong University Press — 1996
- 23bookSelected works of Wen-tsün WuWen-tsün Wu — World Scientific — 2008
- 24bookThe Moment of Proof: Mathematical EpiphaniesDonald Benson — Oxford University Press — 1999
- 25encyclopediaPythagorasCarl Huffman — 23 February 2005
- 26harvnbBogomolny (2016) p. [https://www.cut-the-knot.org/pythagoras/index.shtml#4 Proof #4]Bogomolny — 2016
- 27harvnbBogomolny (2016) p. [https://www.cut-the-knot.org/pythagoras/index.shtml#3 Proof #3]Bogomolny — 2016
- 28bookFractals, Chaos, Power Laws: Minutes from an Infinite ParadiseManfred Robert Schroeder — Courier Corporation — 2012
- 29bookQualitative Methods in Quantum TheoryA. B. Migdal — W. A. Benjamin — 1977
- 30bookWhy Quark Rhymes With PorkN. David Mermin — Cambridge University Press — 2016
- 32bookMathematics: from the birth of numbersJan Gullberg — W. W. Norton & Company — 1997
- 33webEuclid's Elements of GeometryJ. L. Heiberg
- 35harvnbHawking (2005) p. 12Hawking — 2005
- 36harvnbBogomolny (2016) p. [https://www.cut-the-knot.org/pythagoras/index.shtml#10 Proof #10]Bogomolny — 2016
- 37harvnbLoomis (1940) p. Geometric proof 22 and Figure 123Loomis — 1940
- 38bookQ.E.D.: Beauty in Mathematical ProofBurkard Polster — Walker Publishing Company — 2004
- 39journalPons AsinorumJames A. Garfield — 1876
- 40webGarfield's proof of the Pythagorean TheoremDavid Lantz — 2008
- 41journalThe Pythagorean proposition: A proof by means of calculusMike Staring — Mathematical Association of America — 1996
- 42harvnbBogomolny (2016) p. [https://www.cut-the-knot.org/pythagoras/index.shtml#40 Proof #40] (by M. Hardy).Bogomolny — 2016
- 43journalRamanujan – 100 years old (fashioned) or 100 years new (fangled)?Bruce C. Berndt — 1988
- 44harvnbSally, Sally (2007) p. [https://books.google.com/books?id=nHxBw-WlECUC&pg=PA54 54–55]Sally, Sally — 2007
- 46bookPlane Trigonometry and ApplicationsErnest Julius Wilczynski et al. — Allyn and Bacon — 1914
- 47webOn the theorem of PythagorasEdsger W. Dijkstra — E. W. Dijkstra Archive — September 7, 1986
- 48webPythagorean Theorem for the ReciprocalsAlexander Bogomolny — 2018
- 49bookThe Elements of Euclid: with many additional propositions, and explanatory notes, to which is prefixed an introductory essay on logicHenry Law — John Weale — 1853
- 50bookUnderstanding the infiniteShaughan Lavine — Harvard University Press — 1994
- 51harvnbHeath (1921) p. Vol I, pp. 65Heath — 1921
- 52bookMastering algorithms with PerlJon Orwant et al. — O'Reilly Media, Inc. — 1999
- 53harvnbWentworth, Smith (1914) p. 116Wentworth, Smith — 1914
- 54bookPreCalculus the Easy WayLawrence S. Leff — Barron's Educational Series — 2005
- 55journalCross products of vectors in higher-dimensional Euclidean spacesWS Massey — Mathematical Association of America — Dec 1983
- 56bookClifford algebras and spinorsPertti Lounesto — Cambridge University Press — 2001
- 57bookMethods of applied mathematicsFrancis Begnaud Hildebrand — Courier Dover Publications — 1992
- 58journalOn generalizing the Pythagorean theoremJohn F. Putz et al. — September 2003
- 59bookcited workLawrence S. Leff — Barron's Educational Series — 2005-05-01
- 60bookGreat moments in mathematics (before 1650)Howard Whitley Eves — Mathematical Association of America — 1983
- 61journalThâbit ibn Qurra's Generalization of the Pythagorean TheoremAydin Sayili — Mar 1960
- 62harvnbSally, Sally (2007) p. [https://books.google.com/books?id=nHxBw-WlECUC&pg=PA62 62]Sally, Sally — 2007
- 63bookModern geometry with applications: with 150 figuresGeorge Jennings — Springer — 1997
- 64journalQuadrilaterally SpeakingWilliam Dunham — 2000
- 65journalProof without Words: The law of cosines via Ptolemy's TheoremSidney H. Kung — 1992
- 66bookMatrix analysisRajendra Bhatia — Springer — 1997
- 68bookClassification, parameter estimation, and state estimationFerdinand van der Heijden et al. — Wiley — 2004
- 69bookFinite element methods: accuracy and improvementQun Lin et al. — Elsevier — 2006
- 70bookElementary Linear Algebra: Applications VersionHoward Anton et al. — Wiley — 2010
- 71bookBeginning functional analysisKaren Saxe — Springer — 2002
- 72bookBanach Algebra Techniques in Operator TheoryRonald G. Douglas — Springer-Verlag New York, Inc. — 1998
- 73journalGeneralized Pythagorean TheoremDonald R Conant et al. — Mathematical Association of America — Mar 1974
- 74encyclopediaParallel PostulateEric W. Weisstein — CRC Press — 1999
- 75bookThe Principle of Sufficient Reason: A ReassessmentAlexander R. Pruss — Cambridge University Press — 2006
- 76journalMaria Teresa Calapso's Hyperbolic Pythagorean TheoremVictor Pambuccian — December 2010
- 77bookElementary Differential GeometryBarrett O'Neill — Academic Press — 2006
- 78bookThe Poincaré Half-Plane: A Gateway to Modern GeometrySaul Stahl — Jones & Bartlett Learning — 1993
- 79bookTwo-generator Discrete Subgroups of PSL(2,R)Jane Gilman — American Mathematical Society — 1995
- 80bookMathematical methods for physicists: a concise introductionTai L. Chow — Cambridge University Press — 2000