Tutorials › Calculus I › Rectangle Sums from Rate Formulas

Accumulation from Sums · Tutorial 918 of 1495

Rectangle Sums from Rate Formulas

Use a rate formula to find sample values and compute left-, right-, and midpoint sums on an interval.

Beginner 11 min read

What You'll Learn

  • Find the width of each subinterval in an equal partition.
  • Calculate left-endpoint, right-endpoint, and midpoint sample locations.
  • Evaluate a rate formula at each sample location.
  • Multiply sampled rates by subinterval width to form a rectangle sum.
  • Keep track of units and avoid confusing midpoint samples with endpoints.

From a Rate Formula to a Rectangle Sum

A rate formula describes how quickly a quantity changes at each input value. To estimate the total change across an interval, divide the interval into smaller pieces, sample the rate once in each piece, and multiply each sampled rate by the piece's width. Adding these products gives a rectangle sum.

The main work in a formula-based problem is often careful bookkeeping: identify the subinterval width, calculate the appropriate sample locations, evaluate the formula at those locations, and include the width in the sum. The same procedure applies whether the samples are at left endpoints, right endpoints, or midpoints.

Definition: Let \(r(t)\) be a rate formula on \([a,b]\), and divide the interval into \(n\) equal subintervals of width \(\Delta t=(b-a)/n\). A left sum uses the left endpoint of each subinterval; a right sum uses its right endpoint; a midpoint sum uses its midpoint. Each rectangle sum is the sum of the sampled rate values multiplied by \(\Delta t\).

If \(r(t)\) measures a rate in units of quantity per unit of time, then \(\Delta t\) is measured in units of time. Each product \(r(t)\Delta t\) has units of quantity, as does the resulting sum. A rate formula can also take negative values; the corresponding rectangle contributes a negative product.

Sample Locations on an Equal Partition

Write the partition points as \(x_0,x_1,\ldots,x_n\), where \(x_0=a\) and \(x_n=b\). Because all subintervals have width \(\Delta t\), the partition points are \(x_i=a+i\Delta t\). The \(i\)th subinterval is \([x_{i-1},x_i]\).

Consequently, the left endpoint is \(a+(i-1)\Delta t\), the right endpoint is \(a+i\Delta t\), and the midpoint is halfway between those endpoints. Substituting these locations into \(r\) gives the sample values to use in the sums.

$$ \begin{aligned} L_n&=\Delta t\sum_{i=1}^{n}r\bigl(a+(i-1)\Delta t\bigr),\\ R_n&=\Delta t\sum_{i=1}^{n}r\bigl(a+i\Delta t\bigr),\\ M_n&=\Delta t\sum_{i=1}^{n}r\bigl(a+(i-\tfrac12)\Delta t\bigr). \end{aligned} $$

Here \(L_n\), \(R_n\), and \(M_n\) denote the left, right, and midpoint sums, respectively. In each formula, the index \(i\) runs from \(1\) through \(n\), so there is one sample for each subinterval. In particular, a left sum does not sample at \(x_n\), and a right sum does not sample at \(x_0\).

Why the Formulas Have This Form

Each subinterval contributes one rectangle. Its width is \(\Delta t\), and its height is the rate evaluated at the selected sample location. The rectangle's signed area is therefore the sampled rate multiplied by \(\Delta t\). Adding the \(n\) rectangle contributions gives the total estimate.

The sample-location formulas follow directly from the equal spacing. Starting at \(a\), moving \(i\) subinterval widths reaches \(x_i=a+i\Delta t\). The left endpoint of subinterval \(i\) is the preceding point \(x_{i-1}\). Its midpoint is the average of \(x_{i-1}\) and \(x_i\):

$$ \frac{x_{i-1}+x_i}{2} = \frac{a+(i-1)\Delta t+a+i\Delta t}{2} = a+\left(i-\frac12\right)\Delta t. $$

Thus the three formulas use the same interval widths and differ only in which point supplies each rectangle's height.

