Tutorials › AP Calculus › Right Endpoint Sums

Riemann Sums and Definite Integrals · Tutorial 426 of 999

Right Endpoint Sums

Construct and evaluate right-endpoint sums by using the function value at the right edge of each equal subinterval.

Beginner 8 min read

What You'll Learn

  • Find the width of each equal subinterval from the interval endpoints and the number of subintervals.
  • Identify the right endpoint of every subinterval using a consistent index.
  • Write a right-endpoint sum in sigma notation and as an expanded calculation.
  • Calculate sums for functions and interpret units when the function represents a rate.
  • Recognize and correct common errors involving left endpoints and subinterval counts.

Building a Right-Endpoint Sum

A Riemann sum estimates the accumulation represented by a collection of rectangles. To construct one, divide an interval into subintervals, choose a sample point in each subinterval, and multiply the function value at that sample point by the subinterval’s width. A right-endpoint sum uses the right edge of each subinterval as its sample point.

The distinction between left and right endpoints is simple, but it changes the rectangle heights and therefore the sum. The method is especially systematic when the interval is divided into equally wide subintervals.

Definition: Divide \([a,b]\) into \(n\) equal subintervals, where \(n\) is a positive integer. Their common width is \(\Delta x=\frac{b-a}{n}\), and the partition points are \(x_i=a+i\Delta x\), for \(i=0,1,\ldots,n\). The right-endpoint sum for \(f\) is
$$ R_n=\sum_{i=1}^{n} f(x_i)\,\Delta x =\Delta x\sum_{i=1}^{n}f(a+i\Delta x). $$
Here, \(x_i\) is the right endpoint of the \(i\)th subinterval \([x_{i-1},x_i]\).

The sum has \(n\) terms because there are \(n\) subintervals and one rectangle for each subinterval. The index begins at \(i=1\): \(x_1\) is the right endpoint of the first subinterval, and \(x_n=b\) is the right endpoint of the last one.

Why the Formula Uses These Function Values

On subinterval \([x_{i-1},x_i]\), a right-endpoint rectangle has width \(x_i-x_{i-1}=\Delta x\). Its height is the function value at the right edge, \(f(x_i)\). Thus its signed contribution is \(f(x_i)\Delta x\). Adding the contributions from all \(n\) rectangles gives the right-endpoint sum.

$$ \begin{aligned} \text{contribution from subinterval }i &=\text{height}\times\text{width}\\ &=f(x_i)(x_i-x_{i-1})\\ &=f(x_i)\Delta x. \end{aligned} $$

Summing these contributions for \(i=1,2,\ldots,n\) produces \(R_n=\sum_{i=1}^{n}f(x_i)\Delta x\). If the function is negative at a sample point, the corresponding rectangle contributes a negative amount. This is a signed sum, consistent with signed accumulation.

A reliable setup keeps three quantities distinct: the number of subintervals \(n\), the width \(\Delta x\), and the right endpoint \(x_i\) at which each function value is evaluated. In particular, the right endpoint is not the index \(i\) itself; it is \(a+i\Delta x\).

A Repeatable Setup

1
Find the common width.
Subtract the interval’s endpoints and divide by the number of subintervals: \(\Delta x=(b-a)/n\).
2
List the right endpoints.
Use \(x_i=a+i\Delta x\) for \(i=1,\ldots,n\). The final point should be \(b\).
3
Evaluate the function.
Find \(f(x_i)\) at each listed right endpoint. These are the rectangle heights.
4
Multiply and add.
Multiply each height by \(\Delta x\), then add all \(n\) contributions.

Worked Examples

Worked Example: A Rate on Four Equal Time Intervals

A rate is \(r(t)=t^2\) meters per second for \(0\leq t\leq2\), with time \(t\) measured in seconds. Find the right-endpoint sum using \(n=4\) equal subintervals.

Step 1: Find the width.

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

Step 2: Find the right endpoints. Starting at \(t=0\) and adding \(\frac12\) each time gives \(t_1=\frac12\), \(t_2=1\), \(t_3=\frac32\), and \(t_4=2\) seconds.

Step 3: Evaluate the rate at those points.

$$ \begin{aligned} r\left(\frac12\right)&=\left(\frac12\right)^2=\frac14,\\ r(1)&=1^2=1,\\ r\left(\frac32\right)&=\left(\frac32\right)^2=\frac94,\\ r(2)&=2^2=4. \end{aligned} $$

Step 4: Multiply each rate by the interval width and add.

$$ \begin{aligned} R_4 &=\frac12\left(\frac14+1+\frac94+4\right)\\ &=\frac12\left(\frac14+\frac44+\frac94+\frac{16}{4}\right)\\ &=\frac12\left(\frac{30}{4}\right) =\frac{15}{4}\text{ meters} =3.75\text{ meters}. \end{aligned} $$

Check: The four rectangle contributions are \(\frac18\), \(\frac12\), \(\frac98\), and \(2\) meters. Their sum is \(\frac18+\frac48+\frac98+\frac{16}{8}=\frac{30}{8}=\frac{15}{4}\) meters, matching the result.

Worked Example: A Nonzero Starting Point

Let \(f(x)=3x+1\) on \([1,5]\). Find the right-endpoint sum for \(n=4\) equal subintervals.

Step 1: Find the width.

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

Step 2: Find the right endpoints. The partition points are \(1,2,3,4,5\), so the right endpoints are \(2,3,4,5\).

