AP CALCULUS AB • APPLICATIONS OF INTEGRATION

Volumes with Cross Sections: Squares and Rectangles

Compute the volume of a solid by integrating the areas of known cross-sectional shapes.

Historical Context & Motivation

The problem of computing volumes of irregular solids has driven mathematical innovation for more than two millennia. Ancient geometers recognized that many three-dimensional objects cannot be decomposed neatly into familiar shapes like prisms or pyramids, so they sought general methods for slicing solids into thin layers whose areas could be measured and then reassembled. The intellectual lineage connecting Cavalieri's Principle to the modern definite integral reveals how the idea of known cross sections became one of the most powerful tools in applied mathematics.

~250 BCE
Archimedes' Method of Exhaustion
Archimedes computed the volume of a sphere by inscribing and circumscribing it with solids whose cross-sectional areas could be compared layer by layer—an early precursor to integration by known cross sections.
1635
Cavalieri's Principle Published
Bonaventura Cavalieri formalized the idea that two solids with identical cross-sectional areas at every height have the same volume, providing a rigorous geometric justification for slice-based volume computation.
1668
Newton & the Integral
Isaac Newton developed the method of fluents, enabling the summation of infinitely many infinitesimally thin slices—transforming geometric slicing arguments into algebraic integrals.
1823
Cauchy's Rigorous Integral
Augustin-Louis Cauchy gave the first ε-δ formulation of the definite integral, placing the cross-section method on the solid analytical footing used in modern calculus courses.

The central question this lesson addresses is deceptively simple: given a region in the xy-plane that serves as the base of a three-dimensional solid, and given that every cross section perpendicular to a chosen axis has a known geometric shape (a square or a rectangle), how do we compute the solid's volume exactly? The answer, as we will see, reduces to evaluating a single definite integral whose integrand is the cross-sectional area function.

Core Principles & Definitions

Before diving into computations, it is essential to internalize the foundational ideas that underpin every cross-section volume problem. These principles translate the geometric intuition of stacking thin slices into the algebraic machinery of the definite integral.

1

The Base Region

A bounded region R in the xy-plane, typically defined between two curves y = f(x) and y = g(x) (or x = h(y) and x = k(y)), serves as the footprint of the solid. Every cross section is erected on a line segment within this region.
2

Known Cross-Sectional Shape

At each value of the slicing variable, the cross section perpendicular to the slicing axis has a specified shape—in this lesson, a square or rectangle. The characteristic dimension (side length, width, or height) is determined by the geometry of the base region.
3

The Area Function A(x)

For each position x (or y) along the slicing axis, the cross-sectional area A(x) is expressed in terms of x using the curves that bound the base. For squares, A(x) = [f(x) − g(x)]². For rectangles, one dimension comes from the base and the other from a stated rule.
4

The Volume Integral

Summing infinitely many infinitesimally thin slabs of thickness dx (or dy) yields V = ∫ₐᵇ A(x) dx. This integral accumulates the cross-sectional areas across the full extent of the base, producing the exact volume.
KEY TAKEAWAY
Think of the solid as a loaf of bread. Each thin slice has a known shape—square or rectangular. If you could measure the area of every slice and then add them all up, you would recover the total volume. The definite integral is simply the mathematical device that performs this infinite summation exactly, much like an engineer summing infinitesimal layers of material in a 3-D printing process.

Visual Explanation

The diagram below illustrates the core idea for a solid whose base is the region between y = √x and y = 0 on the interval [0, 4], with square cross sections perpendicular to the x-axis. At a representative position x, the side length of the square equals the vertical distance √x − 0 = √x, so the cross-sectional area is A(x) = (√x)² = x.

The shaded region under y = √x from x = 0 to x = 4 forms the base. At each representative x-value x₀, a square of side length s = √x₀ is erected perpendicular to the x-axis. Notice how the squares grow larger as x increases because √x is an increasing function.

