Assume the center of the sphere is located at the origin.
Let r be the radius of the sphere, and let n be the number of approximating cylinders.
The height h of each cylinder can be defined as:
The radius of the kth cylinder located at height can be found from
The volume of the kth cylinder is thus:
Therefore the total volume of n cylinders is:
In the limit as , we get the volume of the sphere: