Volumes
To find the volume of a solid, slice it like a loaf of bread, find the area of a typical slice, and integrate. This lesson justifies the slicing formula, derives the disk and washer methods for solids of revolution, handles solids whose cross-sections are squares or triangles, and computes a volume from scan data the way medical imaging and 3D-printing software do. The survey version is Volume.
The slicing formula
Let a solid lie between the planes and , and let be the area of its cross-section in the plane perpendicular to the -axis at . Cut the solid into slabs of thickness . A slab at is approximately a cylinder (a prism with base area ) of volume . Adding them gives a Riemann sum, so for continuous :
A consequence is Cavalieri's principle: two solids whose cross-sections at every height have equal areas have equal volumes, however they are shaped or sheared.
Example: the sphere. A ball of radius centred at the origin has circular cross-sections of radius , so and
Solids of revolution: disks and washers
Rotate the region under , , about the -axis. Each cross-section is a disk of radius :
If the region lies between an outer curve and an inner curve (distances from the axis), the cross-section is a washer (a disk with a hole):
Tip: and are distances to the axis of rotation. Rotating about instead of the -axis, a curve at height is at distance . Draw the radius before writing the formula.
import sympy as sp
x = sp.symbols('x', real=True)
# region between y = √x (outer) and y = x/2 (inner); they meet at x = 0 and x = 4
R, r = sp.sqrt(x), x / 2
print("intersections:", sp.solve(sp.Eq(sp.sqrt(x), x / 2), x))
V_axis = sp.integrate(sp.pi * (R**2 - r**2), (x, 0, 4))
print("about the x-axis: V =", V_axis, "≈", round(float(V_axis), 4))
V_shift = sp.integrate(sp.pi * ((R + 1)**2 - (r + 1)**2), (x, 0, 4)) # about y = -1
print("about y = -1: V =", V_shift, "≈", round(float(V_shift), 4))intersections: [0, 4]
about the x-axis: V = 8*pi/3 ≈ 8.3776
about y = -1: V = 16*pi/3 ≈ 16.7552
Moving the axis away from the region makes the solid bigger, as it should.
Known cross-sections
The base of a solid is the disk ; cross-sections perpendicular to the -axis are squares. At the square's side is the chord length , so and
Only changes with the shape of the slice. With equilateral triangles of side , ; with semicircles whose diameter is the chord, . SymPy checks all three:
import sympy as sp
x = sp.symbols('x', real=True)
s = 2 * sp.sqrt(4 - x**2) # chord of the base circle at x
print("squares: ", sp.integrate(s**2, (x, -2, 2)))
print("equilateral: ", sp.simplify(sp.integrate(sp.sqrt(3) / 4 * s**2, (x, -2, 2))))
print("semicircles: ", sp.integrate(sp.pi / 2 * (s / 2)**2, (x, -2, 2)))squares: 128/3
equilateral: 32*sqrt(3)/3
semicircles: 16*pi/3
Squares give , equilateral triangles , and semicircles on the chord give , which is half the ball of radius 2, as Cavalieri predicts.
Volume from scan data
A CT scan produces cross-section images at fixed spacing. Segmenting an organ in each image gives , and the volume is a numerical integral of those areas. Here simulated slices of an ellipsoid with semi-axes 3, 2, 1.5 cm are integrated with the trapezoid and Simpson rules (Approximate Integration):
import numpy as np
from scipy.integrate import simpson, trapezoid
a, b, c = 3.0, 2.0, 1.5
xs = np.linspace(-a, a, 13) # 13 slices, 0.5 cm apart
areas = np.pi * b * c * (1 - (xs / a)**2) # each slice is an ellipse
exact = 4 / 3 * np.pi * a * b * c
print(f"trapezoid: {float(trapezoid(areas, x=xs)):.4f} cm³")
print(f"Simpson: {float(simpson(areas, x=xs)):.4f} cm³")
print(f"exact: {exact:.4f} cm³")trapezoid: 37.4373 cm³
Simpson: 37.6991 cm³
exact: 37.6991 cm³
Simpson's rule is exact here because the slice areas are a quadratic function of .
In software
- 3D printing slicers cut a mesh into layers and compute each layer's area; the filament estimate is , the slicing formula with .
- Medical imaging measures tumour and organ volumes from CT/MRI slice areas exactly as above.
- Game engines compute a mesh's volume (for buoyancy and mass) by the divergence theorem, summing signed tetrahedra from the origin to each triangle: a 3-D cousin of the shoelace formula.
Exercises
Exercise 1: A disk method
Find the volume when the region under , , is rotated about the -axis.
Answer
.
Solution
.
Exercise 2: A washer
The region between and is rotated about the -axis. Find the volume.
Answer
.
Solution
Exercise 3: A cone by slicing
Derive the volume of a cone of height and base radius with the disk method.
Answer
.
Solution
Rotate the line , , about the -axis: .
import sympy as sp
x, r, h = sp.symbols('x r h', positive=True)
print(sp.integrate(sp.pi * (r * x / h)**2, (x, 0, h)))pi*h*r**2/3
Exercise 4: A different axis
Rotate the region under , , about the line . Find the volume.
Answer
.
Solution
The region lies below (since ). A vertical slice at goes from to , at distances 2 and from the axis: a washer with , .
import sympy as sp
x = sp.symbols('x', positive=True)
print(sp.integrate(sp.pi * (4 - (2 - sp.sqrt(x))**2), (x, 0, 4)))40*pi/3
Test yourself
Rotating the region between (outer) and (inner) about the -axis gives
Two solids have equal cross-section areas at every height. Cavalieri's principle says…
- they are congruent
- they have equal surface areas
- nothing
- they have equal volumes
What is the cross-section area of a ball of radius at distance from the centre?