Mathematical concepts
Integral as accumulated area
Also called: integration · area under the curve · trapezium rule · accumulation
Definition
An integral adds up a rate over time: the area under a rate graph gives the total accumulated amount.
Picture it
Area under velocity–time is distance; area under current–time is charge used. A computer approximates it by slicing into thin strips and summing them, which is exactly what an integral controller and an odometry routine do every loop.
The maths
∫ f(t) dt ≈ Σ f(t_k) Δt (rectangles) trapezium: Σ ½ (f_k + f_(k+1)) Δt
| Quantity | Unit | Symbol |
|---|---|---|
| length | metre | m |
| charge | coulomb | C |
| time | second | s |
Worked example
A robot's speed is sampled every 1 s as 0, 0.4, 0.8, 0.8 m/s. Estimate the distance travelled in those 3 s with the trapezium rule.
- Strip 1: ½ (0 + 0.4) × 1 = 0.2 m
- Strip 2: ½ (0.4 + 0.8) × 1 = 0.6 m
- Strip 3: ½ (0.8 + 0.8) × 1 = 0.8 m
- Total = 1.6 m
AnswerAbout 1.6 m.
✓ The number in this answer is recomputed from scratch by an automated test.
Common misconceptions
- Misconception: Area below the axis counts as negative; moving backwards subtracts distance from displacement.
- Misconception: Bigger time steps are not just less precise; they can miss short events entirely.