Long before the Greek philosopher Pythagoras of Samos (circa 570–495 BCE) founded his school at Croton, ancient Indian Vedic mathematicians had discovered, formulated, and applied the theorem relating the sides of a right-angled triangle. In the Baudhayana Sulba Sutra (circa 800 BCE), the sage-mathematician Baudhayana composed the famous shloka:
Translation: The rope stretched along the length of the diagonal of a rectangle produces an area which the vertical side and the horizontal side produce separately.
In modern algebraic notation:
$$ ext{Diagonal}^2 = ext{Length}^2 + ext{Breadth}^2 \implies d^2 = l^2 + b^2$$
This principle was essential for the construction of complex sacrificial brick altars (vedis) such as the falcon-shaped Śyenaciti, which required combining two squares into a single larger square of equal area.
In classical Greek geometry, Pythagoras and later Euclid framed the theorem in terms of geometric areas of physical squares constructed upon the sides of the triangle: the square erected on the hypotenuse has an area equal to the sum of the areas of the two squares erected on the perpendicular sides.