A Reliable Calculation Process

1
Find the width.
For an interval \([a,b]\) split into \(n\) equal pieces, calculate \(\Delta t=(b-a)/n\).
2
List the sample locations.
Use left endpoints, right endpoints, or midpoints as requested. Listing the locations before substituting helps prevent index errors.
3
Evaluate the rate formula.
Substitute each location into \(r(t)\), keeping exact values where possible.
4
Multiply and add.
Multiply every sampled rate by \(\Delta t\), then add the \(n\) contributions. Check that the units are quantity, not quantity per unit of time.

Worked Calculations

Worked Example: All Three Sums for a Linear Rate

A rate is \(r(t)=2t+1\) liters per minute on the interval \([0,4]\). Divide the interval into \(n=4\) equal subintervals. Find the left, right, and midpoint sums.

Step 1: Find the width. The interval length is \(4-0=4\) minutes, so

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

Left sum. The four left sample locations are \(0,1,2,3\). Evaluating the rate gives \(r(0)=2(0)+1=1\), \(r(1)=2(1)+1=3\), \(r(2)=2(2)+1=5\), and \(r(3)=2(3)+1=7\), in liters per minute. Therefore,

$$ L_4=1(1+3+5+7)=1(16)=16\text{ liters}. $$

Check: the four rectangle contributions are \(1,3,5,7\) liters, and \(1+3+5+7=16\) liters.

Right sum. The right sample locations are \(1,2,3,4\). The corresponding values are \(r(1)=3\), \(r(2)=5\), \(r(3)=7\), and \(r(4)=9\), in liters per minute. Thus

$$ R_4=1(3+5+7+9)=1(24)=24\text{ liters}. $$

Check: \(3+5+7+9=24\), so the four width-one contributions total \(24\) liters.

Midpoint sum. The midpoint locations are \(0.5,1.5,2.5,3.5\). Substitution gives \(r(0.5)=2\), \(r(1.5)=4\), \(r(2.5)=6\), and \(r(3.5)=8\), in liters per minute. Hence

$$ M_4=1(2+4+6+8)=1(20)=20\text{ liters}. $$

Check: the midpoint rate values add to \(2+4+6+8=20\), and multiplying by the one-minute width leaves \(20\) liters.

Worked Example: Include a Width Greater Than One

Let \(r(t)=t^2+1\) be a rate in gallons per hour on \([0,4]\), with \(n=2\) equal subintervals. Calculate all three sums.

Width and partition. The width is

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

The partition points are \(0,2,4\), so the subintervals are \([0,2]\) and \([2,4]\).

Left sum. The left locations are \(0\) and \(2\). The rate values are \(r(0)=0^2+1=1\) and \(r(2)=2^2+1=5\), in gallons per hour. Multiply their sum by the two-hour width:

$$ L_2=2(1+5)=2(6)=12\text{ gallons}. $$

Check: the contributions are \(2(1)=2\) gallons and \(2(5)=10\) gallons; \(2+10=12\) gallons.

Right sum. The right locations are \(2\) and \(4\). Their rate values are \(r(2)=5\) and \(r(4)=4^2+1=17\), in gallons per hour. Thus

$$ R_2=2(5+17)=2(22)=44\text{ gallons}. $$

Check: \(2(5)=10\) gallons and \(2(17)=34\) gallons, and \(10+34=44\) gallons.

Midpoint sum. The midpoints of \([0,2]\) and \([2,4]\) are \(1\) and \(3\). Substitution gives \(r(1)=1^2+1=2\) and \(r(3)=3^2+1=10\), in gallons per hour. Therefore

$$ M_2=2(2+10)=2(12)=24\text{ gallons}. $$

Check: the two contributions are \(2(2)=4\) gallons and \(2(10)=20\) gallons; their sum is \(24\) gallons. The width factor \(2\) is essential because each rectangle spans two hours.

Worked Example: Substituting Fractional Midpoints

