for a right triangle with sides of lengths a, b, and c, where c is the length of the hypotenuse.
Although Pythagoras is credited with the famous theorem, it is likely that the Babylonians knew the result for certain specific triangles at least a millennium earlier than Pythagoras. It is not known how the Greeks originally demonstrated the proof of the Pythagorean Theorem. If the methods of Book II of Euclid's Elements were used, it is likely that it was a dissection type of proof similar to the following:
"A large square of side a+b is divided into two smaller squares of sides a and b respectively, and two equal rectangles with sides a and b; each of these two rectangles can be split into two equal right triangles by drawing the diagonal c. The four triangles can be arranged within another square of side a+b as shown in the figures.