The volume of the can is πr2h = 512.
h=512/πr2
The surface area of the can is 2πr2 + 2πrh.
Substitute the expression for h into the surface area formula.
Differentiate the surface area expression with respect to r and set the derivative equal to 0.
Solve for r.
This value of r gives the minimum surface area, i.e. the minimum material.