Observe that the square at x₀ ≈ 2.5 has side length √2.5 ≈ 1.58, while the square at x₀ = 4 has side length √4 = 2. Each square is an infinitesimally thin slab of thickness dx, and the area of that slab is A(x) = x. The volume of the entire solid is therefore V = ∫₀⁴ x dx = [x²/2]₀⁴ = 8. The diagram makes it visually clear why the integral accumulates area as a function of position along the slicing axis.

Mathematical Framework

The volume formula for solids with known cross sections is a direct consequence of the definition of the definite integral as a limit of Riemann sums. Partition the interval [a, b] into n subintervals of width Δx = (b − a)/n. In each subinterval, the cross-sectional area is approximately constant, so the thin slab has volume ≈ A(xₖ)Δx. Summing all slabs and taking the limit as n → ∞ yields the exact volume.

GENERAL VOLUME FORMULA
V = ∫ₐᵇ A(x) dx
where A(x) is the area of the cross section at position x, and the solid extends from x = a to x = b.

Square Cross Sections

When each cross section is a square whose side lies along the base region, the side length at position x equals the vertical (or horizontal) span of the base at that x-value. If the base is bounded above by f(x) and below by g(x), the side length is s(x) = f(x) − g(x), and the cross-sectional area is the square of that expression.

SQUARE CROSS SECTIONS
V = ∫ₐᵇ [f(x) − g(x)]² dx
The integrand is the square of the distance between the upper and lower boundary curves. This formula assumes slicing perpendicular to the x-axis; for slicing perpendicular to the y-axis, replace x with y and use the corresponding horizontal distance.

Rectangular Cross Sections

When each cross section is a rectangle, one dimension (the base of the rectangle) is typically determined by the base region—just as for squares—while the other dimension (the height of the rectangle) is given by a stated rule. A common specification on the AP exam is that the height of each rectangle is a fixed multiple of its base, say h = k × s(x), or that the height equals some other function of x.

RECTANGULAR CROSS SECTIONS (HEIGHT = k × BASE)
V = ∫ₐᵇ k · [f(x) − g(x)]² dx
where k is the constant ratio of the rectangle's height to its base. If the height is instead an independent function h(x), replace k · [f(x) − g(x)]² with h(x) · [f(x) − g(x)].
RECTANGULAR CROSS SECTIONS (GENERAL)
V = ∫ₐᵇ h(x) · [f(x) − g(x)] dx
Here h(x) is the height of the rectangle at position x and [f(x) − g(x)] is the base. This reduces to the square formula when h(x) = f(x) − g(x).
📝 AP Exam Tip
On the AP Calculus AB exam, cross-section problems almost always state the shape and which dimension comes from the base region. Read the problem carefully to determine whether the side of the square (or the base of the rectangle) equals f(x) − g(x) or some other expression. Misidentifying this dimension is the most common error.

Detailed Breakdown: Squares vs. Rectangles

While the overarching strategy is the same—express A(x), then integrate—the details differ depending on whether the cross sections are squares or rectangles, and whether the slicing axis is x or y. The diagram below shows a solid whose cross sections perpendicular to the x-axis are rectangles with height equal to half the base, built on the region between y = x² and y = x from x = 0 to x = 1.

The base region between y = x (pink) and y = x² (violet) on [0, 1]. At each x₀, a rectangle of base (x − x²) and height ½(x − x²) is erected. The rectangles are smallest near x = 0 and x = 1 (where the curves meet) and largest near x = 0.5.
Comparison of square and rectangular cross-section setups
FeatureSquare Cross SectionsRectangular Cross Sections
Side / Bases(x) = f(x) − g(x)base = f(x) − g(x)
HeightSame as side: s(x)Given separately—often a constant multiple k · s(x) or an independent function h(x)
Area FunctionA(x) = [f(x) − g(x)]²A(x) = h(x) · [f(x) − g(x)]
Number of Dimensions from BaseOne (side length)One or two, depending on the problem
Typical Exam Cue"Cross sections are squares perpendicular to the x-axis""Cross sections are rectangles with height equal to 3 times the base" or similar

