Maths WorkshopMaths problems with full solutions
Exercise 129Calculus › Single-variable calculus › Differentiation › Optimisation and curve sketchingL1Added 4 Nov 2026

A window with a semicircular top

#optimisation#area#perimeter#geometry

Statement

A window is a rectangle surmounted by a semicircle whose diameter is the width of the rectangle. Its perimeter (the frame) is fixed, equal to PP. Find the dimensions that let in the most light, i.e. that maximise the area.

Hint

Let rr be the radius of the semicircle and hh the height of the rectangle. The width is 2r2r. Express hh from the perimeter condition.

Show solutionHide solution

Solution

Perimeter. The frame consists of the two vertical sides, the bottom side of length 2r2r, and the semicircular arc of length πr\pi r (the diameter of the semicircle is not part of the frame). So 2h+2r+πr=P2h+2r+\pi r=P, hence h=P−(2+π)r2h=\dfrac{P-(2+\pi)r}2, and h>0h>0 requires 0<r<P2+π0<r<\frac P{2+\pi}.

Area.
A(r)=2rh+πr22=Pr−(2+π)r2+πr22=Pr−4+π2 r2.A(r)=2rh+\frac{\pi r^2}2=Pr-(2+\pi)r^2+\frac{\pi r^2}2=Pr-\frac{4+\pi}2\,r^2.

Maximum. A′(r)=P−(4+π)r=0  ⟺  r=P4+πA'(r)=P-(4+\pi)r=0\iff r=\dfrac P{4+\pi}, which lies in (0,P2+π)\left(0,\frac P{2+\pi}\right). The parabola is concave, so this is the maximum, and
Amax⁡=P22(4+π).A_{\max}=\frac{P^2}{2(4+\pi)}.

Shape. Then h=P−(2+π)r2=(4+π)−(2+π)2 r=rh=\dfrac{P-(2+\pi)r}2=\dfrac{(4+\pi)-(2+\pi)}{2}\,r=r.

Answer. The height of the rectangular part equals the radius of the semicircle.