Maximize the area of a rectangle inscribed in an isosceles 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 the length of a leg = 8 in.