Volumes by Cylindrical Shells
Some solids of revolution are awkward with washers: rotating about the -axis would need as a function of , which means solving a cubic. The shell method slices the region parallel to the axis instead, so each slice sweeps out a thin cylindrical shell and the integral stays in . This lesson derives the shell formula, shows it agrees with washers, and gives a rule for choosing between them.
The volume of a shell
A cylindrical shell is a tube with inner radius , outer radius and height :
where is the average radius and the thickness. Think of cutting the tube open and flattening it: a slab of length (the circumference), height and thickness .
The shell method
Rotate the region under , , about the -axis. Slice the region into vertical strips of width . The strip at (take the midpoint) sweeps out a shell of average radius , height , thickness . Adding the shells gives a Riemann sum, and in the limit
More generally: , where the radius is the strip's distance to the axis. About the line , the radius becomes ; about for a region left of it, .
Example: about the y-axis
On , .
With washers we would need the two inverse branches of the cubic on each side of its peak at . SymPy can do it, numerically, which confirms the shell answer:
import sympy as sp
from scipy.optimize import brentq
from scipy.integrate import quad
import math
x = sp.symbols('x', real=True)
V_shell = sp.integrate(2 * sp.pi * x * (4 * x - x**3), (x, 0, 2))
print("shells: V =", V_shell, "≈", round(float(V_shell), 6))
f = lambda t: 4 * t - t**3
xp = 2 / math.sqrt(3); ymax = f(xp) # peak of the curve
inner = lambda y: brentq(lambda t: f(t) - y, 0, xp) # left branch, solved numerically
outer = lambda y: brentq(lambda t: f(t) - y, xp, 2) # right branch
V_washer = quad(lambda y: math.pi * (outer(y)**2 - inner(y)**2), 0, ymax)[0]
print("washers: V ≈", round(V_washer, 6), "(each washer needed two cubic root-finds)")shells: V = 128*pi/15 ≈ 26.808257
washers: V ≈ 26.808257 (each washer needed two cubic root-finds)
Why shells and washers agree
For a region where both methods apply, they compute the same Riemann-sum limit in two different orders: the solid is a union of thin shells and also a union of thin washers. A cleaner way to see the equivalence for is Pappus's theorem: the volume of a solid of revolution is the area of the region times the distance travelled by its centroid, . Since , this is exactly the shell formula. (Centroids appear in Applications to Physics and Engineering.)
A Riemann sum of shells
The derivation is a recipe for computation. Summing actual shells converges to the integral, quadratically fast with midpoint radii:
import math
f = lambda x: 4 * x - x**3
exact = 128 * math.pi / 15
for n in (4, 16, 64, 256):
dx = 2 / n
total = 0.0
for i in range(n):
r1, r2 = i * dx, (i + 1) * dx
h = f((r1 + r2) / 2)
total += math.pi * (r2**2 - r1**2) * h # exact volume of one shell
print(f"n = {n:3}: sum of shells = {total:.6f} error = {total - exact:+.2e}")n = 4: sum of shells = 27.832547 error = +1.02e+00
n = 16: sum of shells = 26.873618 error = +6.54e-02
n = 64: sum of shells = 26.812348 error = +4.09e-03
n = 256: sum of shells = 26.808513 error = +2.56e-04
Choosing a method
| The axis is… | Washers slice… | Shells slice… |
|---|---|---|
| horizontal () | perpendicular to it, integrate in | parallel to it, integrate in |
| vertical () | perpendicular to it, integrate in | parallel to it, integrate in |
Pick the method whose variable lets you write the boundary curves directly, and whose region needs the fewest integrals. If cannot be solved for , and the axis is vertical, shells win.
A last example where shells are the only reasonable route: rotate the region under , , about the -axis. With :
import sympy as sp
x = sp.symbols('x', nonnegative=True)
print("V =", sp.integrate(2 * sp.pi * x * sp.sin(x**2), (x, 0, sp.sqrt(sp.pi))))V = 2*pi
In software
- CAD and lathe parts. Turned parts (shafts, bottles, vases) are solids of revolution defined by a profile curve. CAD kernels compute their volume and mass with Pappus's theorem or shell integrals of the profile.
- Radial quantities. Anything with radial symmetry, such as light falloff around a point, charge in a cylinder or a bokeh kernel, integrates with the weight : the shell idea in 2-D (rings) and 3-D. Polar double integrals carry the same factor (Double Integrals in Polar Coordinates).
- Sampling discs. To sample a point uniformly in a disc, a renderer must account for : choosing uniformly crowds points near the centre, while does not.
Exercises
Exercise 1: Basic shells
Rotate the region under , , about the -axis. Find the volume.
Answer
.
Solution
.
Exercise 2: Shifted axis
Rotate the same region about the line . Find the volume.
Answer
.
Solution
(A coincidence: the two answers are equal for this region.)
import sympy as sp
x = sp.symbols('x')
print(sp.integrate(2*sp.pi*x*x**2, (x, 0, 2)), sp.integrate(2*sp.pi*(3 - x)*x**2, (x, 0, 2)))8*pi 8*pi
Exercise 3: Shells about the x-axis
Rotate the region bounded by , (so above the axis) about the -axis using shells.
Answer
.
Solution
Horizontal strips at height have length and radius : . Check with disks: .
Exercise 4: Uniform points in a disc
Why does (with uniform in ) give uniformly spread points in a disc of radius ?
Answer
The fraction of the disc's area within radius is ; setting it equal to gives .
Solution
The area of the ring between and is , so the CDF of the radius is . Inverse-transform sampling sets .
import numpy as np
rng = np.random.default_rng(5)
r = 1.0 * np.sqrt(rng.uniform(0, 1, 200_000))
print("fraction within r = 0.5:", round(float(np.mean(r < 0.5)), 3), " (area ratio 0.25)")fraction within r = 0.5: 0.25 (area ratio 0.25)
Test yourself
For rotation about the -axis, the shell method integrates…
When is the shell method usually easier than washers for a vertical axis?
- Never
- When the region is a rectangle
- When the curve is hard to solve for
- When the axis is horizontal
What is the radius of a shell at when rotating about (region with )?