TExcelTAD
Home › Calculus in Depth › Volumes

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 x=ax = a and x=bx = b, and let A(x)A(x) be the area of its cross-section in the plane perpendicular to the xx-axis at xx. Cut the solid into slabs of thickness Δx\Delta x. A slab at xi∗x_i^* is approximately a cylinder (a prism with base area A(xi∗)A(x_i^*)) of volume A(xi∗)ΔxA(x_i^*)\Delta x. Adding them gives a Riemann sum, so for continuous AA:

V=∫abA(x) dxV = \int_a^b A(x)\,dx

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 rr centred at the origin has circular cross-sections of radius r2−x2\sqrt{r^2 - x^2}, so A(x)=π(r2−x2)A(x) = \pi(r^2 - x^2) and

V=∫−rrπ(r2−x2) dx=π[r2x−x33]−rr=π(2r3−2r33)=43πr3V = \int_{-r}^{r} \pi(r^2 - x^2)\,dx = \pi\Big[r^2x - \frac{x^3}{3}\Big]_{-r}^{r} = \pi\Big(2r^3 - \frac{2r^3}{3}\Big) = \frac{4}{3}\pi r^3

Solids of revolution: disks and washers

Rotate the region under y=f(x)≥0y = f(x) \ge 0, a≤x≤ba \le x \le b, about the xx-axis. Each cross-section is a disk of radius f(x)f(x):

V=∫abπ[f(x)]2 dxV = \int_a^b \pi[f(x)]^2\,dx

If the region lies between an outer curve R(x)R(x) and an inner curve r(x)r(x) (distances from the axis), the cross-section is a washer (a disk with a hole):

V=∫abπ([R(x)]2−[r(x)]2) dxV = \int_a^b \pi\big([R(x)]^2 - [r(x)]^2\big)\,dx

Tip: RR and rr are distances to the axis of rotation. Rotating about y=−1y = -1 instead of the xx-axis, a curve at height yy is at distance y+1y + 1. Draw the radius before writing the formula.

python · try it yourself
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 x2+y2≤4x^2 + y^2 \le 4; cross-sections perpendicular to the xx-axis are squares. At xx the square's side is the chord length 24−x22\sqrt{4 - x^2}, so A(x)=4(4−x2)A(x) = 4(4 - x^2) and

V=∫−224(4−x2) dx=4(16−163)=1283V = \int_{-2}^{2} 4(4 - x^2)\,dx = 4\Big(16 - \frac{16}{3}\Big) = \frac{128}{3}

Only A(x)A(x) changes with the shape of the slice. With equilateral triangles of side s=24−x2s = 2\sqrt{4 - x^2}, A=34s2A = \frac{\sqrt{3}}{4}s^2; with semicircles whose diameter is the chord, A=π2(s2)2A = \frac{\pi}{2}\big(\frac{s}{2}\big)^2. SymPy checks all three:

python · try it yourself
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 1283\frac{128}{3}, equilateral triangles 34⋅1283=3233\frac{\sqrt{3}}{4} \cdot \frac{128}{3} = \frac{32\sqrt{3}}{3}, and semicircles on the chord give π8⋅1283=16π3\frac{\pi}{8} \cdot \frac{128}{3} = \frac{16\pi}{3}, 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 A(xi)A(x_i), 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):

python · try it yourself
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 xx.

In software

  • 3D printing slicers cut a mesh into layers and compute each layer's area; the filament estimate is ∑A(zi)⋅Δz\sum A(z_i) \cdot \Delta z, the slicing formula with Δz=layer height\Delta z = \text{layer height}.
  • 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 y=exy = e^x, 0≤x≤10 \le x \le 1, is rotated about the xx-axis.

Answer

π(e2−1)2≈10.036\frac{\pi(e^2 - 1)}{2} \approx 10.036.

Solution

V=∫01πe2x dx=π[e2x2]01=π(e2−1)2V = \int_0^1 \pi e^{2x}\,dx = \pi\Big[\frac{e^{2x}}{2}\Big]_0^1 = \frac{\pi(e^2 - 1)}{2}.

Exercise 2: A washer

The region between y=xy = x and y=x2y = x^2 is rotated about the xx-axis. Find the volume.

Answer

2π15\frac{2\pi}{15}.

Solution
They meet at 0 and 1; on [0,1], x≥x2, so R=x, r=x2V=π∫01(x2−x4) dx=π(13−15)=2π15\begin{aligned} &\text{They meet at 0 and 1; on } [0, 1],\ x \ge x^2, \text{ so } R = x,\ r = x^2 \\ &V = \pi\int_0^1 (x^2 - x^4)\,dx = \pi\Big(\frac{1}{3} - \frac{1}{5}\Big) = \frac{2\pi}{15} \end{aligned}

Exercise 3: A cone by slicing

Derive the volume of a cone of height hh and base radius rr with the disk method.

Answer

πr2h3\frac{\pi r^2 h}{3}.

Solution

Rotate the line y=rhxy = \frac{r}{h}x, 0≤x≤h0 \le x \le h, about the xx-axis: V=∫0hπ(rh)2x2 dx=πr2h2⋅h33=πr2h3V = \int_0^h \pi\big(\frac{r}{h}\big)^2 x^2\,dx = \pi\frac{r^2}{h^2} \cdot \frac{h^3}{3} = \frac{\pi r^2 h}{3}.

python · try it yourself
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 y=xy = \sqrt{x}, 0≤x≤40 \le x \le 4, about the line y=2y = 2. Find the volume.

Answer

40π3≈41.888\frac{40\pi}{3} \approx 41.888.

Solution

The region lies below y=2y = 2 (since x≤2\sqrt{x} \le 2). A vertical slice at xx goes from y=0y = 0 to y=xy = \sqrt{x}, at distances 2 and 2−x2 - \sqrt{x} from the axis: a washer with R=2R = 2, r=2−xr = 2 - \sqrt{x}.

V=π∫04[4−(2−x)2] dx=π∫04(4x−x) dx=π(4⋅23⋅8−8)=π(643−8)=40π3V = \pi\int_0^4 \big[4 - (2 - \sqrt{x})^2\big]\,dx = \pi\int_0^4 (4\sqrt{x} - x)\,dx = \pi\Big(4 \cdot \frac{2}{3} \cdot 8 - 8\Big) = \pi\Big(\frac{64}{3} - 8\Big) = \frac{40\pi}{3}
python · try it yourself
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 R(x)R(x) (outer) and r(x)r(x) (inner) about the xx-axis gives V=V =

  1. π∫(R2−r2) dx\pi\int(R^2 - r^2)\,dx
  2. π∫(R−r)2 dx\pi\int(R - r)^2\,dx
  3. 2π∫R⋅r dx2\pi\int R \cdot r\,dx
  4. π∫R2 dx−r2\pi\int R^2\,dx - r^2

Two solids have equal cross-section areas at every height. Cavalieri's principle says…

  1. they are congruent
  2. they have equal surface areas
  3. nothing
  4. they have equal volumes

What is the cross-section area A(x)A(x) of a ball of radius rr at distance xx from the centre?

  1. πr2\pi r^2
  2. π(r2−x2)\pi(r^2 - x^2)
  3. 2πr2−x22\pi\sqrt{r^2 - x^2}
  4. π(r−x)2\pi(r - x)^2