Pythagorean theorem states that (in a right triangle) the square of the hypotenuse (the side opposite to the right angle) is equal to the sum of the squares of the other two sides. For this case, the hypotenuse is x, and the Pythagorean equation gives