If we let the diameter of the semicircle (which is the bottom, horizontal edge of the rectangle) be , then the perimeter of the semicircle is . Then if we let each vertical edge of the rectangle be , then , so . The area of the rectangle, . The area of the semicircle, . So area total is:

.

Set to find the value that gives maximum area.