---
title: Volumes by slicing
heading: Adding up thin disks to get a solid
eyebrow: A5 · Lesson 49 · Volumes by slicing
xp: 50
---

::: hook
How much ferrite is in a toroidal core? How much potting compound fills a cone-shaped housing? A solid whose cross-sections you know can be cut into thin slices, each nearly a flat disk or ring, and the slices added up with an integral. It's the same idea as area under a curve, one dimension up.
:::

::: play
- The curve $y = \sqrt{x}$ on $[0, b]$ is spun around the $x$ axis to make a solid. The bars show the radii of $n$ disk slices.
- Each slice is a thin disk of volume $\pi y^2\,\Delta x$. Increase $n$ and the stack of disks closes in on the smooth solid.
- The disks take their radius from the left edge of each slice. The readouts compare their total with the exact volume, $\pi b^2/2$.
:::

```sim plot
view: graph
x: x = 0..5
y: y = -2.5..2.5
slider: b = 1..5 = 4
slider: n = 2..30 step 1 = 6
plot: sqrt(x)*step(b - x) | samples: 400 | label: radius y = √x
plot: -sqrt(x)*step(b - x) | samples: 400 | color: ch1
plot: sqrt(floor(x*n/b)*b/n)*step(b - x) | samples: 800 | dashed | color: ch2 | label: disk radii
readout: exact volume = pi*b^2/2 | digits: 4
readout: disk sum = pi*b^2*(n - 1)/(2*n) | digits: 4
```

::: predict
## A cone of radius 3 cm and height 10 cm is made by spinning the line $y = 0.3x$ around the $x$ axis. What is its volume?

- [ ] $\pi \times 3^2 \times 10 = 283$ cm³, a cylinder
- [x] One third of that, 94.2 cm³
- [ ] Half of that, 141 cm³
- [ ] $\pi \times 3 \times 10 = 94.2$ cm³, by coincidence only

::: reveal
It's 94.2 cm³, a third of the cylinder. The disks have radius $0.3x$, so the volume is $\pi\int_0^{10}0.09x^2\,dx = \pi \times 0.09 \times \frac{1000}{3} = 30\pi$. The third comes from integrating $x^2$, the same third as in $\int_0^b x^2\,dx = b^3/3$.
:::
:::

::: nameit
## Slices

If a solid's cross-sectional area at position $x$ is $A(x)$, its volume between $a$ and $b$ is

$$V = \int_a^b A(x)\,dx$$

## Solids of revolution

Spin a region around the $x$ axis.
- **Disks:** if the region runs from the axis up to $y = f(x)$, each slice is a disk of area $\pi f(x)^2$:
$$V = \pi\int_a^b f(x)^2\,dx$$
- **Washers:** if it runs from an inner curve $g(x)$ to an outer $f(x)$, each slice is a ring:
$$V = \pi\int_a^b \left(f(x)^2 - g(x)^2\right)dx$$
Square each radius before subtracting; $\pi(f - g)^2$ is a common mistake.

## Shells

Spinning around the $y$ axis instead, it's often easier to cut the region into thin vertical strips. Each sweeps out a cylindrical shell of radius $x$, height $f(x)$ and thickness $dx$:

$$V = \int_a^b 2\pi x\,f(x)\,dx$$

## A useful shortcut

