data-ad-format="horizontal">



 
Approximating Distance Traveled Using a Graph

Estimating the distance traveled using a graph instead of a table. The data for the examples in this applet are all the same as the previous page.

Substitute image

This device cannot display Java animations. The above is a substitute static image
See About the calculus applets for operating instructions.

1. Steady velocity

The applet shows a graph (in magenta) of the velocity for the car, in feet/second. The initial example shows a constant velocity of 20 ft/sec and divides the 8 seconds into two 4-second intervals. The distance traveled in each interval is thus 4 times 20, or 80 feet, for a total of 80 + 80 = 160 feet. Notice that the distance traveled is just the area of a rectangle with a width of 4 seconds and a height of 20 ft/sec. You can change the number of intervals to 4 or 8, but this example is not very interesting graphically.

2. Speeding up

Select the second example from the drop down menu. In this case, the car is speeding up over the 8 seconds. Initially, we estimate the distance traveled using 2 intervals, each 4 seconds wide (the width is given by deltaT, shown at the top of the graph, which is just the end time minus the start time, divided by the number of intervals). Using the starting velocity for each of the two intervals (i.e., left), the distance estimate for the first interval is 4 times 20 and the second interval is 4 times 64, for a total of 336 feet. Notice again that the distance is the area of the rectangles (shown in pink).

Use the choice box to change to using the right-hand velocity for the 2 intervals (the rectangles are shown in blue). The rectangles are bigger, so the total distance estimate is larger. Now select left & right from the choice box. This shows both the pink and blue rectangles, with purple showing where they overlap. You can see that the blue rectangles are larger, and the area of the blue showing is the difference between the two estimates, 560 - 336 = 224. Now change the number of intervals to 4. Notice that the difference, 520 - 408 = 112 is half of the previous difference between the left and right totals. So, doubling the number of intervals cuts the difference in half for this example. Try 8, 16, and 32 intervals and see if this is still true.

3. Fast and slow

Select the third example from the drop down menu at the top. Here the car speeds up, then slows to a stop, then speeds up again. Obviously the estimate using 2 intervals and left-hand velocities isn't a very good one. Select right from the choice box. This doesn't look too good either, as the second blue rectangle seems too big. Select left & right, and notice that the difference is quite large, 368 - 48 = 320. Now use 4 intervals. Notice that the difference between the two estimates has halved, to 240 - 80 = 160. In this case, sometimes the blue rectangles are taller, but sometimes the pink ones are taller. Now try 8, 16, and 32 intervals. In each case, the difference gets smaller.

4. Forwards and backwards

Select the fourth example from the drop down menu at the top. This is like the previous example, except that the car starts out stopped (velocity = 0) speeds up, slows down, stops, then goes backwards (negative velocity), comes back to a stop, then speeds up. Since the starting velocity is 0, the rectangle for the first interval using left-hand velocities has no area (i.e., its height is 0). Notice that the second interval's rectangle is below the horizontal axis, so its area is counted as negative, which is why the total left-hand estimate (pink) is -32 feet.

Select right from the choice box; now the estimate is positive. Select left & right to see them both. Now set the number of intervals to 16 (you can check out 4 and 8, too). Notice that, when the distance from the curve to the horizontal axis is increasing, the blue rectangles are taller (right hand), but when the curve is getting closer to the horizontal axis the pink rectangles are taller. Think about this in terms of whether the velocity function is positive or negative and whether the function is increasing or decreasing. Which combinations of these two characteristics result in larger left-hand (pink) rectangles? Which combinations result in larger right-hand (blue) rectangles?

Try setting the number of intervals to 1000 and the value to use to left & right. What do you notice about the difference between the left and right estimates? As we will see, the exact answer for the distance between the car's starting and ending positions is just the area under the curve, with area above the horizontal axis counted positively and the area below the axis counted negatively. The exact answer, which we will learn how to compute, is 64 feet.

Explore

Select the fifth example. This exposes the box where the velocity function is defined, so you can try your own examples. You can edit the velocity function definition (which uses t as the variable), the start time, the stop time, and the number of intervals.

Other 'Definite Integral' topics

Acknowledgements

Derived from the work of Thomas S. Downey under a Creative Commons Attribution 3.0 License.