Area between Smooth Curve and Line is Maximized by Semicircle

Theorem
Let $y$ be a smooth curve, embedded in $2$-dimensional Euclidean space.

Let $y$ have a total length of $l$.

Let it be contained in the upper halfplane with an exception of endpoints, which are on the x-axis.

Suppose, $y$, together with a line segment connecting $y$'s endpoints, maximizes the enclosed area.

Then $y$ is a semicircle.

Proof
By Area between Smooth Curve and Line with Fixed Endpoints is Maximized by Arc of Circle the maximizing curve is an arc of a circle.

It is described as follows:


 * if $\frac l \pi \le \lambda < \infty$ then


 * $y = \sqrt{\lambda^2 - x^2} - \sqrt{\lambda^2 - a^2}$


 * where


 * $l = 2 \lambda \, \map \arctan {\dfrac a {\sqrt {\lambda^2 - a^2} } }$;


 * if $\frac l {2 \pi} \le \lambda < \frac l \pi$ then


 * $y = \sqrt{\lambda^2 - a^2} - \sqrt{\lambda^2 - x^2}$


 * where


 * $l = 2 \lambda \paren{\pi - \map \arctan {\dfrac a {\sqrt {\lambda^2 - a^2} } } }$.

In the first case the area is a definite integral between $x = -a$ and $x = a$:

Solve the length constraint for $a$.

The solution, satisfying positivity of $l$ and the range of $\lambda$, is:


 * $\displaystyle a = \frac {\lambda \map {\tan}{\frac l {2\lambda} } }{\sqrt{1 + \map {\tan^2}{\frac l {2\lambda} } } }$

Substitution of this into the area formula leads to:


 * $\displaystyle A = \frac \lambda 2 \paren {l - \lambda \sin \frac l \lambda}$

$l$ is a constant, while $\lambda$ is a free variable.

Hence, to find the maximal area for the given range of $\lambda$, we have to find the extremum of $A$:


 * $\displaystyle \dfrac {\d A}{\d \lambda} = \frac \lambda 2 \paren {\frac l \lambda + \frac l \lambda \cos \frac l \lambda - 2 \sin \frac l \lambda}$

This is solved by $\frac l \lambda = (2k + 1)\pi, k \in \Z$ and $\frac l \lambda = 0$.

Then the area at these extremums acquires the following values:


 * $\map A {\frac l \lambda = 0} = 0$;


 * $\displaystyle \map A {\frac l \lambda = (2k + 1)\pi} = \frac {l^2} {\paren {1 + 2 k} 2\pi}$

This is maximized for $k = 0$, or $\frac l \lambda = \pi$.

Incidentally, these are also boundary values of the area function.

Together with the continuity of $A$, this proves the maximization of area when the arc is being varied from a straight line to a semicircle.

The second part considers the variation of the curve from a semicirle to a circle.

In this case the area is that of a semicirle plus a part of the lower semicircle:

Like in the previous case, solve the length constraint for $a$, while satisfying positivity and range conditions:


 * $\displaystyle a = \frac {\tan{\frac{2\pi\lambda - l}{2 \lambda} } }{\sqrt{1+\tan^2{\frac{2\pi\lambda - l}{2 \lambda} } } }$

Substitution into the area expression leads to:


 * $A = \frac {\lambda}{2} \paren{l - \lambda \sin \frac l \lambda}$

To find the extremum, compute its derivative $\lambda$:


 * $\dfrac {\d A} {\d \lambda} = \frac 1 2 \paren{l + l \cos \frac l \lambda -2 \lambda \sin \frac l \lambda}$

It vanishes if $\frac l \lambda = 0$ or $\frac l \lambda = \pi \paren{1 + 2 k}$, with $k \in \Z$.

From these solutions the one satisfying the range of $\lambda$ is $\frac l \lambda = \pi$.

The area for this value is $\frac {\pi \lambda^2} 2$.

For completeness we have to check the other boundary value in this range, namely, $\lambda = \frac l {2\pi}$.


 * $\displaystyle \map A {\lambda = \frac l {2\pi} } = \pi \lambda^2$.

Since we have length as an input for this problem, express both areas in terms of length.


 * $\displaystyle \map A {l = \pi \lambda} = \frac {l^2} {2 \pi}$


 * $\displaystyle \map A {l = 2 \pi \lambda} = \frac {l^2} {4 \pi}$

Hence, the area is maximized when the curve $y$ is a semicircle.