Let H be the height, R be the base radius, V be the volume (fixed) and S be the total surface area (to be minimum) of the cylinder.
V=πR2H
⇒H=VπR2 ⋯(i)
S=2πR2+2πRH
⇒S=2πR2+2VR
Differentiating w.r.t. R,
S′=4πR−2VR2
and S′′=4π+4VR3>0
∴S is minimum when S′=0
⇒V=2πR3
⇒H=2πR3πR2 (From (i))
⇒H=2R