The values of the cosine function are represented by the axis OX of the goniometric circumference (circumference centered at the origin and of radius 1). Therefore the cosine is zero for the 90º and 270º angles.
Surface area of top and bottom of cylinder is equal to 2 circles. Take the circumference of one of the circles and multiply by the height. Add those values together to get SA.