Let
with
be the lower right vertex of the rectangle, so its base has total length
. The height of the rectangle will be the function value this value of
, or
.
Then the area of the rectangle is
Differentiate
with respect to
and find the critical points.
Evaluate the second derivative at this critical point to ensure
is maximized there.
Since
, this is indeed a local maximum. Then the largest area is