Ma · Mathematics

How to Find the Volume of a Solid with Square Cross-Sections Over a Triangle

Published By the 9to5Science editorial team

At a glance

  1. 1. Describe the triangle

    Choose coordinates and identify the interval over which the slices run.

  2. 2. Find each square’s side

    At each position, measure the segment inside the triangular base perpendicular to the slicing direction.

  3. 3. Square the side length

    The cross-sectional area is the side length squared.

  4. 4. Integrate the area

    Integrate that area across the triangle’s full interval to obtain the volume.

A solid with a triangular base and square cross-sections is found by adding the areas of its square slices. The key step is to determine the side length of a typical square from the triangular base; that length usually changes from slice to slice.

The triangle’s dimensions and the direction of the cross-sections determine the numerical volume. The method below gives a general formula for a right triangle, followed by a worked example.

The cross-section formula

Suppose the base is a right triangle with legs of lengths bb and hh. Put the triangle in the coordinate plane with vertices (0,0)(0,0), (b,0)(b,0), and (0,h)(0,h). Its sloping side has equation

y=h(1−xb).y=h\left(1-\frac{x}{b}\right).

Take square cross-sections in planes perpendicular to the xx-axis. At a particular value of xx, the vertical segment inside the triangular base runs from y=0y=0 to y=h(1−x/b)y=h(1-x/b). This segment is the side of the square, so its length is

s(x)=h(1−xb).s(x)=h\left(1-\frac{x}{b}\right).

The cross-sectional area is the square of that length:

A(x)=s(x)2=h2(1−xb)2.A(x)=s(x)^2=h^2\left(1-\frac{x}{b}\right)^2.

To find the solid’s volume, integrate the area from the left end of the triangle to the right end:

V=∫0bA(x) dx=h2∫0b(1−xb)2 dx=bh23.V=\int_0^b A(x)\,dx = h^2\int_0^b\left(1-\frac{x}{b}\right)^2\,dx =\frac{bh^2}{3}.

This formula assumes the squares are built on cross-sections perpendicular to the leg of length bb. If you instead slice perpendicular to the leg of length hh, the changing square side runs along the other leg, and the result is hb2/3hb^2/3.

Worked example

Let the triangular base have vertices (0,0)(0,0), (6,0)(6,0), and (0,4)(0,4). The legs have lengths b=6b=6 and h=4h=4. Cross-sections perpendicular to the xx-axis are squares.

The line joining (6,0)(6,0) to (0,4)(0,4) has slope −4/6=−2/3-4/6=-2/3, so its equation is y=4−2x/3y=4-2x/3. At position xx, the side length of the square is therefore 4−2x/34-2x/3, and its area is

A(x)=(4−2x3)2.A(x)=\left(4-\frac{2x}{3}\right)^2.

Integrate over 0≤x≤60\le x\le 6:

V=∫06(4−2x3)2 dx=∫06(16−16x3+4x29) dx=[16x−8x23+4x327]06=96−96+32=32.\begin{aligned} V&=\int_0^6\left(4-\frac{2x}{3}\right)^2\,dx\\ &=\int_0^6\left(16-\frac{16x}{3}+\frac{4x^2}{9}\right)\,dx\\ &=\left[16x-\frac{8x^2}{3}+\frac{4x^3}{27}\right]_0^6\\ &=96-96+32\\ &=32. \end{aligned}

The volume is 32 cubic units. The general formula gives the same result: bh2/3=6⋅42/3=32bh^2/3=6\cdot 4^2/3=32.

Why the integral works

A thin slice of the solid has approximate volume equal to its cross-sectional area multiplied by its small thickness. For a slice at position xx, that is approximately A(x) ΔxA(x)\,\Delta x. Adding many such slices approximates the whole solid; taking the limit as the thickness shrinks gives the definite integral ∫A(x) dx\int A(x)\,dx.

The slice thickness must be measured in the direction in which the cross-sections are stacked. In the example, the slices run from x=0x=0 to x=6x=6, so the thickness is dxdx and the limits are 0 and 6.

Common mistakes

  • Using the triangle’s area as the cross-sectional area. The base is triangular, but each slice is square. Its area is the square of the segment length in the base.
  • Using the side length instead of its square. Integrating s(x)s(x) gives an area-like quantity, not volume. Use A(x)=s(x)2A(x)=s(x)^2.
  • Choosing the wrong limits. The limits cover the full range of slice positions. For slices perpendicular to the xx-axis in the example, they are 0 and 6.
  • Ignoring the slicing direction. A slice perpendicular to a different axis may have a different side-length function and a different volume. State the direction before setting up the integral.
  • Forgetting cubic units. Integrating an area over a length gives volume, so the result has units such as cubic centimeters or cubic meters.

If a problem gives a different triangle or a different direction for the cross-sections, use the same method: find the segment cut from the base by one slice, square its length, and integrate over the interval of slices.

Spotted an error? Send a correction. Read how we write and check articles in our editorial policy.