Spin the region under a curve around the axis and it carves out a solid. Slice it into thin disks, add their volumes, and in the limit you get V = π∫ƒ(x)² dx.