Suppose \(r(t)=\dfrac{12}{t+1}\) liters per minute on \([0,3]\), divided into \(n=3\) equal subintervals. Find the three sums. The interval width is

$$ \Delta t=\frac{3-0}{3}=1\text{ minute}. $$

Left sum. The locations are \(0,1,2\). The rate values are \(r(0)=12/(0+1)=12\), \(r(1)=12/(1+1)=6\), and \(r(2)=12/(2+1)=4\), in liters per minute. Therefore

$$ L_3=1(12+6+4)=22\text{ liters}. $$

Check: \(12+6+4=22\), and each contribution is over one minute.

Right sum. The locations are \(1,2,3\). The values are \(r(1)=6\), \(r(2)=4\), and \(r(3)=12/4=3\), in liters per minute. Hence

$$ R_3=1(6+4+3)=13\text{ liters}. $$

Check: \(6+4+3=13\) liters for the three width-one rectangles.

Midpoint sum. The subintervals are \([0,1]\), \([1,2]\), and \([2,3]\), so their midpoints are \(1/2,3/2,5/2\). The rate values are

$$ r\left(\frac12\right)=\frac{12}{3/2}=8,\qquad r\left(\frac32\right)=\frac{12}{5/2}=\frac{24}{5},\qquad r\left(\frac52\right)=\frac{12}{7/2}=\frac{24}{7}. $$

All three values are in liters per minute. Therefore,

$$ M_3 =1\left(8+\frac{24}{5}+\frac{24}{7}\right) =\frac{280}{35}+\frac{168}{35}+\frac{120}{35} =\frac{568}{35}\text{ liters}. $$

Check: \(280+168+120=568\), so the common-denominator sum is \(568/35\). The width is one minute, so the result is in liters.

A Common Indexing Mistake

A midpoint is not the right endpoint of the subinterval. For example, on \([1,3]\) with \(n=2\), the width is \((3-1)/2=1\), and the subintervals are \([1,2]\) and \([2,3]\). Using the right endpoints \(2\) and \(3\) as if they were midpoints for \(r(t)=t^2+1\) gives

$$ 1\bigl(r(2)+r(3)\bigr)=1(5+10)=15. $$

That is the right sum, not the midpoint sum. The actual midpoint locations are \(1.5\) and \(2.5\), found by taking the average of each pair of endpoints. Their rate values are \(r(1.5)=1.5^2+1=13/4\) and \(r(2.5)=2.5^2+1=29/4\). Thus the midpoint sum is

$$ 1\left(\frac{13}{4}+\frac{29}{4}\right)=\frac{42}{4}=\frac{21}{2}. $$

The correction is to calculate the requested locations before evaluating the formula. A location error changes which rate values are used, even if every substitution and addition afterward is correct.

What to Keep Track Of

For every rate-formula problem, distinguish three ingredients: the width, the sample locations, and the rate values. The width comes from the interval and the number of equal subintervals. The chosen sum determines the locations. The given formula determines the values at those locations.

Finally, multiply the rate values by the width before interpreting the result. A sum of rate values alone still has rate units; multiplying by time converts each rectangle contribution to units of accumulated quantity. These steps turn the formula into a definite, checkable finite calculation.

Check Your Understanding

For each question, write down the sample locations before evaluating any rate values.

  1. On \([2,8]\), divide into three equal subintervals. What are the width and the left, right, and midpoint sample locations?
  2. For \(r(t)=3t-2\) on \([0,2]\) with \(n=2\), calculate the left sum, including the width factor.
  3. For \(r(t)=t^2\) on \([1,5]\) with \(n=2\), list the midpoint locations and evaluate the rate at each.
  4. If a rate is measured in liters per minute and the subinterval width is measured in minutes, what units does each rectangle contribution have?
  5. On \([0,4]\) with \(n=4\), which sample locations belong to the midpoint sum, and why are the interval endpoints not among them?

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