Tutorials › Calculus I › Rectangular Approximations and the Definite Integral

Riemann Sums and the Integral · Tutorial 935 of 1495

Rectangular Approximations and the Definite Integral

Build the definite integral from signed rectangular approximations and see how exact finite sums converge to total accumulation.

Intermediate 10 min read

What You'll Learn

  • Construct equal-width rectangular approximations on a closed interval.
  • Interpret rectangle heights as signed values of a function.
  • Distinguish an approximation from the limiting accumulated value.
  • Compute limits of left-endpoint and midpoint rectangle sums.
  • Explain why different sample choices can converge to the same integral.
  • Identify the error caused by replacing signed area with unsigned area.

From rectangles to accumulated change

A rate that varies over time does not have one constant value to multiply by the whole time interval. Instead, divide the interval into smaller pieces, estimate the rate on each piece, and add the resulting changes. A rate that is positive contributes positive accumulation; a negative rate contributes negative accumulation.

Geometrically, each estimate is the signed area of a rectangle: its width is a subinterval length, and its height is a sampled value of the function. Adding the rectangles gives an approximation to the total accumulation. Making the rectangles narrower can improve the approximation, and the limiting value gives the idea of the definite integral.

Key idea: A rectangle with width \(\Delta x\) and height \(f(x^*)\) contributes \(f(x^*)\Delta x\). The sign of this contribution is the sign of \(f(x^*)\).

Equal-width rectangular approximations

Let \(f\) be a function defined on a closed interval \([a,b]\), where \(a<b\). Divide the interval into \(n\) subintervals of equal width. The width of each is

$$ \Delta x=\frac{b-a}{n}. $$

In subinterval number \(i\), choose a point \(x_i^*\) and use \(f(x_i^*)\) as the rectangle's height. The total signed area of these \(n\) rectangles is

$$ f(x_1^*)\Delta x+f(x_2^*)\Delta x+\cdots+f(x_n^*)\Delta x. $$

This number is a rectangular approximation to the function's accumulation on \([a,b]\). The points can be chosen by a rule, such as using the left endpoint, right endpoint, or midpoint of each subinterval. The chosen rule affects a finite approximation; it need not affect the limiting value.

For example, if a function is a rate measured in units per second and \(x\) is measured in seconds, then \(f(x_i^*)\Delta x\) has the units of the accumulated quantity. Units provide a useful check: adding the heights alone would not give accumulated change.

The definite integral as a limit

As \(n\) increases, the common width \(\Delta x\) decreases. If the resulting rectangular approximations approach one value, independently of the sample choices, that value is the function's total signed accumulation on the interval. This limiting value is called the definite integral of \(f\) from \(a\) to \(b\), and is written

$$ \int_a^b f(x)\,dx. $$

The symbols \(a\) and \(b\) are the limits of integration. The \(dx\) indicates that the accumulation is with respect to changes in \(x\). The integral is a number, not a function of \(x\). Its sign reflects the net signed accumulation: portions where \(f\) is below the horizontal axis contribute negatively.

Definition: In the rectangular approximation setting, \(\int_a^b f(x)\,dx\) denotes the common limiting value of signed rectangle sums as their widths shrink, when that limit exists and does not depend on the sample choices.

This definition expresses the central idea without requiring that a finite collection of rectangles match the graph exactly. An approximation is a finite sum; the integral is the limit those sums approach. For the elementary functions used below, we can calculate the sums and their limits directly.

Worked Example: A constant rate

Worked Example: A constant rate

Find the rectangular approximation for \(f(x)=3\) on \([-1,2]\), using \(n\) equal-width subintervals, and identify its limiting value.

The interval has length \(2-(-1)=3\), so each subinterval has width \(\Delta x=3/n\). Since the function has value \(3\) everywhere, every rectangle has height \(3\). Each contributes

$$ 3\cdot\frac{3}{n}=\frac{9}{n}. $$

There are \(n\) such contributions, so their total is

$$ \underbrace{\frac{9}{n}+\frac{9}{n}+\cdots+\frac{9}{n}}_{n\text{ terms}} =n\cdot\frac{9}{n}=9. $$

