\r\n" );
document.write( "Let x = the radius of the semicircle, which is half the base of the rectangle.\r\n" );
document.write( "Let h = the height of the rectangle. \r\n" );
document.write( "\r\n" );
document.write( "This drawing is not to scale:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "The area of the semicircle is half the area of a whole circle.\r\n" );
document.write( "The area of a whole circle circle is\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "so the area of the semicircle on top is
\r\n" );
document.write( "\r\n" );
document.write( "The area of the rectangle is
\r\n" );
document.write( "\r\n" );
document.write( "So what we want to maximize is the total area y:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "The perimeter of the entire window is given as 32 feet.\r\n" );
document.write( "\r\n" );
document.write( "The perimeter (\"circumference\") of the semicircle is half the perimeter (\"circumference\") of a whole circle.\r\n" );
document.write( "The perimeter \"circumference\" of a whole circle is\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "so the perimeter (\"circumference\") of the semicircle on top is
or
\r\n" );
document.write( "\r\n" );
document.write( "The total perimeter is the perimeter of the semicircle plus the left, right,\r\n" );
document.write( "and bottom sides of the rectangle.\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "And since the perimeter is 32 feet,\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "Substituting for 2h in the equation for the area:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "From this point you can get the maximum value by just algebra,\r\n" );
document.write( "using the vertex formula, or by using calculus. Ikleyn used\r\n" );
document.write( "calculus above so I'll just use algebra.\r\n" );
document.write( "\r\n" );
document.write( "The x-coordinate of the vertex of a parabola is
, where 'a' is the\r\n" );
document.write( "coefficient of x2, and 'b' is the coefficient of x.\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "So the x coordinate when the area is a maximum is \r\n" );
document.write( "\r\n" );
document.write( "
, which is the radius of the semicircle.\r\n" );
document.write( "\r\n" );
document.write( "Finally we find the height of the rectangle, by substituting \r\n" );
document.write( "\r\n" );
document.write( "
for x in:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "Divide every term by 2\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "The radius of the semicircle equals the height. So the rectangle is twice as\r\n" );
document.write( "wide as it is high. So it looks like this:\r\n" );
document.write( "\r\n" );
document.write( "
\r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( " \r\n" );
document.write( "\r\n" );
document.write( "\r\n" );
document.write( "Edwin
\n" );
document.write( " \n" );
document.write( "