Pythagorean theorem, the well-known geometric theorem that the sum of the squares on the legs of a right triangle is equal to the square on the hypotenuse (the side opposite the right angle)—or, in familiar algebraic notation, a2 + b2 = c2. Although the theorem has long been associated with Greek mathematician-philosopher Pythagoras (c. 570–500/490 bce), it is actually far older. Four Babylonian tablets from circa 1900–1600 bce indicate some knowledge of the theorem, with a very accurate calculation of the square root of 2 (the length of the hypotenuse of a right triangle with the length of both legs equal to 1) and lists of special integers known as Pythagorean triples that satisfy it (e.g., 3, 4, and 5; 32 + 42 = 52, 9 + 16 = 25). The theorem is mentioned in the Baudhayana Sulba-sutra of India, which was written between 800 and 400 bce. Nevertheless, the theorem came to be credited to Pythagoras. It is also proposition number 47 from Book I of Euclid’s Elements.

Britannica Quiz All About Math Quiz What is the term for any positive integer greater than 1 that is divisible only by itself and 1?

According to the Syrian historian Iamblichus (c. 250–330 ce), Pythagoras was introduced to mathematics by Thales of Miletus and his pupil Anaximander. In any case, it is known that Pythagoras traveled to Egypt about 535 bce to further his study, was captured during an invasion in 525 bce by Cambyses II of Persia and taken to Babylon, and may possibly have visited India before returning to the Mediterranean. Pythagoras soon settled in Croton (now Crotone, Italy) and set up a school, or in modern terms a monastery (see Pythagoreanism), where all members took strict vows of secrecy, and all new mathematical results for several centuries were attributed to his name. Thus, not only is the first proof of the theorem not known, there is also some doubt that Pythagoras himself actually proved the theorem that bears his name. Some scholars suggest that the first proof was the one shown in the figure. It was probably independently discovered in several different cultures.

Pythagorean theorem Visual demonstration of the Pythagorean theorem. This may be the original proof of the ancient theorem, which states that the sum of the squares on the sides of a right triangle equals the square on the hypotenuse (a2 + b2 = c2). In the box on the left, the green-shaded a2 and b2 represent the squares on the sides of any one of the identical right triangles. On the right, the four triangles are rearranged, leaving c2, the square on the hypotenuse, whose area by simple arithmetic equals the sum of a2 and b2. For the proof to work, one must only see that c2 is indeed a square. This is done by demonstrating that each of its angles must be 90 degrees, since all the angles of a triangle must add up to 180 degrees. Encyclopædia Britannica, Inc.

Book I of the Elements ends with Euclid’s famous “windmill” proof of the Pythagorean theorem. (See Sidebar: Euclid’s Windmill.) Later in Book VI of the Elements, Euclid delivers an even easier demonstration using the proposition that the areas of similar triangles are proportionate to the squares of their corresponding sides. Apparently, Euclid invented the windmill proof so that he could place the Pythagorean theorem as the capstone to Book I. He had not yet demonstrated (as he would in Book V) that line lengths can be manipulated in proportions as if they were commensurable numbers (integers or ratios of integers). The problem he faced is explained in the Sidebar: Incommensurables.

A great many different proofs and extensions of the Pythagorean theorem have been invented. Taking extensions first, Euclid himself showed in a theorem praised in antiquity that any symmetrical regular figures drawn on the sides of a right triangle satisfy the Pythagorean relationship: the figure drawn on the hypotenuse has an area equal to the sum of the areas of the figures drawn on the legs. The semicircles that define Hippocrates of Chios’s lunes are examples of such an extension. (See Sidebar: Quadrature of the Lune.)

Get exclusive access to content from our 1768 First Edition with your subscription. Subscribe today

In the Nine Chapters on the Mathematical Procedures (or Nine Chapters), compiled in the 1st century ce in China, several problems are given, along with their solutions, that involve finding the length of one of the sides of a right triangle when given the other two sides. In the Commentary of Liu Hui, from the 3rd century, Liu Hui offered a proof of the Pythagorean theorem that called for cutting up the squares on the legs of the right triangle and rearranging them (“tangram style”) to correspond to the square on the hypotenuse. Although his original drawing does not survive, the next figure shows a possible reconstruction.

“tangram” proof of the Pythagorean theorem by Liu Hui This is a reconstruction of the Chinese mathematician's proof (based on his written instructions) that the sum of the squares on the sides of a right triangle equals the square on the hypotenuse. One begins with a2 and b2, the squares on the sides of the right triangle, and then cuts them into various shapes that can be rearranged to form c2, the square on the hypotenuse. Encyclopædia Britannica, Inc.

The Pythagorean theorem has fascinated people for nearly 4,000 years; there are now more than 300 different proofs, including ones by the Greek mathematician Pappus of Alexandria (flourished c. 320 ce), the Arab mathematician-physician Thābit ibn Qurrah (c. 836–901), the Italian artist-inventor Leonardo da Vinci (1452–1519), and even U.S. Pres. James Garfield (1831–81).