# The Distance Problem

Consider the distance problem: Find the distance traveled by an object during a certain time period if the velocity of the object is known at all times. If the velocity remains constant, then the distance problem is easy to solve by means of the formula $$${s}={v}{t}$$$.

But if the velocity varies, it is not so easy to find the distance traveled.

Example 2. Suppose the odometer on our car is broken and we want to estimate the distance driven over a 30-second time interval. We take speedometer readings every five seconds and record them in the following table:

Time (s) | 0 | 5 | 10 | 15 | 20 | 25 | 30 |

Velocity (ft/s) | 25 | 31 | 35 | 43 | 47 | 46 | 41 |

During the first five seconds the velocity doesnâ€™t change very much, so we can estimate the distance traveled during that time by assuming that the velocity is constant. If we take the velocity during that time interval to be the initial velocity (25 ft/s), then we obtain the approximate distance traveled during the first five seconds: $$${25}\frac{{f{{t}}}}{{s}}\cdot{5}{s}={125}{f{{t}}}$$$.

Similarly, during the second time interval the velocity is approximately constant and we take it to be the velocity when t=5. So our estimate for the distance traveled from t=5 to t=10 is $$${31}\frac{{f{{t}}}}{{s}}\cdot{5}{s}={155}{f{{t}}}$$$.

If we add similar estimates for the other time intervals, we obtain an estimate for the total distance traveled: $$${25}\cdot{5}+{31}\cdot{5}+{35}\cdot{5}+{43}\cdot{5}+{47}\cdot{5}+{46}\cdot{5}={1135}{f{{t}}}.$$$

We could just as well have used the velocity at the end of each time period instead of the velocity at the beginning as our assumed constant velocity. Then our estimate becomes $$${31}\cdot{5}+{35}\cdot{5}+{43}\cdot{5}+{47}\cdot{5}+{46}\cdot{5}+{41}\cdot{5}={1215}{f{{t}}}.$$$

If we had wanted a more accurate estimate, we could have taken velocity readings every two seconds, or even every second.

Perhaps the calculations in Example 2 remind you of the sums we used earlier to estimate areas. The similarity is explained when we sketch a graph of the velocity function of the car and draw rectangles whose heights are the initial velocities for each time interval. The area of the first rectangle is $$${25}\cdot{5}={125}$$$, which is also our estimate for the distanced traveled in the first five seconds. In fact, the area of each rectangle can be interpreted as a distance because the height represents velocity and the width represents time. The sum of the areas of the rectangles is $$${L}_{{6}}={1135}$$$, which is our initial estimate for the total distance traveled.

In general, suppose an object moves with velocity v=f(t), where $$${a}\le{t}\le{b}$$$ and $$${f{{\left({t}\right)}}}\ge{0}$$$ (so the object always moves in the positive direction). We take velocity readings at times $$${t}_{{0}}{\left(={a}\right)},{t}_{{1}},{t}_{{2}},\ldots,{t}_{{n}}{\left(={b}\right)}$$$ so that the velocity is approximately constant on each subinterval. If these times are equally spaced, then the time between consecutive readings is $$$\Delta{t}=\frac{{{b}-{a}}}{{n}}$$$. During the first time interval the velocity is approximately $$${f{{\left({t}_{{0}}\right)}}}$$$ and so the distance traveled is approximately $$${f{{\left({t}_{{0}}\right)}}}\Delta{t}$$$. Similarly, the distance traveled during the second time interval is about $$${f{{\left({t}_{{1}}\right)}}}\Delta{t}$$$ and the total distance traveled during the time interval is approximately $$${\sum_{{{i}={1}}}^{{n}}}{f{{\left({t}_{{{i}-{1}}}\right)}}}\Delta{t}$$$.

If we use the velocity at right-hand endpoints instead of left-hand endpoints, our estimate for the total distance becomes $$${\sum_{{{i}={1}}}^{{n}}}{f{{\left({t}_{{i}}\right)}}}\Delta{t}$$$.

The more frequently we measure the velocity, the more accurate we expect our estimates to become, so it seems natural that the exact distance s is $$${s}=\lim_{{{n}\to\infty}}{f{{\left({t}_{{{i}-{1}}}\right)}}}\Delta{t}=\lim_{{{n}\to\infty}}{f{{\left({t}_{{i}}\right)}}}\Delta{t}$$$.

Because Equation for distance has the same form as our expressions for area, it follows that the distance traveled is equal to the area under the graph of the velocity function.