For a closed cylinder with radius r and height h:
Surface Area: S=2πr2+2πrh
Volume: V=πr2h
Since the surface area S is fixed:
S=2πr2+2πrh
2πrh=S−2πr2
h=2πrS−2πr2
h=2πrS−r
Substituting into the volume formula:
V=πr2h
V=πr2(2πrS−r)
V=2Sr−πr3
For maximum volume, drdV=0:
drdV=2S−3πr2
2S−3πr2=0
S=6πr2
Substituting S=6πr2 into the surface area equation:
6πr2=2πr2+2πrh
4πr2=2πrh
h=2πr4πr2
h=2r
Therefore, the volume of the cylinder is maximum when its height is 2r.