A window is designed in the shape of a semicircle of radius r on top of a rectangle. If the area A of the window is fixed, find the dimensions of the window that minimize the perimeter P.
Express the perimeter P of the window as a function of r. Your answer will be in terms of the constant A and the variable r.
P(r)=___