The Concept of Accumulation and Riemann Sums
Introduction
In calculus, many important quantities are found by adding up many small pieces. This idea is called accumulation. For example, if you know the speed of a car at each moment, you can find the total distance traveled by adding small distance changes over time. If you know the height of a curve above the x-axis, you can estimate the area under the curve by adding the areas of many thin rectangles.
This is the main idea behind Riemann sums. A Riemann sum is a method for approximating total area or total accumulated change by dividing an interval into smaller parts and adding rectangular pieces. As the rectangles get thinner, the approximation becomes more accurate.
This lesson will explain what accumulation means, how left, right, and midpoint Riemann sums work, and how these ideas connect to antiderivatives and the Fundamental Theorem of Calculus.
1. The idea of accumulation
Suppose a quantity changes over an interval from \(x=a\) to \(x=b\). If the rate of change is given by a function \(f(x)\), then the total accumulated change can be approximated by multiplying the rate on a small interval by the width of that interval, then adding all those small pieces.
For one small interval of width \(\Delta x\), the amount accumulated is approximately
$$f(x)\Delta x$$If we divide the whole interval into many subintervals, then the total accumulation is approximately
$$f(x_1)\Delta x+f(x_2)\Delta x+f(x_3)\Delta x+\cdots+f(x_n)\Delta x$$This is a Riemann sum.
Geometrically, each term represents the area of a rectangle:
- height = value of the function
- width = \(\Delta x\)
So a Riemann sum can be used to estimate:
- the area under a curve
- the net accumulated change of a quantity
2. Dividing an interval into subintervals
Let the interval be \([a,b]\). If we divide it into \(n\) equal parts, then the width of each subinterval is
$$\Delta x=\frac{b-a}{n}$$We then choose one x-value in each subinterval to determine the height of the rectangle.
The three most common choices are:
- Left endpoint: use the left side of each interval
- Right endpoint: use the right side of each interval
- Midpoint: use the middle of each interval
If the partition points are
$$x_0=a,\ x_1=a+\Delta x,\ x_2=a+2\Delta x,\ \dots,\ x_n=b$$then:
- Left Riemann sum: $$L_n=\sum_{i=1}^{n} f(x_{i-1})\Delta x$$
- Right Riemann sum: $$R_n=\sum_{i=1}^{n} f(x_i)\Delta x$$
- Midpoint Riemann sum: $$M_n=\sum_{i=1}^{n} f\left(\frac{x_{i-1}+x_i}{2}\right)\Delta x$$
3. Left, right, and midpoint sums visually
Imagine the graph of a function on an interval.
For a left sum, each rectangle touches the curve at the left side of the subinterval. For a right sum, each rectangle touches the curve at the right side. For a midpoint sum, each rectangle touches the curve in the middle.
If the function is increasing on the interval:
- the left sum usually underestimates the area
- the right sum usually overestimates the area
If the function is decreasing:
- the left sum usually overestimates
- the right sum usually underestimates
The midpoint sum is often more accurate than left or right sums because it uses a value closer to the average height on each interval.
4. Worked Example 1: Left and right sums for a simple function
Approximate the area under \(f(x)=x^2\) on \([0,2]\) using \(n=4\) rectangles.
Step 1: Find \(\Delta x\)
$$\Delta x=\frac{2-0}{4}=\frac{1}{2}$$The subintervals are:
$$[0,0.5],\ [0.5,1],\ [1,1.5],\ [1.5,2]$$Step 2: Left Riemann sum
The left endpoints are:
$$0,\ 0.5,\ 1,\ 1.5$$Now evaluate the function:
$$f(0)=0^2=0$$ $$f(0.5)=0.25$$ $$f(1)=1$$ $$f(1.5)=2.25$$Add the rectangle areas:
$$L_4=\left(0+0.25+1+2.25\right)\left(\frac{1}{2}\right)$$ $$L_4=(3.5)\left(\frac{1}{2}\right)=1.75$$Step 3: Right Riemann sum
The right endpoints are:
$$0.5,\ 1,\ 1.5,\ 2$$Function values:
$$f(0.5)=0.25$$ $$f(1)=1$$ $$f(1.5)=2.25$$ $$f(2)=4$$Add the rectangle areas:
$$R_4=\left(0.25+1+2.25+4\right)\left(\frac{1}{2}\right)$$ $$R_4=(7.5)\left(\frac{1}{2}\right)=3.75$$Conclusion: The true area lies between \(1.75\) and \(3.75\). Since \(f(x)=x^2\) is increasing on \([0,2]\), the left sum is an underestimate and the right sum is an overestimate.
5. Worked Example 2: Midpoint sum
Use the midpoint Riemann sum to approximate the area under \(f(x)=x^2\) on \([0,2]\) with \(n=4\).
We already know that \(\Delta x=0.5\).
The midpoints of the four subintervals are:
$$0.25,\ 0.75,\ 1.25,\ 1.75$$Evaluate the function:
$$f(0.25)=0.0625$$ $$f(0.75)=0.5625$$ $$f(1.25)=1.5625$$ $$f(1.75)=3.0625$$Add the rectangle areas:
$$M_4=\left(0.0625+0.5625+1.5625+3.0625\right)(0.5)$$ $$M_4=(5.25)(0.5)=2.625$$This estimate is between the left and right sums, and it is usually closer to the exact area.
6. Net area and accumulated change
Riemann sums do not always give just geometric area. They also measure accumulated change.
If the function is above the x-axis, the rectangles have positive area. If the function is below the x-axis, the rectangles count as negative. So a Riemann sum gives net signed area, which means positive areas minus negative areas.
This is important in real situations. For example:
- if \(v(t)\) is velocity, then summing \(v(t)\Delta t\) gives change in position
- positive velocity moves forward, negative velocity moves backward
- the result is net change, not total distance
7. Worked Example 3: Accumulated change from a rate
A particle has velocity \(v(t)=2t+1\) for \(0\le t\le 3\). Use a right Riemann sum with \(n=3\) to approximate the change in position.
Step 1: Find \(\Delta t\)
$$\Delta t=\frac{3-0}{3}=1$$The subintervals are:
$$[0,1],\ [1,2],\ [2,3]$$Step 2: Use right endpoints
The right endpoints are:
$$1,\ 2,\ 3$$Evaluate velocity:
$$v(1)=2(1)+1=3$$ $$v(2)=2(2)+1=5$$ $$v(3)=2(3)+1=7$$Step 3: Form the sum
$$R_3=v(1)(1)+v(2)(1)+v(3)(1)$$ $$R_3=3+5+7=15$$So the approximate change in position is
$$15$$Because velocity is increasing, a right sum gives an overestimate here.
8. From Riemann sums to the definite integral
Riemann sums are approximations. But what happens if we use more and more rectangles, making each one thinner?
As \(n\) increases, the approximation improves. In the limit, the Riemann sum becomes the definite integral:
$$\int_a^b f(x)\,dx$$This integral represents the exact accumulated change, or the exact net area under the curve from \(x=a\) to \(x=b\).
So we can think of the definite integral as the value that Riemann sums approach when the number of rectangles becomes very large.
9. The Fundamental Theorem of Calculus
Calculating a large Riemann sum by hand can be slow. The Fundamental Theorem of Calculus gives a much faster way.
If \(F(x)\) is an antiderivative of \(f(x)\), meaning
$$F'(x)=f(x)$$then
$$\int_a^b f(x)\,dx=F(b)-F(a)$$This means we can find exact accumulated change by:
- finding an antiderivative
- evaluating it at the upper limit
- subtracting its value at the lower limit
10. Worked Example 4: Compare a Riemann sum to the exact value
Find the exact area under \(f(x)=x^2\) on \([0,2]\), and compare it to the midpoint estimate from Example 2.
Step 1: Find an antiderivative
$$\int x^2\,dx=\frac{x^3}{3}+C$$So an antiderivative is
$$F(x)=\frac{x^3}{3}$$Step 2: Apply the Fundamental Theorem of Calculus
$$\int_0^2 x^2\,dx=\left[\frac{x^3}{3}\right]_0^2$$ $$=\frac{2^3}{3}-\frac{0^3}{3}$$ $$=\frac{8}{3}$$So the exact area is
$$\frac{8}{3}\approx 2.667$$From Example 2, the midpoint estimate was
$$M_4=2.625$$This is very close to the exact value. That shows how useful midpoint sums can be.
11. Important ideas to remember
- Accumulation means adding many small changes to find a total.
- A Riemann sum approximates total accumulation using rectangles.
- The width of each rectangle is usually $$\Delta x=\frac{b-a}{n}$$
- Left, right, and midpoint sums use different sample points for the rectangle heights.
- For increasing functions, left sums tend to be low and right sums tend to be high.
- The definite integral is the exact value that Riemann sums approach.
- The Fundamental Theorem of Calculus lets us evaluate many integrals exactly using antiderivatives.
12. Common mistakes
- Using the wrong \(\Delta x\): Always compute $$\Delta x=\frac{b-a}{n}$$ carefully.
- Mixing up left and right endpoints: Left uses the beginning of each interval; right uses the end.
- Forgetting to multiply by \(\Delta x\): The sum of function values alone is not the area estimate.
- Ignoring negative values: If the graph is below the x-axis, the contribution is negative in accumulated change.
- Thinking a Riemann sum is exact: It is usually an approximation unless you take the limit and use the definite integral.
Brief Summary
Riemann sums help us estimate total area and accumulated change by adding the areas of thin rectangles. Left, right, and midpoint sums differ by where the height of each rectangle is chosen. As the number of rectangles increases, the estimate approaches the definite integral. The Fundamental Theorem of Calculus then allows us to compute this exact accumulated value using antiderivatives.
Put what you read to the test
You've worked through The Concept of Accumulation and Riemann Sums. Try answering a few questions to see what stuck — and what might deserve a quick reread before you move on.