Average distance by integration
Enter a distance function d(t) and an interval. This computes the average value of the function, not average speed or total distance traveled.
Functions: sin, cos, tan, sqrt, abs, exp, ln, log; constants pi and e. Use * for multiplication and ^ for powers.
Average distance value
Approximate integral
Interval length
Calculation steps
Average = (1 ÷ (b − a)) × integral from a to b of d(t) dt
Function and average graph
Dashed horizontal line shows the mean function value over the interval.
Important notes
Example: d(t)=t^2 on [0,2] → integral 8/3, average 4/3 ≈ 1.333333.
- This is the average of a distance function, not necessarily average speed or path length. For distance traveled from position, integrate the absolute value of velocity.
- We use composite numerical Simpson integration (1000 subintervals). Discontinuities, singularities or rapid oscillations can reduce accuracy.
- Results are approximate. The function must be finite throughout the interval. Reversed bounds are reordered and disclosed.
Calculation runs locally in your browser. No expression is sent to a server.