AP® Calculus AB trainer

Motion lab

Move a particle and watch x, v and a draw themselves.

About this tool

A car on a straight road, with its position, velocity and acceleration graphs drawn from the same motion. Press Play or drag across the graphs. Where the car speeds up, the graphs are tinted; where it slows down, they are hatched; dashed lines mark where it turns around. With velocity given (Unit 8), watch the position build up as the area under the velocity graph.

How the motion is computed

  • Position given: v(t)=x′(t)v(t) = x'(t) and a(t)=v′(t)a(t) = v'(t), each from its formula (shown under Formulas & numbers).
  • Velocity given: x(t)x(t)=x(0)= x(0)+∫0tv(s)ds+ \int_0^t v(s)\,ds. A formula is integrated numerically (adaptive Simpson), a graph of straight pieces exactly by triangles and trapezoids. Displacement is ∫v\int v; total distance is ∫|v|\int |v|, split where vv changes sign.
  • Speeding up where vv and aa have the same sign, slowing down where their signs differ. The sign of aa alone never decides it.
  • A change of direction needs vv to change sign. Where v=0v = 0 and keeps its sign, the car only pauses.
  • The car's arrows are scaled to the motion's largest velocity and acceleration; the dots under it are where it was every quarter second, so close dots mean slow.

Notes for this topic: Straight-Line Motion: Position, Velocity, Acceleration