with the constraint that
.
Solving the constraint for
, we get
, and thus
Differentiating with respect to
, we get
which does not exist when
, and is zero when
, i.e.
when
For this
we have
Therefore, the ratio of height to radius must be
,
regardless of the desired volume
of the can.