Maximize the area of a rectangle inscribed in an isosceles right triangle.

Problem statement:

Given an isosceles right triangle determine the inscribed 
rectangle of maximum area which has two sides lying along
the legs of the triangle.

The accompanying animation uses right triangle with leg of length 8 units.