A sphere of fixed radius (R) is given.
Let r and h be the radius and the height of the cylinder respectively.

From the given figure, we have
The volume (V) of the cylinder is given by,


Hence, the volume of the cylinder is the maximum when the height of the cylinder is 2R/√3