Tutorials › AP Calculus › Deriving the Vertical-Slice Area Formula

Area Between Curves · Tutorial 630 of 999

Deriving the Vertical-Slice Area Formula

Learn to build the vertical-slice area formula from thin rectangles and apply it when one curve stays above the other.

Intermediate 9 min read

What You'll Learn

  • Describe a region between two curves using vertical slices.
  • Explain why a slice’s height is the upper function minus the lower function.
  • Derive the area formula from a limit of rectangle sums.
  • Recognize why the widths of vertical slices lead to integration with respect to x.
  • Apply and check the formula in exact examples.
  • Identify the sign error caused by reversing upper and lower functions.

From a Region to Thin Strips

A definite integral can represent geometric area, but for a region bounded by two curves we first need to describe what each small piece of that region looks like. Vertical slices provide one systematic way to do this. Each slice has a small horizontal width and extends vertically from the lower curve to the upper curve.

The key is to keep the two dimensions of a slice distinct. Its height comes from the vertical distance between the curves; its width comes from a small change in \(x\). Adding the areas of many such thin strips leads to an integral with respect to \(x\).

Central idea: When a region extends from \(x=a\) to \(x=b\), and a function \(f\) stays above a function \(g\) throughout that interval, a vertical slice has height \(f(x)-g(x)\). Its approximate area is \((f(x)-g(x))\Delta x\).

Describing the Region

Suppose \(f\) and \(g\) are continuous on the closed interval \([a,b]\), and suppose \(f(x)\ge g(x)\) for every \(x\) in that interval. Consider the region consisting of points whose \(x\)-coordinates lie between \(a\) and \(b\), and whose \(y\)-coordinates lie between the two curves:

$$ R=\{(x,y):a\le x\le b,\ g(x)\le y\le f(x)\}. $$

At a fixed value of \(x\), a vertical line meets the region from \(y=g(x)\) at the bottom to \(y=f(x)\) at the top. The vertical distance between those two values is

$$ f(x)-g(x). $$

This is why the slice’s height is upper function minus lower function. The subtraction measures a distance in the vertical direction: the top \(y\)-coordinate minus the bottom \(y\)-coordinate.

To approximate the area, divide \([a,b]\) into small subintervals. A subinterval from \(x_{i-1}\) to \(x_i\) has width \(\Delta x_i=x_i-x_{i-1}\). Choose a sample value \(\xi_i\) in that subinterval. The vertical distance at the sample value is \(f(\xi_i)-g(\xi_i)\), so a thin rectangle with that height and width has area

$$ \bigl(f(\xi_i)-g(\xi_i)\bigr)\Delta x_i. $$

Adding these approximate areas gives an approximation for the area of the whole region. The widths are horizontal changes in \(x\), so the sums use \(\Delta x_i\). As the subintervals become arbitrarily narrow, the sums approach the definite integral with respect to \(x\).

Deriving the Formula

The derivation makes precise how the strip areas become an integral. Let \(P\) be a partition of \([a,b]\), written \(a=x_0<x_1<\cdots<x_n=b\). For each subinterval, let \(\Delta x_i=x_i-x_{i-1}\) and choose \(\xi_i\in[x_{i-1},x_i]\). The sum of the sample-rectangle areas is

$$ \sum_{i=1}^{n}\bigl(f(\xi_i)-g(\xi_i)\bigr)\Delta x_i. $$

As the greatest subinterval width approaches zero, these sums approach the area. This limit is the definite integral of the continuous height function \(f-g\). The continuity condition ensures that the height varies without jumps and that the rectangle sums converge to the integral.

Theorem: If \(f\) and \(g\) are continuous on \([a,b]\) and \(f(x)\ge g(x)\) throughout \([a,b]\), then the area of the region between their graphs and the vertical lines \(x=a\) and \(x=b\) is $$ A=\int_a^b \bigl(f(x)-g(x)\bigr)\,dx. $$

The formula has three parts that each come from the geometry. The limits \(a\) and \(b\) mark the region’s horizontal extent. The difference \(f(x)-g(x)\) is the vertical height of a slice. The \(dx\) indicates that the slices have horizontal widths, so the sum is taken across \(x\).

1
Choose a vertical location.
At a particular \(x\), identify the top curve \(f(x)\) and the bottom curve \(g(x)\).
2
Find the slice height.
Subtract the bottom \(y\)-coordinate from the top \(y\)-coordinate: \(f(x)-g(x)\).
3
Multiply by a small width.
A strip near \(x\) has approximate area \((f(x)-g(x))\Delta x\).
4
Take the limit of the sum.
As the widths shrink, the sum becomes \(\int_a^b(f(x)-g(x))\,dx\).

Worked Examples

Worked Example: A Line Below a Horizontal Curve

Find the area between \(y=3\) and \(y=x\) from \(x=0\) to \(x=2\).

First determine which function is upper. On this interval, \(x\le2<3\), so \(y=3\) is above \(y=x\). The vertical slice height is \(3-x\), and the width direction is \(x\). Therefore,

$$ A=\int_0^2(3-x)\,dx. $$

An antiderivative of \(3-x\) is \(3x-\frac{x^2}{2}\). Evaluating at the endpoints gives

