Consider a window in the shape of semicircle resting on top of a rectangle (with the length of the diameter of the semicircle equal to the length of the base of the rectangle). The rectangular portion is clear glass, while the semicircular portion is colored glass which admits half as much light per square foot as the clear glass. The perimeter of the window is . Find the dimensions of the window in terms of the perimeter that admit the most light.

Let denote the length of the radius of the semicircle. Then, the perimeter is given by the equation,

The total amount of light coming through the window is the area of the rectangular portion times 1, plus the area of the semicircular region times 1/2:

Plugging in our expression for we get an expression for the total amount of light in terms of the radius (and the constant ),

Differentiating with respect to we have

Setting this equal to 0 and solving for ,

Since the length of the base of the rectangular region is , the base of the rectangle has length

Then, using the expression above for , the height of the rectangular region, we have,

These are the requested dimensions in terms of the perimeter.