As the height, h, varies, the area of the cross-sectional circle for each shape varies accordingly:
From
these it can be shown algebraically that the area of the cones and the
sphere do add up to the area of the cylinder, and if this is the case
then the volumes must also add up to the volume of the cylinder.