Riemann sums
A definite integral is defined as the limit of a sum of the areas of thin rectangles1. We confirm it for f(x)=x2 from 0 to 2.
The sum built on left endpoints
Cut the interval into eight equal pieces of width 41 and stand a rectangle over each, taking the value at the left endpoint as its height.
41k=0∑7(4k)2=641(0+1+4+9+16+25+36+49)=1635 That is 1635=2.1875, smaller than the true value 38≈2.6667. Using the height at the left endpoint underestimates an increasing function.
Trapping the value between left and right
| Construction | Value | Relation to the true value |
|---|
| Left endpoints | 1635=2.1875 | smaller |
| The true value | 38≈2.6667 | the reference |
| Right endpoints | 1651=3.1875 | larger |
The gap between them is 1, which is the difference of the end heights f(2)−f(0)=4 multiplied by the width 41. The true value always lies between the two.
Refining the partition
The left-endpoint sum for n pieces works out as follows.
n2k=0∑n−1(n2k)2=n38⋅6(n−1)n(2n−1)⟶38(n→∞) That limit is the value of the definite integral.
The general form
Cutting [a,b] into n equal pieces of width Δx=nb−a, the limit of the sum is the definite integral.
∫abf(x)dx=n→∞limk=0∑n−1f(a+kΔx)Δx It looks like a computation of area, but it is really a limit of addition. That is why every quantity of the form multiply and add can be written as a definite integral.
- Distance from velocity
- Mass from density
- A total from a unit price
The parabola on the graph is y=x2, the staircase is the tops of the rectangles of width 41, and the large dots are the two ends of the interval.
- Riemann sum, Wikipedia