Tutorials › Calculus I › Deriving Equal-Width Right-Sum Formulas

Accumulation from Sums · Tutorial 914 of 1495

Deriving Equal-Width Right-Sum Formulas

Learn how equal subintervals determine the right sample locations and the summation indices in a right-endpoint estimate.

Beginner 9 min read

What You'll Learn

  • Calculate the common width for an equal partition of an interval.
  • Find the right endpoint of each subinterval using an index.
  • Derive the equal-width right-endpoint sum from its rectangle contributions.
  • Distinguish the right-sum index range from the left-sum index range.
  • Check that a sum has the correct number of rectangles and sample locations.

From an Equal Partition to a Right Sum

A right-endpoint sum estimates accumulation across an interval by dividing it into subintervals and using the function value at the right end of each one. When all subintervals have the same width, the sample locations follow a regular pattern. Deriving that pattern carefully makes the formula easier to use and helps prevent a common indexing error: including the left endpoint of the whole interval instead of its right endpoint.

Let the interval be \([a,b]\), where \(a<b\), and divide it into \(n\) equal subintervals. Here \(n\) is a positive integer and counts the subintervals, not the partition points. The right-endpoint sum uses one sample from each subinterval: specifically, its right endpoint.

Definition: For an interval \([a,b]\) divided into \(n\) equal subintervals, the common width is \(\Delta x=(b-a)/n\). If \(f\) is defined at all the right endpoints, its equal-width right-endpoint sum is \[ R_n=\sum_{j=1}^{n} f(x_j)\,\Delta x, \] where \(x_j=a+j\Delta x\) is the right endpoint of subinterval \(j\).

The formula contains two related choices: the locations \(x_j\), which tell us where to evaluate \(f\), and the indices \(j=1,\ldots,n\), which tell us which subintervals to include. We will derive both from the partition.

Deriving the Partition Locations

Start at \(a\). The first partition point is one width to the right, the next is two widths to the right, and so on. After \(j\) widths, the location is \(a+j\Delta x\). Thus the partition points are

$$ x_j=a+j\Delta x,\qquad j=0,1,\ldots,n. $$

At \(j=0\), this gives \(x_0=a\). At \(j=n\), it gives \(x_n=a+n\Delta x=b\), because \(n\Delta x=b-a\). There are \(n+1\) partition points, which form exactly \(n\) adjacent subintervals.

The \(j\)th subinterval lies between \(x_{j-1}\) and \(x_j\). Its right endpoint is therefore \(x_j\), with \(j\) running from \(1\) through \(n\). The right sample locations are \(x_1,x_2,\ldots,x_n\): they begin one width after \(a\) and end at \(b\).

Worked Example: Four Right Samples on an Interval

Divide \([2,10]\) into \(n=4\) equal subintervals. The interval length is \(10-2=8\), so

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

The partition points are \(x_j=2+2j\), for \(j=0,1,2,3,4\). Substituting each index gives

$$ x_0=2,\quad x_1=4,\quad x_2=6,\quad x_3=8,\quad x_4=10. $$

The four subintervals are \([2,4]\), \([4,6]\), \([6,8]\), and \([8,10]\). Their right endpoints are \(4,6,8,10\). Therefore the right sum is

$$ R_4=2f(4)+2f(6)+2f(8)+2f(10) =2\bigl(f(4)+f(6)+f(8)+f(10)\bigr). $$

Check: there are four subintervals and four terms, each multiplied by the common width \(2\). The first sample is the right endpoint of \([2,4]\), and the last sample is the right endpoint of \([8,10]\), as required.

Why the Index Starts at One

The partition-point index starts at zero because \(x_0=a\). But the right-sum index does not start at zero: \(x_0\) is the left endpoint of the first subinterval, not its right endpoint. The first right endpoint is \(x_1\). At the other end, the final right endpoint is \(x_n=b\), so the sum includes index \(n\).

Each rectangle contributes its width times its sampled height. For subinterval \(j\), the width is \(x_j-x_{j-1}=\Delta x\), and the sampled height is \(f(x_j)\). Its contribution is \(f(x_j)\Delta x\). Adding the contributions for \(j=1\) through \(n\) gives the sum.

1
Find the common width.
The total interval length \(b-a\) is divided into \(n\) equal pieces, so each has width \(\Delta x=(b-a)/n\).
2
Locate the partition points.
Moving \(j\) widths from \(a\) gives \(x_j=a+j\Delta x\), for \(j=0,\ldots,n\).
3
Select each right endpoint.
Subinterval \(j\) runs from \(x_{j-1}\) to \(x_j\), so its right sample is \(x_j\), for \(j=1,\ldots,n\).
4
Add the rectangle contributions.
Each contribution is \(f(x_j)\Delta x\); summing them gives \(R_n=\sum_{j=1}^{n}f(x_j)\Delta x\).

This derivation relies on an equal partition of an interval with \(a<b\), and on \(f\) being defined at every selected sample location. The formula specifies a sum; it does not require the function to be positive. If a sampled value is negative, its contribution is negative, consistent with signed accumulation.

Right and Left Endpoint Indices

For comparison, the left endpoint of subinterval \(j\) is \(x_{j-1}\). As \(j\) runs from \(1\) to \(n\), these left samples are \(x_0,x_1,\ldots,x_{n-1}\). Replacing \(j-1\) with an index \(i\) gives the left-endpoint formula. The common width and partition points are unchanged; only the selected endpoint, and consequently the index range, changes.

