Watch the video for two examples of how to find total distance traveled in calculus—on an interval [0, 5]— or read on below:
Contents (Click to skip to that section):
You can find total distance in two different ways: with derivatives, or by integrating the velocity function over the given interval.
Example problem: Find the total distance traveled for a particle traveling in a horizontal motion from t = 0 to t = 5 seconds according to the position function:
s(t) = 8t2 – 4t.
Step 1: Find the velocity function. The velocity function is the derivative of the position function. So, to find the velocity function you need to differentiate s(t) = 4t2 – 2t, using the power rule and constant rule:
v(t) = 16t – 4
Step 2: Set the velocity function to zero, then solve, to find where the velocity function changes direction:
- v(t) = 16t – 4 = 0
- 16t – 4 (+ 4) = 0 (+ 4)
- 16t(/16) = 4 (/16)
- t = 4/16 = 1/4
Step 3: Solve the position function for the starting and ending interval values (which are 0 and 5, according to the question), and any t-values you found in step 2:
- s(0) = 8(0)2 – 4(0) = 0.
- s(1/4) = 8(¼)2 – 4(1/4) = -½
- s(5) = 8(5)2 – 4(5) = 180.
This gives you the position of the object at each time interval.
Step 4: Find the distance traveled between each point. These are vectors, so we have to use absolute values to find the distance:
- Between 0 and -½, distance = |-½ – 0| = ½
- Between -½ and 180, distance = |180 – (-½)| = 180½
Step 5: Add your values from Step 4 together to find the total distance traveled.
½ + 180 ½ = 181
Example question: A particle travels according to the following velocity function:
v(t) = 3t2 – 12.
What is the total distance traveled from t = 1 to t = 3?
Step 1: Set the velocity equal to zero to find where the function changes direction:
- v(t) = 3t2 – 12 = 0
- 3(t2 – 4) = 0 (factoring out).
- 3(t – 2)(t + 2) = 0
- t = -2, +2
We’re working with the closed interval [1, 3] (from the question), so the point we’re interested in (the one that falls in the interval) is t = 2.
Step 2: Integrate the velocity function for each interval. To solve, you need two separate definite integrals:
- From the starting point (t = 1) to zero (t = 2),
- From the zero (t = 2) to the ending point (t = 3).
Step 3: Add the absolute values of the amounts you calculated in Step 2:
5 + 7 = 12.
The total distance traveled is 12 units.
The distance from a point to a line is the length of the shortest path between that point and the place on the line nearest to it. This path is always the line that is perpendicular (at right angles) to your original line.
1. If you know the coordinates
If you know the Cartesian coordinates of your point and you have an equation for your line, you can calculate the distance between the point and the line with the formula:
- x0, y0 are the coordinates of the point,
- a, b, and c are the coefficients (and constant) for the line a x + b y + c = 0.
Suppose your line was given by 4 x + y = 0, and your point was (2, 2).
As you have coordinates, you can use the first equation given above.
The distance from the point to the line would be:
|4 · 2 + 1 · 2 | / √(4+ 4).
This is equivalent to |10|/(2 √2), or approximately 3.54.
2. If you don’t have coordinates
Sometimes you don’t have an equation for the line. If all you know about your line is two points that it crosses, you can use another formula to calculate that distance between a point and the line. Let’s make our point x0, y0 again, and define the point as one which goes through x1, y1 and x2, y2 . Then the distance is given by
These formulas can be proved through algebra, through geometry,and through vector analysis.
Gore, Bhalchandra. On Finding the Shortest Distance from a Point to a Line. Retrieved from
https://www.ias.ac.in/article/fulltext/reso/022/07/0705-0714 on December 15, 2018.
Distances. Math 21a, Fall 2008. Retrieved from http://www.math.harvard.edu/archive/21a_fall_08/handouts/distances/distance.pdf on December 15, 2018.
Larson, R. (2011). Calculus 1 with Precalculus. Cengage Learning; 3 edition.
Stephanie Glen. "How to find Total Distance" From CalculusHowTo.com: Calculus for the rest of us! https://www.calculushowto.com/problem-solving/how-to-find-total-distance/
Need help with a homework or test question? With Chegg Study, you can get step-by-step solutions to your questions from an expert in the field. Your first 30 minutes with a Chegg tutor is free!