Tutorials › AP Calculus › Riemann Sums from Tables

Riemann Sums and Definite Integrals · Tutorial 429 of 999

Riemann Sums from Tables

Use the table entries that match each approximation method, multiply by the correct subinterval width, and check your arithmetic.

Beginner 8 min read

What You'll Learn

  • Identify which table entries are left endpoints, right endpoints, midpoints, or trapezoid endpoints.
  • Calculate left, right, midpoint, and trapezoidal approximations from tabulated values.
  • Use the partition width correctly in each term.
  • Recognize when the table does not provide the sample values a method requires.
  • Check a trapezoidal calculation by comparing it with the average of the left and right sums for an equal-width partition.
  • Keep the units of the approximation consistent with the function and input units.

From a Table to an Approximation

A table gives selected values of a function, not a picture of everything the function does between those values. Even so, when a partition and the needed sample values are provided, the table can supply the rectangle heights or trapezoid endpoint heights for a numerical approximation of an integral.

The main task is to match each value to its role. A left sum uses the function values at the left ends of the subintervals. A right sum uses the right ends. A midpoint sum uses the centers. A trapezoidal sum uses both endpoints of every subinterval and averages their function values.

Before calculating, identify the partition, find its width, and mark exactly which table entries the requested method needs. Do not include a value just because it appears in the table.

Definition: For an equal-width partition of \([a,b]\) into \(n\) subintervals, the width is \(\Delta x=(b-a)/n\). A left, right, or midpoint sum adds the selected function heights and multiplies by \(\Delta x\). A trapezoidal sum adds the areas of the trapezoids formed on the subintervals.

Reading the Table Before Calculating

Suppose the partition points are \(x_0,x_1,\ldots,x_n\), listed from left to right. For an equal-width partition, \(x_i=a+i\Delta x\). The table must include the sample values required by the chosen method:

  • Left sum: use \(f(x_0), f(x_1), \ldots, f(x_{n-1})\). The rightmost endpoint \(x_n\) is not a left endpoint of any subinterval.
  • Right sum: use \(f(x_1), f(x_2), \ldots, f(x_n)\). The leftmost endpoint \(x_0\) is not used.
  • Midpoint sum: use the value at the center of each subinterval. Endpoint values alone are not enough to calculate this sum.
  • Trapezoidal sum: use both endpoint values on each subinterval. An interior partition value is used for the two adjacent trapezoids.

For a common width \(\Delta x\), the formulas are:

$$ L_n=\Delta x\sum_{i=0}^{n-1}f(x_i), \qquad R_n=\Delta x\sum_{i=1}^{n}f(x_i), \qquad M_n=\Delta x\sum_{i=1}^{n}f\left(\frac{x_{i-1}+x_i}{2}\right). $$

The trapezoidal sum can be written by adding one trapezoid at a time, or by using the equivalent weighted formula:

$$ T_n=\frac{\Delta x}{2}\left[f(x_0)+2f(x_1)+2f(x_2)+\cdots+2f(x_{n-1})+f(x_n)\right]. $$

These are numerical approximations, not automatically exact values of the integral. A sum method uses only the listed samples and the chosen geometric shapes; the function may behave differently between sample points.

Worked Example: Calculate All Four Methods

Worked Example: Calculate All Four Methods

The table gives values of \(f\) at the partition points and at the interval midpoints. Use the three subintervals from \(x=0\) to \(x=6\) to calculate \(L_3\), \(R_3\), \(M_3\), and \(T_3\).

\(x\)0123456
\(f(x)\)2345321

There are three subintervals, so their common width is:

$$ \Delta x=\frac{6-0}{3}=2. $$

The subintervals are \([0,2]\), \([2,4]\), and \([4,6]\). For the left sum, select the left endpoints \(0,2,4\):

$$ L_3=2\bigl(f(0)+f(2)+f(4)\bigr) =2(2+4+3) =2(9) =18. $$

For the right sum, select the right endpoints \(2,4,6\):

$$ R_3=2\bigl(f(2)+f(4)+f(6)\bigr) =2(4+3+1) =2(8) =16. $$

The midpoint of each subinterval is \(1\), \(3\), or \(5\). The table provides all three midpoint values, so:

$$ M_3=2\bigl(f(1)+f(3)+f(5)\bigr) =2(3+5+2) =2(10) =20. $$

For the trapezoidal sum, average the endpoint heights on each subinterval, then multiply each average by the width:

$$ \begin{aligned} T_3 &=2\left(\frac{f(0)+f(2)}{2} +\frac{f(2)+f(4)}{2} +\frac{f(4)+f(6)}{2}\right)\\ &=2\left(\frac{2+4}{2}+\frac{4+3}{2}+\frac{3+1}{2}\right)\\ &=2(3+3.5+2)\\ &=2(8.5)=17. \end{aligned} $$

Check: with equal widths, the trapezoidal sum is the average of the left and right sums. Here, \((L_3+R_3)/2=(18+16)/2=17\), which agrees with the trapezoidal calculation.

Why the Trapezoidal Weights Work

The weighted trapezoid formula follows by adding the trapezoid areas on consecutive subintervals. On \([x_{i-1},x_i]\), the trapezoid has parallel side heights \(f(x_{i-1})\) and \(f(x_i)\), and width \(\Delta x\). Its signed area is the width times the average of those heights.

$$ \text{area on }[x_{i-1},x_i] =\frac{\Delta x}{2}\left[f(x_{i-1})+f(x_i)\right]. $$

