Tutorials › AP Calculus › Midpoint Sums

Riemann Sums and Definite Integrals · Tutorial 427 of 999

Midpoint Sums

Use the center of each equal-width subinterval to build and calculate a midpoint-sum approximation.

Beginner 9 min read

What You'll Learn

  • Find the common width of equal subintervals.
  • Calculate the midpoint of each subinterval using an index formula.
  • Build a midpoint sum from a function formula.
  • Calculate a midpoint sum from values supplied at the midpoints.
  • Interpret the result as an approximation of signed accumulation.

Why Use Midpoints?

A rectangle can approximate the signed area between a curve and the horizontal axis over an interval. Its width comes from the interval, and its height comes from a function value. The choice of where to evaluate the function determines the rectangle’s height.

A midpoint sum uses the function value at the center of each subinterval. This gives a consistent rule: divide the interval into equal pieces, find each piece’s midpoint, and use the function value there as the rectangle’s height. The resulting sum approximates the function’s accumulated signed change over the full interval.

Definition and Formula

Suppose a function \(f\) is defined on \([a,b]\), where \(a<b\). Divide this interval into \(n\) equal subintervals, with \(n\) a positive integer. Their common width is \(\Delta x=(b-a)/n\). The \(i\)th subinterval runs from \(a+(i-1)\Delta x\) to \(a+i\Delta x\), for \(i=1,\ldots,n\).

The midpoint of that subinterval is halfway between its endpoints. Denote it by \(x_i^*\). Its formula follows by averaging the endpoints:

$$ x_i^* = \frac{\bigl(a+(i-1)\Delta x\bigr)+\bigl(a+i\Delta x\bigr)}{2} = a+\left(i-\frac12\right)\Delta x. $$
Definition: The midpoint sum for \(f\) on \([a,b]\), divided into \(n\) equal subintervals, is the sum of each subinterval’s width multiplied by the function value at its midpoint:
$$ M_n = \Delta x\sum_{i=1}^{n} f(x_i^*) = \Delta x\sum_{i=1}^{n} f\left(a+\left(i-\frac12\right)\Delta x\right), \qquad \Delta x=\frac{b-a}{n}. $$

The index \(i\) starts at \(1\) and ends at \(n\), so the formula includes one midpoint from every subinterval. The sum \(M_n\) is a numerical approximation, not automatically the exact accumulated value.

Why the Formula Works

On one subinterval, a rectangle with width \(\Delta x\) and height \(f(x_i^*)\) has signed area \(\Delta x\,f(x_i^*)\). The height is positive when the function value is positive and negative when it is negative. Adding the signed areas of all \(n\) rectangles gives the midpoint sum.

This construction approximates accumulation because each rectangle represents the function using one sampled height across a whole subinterval. If the function changes within a subinterval, the rectangle’s height will not match the curve at every point. The sum is therefore generally an approximation. Using the midpoint makes the sample location precise and places it inside its own subinterval.

$$ \text{signed area of rectangle }i = \text{width}\times\text{height} = \Delta x\,f(x_i^*), \qquad \text{sum of rectangle areas} = \sum_{i=1}^{n}\Delta x\,f(x_i^*) = M_n. $$

This reasoning explains both parts of the method: the common width supplies the factor \(\Delta x\), and the midpoint evaluation supplies the height for each rectangle.

Worked Example: A Formula on an Interval

Worked Example: Calculate a Midpoint Sum from a Formula

Approximate the accumulated value of \(f(x)=x^2\) on \([0,4]\) using \(n=4\) equal subintervals.

Step 1: Find the width.

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

Step 2: Find the four midpoints. The subintervals are \([0,1]\), \([1,2]\), \([2,3]\), and \([3,4]\). Their midpoints are, respectively,

$$ x_1^*=\frac{0+1}{2}=0.5,\qquad x_2^*=\frac{1+2}{2}=1.5,\qquad x_3^*=\frac{2+3}{2}=2.5,\qquad x_4^*=\frac{3+4}{2}=3.5. $$

Step 3: Evaluate the function at each midpoint.

$$ f(0.5)=(0.5)^2=0.25,\quad f(1.5)=(1.5)^2=2.25,\quad f(2.5)=(2.5)^2=6.25,\quad f(3.5)=(3.5)^2=12.25. $$

Step 4: Multiply each height by the width and add.

$$ M_4 = 1(0.25+2.25+6.25+12.25) = 1(21) = 21. $$

Check: The four rectangle contributions are \(1(0.25)=0.25\), \(1(2.25)=2.25\), \(1(6.25)=6.25\), and \(1(12.25)=12.25\). Their total is \(0.25+2.25+6.25+12.25=21\), matching the midpoint-sum calculation.

Calculating from Tabulated Midpoint Values

Sometimes the function is not given by a formula. Instead, a problem may provide its values at the subinterval midpoints. If those values and the common width are known, the same sum applies: multiply each listed function value by the width and add the results.

Check that the values used really correspond to the midpoints. Values at endpoints are not substitutes for midpoint values just because they are listed in a table. Also keep any units attached to the function values and the input variable: multiplying a rate by a time width, for example, gives an accumulated amount.

Worked Example: Use Rate Values at Midpoints

A rate \(r(t)\), measured in liters per minute, is recorded at the midpoints of four equal time intervals covering \(0\) to \(8\) minutes. The midpoint values are shown below. Use a midpoint sum to approximate the accumulated amount.

Midpoint time \(t\) (minutes)Rate \(r(t)\) (liters per minute)
12.4
33.1
52.8
73.7

Step 1: Find the width of each interval. There are four equal intervals over eight minutes, so

$$ \Delta t=\frac{8-0}{4}=2\text{ minutes}. $$

Step 2: Confirm the sample times are midpoints. The four intervals are \([0,2]\), \([2,4]\), \([4,6]\), and \([6,8]\). Their midpoints are \(1\), \(3\), \(5\), and \(7\) minutes, as listed.

Step 3: Multiply each rate by the width and add.

$$ M_4 = 2(2.4+3.1+2.8+3.7) = 2(12.0) = 24. $$

The units are \((\text{liters per minute})(\text{minutes})=\text{liters}\), so the estimated accumulated amount is \(24\) liters.

Check: The four interval contributions are \(2(2.4)=4.8\), \(2(3.1)=6.2\), \(2(2.8)=5.6\), and \(2(3.7)=7.4\) liters. Adding them gives \(4.8+6.2+5.6+7.4=24\) liters, as calculated.

Worked Example: Midpoints with a Different Starting Value

Worked Example: Apply the Indexed Midpoint Formula

For \(f(x)=x^2+2\), calculate the midpoint sum on \([-2,4]\) using \(n=3\) equal subintervals.

Step 1: Calculate the width.

$$ \Delta x=\frac{4-(-2)}{3}=\frac{6}{3}=2. $$

Step 2: Use the midpoint formula. Here \(a=-2\). For \(i=1,2,3\), the midpoint formula gives

$$ x_i^*=-2+\left(i-\frac12\right)2. $$

Substituting each index:

$$ x_1^*=-2+\left(\frac12\right)2=-1,\qquad x_2^*=-2+\left(\frac32\right)2=1,\qquad x_3^*=-2+\left(\frac52\right)2=3. $$

Step 3: Evaluate \(f\) at those midpoints.

$$ f(-1)=(-1)^2+2=3,\qquad f(1)=1^2+2=3,\qquad f(3)=3^2+2=11. $$

Step 4: Form the sum.

$$ M_3=2(3+3+11)=2(17)=34. $$

Check: The subintervals are \([-2,0]\), \([0,2]\), and \([2,4]\); their midpoints are \(-1\), \(1\), and \(3\), confirming the sample locations. The rectangle contributions are \(2(3)=6\), \(2(3)=6\), and \(2(11)=22\). Their sum is \(6+6+22=34\).

A Common Mistake: Using Endpoints Instead

A frequent error is to calculate the width correctly but then use an endpoint as a rectangle’s sample point. That produces a left or right endpoint sum, not a midpoint sum.

Worked Example: Correct an Endpoint-Selection Error

For \(f(x)=x^2\) on \([0,4]\) with \(n=4\), the width is \(1\). A mistaken calculation might use \(x=0,1,2,3\), obtaining

$$ 1\bigl(f(0)+f(1)+f(2)+f(3)\bigr) = 1(0+1+4+9) = 14. $$

This is not the midpoint sum: \(0,1,2,3\) are the left endpoints of the four subintervals. The correction is to use \(0.5,1.5,2.5,3.5\), the actual midpoints. Thus

$$ M_4 = 1\bigl(f(0.5)+f(1.5)+f(2.5)+f(3.5)\bigr) = 1(0.25+2.25+6.25+12.25) = 21. $$

Check: Each corrected input is halfway between the endpoints of its subinterval, and the four corresponding rectangle contributions add to \(21\). The value \(14\) came from a different sample-point rule.

Reading and Interpreting the Result

A midpoint sum is built from signed rectangle areas. If all sampled function values are positive, all the contributions are positive. If some are negative, their contributions are negative and reduce the total. Therefore, the sum represents signed accumulation, not necessarily total geometric area.

When setting up a calculation, keep the sequence of choices clear:

1
Find the interval width.
For \(n\) equal pieces of \([a,b]\), compute \(\Delta x=(b-a)/n\).
2
Locate each midpoint.
Use the midpoint formula or average the two endpoints of each subinterval.
3
Find each sampled height.
Evaluate the formula at every midpoint or read the corresponding midpoint values from the data.
4
Multiply and add.
Multiply each height by the common width, then add all contributions with their signs.

Keep exact values during the calculation when possible, and round only if the question asks for a rounded approximation. A numerical answer should also include units when the quantities have units.

Key takeaway: A midpoint sum uses one rectangle per equal subinterval, with width \(\Delta x\) and height \(f\) evaluated at that subinterval’s center. Its value is \(\Delta x\) times the sum of those midpoint heights.

Check Your Understanding

Use the midpoint-sum method to answer the following questions.

  1. On \([2,10]\), divide the interval into four equal subintervals. What is the common width, and what are the four midpoints?
  2. For \(f(x)=2x+1\) on \([0,4]\) with \(n=2\), calculate the midpoint sum. Show the width, midpoints, and sampled function values.
  3. A rate is measured in kilograms per hour and sampled at the midpoints of three equal intervals, each \(2\) hours wide. The rates are \(1.5\), \(2.0\), and \(2.5\) kilograms per hour. What accumulated amount does the midpoint sum estimate?
  4. Explain why using the left endpoint of every subinterval does not give a midpoint sum.

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