Distance vs. Displacement: Two Different Integrals
Given a velocity function v(t) describing motion along a line, two natural questions have two different answers. Displacement where you ended relative to where you started, is the signed integral: ∫v dt, with backward motion subtracting. Total distance what an odometer records, counts every meter regardless of direction:
Distance = ∫ab |v(t)| dt
The two agree only when the object never reverses. The moment v(t) changes sign, the signed integral starts canceling forward progress against backward, while the absolute-value integral keeps accumulating. Walk 3 km east then 3 km west: displacement 0, distance 6, the everyday version of a distinction that trips up a remarkable share of calculus students on exams, and one this calculator makes impossible to miss by always reporting both numbers side by side.
How to Use This Calculator
Enter the velocity function and time window. The calculator computes the signed displacement, then finds every zero of v(t) inside the interval (each one a potential reversal), splits the integral there, takes absolute values piece by piece, and sums, the rigorous procedure for ∫|v|dt, fully displayed. The graph shades the velocity curve's area; regions below the axis are exactly where the two answers diverge. The sin(t) chip is the maximal contrast: a full period returns the mover to the start (displacement 0) after distance 4.
Worked Example
v(t) = t² − 4t + 3 = (t−1)(t−3) on [0, 4]: velocity is positive until t = 1, negative between 1 and 3, positive after. Integrating piecewise:
∫₀¹ v dt = 4/3, ∫₁³ v dt = −4/3, ∫₃⁴ v dt = 4/3
Displacement: 4/3 − 4/3 + 4/3 = 4/3 ≈ 1.333. Distance: 4/3 + 4/3 + 4/3 = 4 exactly three times farther than the net change, because the middle leg was spent driving backward. Skipping the split and integrating |v| as if v were positive throughout would silently report 4/3 for both.
Common Mistakes to Avoid
- Integrating v instead of |v| for distance. The classic error: cancellation eats the backward legs and the "distance" comes out too small (or zero, as sin over a period shows).
- "Absolute-valuing" the final answer. |∫v dt| is the size of the displacement, not the distance, the absolute value must go inside the integral, which operationally means splitting at v's zeros.
- Missing a sign change. Each zero of v inside the window is a fold point; overlooking one merges two legs with opposite directions. This calculator's root-finder locates them automatically.
- Confusing speed and velocity in the problem statement. Speed is |v| by definition, if a problem hands you speed, it has pre-applied the absolute value and distance is its plain integral.
Real-World Applications
The distinction is precisely the difference between a vehicle's odometer (distance: total wear, fuel burned, maintenance intervals) and its GPS displacement (net position change: navigation, delivery confirmation). Fitness trackers face it too, steps and calories follow total distance, while "distance from home" is displacement, and robotics path planners optimize the two differently: battery budgets scale with ∫|v|, mission goals with net displacement.
The same signed-versus-absolute logic reappears wherever flows reverse. A reservoir's net volume change over a season is the signed integral of inflow-minus-outflow, but pumping costs track the absolute flow through the machinery; a battery's state of charge follows signed current while cycle-life degradation follows total charge throughput; and a portfolio's net return differs from its total traded volume for exactly the cancellation reason. Whenever "how much happened" and "where did it end up" both matter, the two integrals split apart, and the thrown-ball chip captures the physical archetype: up 5.1 m and back down lands displacement near zero while the ball genuinely traveled twice the height.
Frequently Asked Questions
When are distance and displacement equal?
Exactly when the velocity never changes sign on the interval, motion in one direction throughout. The 3t² chip demonstrates: no reversal, both integrals give 8. Any sign change strictly separates them.
Why does splitting at zeros of v compute ∫|v| correctly?
Between consecutive zeros, v keeps one sign, so |v| is either v or −v across the whole piece, making each piece an ordinary integral whose absolute value is the leg's distance. Summing legs implements the absolute value exactly, with no pointwise gymnastics.
What does the area picture look like?
Displacement is net signed area under the velocity curve (below-axis regions negative); distance is total geometric area with everything counted positive. The shaded graph makes the below-axis leg, the source of all disagreement, immediately visible.
How do I recover the position function too?
Integrate v with an initial position: s(t) = s(a) + ∫ₐᵗ v du, an initial value problem. Position at the end minus position at the start reproduces the displacement; distance additionally needs the folding at reversals this tool performs.
Is average speed just distance over time?
Yes, total distance divided by elapsed time, which equals the average value of |v|. Average velocity is displacement over time, the average of signed v. The worked example's mover averages speed 1 but velocity only 1/3, same trip, two honest summaries.
What does the graph's shading represent for this tool?
The signed area under the velocity curve over your window. Regions above the axis push the object forward, regions below pull it back; displacement is their algebraic sum, while total distance counts both as positive. Watching the shaded lobes flip across the axis at each root of v is the clearest way to internalize why the two integrals disagree.
Does acceleration affect the distance calculation?
Only through velocity, distance is entirely determined by v(t). Two motions with identical velocity curves but produced by different force histories travel identically. If you're starting from acceleration, integrate it (with an initial velocity) to get v first, then apply this tool's split-at-reversals procedure.
Can displacement exceed total distance?
Never, |∫v| ≤ ∫|v| always (the integral triangle inequality). Equality holds exactly when there's no reversal. If a computation ever reports displacement larger than distance, a sign or bound has gone wrong somewhere: it's a built-in error detector.