Step 3: Evaluate \(f\) at each right endpoint.

$$ \begin{aligned} f(2)&=3(2)+1=7,\\ f(3)&=3(3)+1=10,\\ f(4)&=3(4)+1=13,\\ f(5)&=3(5)+1=16. \end{aligned} $$

Step 4: Multiply by the width and add.

$$ R_4=1(7+10+13+16)=1(46)=46. $$

Check: The subinterval contributions are \(7(1)=7\), \(10(1)=10\), \(13(1)=13\), and \(16(1)=16\). Adding them gives \(7+10+13+16=46\), as above. The starting point is \(1\), so using \(2,3,4,5\) rather than \(1,2,3,4\) is essential.

Worked Example: A Decreasing Function

For \(f(x)=8-x\) on \([2,6]\), calculate the right-endpoint sum using \(n=4\). Suppose \(x\) and \(f(x)\) are measured in meters; the sum is then in square meters.

Step 1: Find the width.

$$ \Delta x=\frac{6-2}{4}=1\text{ meter}. $$

Step 2: List and evaluate the right endpoints. The partition points are \(2,3,4,5,6\), so the right endpoints are \(3,4,5,6\). The corresponding heights are

$$ \begin{aligned} f(3)&=8-3=5\text{ meters},\\ f(4)&=8-4=4\text{ meters},\\ f(5)&=8-5=3\text{ meters},\\ f(6)&=8-6=2\text{ meters}. \end{aligned} $$

Step 3: Add the rectangle contributions.

$$ R_4=(5+4+3+2)(1)=14\text{ square meters}. $$

Check: Each rectangle has width \(1\) meter, so the four contributions are \(5\), \(4\), \(3\), and \(2\) square meters. Their sum is \(5+4+3+2=14\) square meters.

Right Endpoints and Indexing

For equal subintervals, the \(i\)th left endpoint is \(x_{i-1}=a+(i-1)\Delta x\), while its right endpoint is \(x_i=a+i\Delta x\). This gives a useful comparison:

$$ \begin{aligned} \text{left-endpoint sum: }&\Delta x\sum_{i=1}^{n}f\bigl(a+(i-1)\Delta x\bigr),\\ \text{right-endpoint sum: }&\Delta x\sum_{i=1}^{n}f\bigl(a+i\Delta x\bigr). \end{aligned} $$

The width is unchanged; only the sample points change. For a right-endpoint sum, the list of sample points excludes \(a\) and includes \(b\). This is a quick way to check whether the indexing matches the requested method.

Key check: With \(n\) equal subintervals, list exactly \(n\) right endpoints. They are \(a+\Delta x,a+2\Delta x,\ldots,a+n\Delta x=b\).

Common Mistake: Using the Left Endpoints

Consider \(f(x)=x^2\) on \([0,2]\) with \(n=4\). The width is \(\Delta x=\frac{2-0}{4}=\frac12\). A mistaken calculation might use \(0,\frac12,1,\frac32\), giving

$$ \frac12\left(0^2+\left(\frac12\right)^2+1^2+\left(\frac32\right)^2\right) =\frac12\left(0+\frac14+1+\frac94\right) =\frac12\left(\frac{14}{4}\right) =\frac74. $$

This calculation uses the left endpoint of each subinterval, so it is a left-endpoint sum, not a right-endpoint sum. For the right-endpoint sum, the sample points must instead be \(\frac12,1,\frac32,2\):

$$ \frac12\left(\left(\frac12\right)^2+1^2+\left(\frac32\right)^2+2^2\right) =\frac12\left(\frac14+1+\frac94+4\right) =\frac{15}{4}. $$

The correction is not to change the width or the number of terms. It is to use the right edge of each subinterval when choosing every height.

When a Right-Endpoint Sum Is Useful

A right-endpoint sum turns sampled function values into a finite estimate of signed accumulation. If \(f\) describes a rate, each product \(f(x_i)\Delta x\) estimates the amount accumulated over one subinterval, and the sum combines those estimates. Units provide a useful check: a rate measured in meters per second multiplied by a time width in seconds gives meters.

The sum is an approximation based on the selected partition and sample points. It should not be confused with an exact accumulated value merely because the arithmetic is exact. For the calculations here, the stated sum is the exact result of the chosen rectangle method; that does not by itself establish that it equals the total accumulation represented by the function.

Before finalizing a calculation, check that:

  • the interval endpoints and number of subintervals give the stated \(\Delta x\);
  • there are exactly \(n\) sample points;
  • the points begin one width to the right of \(a\) and end at \(b\);
  • each function value is multiplied by the width; and
  • the final units agree with height multiplied by width, when quantities have units.

Check Your Understanding

Set up or evaluate each right-endpoint sum. In each case, identify the width and the right endpoints before calculating.

  1. For \(f(x)=x+2\) on \([0,3]\), find the right-endpoint sum with \(n=3\).
  2. For \(g(t)=t^2\) on \([1,3]\), find \(\Delta t\) and list the right endpoints when \(n=4\).
  3. For \(h(x)=5-x\) on \([1,5]\), write the right-endpoint sum in expanded form for \(n=4\). Do not evaluate it.
  4. In a right-endpoint sum with \(n\) equal subintervals on \([a,b]\), explain why the final sample point is \(b\).
  5. A rate is measured in liters per minute and each time interval has width \(2\) minutes. What units does one rectangle contribution have?

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