Let C be a truncated, right circular cone with height H, upper radius R1 and lower radius R2. Set it up on a coordinate system with the center of the base at (0,0,0), and center of the top at (0,0,H). Looking at it from the side, so that you see the xz-plane, you see a "trapezoid" with one side starting at (R2,0,0) and ending at (R1,0,H). Since any nonvertical line in the xz-plane can be written in the form z= Ax+ B. you must have 0= R2A+ B and H= R1A+ B. Subtracting the first from the second, H= (R1-R2)A so A= H/(R1-R2), B= -R2A so B= -R2H/(R1-R2). The equation of the line is z= H(x-R2)/(R1-R2) or you can write it x= (R1-R2)z/H+ R2.
Now imagine the entire cone, divided into thin disks: each has thickness "dz" and radius, x= (R1-R2)z/H+ R2 so area \pi [(R1-R2)z/H+ R2)^2 and volume \pi [(R1-R2)z/H+ R2)^2dx. To find the entire volume integrate that from z= 0 to z= H.