A Riemann Sum is a method for approximating the total area underneath a curve on a graph, otherwise known as an integral. It may also be used to define the integration operation. This page explores this idea with an interactive calculus applet.

On the preceding pages we computed the net distance traveled given data about the velocity of a car. We saw that as we increased the number of intervals (and decreased the width of the rectangles) the sum of the areas of the rectangles approached the area under the curve.

On this page we will generalize this and write it more precisely.
Let *f* (*t*) be a function that is continuous on the interval *a* ≤ *t* ≤ *b*. Divide this interval into *n* equal width subintervals, each of which has a width of
Let *t _{i }* be the

Left-hand sum =

Right-hand sum =

These sums, which add up the value of some function times a small amount of the independent variable are called Riemann sums. If we take the limit as *n* approaches infinity and Δ*t* approached zero, we get the exact value for the area under the curve represented by the function. This is called the **definite integral** and is written as:

Limit of left hand sum =

Limit of right hand sum =

The s-shaped curve is called the **integral sign**, *a* and *b* are the **limits
of integration**, and the function *f *(*t*) is the **integrand**.
The *dt* tells you which variable is being integrated (which will not be of much importance until you get to multivariable calculus).
By convention the *dt* is written last.

Note that in the limit as *n* approaches infinity, the left-hand and right-hand Riemann sums become equal.
Also note that the variable does not have to be *t* or time. An example of an integral for a function of *x* is
which means to divide up the interval from 0 to 2 into subintervals, sum up the areas of these rectangles (where the height is just *x*²), and take the limit of this sum as the number of subintervals goes to infinity. We can calculate the value of a definite integral using a calculator or software and letting *n* be some large number, like 1,000. Later we will learn how to compute the limits in some cases to find a more exact answer.

See About the calculus applets for operating instructions. |

The applet shows a graph of a portion of a hyperbola defined as *f* (*x*) = 1/*x*. Increase the intervals to 4, 10, 100, then 1000. While we don't know the exact value for the area under this curve over the interval from 1 to 2, we know it is between the left and right estimates, so it must be about 0.69, to two decimal places.

Select the second example from the drop down menu. This shows a straight line *f* (*x*) = *x*. Increase the intervals and watch what happens to the left and right estimates. From geometry, you know that the area of a triangle is 1/2 base times height, so the exact area under this curve is 2.

Select the third example, showing a semi-circle (click Equalize Axes if it looks squished). Why are the left and right estimates the same? (Hint: use the choice box to show only the left or only the right rectangles and see how they relate). Increase the number of intervals and watch what happens. Can you use formulas from geometry to calculate an area for this semicircle?

Select the fourth example, showing a parabola that dips below the *x* axis. Are the left and right estimates the same? Why? Increase the number of intervals, up to 1000. What would you guess is the exact area, based on where the estimates are headed? Notice that the area is negative, since the graph dips below the *x* axis.

Select the fifth example, showing one cycle of a sine curve. Increase the number of intervals and notice the estimates (these are displayed in scientific notation, where 1.00E-9 means ). What do you think the total area over one cycle should be, remembering to count the area above the *x* axis as positive and the area below the *x* axis as negative? The estimates are very close to zero, but are off by a little bit due to rounding errors.

You can try your own functions, by entering the function (with *x* as the variable) and setting the start and end points, the number of intervals, and using the limit control panel (or the mouse) to pan and zoom the graph as you would like.

- Approximating Distance Traveled With a Table
- Approximating Distance Traveled With a Graph
- Riemann Sums and The Definite Integral
- Fundamental Theorem of Calculus
- Average Value
- Properties of Definite Integrals

(C) 2011 Copyright Math Open Reference.

All rights reserved

All rights reserved