Recent chats

How can an integral find a distance traveled from a velocity function?

Quick answer

Integrate velocity over the stated time interval to find signed displacement. To find total distance, integrate the absolute value of velocity, or split the interval at times when velocity changes sign and add the magnitudes of the pieces. For example, if v(t)=t−2 m/s from 0 to 4 seconds, displacement is 0 m but total distance is 4 m.

LET’S WORK THROUGH IT

The question, the details, the next step.

Question

I have a velocity function. Which integral should I use to find how far something traveled?

Geez

First write down the time interval and the velocity function, including units. Integrating velocity from the start time to the end time gives signed displacement: movement in one direction counts positive, and movement in the opposite direction counts negative. Total distance is different: it adds up all movement without allowing opposite directions to cancel. Mathematically, displacement is ∫v(t)dt, while total distance is ∫|v(t)|dt over the interval. [S1]

If velocity keeps the same sign throughout the interval, the magnitude of displacement equals total distance. If velocity changes sign, find where it is zero and account for each direction separately.

Follow-up question

Can you show the difference with a small example, including the time interval?

Geez

Assume a hypothetical object has velocity v(t)=t−2 metres per second for 0≤t≤4 seconds. This is an example for practicing the calculation, not a claim about a real trip.

The velocity is zero when t=2. It is negative from 0 to 2 seconds and positive from 2 to 4 seconds, so the object changes direction at t=2.

For signed displacement, integrate across the whole interval:

∫₀⁴(t−2)dt = [t²/2−2t]₀⁴ = 0 metres.

That zero means the two directions cancel in the net change in position; it does not mean the object stayed still. For total distance, split the calculation at the direction change and add the magnitudes of the two displacements. Each interval contributes 2 metres, so total distance is 2+2=4 metres. This follows the distinction between displacement and total distance described in the calculus source. [S1]

Follow-up question

How can I tell where to split if the velocity function is less obvious?

Geez

Find the times inside your interval where v(t)=0, then check whether the velocity changes sign there. A zero by itself does not necessarily mean the direction changes, so check the sign just before and after it if needed. Use the start and end times, together with any direction-change times, as the boundaries of your pieces.

For instance, in the example, t=2 divides [0,4] into [0,2] and [2,4]. The velocity is negative on the first piece and positive on the second. Integrate on each piece, take the absolute value of each result, and add them. Equivalently, integrate |v(t)| over the full interval. [S1]

Keep the time units consistent with the function. If velocity is in metres per second and time is in seconds, the integral has units of metres.

Follow-up question

What should I write down so I don't confuse the two answers?

Geez

Label the interval and report both quantities separately if the question could mean either one. A compact working template is:

  1. Interval: [start time, end time] = [___, ___] seconds.
  2. Velocity: v(t)=___; solve v(t)=0 within the interval to find possible direction changes.
  3. Displacement: ∫ from start to end of v(t)dt = ___ metres.
  4. Total distance: split at direction changes; add the absolute values of the piecewise integrals = ___ metres.
  5. Check: state the units and whether the answer is signed displacement or nonnegative total distance.

For the example, the entries are [0,4] seconds, v(t)=t−2, direction change at 2 seconds, displacement 0 metres, and total distance 4 metres. This method determines the mathematical quantities from the supplied velocity model; it does not establish whether that model accurately describes any real journey.

A practical checklist

  • Write the velocity function and the complete time interval, with units.

  • Solve v(t)=0 within the interval and check for actual sign changes.

  • Integrate v(t) across the interval for signed displacement.

  • For total distance, split at direction changes and add the magnitudes of the piecewise integrals.

  • Label the final result as displacement or total distance and include units.

A few more useful answers

Can displacement be zero when total distance is not zero?

Yes. Opposite-direction movement can cancel in the displacement integral even though the object traveled a positive distance. In the example, displacement is 0 metres and total distance is 4 metres.

Do I split at every time velocity equals zero?

Check whether velocity changes sign at that time. A zero that does not involve a sign change is not a direction reversal, though splitting there still gives equivalent pieces if you add their distance contributions correctly.

What does the velocity integral establish about a real trip?

It calculates displacement or distance for the velocity function and time interval you provide. The calculation alone does not establish that the function matches an actual trip.

Sources

References used for this guide.

  1. [S1] OpenStax Calculus Volume 2: Net Change, Displacement, and Total Distance
    openstax.org · Checked

YOUR QUESTION. YOUR DETAILS.

Let’s work through your situation.

Get a tailored answer or help with your next task. Starts at $1, with a quote before you pay.

Ask your own question
← Back to Geez at Work