Worked Example

Let us work through a complete example of each type. These are representative of the difficulty level you can expect on the AP Calculus AB exam.

Example 1: Square Cross Sections

Problem: The base of a solid is the region enclosed by y = sin x and y = 0 for 0 ≤ x ≤ π. Cross sections perpendicular to the x-axis are squares. Find the volume of the solid.

Square Cross Sections — V = ∫₀π sin²x dx
1
Step 1 — Identify the side lengthAt position x, the base region extends from y = 0 to y = sin x, so the side length of the square cross section is s(x) = sin x − 0 = sin x.
2
Step 2 — Write the area functionThe area of a square with side s is s², so A(x) = sin²x.
A(x) = sin²x
3
Step 3 — Set up the integralThe solid extends from x = 0 to x = π, so V = ∫₀π sin²x dx.
4
Step 4 — Evaluate using a power-reduction identityRecall sin²x = (1 − cos 2x)/2. Thus V = ∫₀π (1 − cos 2x)/2 dx = (1/2)[x − (sin 2x)/2]₀π = (1/2)[(π − 0) − (0 − 0)] = π/2.
V = π/2 ≈ 1.571

Example 2: Rectangular Cross Sections

Problem: The base of a solid is the region enclosed by y = x and y = x² on [0, 1]. Cross sections perpendicular to the x-axis are rectangles whose height is twice the base of the rectangle. Find the volume.

Rectangular Cross Sections — height = 2 × base
1
Step 1 — Determine which curve is on topOn the interval (0, 1), y = x ≥ y = x², so the upper curve is f(x) = x and the lower is g(x) = x².
2
Step 2 — Identify the rectangle's base dimensionThe base of each rectangle equals the vertical span of the region: b(x) = x − x².
b(x) = x − x²
3
Step 3 — Identify the rectangle's heightThe problem states the height is twice the base, so h(x) = 2(x − x²).
4
Step 4 — Write A(x) and set up the integralA(x) = b(x) × h(x) = (x − x²) × 2(x − x²) = 2(x − x²)². Expand: (x − x²)² = x² − 2x³ + x⁴. So V = 2∫₀¹ (x² − 2x³ + x⁴) dx.
5
Step 5 — Evaluate the integralV = 2[x³/3 − 2x⁴/4 + x⁵/5]₀¹ = 2[1/3 − 1/2 + 1/5] = 2[(10 − 15 + 6)/30] = 2(1/30) = 1/15.
V = 1/15 ≈ 0.0667

Common Pitfalls & Best Practices

Cross-section volume problems are conceptually elegant but procedurally unforgiving. A single misidentification in the setup phase invalidates the entire computation. The table below catalogs the most frequent errors alongside their corrections.

Common errors in cross-section volume problems
PitfallWhy It HappensHow to Avoid It
Wrong dimension from baseStudents use f(x) instead of f(x) − g(x), forgetting to subtract the lower curve when the base does not rest on the x-axis.Always sketch the base region and identify both bounding curves before writing A(x).
Squaring only the numeratorWhen the side length involves a fraction, students square the top but not the bottom.Write the full side-length expression in parentheses before squaring: [f(x) − g(x)]².
Wrong axis of slicingThe problem says 'perpendicular to the y-axis' but the student sets up dx slices.Match the differential to the slicing axis: perpendicular to x ⇒ dx; perpendicular to y ⇒ dy.
Confusing cross-section volume with disk/washerStudents insert π into the integrand because they associate 'volume integral' with πr².π appears only for circular cross sections (disks/washers). For squares and rectangles, no π is needed.
Incorrect limits of integrationThe limits are pulled from the wrong variable or the intersection points are miscalculated.Find intersection points by setting f(x) = g(x), and confirm the limits match the slicing variable.
KEY TAKEAWAY
The setup phase—sketching the base, identifying the bounding curves, and correctly expressing the cross-sectional area—accounts for roughly 80% of the difficulty in these problems. Once A(x) is correctly formulated, the remaining task is straightforward antidifferentiation. Treat the setup like an engineer reading blueprints: every dimension must come from the given data, and no assumptions should be made without verification.