This value is the same for every \(n\), so the limit is \(9\). The graph is a horizontal line at height \(3\), and the rectangle covering the interval has width \(3\) and height \(3\), giving signed area \(3\cdot3=9\). This geometric check agrees with the rectangular sum.

Worked Example: Left rectangles for \(f(x)=x\)

Worked Example: Left rectangles for \(f(x)=x\)

Approximate the accumulation of \(f(x)=x\) on \([0,1]\) using left endpoints, then find the limit as the number of subintervals increases.

Each subinterval has width \(1/n\). The left endpoints are \(0,1/n,2/n,\ldots,(n-1)/n\). Thus the left-endpoint sum is

$$ L_n =\frac{1}{n}\left(0+\frac{1}{n}+\frac{2}{n}+\cdots+\frac{n-1}{n}\right) =\frac{0+1+2+\cdots+(n-1)}{n^2}. $$

The sum of the integers from \(0\) through \(n-1\) is \(n(n-1)/2\). Therefore

$$ L_n=\frac{n(n-1)}{2n^2} =\frac{n-1}{2n} =\frac12-\frac{1}{2n}. $$

As \(n\) increases without bound, \(1/(2n)\) approaches \(0\), so \(L_n\) approaches \(1/2\).

For a check, take \(n=4\). The width is \(1/4\), and the left-endpoint heights are \(0,1/4,1/2,3/4\). Their total signed area is

$$ \frac14\left(0+\frac14+\frac12+\frac34\right) =\frac14\cdot\frac32 =\frac38. $$

The formula gives \(L_4=(4-1)/(2\cdot4)=3/8\), as required. This finite approximation is below the limiting value \(1/2\), which is consistent with the increasing graph: on each subinterval the left endpoint gives a height no greater than the function's values to its right.

Why the sample choice can disappear in the limit

The previous example also illustrates why the left-endpoint rule need not determine the final answer. Since \(f(x)=x\) is increasing on \([0,1]\), the left rectangle on each subinterval is no taller than the function there, and the right rectangle is no shorter. Consequently, any choice of sample point within each subinterval produces a total between the left- and right-endpoint totals.

For this function, the right-endpoint sum is

$$ R_n =\frac{1}{n}\left(\frac1n+\frac2n+\cdots+\frac{n}{n}\right) =\frac{1+2+\cdots+n}{n^2} =\frac{n(n+1)}{2n^2} =\frac12+\frac{1}{2n}. $$

Every sample-point sum lies between \(L_n\) and \(R_n\), and the bounds approach the same number:

$$ \frac12-\frac{1}{2n} \leq \text{sample-point sum}\leq \frac12+\frac{1}{2n}. $$

Both bounds approach \(1/2\), so the sample-point sums are forced to approach \(1/2\) as well. This is a complete reason, for this example, that changing the sample rule does not change the limiting value.

Why the limit works here: The left and right sums enclose every sum formed by choosing one point in each subinterval. Their difference is \(R_n-L_n=1/n\), which approaches zero. Therefore all such sums have the same limiting value.

Worked Example: Midpoint rectangles for \(f(x)=x^2\)

Worked Example: Midpoint rectangles for \(f(x)=x^2\)

Find the limit of the midpoint-rectangle sums for \(f(x)=x^2\) on \([0,2]\).

The width of each of \(n\) equal subintervals is \(2/n\). Number the subintervals from \(i=0\) to \(i=n-1\). Their midpoints are \( (2i+1)/n\): for example, the first is \(1/n\), and the last is \((2n-1)/n\). The midpoint sum is therefore

$$ M_n =\frac{2}{n}\left[ \left(\frac1n\right)^2+ \left(\frac3n\right)^2+\cdots+ \left(\frac{2n-1}{n}\right)^2 \right] =\frac{2}{n^3}\left[1^2+3^2+\cdots+(2n-1)^2\right]. $$

To evaluate the bracketed sum, expand the odd squares. The odd numbers are \(2i+1\) for \(i=0,\ldots,n-1\), so their squares add to

