Tutorials › Calculus I › Piecewise Cross-Sectional Area Integrals

Volumes by Cross Sections · Tutorial 1246 of 1495

Piecewise Cross-Sectional Area Integrals

Learn to locate changes in slice geometry or base-region boundaries and use them to set up and evaluate piecewise volume integrals.

Intermediate 10 min read

What You'll Learn

  • Identify where a slice’s cross-sectional area formula changes.
  • Split an integral at changes in the base-region boundaries.
  • Express each piece of cross-sectional area using the correct slice dimensions.
  • Evaluate and check a volume integral formed from multiple intervals.
  • Avoid applying one area formula across a region where the slice geometry changes.

Why a Volume Integral May Need Several Pieces

A solid’s cross-sectional area can vary as a slice moves through the base region. Sometimes the slice shape changes at a particular location. Sometimes the shape stays the same, but the boundaries of the base region that determine the slice dimensions change. Either way, an area formula that works on one interval may not work on the whole interval.

The remedy is to identify where the geometry changes, divide the interval there, and integrate the appropriate area formula on each piece. The resulting volume is the sum of those integrals.

This approach uses the cross-sectional-area interpretation of volume: a thin slice has approximately its cross-sectional area multiplied by its thickness, and adding the slices leads to an integral. The essential care in a piecewise problem is making sure that every formula matches the geometry on the interval where it is used.

Piecewise Cross-Sectional Area

Let \(x\) measure position along the direction in which slices are taken, and let \(A(x)\) be the area of the cross-section at position \(x\). If the area formula changes at positions \(c_1,\ldots,c_n\), divide the full interval at those positions and use a separate formula on each subinterval.

Definition: A piecewise cross-sectional area function is an area function defined by different formulas on different intervals. If its formulas are \(A_1,\ldots,A_{n+1}\) on consecutive subintervals of \([a,b]\), the volume is $$ V=\int_a^{c_1}A_1(x)\,dx+\int_{c_1}^{c_2}A_2(x)\,dx+\cdots+\int_{c_n}^{b}A_{n+1}(x)\,dx. $$ Each formula must give the area of the actual cross-section throughout its assigned interval.

Here the variable need not be \(x\). For horizontal slices, position may be measured by \(y\), and the volume is integrated with respect to \(y\). The area must be nonnegative, and the piecewise area functions should be integrable on their intervals. In the common case of finitely many continuous formulas on bounded intervals, these conditions are satisfied.

A breakpoint is a position where the formula changes. It can arise because two base-region boundaries meet or exchange roles, because a slice changes shape, or because the stated cross-section rule itself changes. It is useful to distinguish these causes: a boundary change affects the slice dimensions, while a shape change affects how those dimensions are converted into area.

How to Find the Breakpoints and Set Up the Integral

1
Choose the slice direction.
Identify the variable that measures position along the solid and use slices perpendicular to that direction.
2
Find all relevant changes.
Locate where the base-region boundaries intersect or switch which one determines an endpoint, and note any position where the cross-section shape changes.
3
Write the slice dimensions on each interval.
For each piece, determine the actual length or other dimension of the base-region chord.
4
Convert dimensions into area.
Apply the correct cross-section area formula on that interval, then integrate it over the same interval.
5
Add and check.
Sum the integrals, check each antiderivative, and verify that the result is nonnegative and consistent with the slice areas.

The integral is split at each breakpoint because the area expression on one side may not describe the slices on the other. A single formula can still be used across multiple intervals if it genuinely describes all those slices; a change of boundary does not automatically require a new formula if the resulting area expression is unchanged.

Why the Piecewise Integral Gives the Volume

Suppose the cross-sectional area is given by an integrable formula \(A_i(x)\) on each interval \([c_{i-1},c_i]\), where \(c_0=a\) and \(c_{n+1}=b\). Divide each interval into thin subintervals of width \(\Delta x\). A thin piece of the solid has volume approximately equal to its cross-sectional area multiplied by its thickness. Adding these approximations over one interval and taking the limit gives the definite integral of the area there.

The solid is the union of the pieces between consecutive breakpoints. Those pieces meet only at their boundary slices, which have zero thickness and therefore contribute no volume. The volume of the whole solid is thus the sum of the volumes of the pieces.

Derivation: On each subinterval \([c_{i-1},c_i]\), the cross-sectional-area definition of volume gives $$ V_i=\int_{c_{i-1}}^{c_i}A_i(x)\,dx. $$ Since the pieces occupy consecutive, non-overlapping ranges of \(x\), their volumes add: $$ V=\sum_{i=1}^{n+1}V_i =\sum_{i=1}^{n+1}\int_{c_{i-1}}^{c_i}A_i(x)\,dx. $$ This is precisely the piecewise integral formula. The argument requires the area function to be integrable on each interval, so that each piece has a well-defined volume by the cross-sectional-area definition.

The value assigned to the area formula at a single breakpoint does not affect the integral. What matters is that the formulas correctly describe the slices on the intervals between breakpoints.

Worked Examples

Worked Example: A Boundary Switch in a Triangular Base

The base region has vertices \((0,0)\), \((1,1)\), and \((2,0)\). Cross-sections perpendicular to the \(x\)-axis are squares, with one side equal to the vertical chord of the base. Find the volume.

For \(0\leq x\leq 1\), the upper boundary is \(y=x\), so the chord runs from \(y=0\) to \(y=x\). Its length is \(x\), and the square’s area is \(A_1(x)=x^2\).

For \(1\leq x\leq 2\), the upper boundary is \(y=2-x\). The chord length is \(2-x\), so the area is \(A_2(x)=(2-x)^2\). The boundary switch at \(x=1\) requires splitting the integral:

$$ V=\int_0^1x^2\,dx+\int_1^2(2-x)^2\,dx. $$

Evaluate each part:

$$ \int_0^1x^2\,dx =\left[\frac{x^3}{3}\right]_0^1 =\frac{1^3}{3}-\frac{0^3}{3} =\frac13, $$ $$ \int_1^2(2-x)^2\,dx =\left[-\frac{(2-x)^3}{3}\right]_1^2 =0-\left(-\frac13\right) =\frac13. $$

Therefore \(V=\frac13+\frac13=\frac23\) cubic units. The antiderivatives check because \(\frac{d}{dx}(x^3/3)=x^2\) and \(\frac{d}{dx}(-(2-x)^3/3)=(2-x)^2\). The two area formulas also agree at the breakpoint: each gives area \(1\) at \(x=1\).

Worked Example: A Change in Cross-Section Shape

The base is the rectangle \(0\leq x\leq 2\), \(0\leq y\leq 1\). Slices are perpendicular to the \(x\)-axis. For \(0\leq x\leq 1\), each cross-section is a square whose side is the vertical chord of the base. For \(1\leq x\leq 2\), each is a semicircle whose diameter is that chord. Find the volume.

Every vertical chord has length \(1-0=1\). On the first interval, the square area is \(1^2=1\). On the second, the semicircle has radius \(1/2\), so its area is \(\frac12\pi(1/2)^2=\pi/8\). The shape changes at \(x=1\), giving

$$ V=\int_0^1 1\,dx+\int_1^2\frac{\pi}{8}\,dx =[x]_0^1+\left[\frac{\pi x}{8}\right]_1^2 =(1-0)+\left(\frac{2\pi}{8}-\frac{\pi}{8}\right) =1+\frac{\pi}{8}. $$

The volume is \(1+\pi/8\) cubic units. Each antiderivative checks: the derivative of \(x\) is \(1\), and the derivative of \(\pi x/8\) is \(\pi/8\). The result also matches the interval lengths: one unit of length with area \(1\), followed by one unit with area \(\pi/8\).

Worked Example: Horizontal Slices with a Shape Change

The base region is bounded below by \(y=x^2\) and above by \(y=2\). Slices perpendicular to the \(y\)-axis are squares for \(0\leq y\leq 1\), then equilateral triangles for \(1\leq y\leq 2\). In each case, one side of the cross-section is the horizontal chord of the base. Find the volume.

At height \(y\), the inequality \(x^2\leq y\) gives \(-\sqrt y\leq x\leq\sqrt y\). The chord length is therefore \(2\sqrt y\). For \(0\leq y\leq1\), the square’s area is \((2\sqrt y)^2=4y\). For \(1\leq y\leq2\), an equilateral triangle of side \(s\) has area \(\sqrt3s^2/4\), so the area is \(\frac{\sqrt3}{4}(2\sqrt y)^2=\sqrt3y\). Thus

$$ V=\int_0^1 4y\,dy+\int_1^2\sqrt3y\,dy =[2y^2]_0^1+\left[\frac{\sqrt3}{2}y^2\right]_1^2 =2+\frac{\sqrt3}{2}(4-1) =2+\frac{3\sqrt3}{2}. $$

The volume is \(2+\frac{3\sqrt3}{2}\) cubic units. The antiderivatives check because the derivatives of \(2y^2\) and \(\sqrt3y^2/2\) are \(4y\) and \(\sqrt3y\), respectively. At \(y=1\), the chord length is \(2\); the area formulas give \(4\) for the square and \(\sqrt3\) for the triangle, as expected for two different cross-section shapes.

A Common Mistake: Keeping the First Boundary Formula

In the triangular-base example, it is incorrect to use \(A(x)=x^2\) throughout \(0\leq x\leq2\). That formula comes from the boundary \(y=x\), which determines the top of the vertical chord only up to \(x=1\). Using it on the full interval gives

$$ \int_0^2x^2\,dx =\left[\frac{x^3}{3}\right]_0^2 =\frac83. $$

This is not the volume: for \(x>1\), the actual chord length is \(2-x\), not \(x\). The correction is to split at the boundary intersection and use the appropriate area on each side:

$$ \int_0^1x^2\,dx+\int_1^2(2-x)^2\,dx=\frac23. $$

Checking the dimensions of the base-region chord before applying a cross-section formula helps prevent this error. In particular, a boundary expression should not be extended beyond the interval where it actually forms the boundary of the slice.

Why Careful Splitting Matters

Piecewise setup makes the geometry visible in the mathematics. Each integral records both the location of a group of slices and the formula for their areas. Correct breakpoints are especially important when the base region has changing boundaries: using the wrong boundary changes the chord, which changes every area and therefore the total volume.

Before evaluating, check that the intervals cover the full solid without gaps or overlaps, that each area expression is nonnegative on its interval, and that the variable of integration matches the slice direction. After evaluating, check the antiderivatives and consider whether the magnitude is plausible given the cross-sectional areas and interval lengths.

Check Your Understanding

For each question, identify the interval or geometry change that determines how the volume integral should be set up.

  1. A base-region boundary switches at \(x=3\). What should be checked before deciding whether to split the volume integral there?
  2. A square cross-section has side length \(2-x\) on \(1\leq x\leq2\). What area formula should be integrated on that interval?
  3. Every chord in a base region has length \(4\). Cross-sections are semicircles on \(0\leq x\leq1\) and squares on \(1\leq x\leq3\). Write the piecewise volume integral.
  4. For horizontal slices, what geometric information determines the endpoints of the chord at a fixed \(y\)?
  5. Why does changing the value assigned to the area function at one breakpoint not change the volume integral?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon