Tutorials › Calculus I › Finding Midpoint Sample Locations

Accumulation from Sums · Tutorial 915 of 1495

Finding Midpoint Sample Locations

Learn how to locate every midpoint sample point from the interval endpoints and use those points to write and evaluate finite midpoint sums for rates.

Beginner 9 min read

What You'll Learn

  • Find the width of each of \(n\) equal subintervals.
  • Derive the midpoint location using either endpoint averaging or an index formula.
  • Distinguish midpoint sample points from left and right endpoints.
  • Write a midpoint sum for a rate function given by a formula.
  • Evaluate midpoint sums while keeping units and indexing clear.
  • Check sample locations and accumulated totals for arithmetic errors.

Why Midpoint Locations Matter

A midpoint sum uses one sample from the center of each subinterval. To build the sum correctly, we need to locate those centers precisely. This is especially important when the quantity being sampled is a rate: the rate value at each midpoint is multiplied by the subinterval's width to estimate the accumulated change over that interval.

The central task is to turn the interval endpoints and the number of subintervals into a formula for every sample location. Once that formula is established, it can be substituted directly into a rate function.

Equal-Width Subintervals and Their Midpoints

Let the interval be \([a,b]\), where \(a<b\), and divide it into \(n\) equal-width subintervals, with \(n\in\mathbb{N}\). The common width is the total interval length divided by the number of subintervals:

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

Number the subintervals from left to right using \(i=1,2,\ldots,n\). The endpoints of the \(i\)th subinterval are

$$ x_{i-1}=a+(i-1)\Delta x \qquad\text{and}\qquad x_i=a+i\Delta x. $$

Its midpoint is halfway between these two endpoints. Averaging them gives the midpoint location \(m_i\):

$$ m_i=\frac{x_{i-1}+x_i}{2} =a+\left(i-\frac12\right)\Delta x =a+\frac{(2i-1)(b-a)}{2n}, \qquad i=1,\ldots,n. $$
Definition: For \(n\) equal-width subintervals of \([a,b]\), the midpoint of subinterval \(i\) is \(m_i=a+(i-\frac12)\Delta x\), where \(\Delta x=(b-a)/n\) and \(i=1,\ldots,n\).

The index starts at \(1\), because the first subinterval runs from \(x_0=a\) to \(x_1=a+\Delta x\). Its midpoint is \(a+\Delta x/2\), not \(a-\Delta x/2\). The final midpoint is \(m_n=b-\Delta x/2\), so each sample lies half a subinterval-width inside the interval's endpoints.

Why the Midpoint Formula Works

The formula follows from the definition of a midpoint as the average of two endpoints. Here is the derivation in full, starting from the indexed endpoints.

1
Write the endpoints.
The \(i\)th subinterval begins at \(x_{i-1}=a+(i-1)\Delta x\) and ends at \(x_i=a+i\Delta x\).
2
Average the endpoints.
By the midpoint definition, \(m_i=(x_{i-1}+x_i)/2\).
3
Simplify.
Substitution gives \(m_i=[a+(i-1)\Delta x+a+i\Delta x]/2=a+(i-\frac12)\Delta x\).
4
Use the interval length.
Replacing \(\Delta x\) by \((b-a)/n\) gives \(m_i=a+(i-\frac12)(b-a)/n\).

This derivation also shows why the half-width appears: the midpoint is one-half of a subinterval-width beyond its left endpoint. The equivalent expression \(a+(2i-1)(b-a)/(2n)\) is useful when a single fraction is convenient.

From Midpoint Locations to a Rate Sum

Suppose a rate is described by a function \(r\) on \([a,b]\). On subinterval \(i\), use the rate value \(r(m_i)\) at the midpoint and multiply it by the width \(\Delta x\). Adding the contributions gives the midpoint sum

$$ M_n=\Delta x\sum_{i=1}^{n}r(m_i) =\frac{b-a}{n}\sum_{i=1}^{n} r\!\left(a+\frac{(2i-1)(b-a)}{2n}\right). $$

The first expression emphasizes the rate sampled at each midpoint. The second writes every sample location directly in terms of \(a\), \(b\), \(n\), and its index \(i\). This sum is an estimate of accumulated change over the interval. If the rate has units of quantity per unit of \(x\), multiplying by a width in units of \(x\) gives units of quantity.

Worked Example: A Quadratic Rate on Four Subintervals

A rate \(r(t)=t^2+1\) is measured in gallons per hour, with \(t\) in hours. Write and evaluate the midpoint sum on \([0,4]\) using \(n=4\) equal subintervals.

First calculate the width:

$$ \Delta t=\frac{4-0}{4}=1\text{ hour}. $$

The midpoint formula is \(m_i=0+(i-\frac12)(1)\). For \(i=1,2,3,4\), the sample locations are \(0.5,\ 1.5,\ 2.5,\ 3.5\) hours. They are the centers of \([0,1]\), \([1,2]\), \([2,3]\), and \([3,4]\), respectively.

Evaluate the rate at each location:

$$ \begin{aligned} r(0.5)&=(0.5)^2+1=0.25+1=1.25,\\ r(1.5)&=(1.5)^2+1=2.25+1=3.25,\\ r(2.5)&=(2.5)^2+1=6.25+1=7.25,\\ r(3.5)&=(3.5)^2+1=12.25+1=13.25. \end{aligned} $$

Each rate value is in gallons per hour. The midpoint sum is therefore

$$ \begin{aligned} M_4 &=(1\text{ hour})(1.25+3.25+7.25+13.25)\text{ gallons/hour}\\ &=(1\text{ hour})(25\text{ gallons/hour})\\ &=25\text{ gallons}. \end{aligned} $$

