Tutorials › Calculus I › Nonuniform Partitions and Unequal Widths

Riemann Sums and the Integral · Tutorial 941 of 1495

Nonuniform Partitions and Unequal Widths

Build and check Riemann sums on unequal subintervals by pairing each sample value with the width of its own interval.

Intermediate 9 min read

What You'll Learn

  • Define the widths of the subintervals in a nonuniform partition.
  • Write a tagged Riemann sum using each interval’s own width.
  • Explain why rectangle contributions add with their corresponding widths.
  • Compute nonuniform sums and check the partition widths and arithmetic.
  • Identify when replacing interval widths by an average width changes a sum.

Why Unequal Widths Matter

A partition does not have to divide an interval into equally spaced pieces. One subinterval may be short, another longer, and a third longer still. When we use rectangles to represent accumulation over such a partition, their widths must reflect the actual pieces of the interval.

The height of each rectangle comes from a function value chosen within its subinterval. Its signed contribution is therefore the sampled function value multiplied by that subinterval’s width. Using a different width can change the contribution, even when the sample value itself is unchanged.

Partitions and Their Widths

Let \(a<b\). A partition of \([a,b]\) is a finite, strictly increasing list of points that starts at \(a\) and ends at \(b\):

$$ a=x_0<x_1<\cdots<x_n=b. $$

The points \(x_0,\ldots,x_n\) divide the interval into \(n\) subintervals, \([x_{i-1},x_i]\), for \(i=1,\ldots,n\). The width of the \(i\)th subinterval is defined by subtracting its left endpoint from its right endpoint:

$$ \Delta x_i=x_i-x_{i-1}. $$

Each width is positive. In a uniform partition, all widths are equal. In a nonuniform partition, at least two widths differ. For a nonuniform partition, there is no single common subinterval width to use in every rectangle.

To form a tagged partition, choose one sample point \(\xi_i\) in each subinterval, so that \(x_{i-1}\le \xi_i\le x_i\). The sample point determines the rectangle’s height through the function value \(f(\xi_i)\).

Definition: For a function \(f\) defined at the sample points of a partition \(a=x_0<x_1<\cdots<x_n=b\), and tags \(\xi_i\in[x_{i-1},x_i]\), the tagged Riemann sum is $$ \sum_{i=1}^{n} f(\xi_i)\Delta x_i = \sum_{i=1}^{n} f(\xi_i)(x_i-x_{i-1}). $$

The factor paired with \(f(\xi_i)\) is the width of the same interval from which \(\xi_i\) was chosen. The widths may differ from one term to the next.

Why Each Value Gets Its Own Width

Over the \(i\)th subinterval, the rectangle has horizontal width \(\Delta x_i\) and signed height \(f(\xi_i)\). Its signed area is height times width, \(f(\xi_i)\Delta x_i\). Adding the rectangles gives the total signed rectangle sum.

This pairing is also required by the structure of the partition. Each subinterval represents a different portion of the original interval, and its contribution must account for how much horizontal distance that portion covers. A sample value from a wide interval is multiplied by a wider amount than the same value from a narrow interval.

The widths themselves add to the length of the whole interval. Indeed, writing out the differences gives a telescoping sum:

$$ \sum_{i=1}^{n}\Delta x_i =(x_1-x_0)+(x_2-x_1)+\cdots+(x_n-x_{n-1}) =x_n-x_0=b-a. $$

Every interior endpoint appears once with a positive sign and once with a negative sign, so those terms cancel. This confirms that the subinterval widths together cover exactly the original interval. Weighting each sample by its own width respects this decomposition.

Worked Sums with Unequal Widths

Worked Example: A Linear Function on Unequal Subintervals

Find the tagged Riemann sum for \(f(x)=x\) on \([0,4]\), using the partition \(0,1,3,4\) and the right endpoint of each subinterval as its tag.

There are three subintervals. Their widths are:

$$ \Delta x_1=1-0=1,\qquad \Delta x_2=3-1=2,\qquad \Delta x_3=4-3=1. $$

The right-endpoint tags are \(\xi_1=1\), \(\xi_2=3\), and \(\xi_3=4\). The corresponding function values are:

$$ f(\xi_1)=f(1)=1,\qquad f(\xi_2)=f(3)=3,\qquad f(\xi_3)=f(4)=4. $$

Multiply each value by its own subinterval width, then add:

$$ \sum_{i=1}^{3}f(\xi_i)\Delta x_i =1(1)+3(2)+4(1) =1+6+4 =11. $$

Check the widths: \(1+2+1=4\), the length of \([0,4]\). The three contributions \(1\), \(6\), and \(4\) use the matching widths, and their sum is \(11\).

Worked Example: Accumulated Flow over Unequal Time Intervals

Suppose a flow rate is represented by \(4\) litres per hour on the interval from \(0\) to \(2\) hours, and by \(7\) litres per hour on the interval from \(2\) to \(5\) hours. Estimate the accumulated volume using these representative rates for their respective intervals.

The first interval has width \(2-0=2\) hours. The second has width \(5-2=3\) hours. Multiply each rate by the duration it represents:

$$ (4\ \text{litres/hour})(2\ \text{hours}) + (7\ \text{litres/hour})(3\ \text{hours}) =8\ \text{litres}+21\ \text{litres} =29\ \text{litres}. $$

The units check: in each product, hours cancel against hours in the denominator of the rate, leaving litres. The interval widths also check, since \(2+3=5\) hours, the full elapsed time. Using the first rate for all \(5\) hours, for example, would ignore the rate assigned to the second interval and would not be the sum for these data.

Worked Example: A Quadratic Function with Chosen Tags

Compute a tagged Riemann sum for \(f(x)=x^2\) on \([0,1]\), using the partition \(0,\frac14,1\) and the tags \(\frac18\) and \(\frac58\), respectively.

The widths are:

$$ \Delta x_1=\frac14-0=\frac14,\qquad \Delta x_2=1-\frac14=\frac34. $$

Evaluate the function at the specified tags:

$$ f\left(\frac18\right)=\left(\frac18\right)^2=\frac1{64}, \qquad f\left(\frac58\right)=\left(\frac58\right)^2=\frac{25}{64}. $$

Use each value with its own width:

$$ \begin{aligned} \sum_{i=1}^{2} f(\xi_i)\Delta x_i &=\frac1{64}\cdot\frac14+\frac{25}{64}\cdot\frac34\\ &=\frac1{256}+\frac{75}{256}\\ &=\frac{76}{256} =\frac{19}{64}. \end{aligned} $$

As a check, the widths add to \(\frac14+\frac34=1\), the length of \([0,1]\). The arithmetic also reduces correctly because \(\frac{76}{256}=\frac{19}{64}\).

A Common Shortcut That Can Fail

When a partition has \(n\) subintervals, its average width is \((b-a)/n\). It can be tempting to replace every actual width by that average. This can change the rectangle sum and can give a wrong result: the average width is not generally the width of any particular subinterval.

Return to the first example. The widths were \(1,2,1\), and the sampled values were \(1,3,4\). Their average width is \((4-0)/3=\frac43\). The incorrect substitution would give:

$$ (1+3+4)\frac43 =8\cdot\frac43 =\frac{32}{3}. $$

But the required sum is \(1(1)+3(2)+4(1)=11\), not \(\frac{32}{3}\). The difference is that the middle value \(3\) belongs to a width of \(2\), while each other value belongs to a width of \(1\). The average-width calculation assigns all three values the same width instead.

There are cases in which the two calculations coincide. For example, if every sampled value is a constant \(c\), then the original sum is \(c\sum_{i=1}^n\Delta x_i=c(b-a)\). Replacing all widths by the average gives \(c\frac{b-a}{n}n=c(b-a)\) as well. This special agreement does not make average widths valid in general; it occurs because all the sampled values are equal.

Takeaway: Keep each term paired as \(f(\xi_i)\Delta x_i\). Do not replace the individual widths with one common width unless the partition is actually uniform, or you have separately established that the replacement preserves the sum in the particular case.

A Reliable Setup and Check

For a nonuniform tagged partition, a short setup routine helps prevent misplaced widths and arithmetic errors:

1
List the partition points in order.
Record \(x_0,\ldots,x_n\), starting at the left endpoint and ending at the right endpoint.
2
Find each width separately.
Calculate \(\Delta x_i=x_i-x_{i-1}\) for every interval; do not assume the answers are equal.
3
Pair every tag with its interval.
Evaluate \(f(\xi_i)\) and place it beside the width \(\Delta x_i\) from that same interval.
4
Multiply and add.
Compute each product \(f(\xi_i)\Delta x_i\), then sum the products, preserving negative signs when a sampled value is negative.
5
Check the widths and units.
Verify that \(\sum_i\Delta x_i=b-a\). When the quantities have units, verify that function-value units multiplied by interval units give the units of the accumulated quantity.

Why This Construction Is Useful

Unequal partitions let a calculation use shorter intervals in portions where more detail is wanted and longer intervals elsewhere. Whatever the choice of partition, the sum still has one consistent meaning: each sampled height represents its own interval, so its signed rectangle contribution is height times that interval’s width.

This construction is the basic way to write rectangle estimates when interval widths differ. A correct sum must preserve the pairing between each sample point and its subinterval. Once the partition points, tags, and widths are written clearly, the calculation is a finite sum of explicit products.

Check Your Understanding

For each question, keep the sample values paired with the intervals that produced them.

  1. For the partition \(0,2,5\) of \([0,5]\), what are the two subinterval widths, and what is their sum?
  2. For \(f(x)=2x\) on the partition \(0,1,4\), use the right endpoints as tags and compute the tagged Riemann sum.
  3. A rate is \(3\) units per minute on an interval of \(4\) minutes and \(5\) units per minute on the next interval of \(2\) minutes. Write the sum and state its units.
  4. Explain why the average width cannot generally replace each \(\Delta x_i\) when sampled values differ.
  5. If all sampled values equal the constant \(c\), show that the sum is \(c(b-a)\), even when the widths are unequal.

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