The Pythagorean theorem states that in a right triangle, the square of the hypotenuse is equal to the sum of the squares of the other two sides. It is named after Pythagoras, who is often credited with its proof, although it was known by earlier mathematicians as well. There are many different proofs of the theorem, including Pythagoras' original proof by rearrangement of triangles and Euclid's algebraic proof in his Elements which constructs squares on each side and uses their areas to prove the relationship.