$$ \begin{aligned} 1^2+3^2+\cdots+(2n-1)^2 &=4(0^2+1^2+\cdots+(n-1)^2)\\ &\quad+4(0+1+\cdots+(n-1))+n\\ &=4\frac{n(n-1)(2n-1)}{6} +4\frac{n(n-1)}{2}+n\\ &=\frac{n(4n^2-1)}{3}. \end{aligned} $$

Here the standard finite-sum formulas are \(0+1+\cdots+(n-1)=n(n-1)/2\) and \(0^2+1^2+\cdots+(n-1)^2=n(n-1)(2n-1)/6\). Substituting the odd-square sum gives

$$ M_n =\frac{2}{n^3}\cdot\frac{n(4n^2-1)}{3} =\frac{8}{3}-\frac{2}{3n^2}. $$

Since \(2/(3n^2)\) approaches zero, the midpoint sums approach \(8/3\). Check the finite calculation at \(n=2\): the midpoints are \(1/2\) and \(3/2\), the width is \(1\), and the sum is

$$ 1\left[\left(\frac12\right)^2+\left(\frac32\right)^2\right] =\frac14+\frac94 =\frac52. $$

The formula gives \(M_2=8/3-2/(3\cdot4)=8/3-1/6=5/2\), confirming the calculation. As the rectangles become narrower, the correction term \(2/(3n^2)\) vanishes, leaving the limiting accumulation \(8/3\).

Signed area is essential

A rectangle below the horizontal axis has a negative height when its height is taken from the function value. Its contribution to the sum is therefore negative. This is necessary when the quantity being accumulated is a signed change, such as displacement from a velocity function or net flow from a rate that can reverse direction.

For a concrete example, consider \(f(x)=x-1\) on \([0,2]\). The graph lies below the axis from \(0\) to \(1\), and above it from \(1\) to \(2\). The two triangular regions have areas \(1/2\) each, but their signed contributions are \(-1/2\) and \(+1/2\), so the net accumulation is \(0\).

Common mistake: Adding the absolute areas answers a different question. The total unsigned area here is \(1/2+1/2=1\), whereas the signed accumulation is \(-1/2+1/2=0\).

The distinction also appears in finite sums. With \(n\) equal subintervals and left endpoints, the width is \(2/n\), and the sample points are \(2i/n\) for \(i=0,\ldots,n-1\). The signed sum is

$$ \frac{2}{n}\left[ \left(-1\right)+\left(\frac2n-1\right)+\cdots+ \left(\frac{2(n-1)}{n}-1\right) \right] =-\frac{2}{n}. $$

This approaches \(0\), matching the signed-area calculation. Replacing every negative height by its absolute value would prevent the cancellation and would not compute the definite integral.

What the approximation viewpoint gives us

Rectangular sums connect a local rate to a total change. Each rectangle estimates the change over a short piece of the interval; adding the pieces estimates the whole change. The definite integral captures the value approached as those pieces become arbitrarily narrow.

Three checks help keep this interpretation clear:

  • Width: The subinterval widths must add to \(b-a\).
  • Units: Height times width must have the units of the accumulated quantity.
  • Sign: Contributions below the axis remain negative when computing net accumulation.

A finite sum is useful even when the limiting value is not yet known, because it makes the approximation and its assumptions visible. When a limit can be found, it replaces the sequence of estimates with one exact accumulated value.

Check Your Understanding

Answer each question using signed rectangle sums and limiting values.

  1. For \(f(x)=2\) on \([1,4]\), what is the contribution of one rectangle when there are \(n\) equal subintervals? What is the total?
  2. For \(f(x)=x\) on \([0,1]\), why does every sample-point sum lie between the left- and right-endpoint sums?
  3. What value do the left-endpoint sums for \(f(x)=x\) on \([0,1]\) approach?
  4. For \(f(x)=x-1\) on \([0,2]\), why is the signed accumulation different from the total unsigned area?
  5. What does the definite integral represent in terms of rectangular approximations?

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