Suppose that r be the radius of the base and h the height of a cylinder.
Given that,
The surface area is given by
S=2πr(h+r)
S=2πrh+2πr2
Now, h=S−2πr22πr ……. (1)
Let V be the volume of the cylinder.
∴V=πr2h
=πr2(S−2πr22πr)
V=Sr−2πr32
Differentiation this with respect to x and we get,
dVdr=S2−3πr2 …… (2)
For Maximum or minimum, We have
dVdr=0
S2−3πr2=0
S=6πr2
We know that,
S=2πrh+2πr2
6πr2=2πrh+2πr2
6πr2−2πr2=2πrh
⇒h=2r
Again differentiation equation (2), we get
d2Vdt2=−6πr<0
Hence, V is maximum when h=2r.