$$ L_n=\sum_{i=0}^{n-1} f(x_i)\,\Delta x, \qquad R_n=\sum_{j=1}^{n} f(x_j)\,\Delta x. $$
Sum Sample locations Index range
Left-endpoint sum \(x_0,x_1,\ldots,x_{n-1}\) \(i=0,\ldots,n-1\)
Right-endpoint sum \(x_1,x_2,\ldots,x_n\) \(j=1,\ldots,n\)

Both formulas have exactly \(n\) terms. The left sum includes \(x_0=a\) and excludes \(x_n=b\); the right sum excludes \(x_0=a\) and includes \(x_n=b\). The symbols \(i\) and \(j\) are just index names. What matters is which partition point each term uses.

Worked Example: Right Samples on a Negative-to-Positive Interval

Divide \([-3,9]\) into \(n=3\) equal subintervals. The interval length is

$$ 9-(-3)=12, \qquad \Delta x=\frac{12}{3}=4. $$

Use \(x_j=-3+4j\). The partition points are

$$ x_0=-3,\quad x_1=-3+4=1,\quad x_2=-3+8=5,\quad x_3=-3+12=9. $$

The subintervals are \([-3,1]\), \([1,5]\), and \([5,9]\). Their right endpoints are \(1,5,9\), so

$$ R_3=4f(1)+4f(5)+4f(9) =4\bigl(f(1)+f(5)+f(9)\bigr). $$

Check: the final partition point is \(-3+3(4)=9\), the original right endpoint. The three right samples give one term for each of the three subintervals.

Writing the Formula Directly from the Interval

Substituting \(\Delta x=(b-a)/n\) and \(x_j=a+j(b-a)/n\) into the right-sum definition gives a formula using only the interval endpoints, the number of subintervals, and the function:

$$ R_n = \frac{b-a}{n} \sum_{j=1}^{n} f\left(a+\frac{j(b-a)}{n}\right). $$

The factor outside the sum is the width of every rectangle. Inside, the first function input is \(a+(b-a)/n\), and the last is \(a+n(b-a)/n=b\). This form can be useful when the partition points are not written out separately, but it still has the same right-endpoint indexing: \(j=1,\ldots,n\).

Worked Example: Expressing the Sum with a General Index

Divide \([5,17]\) into \(n=4\) equal subintervals. First calculate

$$ \Delta x=\frac{17-5}{4}=\frac{12}{4}=3. $$

The partition points follow \(x_j=5+3j\). For \(j=0,1,2,3,4\), they are \(5,8,11,14,17\). The right samples use \(j=1,2,3,4\), giving \(8,11,14,17\). Thus

$$ R_4=3\bigl(f(8)+f(11)+f(14)+f(17)\bigr) =3\sum_{j=1}^{4}f(5+3j). $$

The same sum can be written with an index \(k\) starting at zero by setting \(k=j-1\), so that \(j=k+1\). Then \(5+3j=5+3(k+1)=8+3k\), and

$$ R_4=3\sum_{k=0}^{3}f(8+3k). $$

Check: the inputs in this last expression are \(8,11,14,17\), exactly the four right endpoints found from the partition. Changing the index name or shifting its range is valid only when the function inputs shift consistently as well.

A Common Indexing Mistake

A tempting error is to use the partition-point range \(0,\ldots,n\) directly in a right sum. That range contains \(n+1\) points, including both ends of the whole interval, whereas a right-endpoint sum needs exactly one sample for each of the \(n\) subintervals.

Common mistake: Writing \(R_n=\sum_{j=0}^{n}f(x_j)\Delta x\) includes \(f(x_0)\), which is the value at \(a\), and produces \(n+1\) terms. For a right-endpoint sum, the correct range is \(j=1,\ldots,n\). The first right sample is \(x_1\), and the final one is \(x_n=b\).

For example, with four subintervals on \([2,10]\), the incorrect range \(j=0,\ldots,4\) would select \(2,4,6,8,10\): five sample locations for four rectangles. The corrected range \(j=1,\ldots,4\) selects \(4,6,8,10\), giving four samples. In general, counting terms is a quick check: the index range \(1,\ldots,n\) contains \(n\) integers, just as the partition has \(n\) subintervals.

Why the Distinction Matters

A sum is determined not only by the width and the function, but also by where each function value is sampled. The left and right sums share the same partition and the same width, yet they generally use different function values. In an accumulation estimate, those values represent the heights assigned to the rectangles. Using the wrong endpoint changes the estimate, even if the width is correct.

When deriving or checking a right sum, confirm three facts: the common width is \((b-a)/n\); the partition points are \(x_j=a+j\Delta x\); and the right sample for subinterval \(j\) is \(x_j\), with \(j\) from \(1\) through \(n\). These checks keep the interval endpoints, sample locations, and term count consistent.

Check Your Understanding

Use the partition-point notation \(x_j=a+j\Delta x\) to answer each question.

  1. For an equal partition of \([a,b]\) into \(n\) subintervals, what is the common width?
  2. What is the right endpoint of subinterval \(j\), and which values of \(j\) are used in the right sum?
  3. For \([1,13]\) divided into three equal subintervals, find the width and list the right sample locations.
  4. How do the index ranges for the left-endpoint sum and the right-endpoint sum differ?
  5. Why does a right-endpoint sum with \(n\) subintervals have \(n\) terms rather than \(n+1\)?

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