Spinning a shape of area $A$ around an axis, with its centroid a distance $R$ from the axis, gives a volume $2\pi RA$ (Pappus's theorem). A torus made from a circle of radius $r$ at distance $R$ has volume $2\pi R \cdot \pi r^2$.
:::

::: example
## Spin the region under $y = \sqrt{x}$ from 0 to 4 around the $x$ axis. What volume does it make?

::: solution
1. **Disk area.** Disks of radius $\sqrt{x}$ have area $\pi x$.
2. **Integrate.**
   $$\begin{aligned} V &= \pi\int_0^4 x\,dx \\ &= \pi \times 8 \\ &= 25.1 \end{aligned}$$
3. **Check against the cylinder.** The shape is a paraboloid, like a satellite dish filled in: its volume is exactly half the cylinder around it ($\pi \times 2^2 \times 4 = 50.3$).

**Answer:** the volume is $8\pi$, about 25.1.
:::
:::

::: example
## The region between $y = x$ and $y = x^2$ on $[0, 1]$ is spun around the $x$ axis. What is the volume?

::: solution
1. **Washers.** The line is the outer radius and the parabola the inner one, so the slices are washers.
2. **Integrate.**
   $$\begin{aligned} V &= \pi\int_0^1\left(x^2 - x^4\right)dx \\ &= \pi\left(\frac13 - \frac15\right) \\ &= \frac{2\pi}{15} \\ &= 0.419 \end{aligned}$$
3. **A common slip.** Using $\pi(x - x^2)^2$ instead would give $\pi/30 = 0.105$: the hole in a washer has to be subtracted as an area, so square each radius first.

**Answer:** the volume is $2\pi/15$, about 0.419.
:::
:::

::: example
## A toroidal ferrite core has a circular cross-section of radius 0.5 cm, centered 2 cm from the axis. How much ferrite is in it?

::: solution
1. **Slice across the axis.** At height $y$, each slice is a washer with radii $2 \pm s$, where $s = \sqrt{0.25 - y^2}$.
2. **Washer area.**
   $$\pi\left[(2 + s)^2 - (2 - s)^2\right] = 8\pi s$$
3. **Integrate.**
   $$\begin{aligned} V &= \int_{-0.5}^{0.5}8\pi\sqrt{0.25 - y^2}\,dy \\ &= 8\pi \times \frac{\pi(0.5)^2}{2} \\ &= 9.87\ \text{cm}^3 \end{aligned}$$
   The integral is the area of a half disk.
4. **Check with Pappus's theorem.** It gives the same in one line:
   $$\begin{aligned} V &= 2\pi \times 2 \times \pi(0.5)^2 \\ &= 2\pi^2 \times 0.5 \\ &= 9.87\ \text{cm}^3 \end{aligned}$$

**Answer:** the core holds 9.87 cm³ of ferrite.
:::
:::

::: check
given: r = 1 | 2 | 3; h = 4 | 10
answer: pi*r^2*h/3
unit: cm^3
tolerance: 0.5%

## A cone has base radius {r} cm and height {h} cm. What is its volume, by disks?

::: right
Right. $\pi\int_0^h (rx/h)^2\,dx = \frac{\pi r^2h}{3}$ = {answer}.
:::

::: misses
- [pi*r^2*h] That's the cylinder. The disks shrink toward the tip.
- [pi*r^2*h/2] The radius grows linearly, so the area grows as $x^2$: one third, not a half.
- [any] Not yet. Disks of radius $rx/h$ from $x = 0$ to $h$.
:::
:::

::: check
given: a = 0.5 | 1 | 2; b = 1 | 2
answer: pi*a^2*b^5/5
tolerance: 0.5%

## The region under $y = \given{a}x^2$ from 0 to {b} is spun around the $x$ axis. What volume does it make?

::: right
Right. $\pi\int_0^b a^2x^4\,dx = \frac{\pi a^2b^5}{5}$ = {answer}.
:::

::: misses
- [pi*a*b^3/3] Square the radius: the disk area is $\pi(ax^2)^2$.
- [any] Not yet. Disks of area $\pi(ax^2)^2$.
:::
:::

::: check
given: R = 1 | 2 | 5; r = 0.2 | 0.5
answer: 2*pi^2*R*r^2
unit: cm^3
tolerance: 0.5%

## A toroidal core has a circular cross-section of radius {r} cm centered {R} cm from its axis. What is its volume?

::: right
Right. $2\pi R \cdot \pi r^2$ = {answer}.
:::

::: misses
- [pi*r^2*R] Multiply the cross-section by the full circumference $2\pi R$ its center travels.
- [any] Not yet. The cross-section area times the distance its center travels.
:::
:::

::: check
given: n = 2 | 3 | 4
answer: pi*(1/3 - 1/(2*n + 1))
tolerance: 0.5%

## The region between $y = x$ and $y = x^{\given{n}}$ on $[0, 1]$ is spun around the $x$ axis. What volume does it make?

::: right
Right. $\pi\int_0^1(x^2 - x^{2n})\,dx$ = {answer}.
:::

::: misses
- [pi*(1/2 - 1/(n + 1))^2] Square each radius before subtracting, then integrate.
- [any] Not yet. Washers: outer radius $x$, inner $x^n$.
:::
:::

::: check
kind: parts
given: H = 2 | 3; b = 1 | 1.2

## The region under $y = \given{H} - x^2$, for $x$ from 0 to {b}, is spun around the $y$ axis. Use shells.

::: part
answer: 2*pi*(H*b^2/2 - b^4/4)
tolerance: 0.5%

### What volume does it make?

::: misses
- [pi*(H*b^2/2 - b^4/4)] Each shell has circumference $2\pi x$.
- [any] $\int_0^b 2\pi x(H - x^2)\,dx$.
:::
:::

::: part
answer: pi*b^2*H
tolerance: 0.5%

### What is the volume of the cylinder of radius {b} and height {H} that encloses it?

::: misses
- [any] $\pi b^2H$.
:::
:::
:::

::: check
kind: derivation
vars: r = 0.5..3, h = 1..10, x = 0..10

## Derive the volume of a cone of radius $r$ and height $h$ by disks.

::: step
answer: r*x/h

### The cone is the line from the origin to $(h, r)$, spun around the $x$ axis. What is the disk radius at $x$?
:::

::: step
answer: pi*r^2*x^2/h^2

### What is the disk's area?
:::

::: step
answer: pi*r^2*h/3

### Integrate from 0 to $h$.
:::

::: right
Right. $V = \frac13\pi r^2h$: the third comes from integrating $x^2$.
:::
:::

::: explain
## Why is the washer volume $\pi(f^2 - g^2)$ and not $\pi(f - g)^2$?

::: model
A washer is a disk of radius $f$ with a disk of radius $g$ removed from its middle. Its area is the big disk's area minus the hole's: $\pi f^2 - \pi g^2$. The expression $\pi(f - g)^2$ is the area of a single disk whose radius is the washer's width, which is far smaller, because a ring of width $f - g$ wraps all the way around at a large radius and so has much more area than a small disk of that radius. The difference between $f^2 - g^2 = (f - g)(f + g)$ and $(f - g)^2$ is the factor $f + g$, which accounts for how far around the axis the ring stretches.
:::
:::

::: practice

::: check
given: r = 0.1..10; h = 0.1..20
answer: pi*r^2*h/3
tolerance: 0.5%

## Cone volume, radius {r}, height {h}?

::: misses
- [any] $\frac13\pi r^2h$.
:::
:::

::: check
given: R = 0.5..10; r = 0.05..0.5
answer: 2*pi^2*R*r^2
tolerance: 0.5%

## Torus volume: tube radius {r}, center radius {R}?

::: misses
- [any] $2\pi^2Rr^2$.
:::
:::
:::