$$ A=\left[3x-\frac{x^2}{2}\right]_0^2 =\left(3(2)-\frac{2^2}{2}\right)-\left(3(0)-\frac{0^2}{2}\right) =(6-2)-0 =4. $$

Check: The vertical heights at the left and right endpoints are \(3\) and \(1\), and the horizontal width is \(2\). The trapezoid area is \(\frac{3+1}{2}\cdot2=4\), agreeing with the integral.

Worked Example: A Parabola Above a Horizontal Curve

Find the area between \(y=x^2+2\) and \(y=2\) from \(x=0\) to \(x=1\).

Since \(x^2\ge0\), the function \(x^2+2\) is at least \(2\) throughout the interval. Thus the slice height is \((x^2+2)-2=x^2\). The area is

$$ A=\int_0^1\bigl((x^2+2)-2\bigr)\,dx =\int_0^1x^2\,dx. $$

An antiderivative of \(x^2\) is \(\frac{x^3}{3}\), so

$$ A=\left[\frac{x^3}{3}\right]_0^1 =\frac{1^3}{3}-\frac{0^3}{3} =\frac13. $$

Check: Differentiating \(\frac{x^3}{3}\) gives \(x^2\), the slice height. The height is nonnegative on \([0,1]\), and the computed area \(\frac13\) is positive, as an area should be.

Worked Example: A Constant Upper Curve

Find the area between \(y=5\) and \(y=x^2+1\) from \(x=-2\) to \(x=2\).

On this interval, \(x^2\le4\), so \(x^2+1\le5\). The constant curve is upper, and each vertical slice has height \(5-(x^2+1)=4-x^2\). Hence

$$ A=\int_{-2}^{2}(4-x^2)\,dx. $$

An antiderivative is \(4x-\frac{x^3}{3}\). Substituting both endpoints yields

$$ \begin{aligned} A &=\left[4x-\frac{x^3}{3}\right]_{-2}^{2}\\ &=\left(4(2)-\frac{2^3}{3}\right) -\left(4(-2)-\frac{(-2)^3}{3}\right)\\ &=\left(8-\frac83\right)-\left(-8+\frac83\right)\\ &=\frac{16}{3}-\left(-\frac{16}{3}\right) =\frac{32}{3}. \end{aligned} $$

Check: The region fits inside a rectangle of width \(4\) and height \(4\), whose area is \(16\). The area between \(y=1\) and \(y=x^2+1\) is \(\int_{-2}^{2}x^2\,dx=\frac{16}{3}\). Removing that portion from the rectangle gives \(16-\frac{16}{3}=\frac{32}{3}\), matching the result.

Why the Difference Must Be in the Right Order

The formula depends on identifying the upper and lower functions correctly. Reversing them changes the sign of every slice height. For the first example, an incorrect setup would be

$$ \int_0^2(x-3)\,dx =\left[\frac{x^2}{2}-3x\right]_0^2 =(2-6)-0 =-4. $$

The calculation is consistent with its integrand, but \(x-3\) is negative on the interval: it measures bottom minus top, not a positive geometric height. The correction is to use upper minus lower, \(3-x\), which gives area \(4\). A negative result here signals that the subtraction order does not match the geometry.

The requirement that one function stay above the other across the interval matters. If the ordering does not hold throughout, \(f-g\) is not a nonnegative slice height everywhere, so this single formula does not directly describe the total geometric area. The formula derived here applies when the upper and lower roles are consistent on the interval.

Why Vertical Slices Lead to \(dx\)

A vertical slice is narrow in the horizontal direction and tall in the vertical direction. Its small width is a change in \(x\), denoted \(\Delta x\); when the widths shrink in the limit, that becomes \(dx\). Its height is measured by subtracting \(y\)-values. This geometric pairing explains the structure of the integral rather than treating \(dx\) as an arbitrary symbol.

For an area measured in square units, the dimensions also make sense: the slice height has vertical units, while its width has horizontal units. Multiplying them gives square units. For example, if the functions represent heights in meters and \(x\) is measured in meters, then \((f(x)-g(x))\,dx\) is measured in square meters.

The vertical-slice formula is useful because it translates a two-dimensional region into a one-variable accumulation. Once the boundaries are described by functions of \(x\) and their order is known, each slice contributes its height times its width, and the integral adds those contributions across the interval.

Check Your Understanding

Use the slice-height reasoning in each question before evaluating any integral.

  1. For a region between \(y=f(x)\) and \(y=g(x)\), with \(f(x)\ge g(x)\) on \([a,b]\), what is the height of a vertical slice?
  2. Why does adding the areas of vertical strips lead to an integral with respect to \(x\)?
  3. Set up, but do not evaluate, the area between \(y=4\) and \(y=x+1\) on \([0,2]\).
  4. If the lower function is mistakenly subtracted from the upper function in the wrong order, what does a negative integral indicate in this setting?
  5. State the continuity and ordering conditions used in the vertical-slice area formula.

Test yourself: AP Calculus practice exams

Ready to check what you know? Work an AP-style practice exam, then open the full solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers all of AP Calculus AB & BC: 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