Check: The midpoint locations are each \(0.5\) hour from the ends of their respective one-hour intervals, and the four rate values add to \(25\) gallons per hour. Multiplication by the one-hour width gives \(25\) gallons, as stated.

Using the Index Formula Efficiently

When \(a\) is not zero, the index formula helps avoid restarting the count at the wrong place. It can be used in two stages: first calculate the list of midpoint locations, then substitute those locations into the rate formula. Keeping those stages visible makes it easier to catch errors before evaluating a sum.

Worked Example: A Rate on an Interval That Starts Above Zero

Let \(r(t)=2t+4\) liters per hour for \(2\leq t\leq 8\). Find the midpoint sum using \(n=3\) equal subintervals.

The width is

$$ \Delta t=\frac{8-2}{3}=2\text{ hours}. $$

Using \(m_i=a+(i-\frac12)\Delta t\), with \(a=2\), gives

$$ m_i=2+\left(i-\frac12\right)2=2+2i-1=2i+1. $$

Thus \(m_1=3\), \(m_2=5\), and \(m_3=7\) hours. These are the centers of \([2,4]\), \([4,6]\), and \([6,8]\). The sampled rates are

$$ \begin{aligned} r(3)&=2(3)+4=6+4=10\text{ liters/hour},\\ r(5)&=2(5)+4=10+4=14\text{ liters/hour},\\ r(7)&=2(7)+4=14+4=18\text{ liters/hour}. \end{aligned} $$

Therefore, the midpoint sum is

$$ \begin{aligned} M_3 &=(2\text{ hours})(10+14+18)\text{ liters/hour}\\ &=(2\text{ hours})(42\text{ liters/hour})\\ &=84\text{ liters}. \end{aligned} $$

Check: Each sample is two hours from the previous sample, and the first and last samples are one hour inside the interval's endpoints. The three rate values total \(42\) liters per hour; multiplying by the two-hour width gives \(84\) liters.

Writing a Sum Before Evaluating It

Sometimes the important result is the correctly constructed sum, not a decimal or numerical total. A useful check is to compare the formula inside the rate function with the midpoint formula: every sample should use the same interval and subinterval count, with only the index changing.

Worked Example: Constructing and Evaluating a Sum from the Formula

Suppose \(q(t)=t^2-2t+5\) liters per minute on \([1,5]\). Construct the midpoint sum for \(n=2\) subintervals and evaluate it.

The width is

$$ \Delta t=\frac{5-1}{2}=2\text{ minutes}. $$

The two midpoint locations follow from \(m_i=1+(i-\frac12)2\):

$$ m_1=1+\frac12(2)=2, \qquad m_2=1+\frac32(2)=4. $$

Substitute these values into the rate formula:

$$ \begin{aligned} q(2)&=2^2-2(2)+5=4-4+5=5\text{ liters/minute},\\ q(4)&=4^2-2(4)+5=16-8+5=13\text{ liters/minute}. \end{aligned} $$

The sum, written first in indexed form, is

$$ M_2 =2\sum_{i=1}^{2}q\!\left(1+\left(i-\frac12\right)2\right) =2\bigl(q(2)+q(4)\bigr). $$

Evaluating it with units gives

$$ \begin{aligned} M_2 &=(2\text{ minutes})(5+13)\text{ liters/minute}\\ &=(2\text{ minutes})(18\text{ liters/minute})\\ &=36\text{ liters}. \end{aligned} $$

Check: The intervals are \([1,3]\) and \([3,5]\), whose midpoints are \(2\) and \(4\). The rate values add to \(18\) liters per minute, and multiplying by the two-minute width gives \(36\) liters.

A Common Indexing Mistake

A frequent error is to use the right endpoint formula where the midpoint formula is needed. For example, on \([2,10]\) with \(n=4\), the width is \(\Delta x=(10-2)/4=2\). The incorrect expression \(2+i\Delta x\) gives \(4,6,8,10\). Those are the right endpoints, not the midpoints.

The correct midpoint locations are

$$ m_i=2+\left(i-\frac12\right)2=2i+1, \qquad i=1,2,3,4, $$

so they are \(3,5,7,9\). Checking the first subinterval exposes the error immediately: its endpoints are \(2\) and \(4\), whose average is \((2+4)/2=3\), not \(4\). The half-width adjustment is essential.

A Practical Check Before Summing

Before evaluating a midpoint sum, verify these three features:

  • The width is \((b-a)/n\), with \(n\) a positive integer.
  • The first and last midpoint locations are \(a+\Delta x/2\) and \(b-\Delta x/2\).
  • Each sampled rate is multiplied by one subinterval-width, and the resulting units are units of accumulated quantity.

These checks do not replace the calculation, but they catch common mistakes in endpoint choice, indexing, and units. A correctly written sum also makes clear what is being added: one midpoint rate contribution from each of the \(n\) equal-width subintervals.

Check Your Understanding

Use the midpoint formula \(m_i=a+(i-\frac12)(b-a)/n\) where needed.

  1. Divide \([3,15]\) into four equal subintervals. What is the width, and what are the four midpoint locations?
  2. For \([0,6]\) with \(n=3\), write the midpoint location \(m_i\) as a formula involving \(i\), then list the locations.
  3. A rate is \(r(t)=t+2\) units per hour on \([1,5]\). Write the midpoint sum for \(n=2\), including the units on the accumulated result.
  4. For \([2,10]\) with \(n=4\), explain why \(2+2i\) gives right endpoints rather than midpoint locations.
  5. If a rate has units of liters per minute and the interval width is measured in minutes, what units does each rate-times-width contribution have?

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