Connections to Disks, Washers & Beyond

The cross-section method studied in this lesson is actually the most general volume technique in single-variable calculus. The disk method and washer method are simply special cases in which the known cross section is a circle or an annulus (ring). Similarly, solids with semicircular, triangular, or equilateral-triangle cross sections follow exactly the same blueprint—only the area formula changes. In multivariable calculus (Calculus III), this single-integral approach generalizes to double and triple integrals for even more complex geometries.

Comparison of volume-by-slicing methods
MethodCross-Section ShapeArea FormulaWhen to Use
Square Cross SectionsSquare[f(x) − g(x)]²Problem states cross sections are squares
Rectangular Cross SectionsRectangleh(x) · [f(x) − g(x)]Problem states cross sections are rectangles with a given height rule
Disk MethodCircle (filled)π[R(x)]²Solid of revolution, no hollow core
Washer MethodAnnulus (ring)π([R(x)]² − [r(x)]²)Solid of revolution with hollow core
Semicircular Cross SectionsSemicircle(π/8)[f(x) − g(x)]²Problem states semicircular cross sections with diameter on the base

Looking ahead, students who continue to Calculus BC or multivariable calculus will encounter the shell method (which uses cylindrical shells rather than planar slices) and eventually triple integrals that compute volumes by summing infinitesimal cubes throughout a three-dimensional region. The conceptual core, however, remains identical: decompose a complex solid into simple pieces whose measure you can compute, then sum.

Practice Problems

1
A solid has a base in the xy-plane, and its cross sections perpendicular to the x-axis are squares. The base is bounded by y = 2x and y = 0 on [0, 3]. Which of the following integrals gives the volume of the solid?
2
The base of a solid is the region bounded by y = √x and y = 0 on [0, 9]. Cross sections perpendicular to the x-axis are squares. What is the volume of the solid?
3
The base of a solid is the region enclosed by y = 4 − x² and y = 0. Cross sections perpendicular to the x-axis are rectangles whose height is 3 times the length of the base of the rectangle. What is the volume of the solid?
PROBLEM 4APPLIED
A landscape architect designs a decorative garden bed whose footprint in the xy-plane is the region R bounded by y = 6 − x² and y = 2. The bed is filled with soil so that cross sections perpendicular to the y-axis are squares. (a) Sketch the region R and identify the limits of integration in terms of y. (1 point) (b) Express the side length of a square cross section as a function of y. (1 point) (c) Write and evaluate the integral that gives the volume of soil needed. (2 points)
PROBLEM 5CRITICAL THINKING
Let R be the region in the first quadrant bounded by y = kx and y = x² for some constant k > 0. A solid has base R and square cross sections perpendicular to the x-axis. Show that the volume of the solid is k⁵/30, and explain geometrically why the volume scales as the fifth power of k.

Lesson Summary

Computing volumes with known cross sections reduces a three-dimensional problem to a single definite integral: V = ∫ₐᵇ A(x) dx. For square cross sections, the area function is A(x) = [f(x) − g(x)]², where the integrand is simply the square of the distance between the bounding curves. For rectangular cross sections, one dimension comes from the base region and the other is given by the problem, yielding A(x) = h(x) · [f(x) − g(x)]. The critical step in every problem is correctly identifying the characteristic dimension from the geometry of the base region.

Always begin by sketching the base region and identifying which curve is on top. Determine the slicing axis (perpendicular to x ⇒ dx, perpendicular to y ⇒ dy) and find the limits of integration from the intersection points or given interval. Remember: no factor of π appears for squares or rectangles—that is reserved for circular cross sections in the disk and washer methods. With practice, the cross-section technique becomes one of the most versatile tools in your calculus toolkit.

Varsity Tutors • AP Calculus AB • Volumes with Cross Sections: Squares and Rectangles