Problem:
In a right triangle with , , and . Two squares are inscribed in as shown in the figure. Find the minimum sum of the areas of the squares.

Problem:
In a right triangle with , , and . Two squares are inscribed in as shown in the figure. Find the minimum sum of the areas of the squares.

Solution:
Let and be the side lengths of the two squares. By the Pythagorean theorem, we have . From the above figure, triangles , and are similar. Thus, and . We see that or .
Hence, by Cauchy-Schwarz inequality, we get
so that . Hence, the minimum sum of the areas of the squares and is , which is attained when and .