Adding this expression for all \(n\) subintervals gives the trapezoidal approximation. The first table value, \(f(x_0)\), appears only in the first trapezoid; the last, \(f(x_n)\), appears only in the last. Each interior value appears twice, because it is an endpoint of each of two neighboring trapezoids. Therefore:

$$ \begin{aligned} T_n &=\frac{\Delta x}{2}\left[ (f(x_0)+f(x_1))+(f(x_1)+f(x_2))+\cdots+(f(x_{n-1})+f(x_n)) \right]\\ &=\frac{\Delta x}{2}\left[ f(x_0)+2f(x_1)+\cdots+2f(x_{n-1})+f(x_n) \right]. \end{aligned} $$

This derivation explains the endpoint weights: the interior entries receive a coefficient of \(2\) because they occur in two trapezoids. The formula calculates the sum of those trapezoid areas; it does not claim that the function itself is linear on each subinterval.

Worked Example: Use Only the Midpoint Entries

Worked Example: Use Only the Midpoint Entries

A table lists values at the boundaries \(x=2,4,6,8\) and at the midpoints \(x=3,5,7\). Calculate the midpoint approximation on \([2,8]\).

\(x\)2345678
\(f(x)\)6421357

The partition has three equal subintervals, each of width:

$$ \Delta x=\frac{8-2}{3}=2. $$

The intervals are \([2,4]\), \([4,6]\), and \([6,8]\), whose midpoints are \(3,5,7\). Use the values at those points, not the values at the boundaries:

$$ \begin{aligned} M_3 &=2\bigl(f(3)+f(5)+f(7)\bigr)\\ &=2(4+1+5)\\ &=2(10)=20. \end{aligned} $$

Check: the selected points \(3,5,7\) are each exactly halfway between the endpoints of their corresponding intervals: \((2+4)/2=3\), \((4+6)/2=5\), and \((6+8)/2=7\). The table values at those points sum to \(10\), and multiplying by the common width \(2\) gives \(20\).

Worked Example: A Trapezoidal Sum from Endpoint Data

Worked Example: A Trapezoidal Sum from Endpoint Data

Use the table to calculate the trapezoidal approximation on the four equal subintervals from \(x=1\) to \(x=9\).

\(x\)13579
\(f(x)\)264810

First find the common width:

$$ \Delta x=\frac{9-1}{4}=2. $$

Use the average of the two endpoint heights on each interval:

$$ \begin{aligned} T_4 &=2\left(\frac{2+6}{2}+\frac{6+4}{2} +\frac{4+8}{2}+\frac{8+10}{2}\right)\\ &=2(4+5+6+9)\\ &=2(24)=48. \end{aligned} $$

Check: using the weighted formula gives the same result:

$$ \begin{aligned} T_4 &=\frac{2}{2}\left[2+2(6)+2(4)+2(8)+10\right]\\ &=1(2+12+8+16+10)\\ &=48. \end{aligned} $$

The two calculations agree. The endpoint entries \(2\) and \(10\) appear once in the weighted formula, while each of the three interior entries appears twice.

A Common Table-Reading Mistake

A frequent error is to use every listed endpoint value in a left sum. The last endpoint is in the table, but it is not the left endpoint of any subinterval. For example, suppose the partition is \(0,2,4\), with \(f(0)=1\), \(f(2)=3\), and \(f(4)=5\). There are two subintervals, each of width \(2\).

The incorrect calculation includes all three entries:

$$ \text{Incorrect: }2\bigl(f(0)+f(2)+f(4)\bigr) =2(1+3+5)=18. $$

But the two left endpoints are \(0\) and \(2\), so the correct left sum is:

$$ L_2=2\bigl(f(0)+f(2)\bigr) =2(1+3)=8. $$

Correction: write down the subintervals first. For \([0,2]\) and \([2,4]\), the left endpoints are \(0\) and \(2\); \(4\) is the right endpoint of the final interval and must not be added to the left sum.

Practical Checks Before You Submit

Table-based calculations are easier to verify when you keep the selection and the arithmetic separate. First identify the method and its sample points. Then copy only those function values, calculate the width, and perform the multiplication. Keep the selected values visible in your work so that an indexing error can be spotted.

  • Confirm that the number of subintervals matches the partition.
  • For a midpoint sum, check that every selected \(x\)-value is the center of its interval.
  • For a left or right sum, do not confuse the endpoints of adjacent intervals.
  • For a trapezoidal sum, ensure that each interval uses both of its endpoint values.
  • If the table does not contain a method’s required sample values, the table alone does not supply the information needed for that calculation.

When a problem assigns units to \(x\) and \(f(x)\), the approximation has units formed by multiplying those units. For instance, if \(x\) is measured in minutes and \(f(x)\) in meters per minute, then \(\Delta x\,f(x)\) is measured in meters. Include units in the final answer when the problem provides them.

Check Your Understanding

For each question, identify the sample values to use before calculating.

  1. A table gives \(f(x)\) at \(x=0,2,4,6\). On this partition, which entries are used for the left sum, and which are used for the right sum?
  2. A partition has three equal subintervals from \(x=1\) to \(x=7\). What is the width of each subinterval?
  3. For a midpoint sum on \([0,6]\) divided into three equal intervals, which three \(x\)-values must the table provide?
  4. In a trapezoidal sum with four equal subintervals, why does each interior function value receive twice the weight of either endpoint in the weighted formula?
  5. For \(x=0,1,2\) with \(f(0)=2\), \(f(1)=4\), and \(f(2)=6\), calculate the trapezoidal sum and check it using the weighted 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