The legs of a right triangle are and .
From the Pythagorean theorem, the square of the hypotenuse is equal to the sum of the squares of the other two sides.
.