We first state the problem in mathematical terms. Our formula for the volume of a cylinder is

To maximize volume, we must have

or

Substituting this into our formula for , we have

To find the maximum volume, we note that since is differentiable everywhere and equals at the endpoints of its domain, it must attain a maximum at a point where .