TExcelTAD
Home › Calculus in Depth › Volumes by Cylindrical Shells

Volumes by Cylindrical Shells

Some solids of revolution are awkward with washers: rotating y=4x−x3y = 4x - x^3 about the yy-axis would need xx as a function of yy, 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 xx. 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 r1r_1, outer radius r2r_2 and height hh:

V=πr22h−πr12h=π(r2+r1)(r2−r1)h=2π⋅rˉ⋅h⋅ΔrV = \pi r_2^2 h - \pi r_1^2 h = \pi(r_2 + r_1)(r_2 - r_1)h = 2\pi \cdot \bar{r} \cdot h \cdot \Delta r

where rˉ=r1+r22\bar{r} = \frac{r_1 + r_2}{2} is the average radius and Δr=r2−r1\Delta r = r_2 - r_1 the thickness. Think of cutting the tube open and flattening it: a slab of length 2πrˉ2\pi\bar{r} (the circumference), height hh and thickness Δr\Delta r.

The shell method

Rotate the region under y=f(x)≥0y = f(x) \ge 0, 0≤a≤x≤b0 \le a \le x \le b, about the yy-axis. Slice the region into vertical strips of width Δx\Delta x. The strip at xix_i (take xi∗x_i^* the midpoint) sweeps out a shell of average radius xi∗x_i^*, height f(xi∗)f(x_i^*), thickness Δx\Delta x. Adding the shells gives a Riemann sum, and in the limit

V=∫ab2πxf(x) dx(circumference×height×thickness)V = \int_a^b 2\pi x f(x)\,dx \qquad (\text{circumference} \times \text{height} \times \text{thickness})

More generally: V=∫2π (radius)(height) d(variable along the radius)V = \int 2\pi\,(\text{radius})(\text{height})\,d(\text{variable along the radius}), where the radius is the strip's distance to the axis. About the line x=−1x = -1, the radius becomes x+1x + 1; about x=3x = 3 for a region left of it, 3−x3 - x.

Example: y=4x−x3y = 4x - x^3 about the y-axis

On [0,2][0, 2], 4x−x3=x(2−x)(2+x)≥04x - x^3 = x(2 - x)(2 + x) \ge 0.

V=∫022πx(4x−x3) dx=2π∫02(4x2−x4) dx=2π(323−325)=128π15V = \int_0^2 2\pi x(4x - x^3)\,dx = 2\pi\int_0^2 (4x^2 - x^4)\,dx = 2\pi\Big(\frac{32}{3} - \frac{32}{5}\Big) = \frac{128\pi}{15}

With washers we would need the two inverse branches of the cubic on each side of its peak at x=23x = \frac{2}{\sqrt{3}}. SymPy can do it, numerically, which confirms the shell answer:

python · try it yourself
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 V=∫2πxf(x) dxV = \int 2\pi x f(x)\,dx is Pappus's theorem: the volume of a solid of revolution is the area of the region times the distance travelled by its centroid, V=2πxˉ⋅AV = 2\pi \bar{x} \cdot A. Since xˉ=1A∫xf(x) dx\bar{x} = \frac{1}{A}\int x f(x)\,dx, 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:

python · try it yourself
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 (y=cy = c) perpendicular to it, integrate in xx parallel to it, integrate in yy
vertical (x=cx = c) perpendicular to it, integrate in yy parallel to it, integrate in xx

Pick the method whose variable lets you write the boundary curves directly, and whose region needs the fewest integrals. If y=f(x)y = f(x) cannot be solved for xx, and the axis is vertical, shells win.

A last example where shells are the only reasonable route: rotate the region under y=sin⁡(x2)y = \sin(x^2), 0≤x≤π0 \le x \le \sqrt{\pi}, about the yy-axis. With u=x2u = x^2:

V=∫0π2πxsin⁡(x2) dx=π∫0πsin⁡u du=2πV = \int_0^{\sqrt{\pi}} 2\pi x \sin(x^2)\,dx = \pi\int_0^{\pi} \sin u\,du = 2\pi
python · try it yourself
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 2πr dr2\pi r\,dr: the shell idea in 2-D (rings) and 3-D. Polar double integrals carry the same rr factor (Double Integrals in Polar Coordinates).
  • Sampling discs. To sample a point uniformly in a disc, a renderer must account for 2πr dr2\pi r\,dr: choosing rr uniformly crowds points near the centre, while r=Rur = R\sqrt{u} does not.

Exercises

Exercise 1: Basic shells

Rotate the region under y=x2y = x^2, 0≤x≤20 \le x \le 2, about the yy-axis. Find the volume.

Answer

8π8\pi.

Solution

V=∫022πx⋅x2 dx=2π⋅[x44]02=2π⋅4=8πV = \int_0^2 2\pi x \cdot x^2\,dx = 2\pi \cdot \Big[\frac{x^4}{4}\Big]_0^2 = 2\pi \cdot 4 = 8\pi.

Exercise 2: Shifted axis

Rotate the same region about the line x=3x = 3. Find the volume.

Answer

8π8\pi.

Solution
radius=3−x,height=x2V=2π∫02(3−x)x2 dx=2π(3⋅83−164)=2π(8−4)=8π\begin{aligned} &\text{radius} = 3 - x, \quad \text{height} = x^2 \\ &V = 2\pi\int_0^2 (3 - x)x^2\,dx = 2\pi\Big(3 \cdot \frac{8}{3} - \frac{16}{4}\Big) = 2\pi(8 - 4) = 8\pi \end{aligned}

(A coincidence: the two answers are equal for this region.)

python · try it yourself
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 x=y2x = y^2, x=4x = 4 (so 0≤y≤20 \le y \le 2 above the axis) about the xx-axis using shells.

Answer

8π8\pi.

Solution

Horizontal strips at height yy have length 4−y24 - y^2 and radius yy: V=∫022πy(4−y2) dy=2π(8−4)=8πV = \int_0^2 2\pi y(4 - y^2)\,dy = 2\pi(8 - 4) = 8\pi. Check with disks: ∫04π(x)2 dx=π⋅8=8π\int_0^4 \pi(\sqrt{x})^2\,dx = \pi \cdot 8 = 8\pi.

Exercise 4: Uniform points in a disc

Why does r=R⋅ur = R \cdot \sqrt{u} (with uu uniform in [0,1][0, 1]) give uniformly spread points in a disc of radius RR?

Answer

The fraction of the disc's area within radius rr is r2R2\frac{r^2}{R^2}; setting it equal to uu gives r=Rur = R\sqrt{u}.

Solution

The area of the ring between rr and r+drr + dr is 2πr dr2\pi r\,dr, so the CDF of the radius is ∫0r2πs dsπR2=r2R2\frac{\int_0^r 2\pi s\,ds}{\pi R^2} = \frac{r^2}{R^2}. Inverse-transform sampling sets u=r2R2u = \frac{r^2}{R^2}.

python · try it yourself
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 yy-axis, the shell method integrates…

  1. 2πx⋅f(x) dx2\pi x \cdot f(x)\,dx
  2. π[f(x)]2 dx\pi[f(x)]^2\,dx
  3. 2πf(x) dx2\pi f(x)\,dx
  4. πx2f(x) dx\pi x^2 f(x)\,dx

When is the shell method usually easier than washers for a vertical axis?

  1. Never
  2. When the region is a rectangle
  3. When the curve y=f(x)y = f(x) is hard to solve for xx
  4. When the axis is horizontal

What is the radius of a shell at xx when rotating about x=−2x = -2 (region with x≥0x \ge 0)?

  1. xx
  2. x+2x + 2
  3. x−2x - 2
  4. 2−x2 - x