Simulation

Constant Acceleration Cart

KinematicsAcceleration

A cart with constant acceleration; live position, velocity, and acceleration plots update side by side

Objective

Verify that a cart under constant acceleration obeys x = v₀·t + ½·a·t² and v = v₀ + a·t — the two fundamental kinematic equations. The sim treats the cart as a point mass on a frictionless horizontal track with no air resistance, so both equations hold exactly throughout the run.

Setup

  1. Set the Acceleration slider to 2 m/s² and Initial Velocity to 0 m/s. These are the default values; confirm the Position readout reads 0.00 m.
  2. Press Start and observe the cart moving rightward along the track. Watch the Time, Position, and Velocity readouts updating each frame.
  3. At t = 3 s, record the Position and Velocity readouts. The predicted values are x = 9.00 m and v = 6.00 m/s.
  4. Press Reset, then set Acceleration to −2 m/s² and Initial Velocity to 8 m/s. Press Start and observe the cart decelerating — the velocity readout should reach zero near t = 4 s.
  5. Let the simulation run to its natural stop at t = 10 s. Confirm the final position matches the analytical prediction for that parameter set.

Analytical Prediction

With v₀ = 0 m/s and a = 2 m/s², the kinematic equations predict position and velocity at t = 3 s:

x=v₀·t + ½·a·t²
=0 + ½·2·(3)²
=9.00 m
v=v₀ + a·t
=0 + 2·3
=6.00 m/s

For the decelerating case (v₀ = 8 m/s, a = −2 m/s²), the cart reaches rest when v = 0 at t = 4 s:

x_stop=v₀·t + ½·a·t²
=8·4 + ½·(−2)·(4)²
=32 − 16
=16.00 m

After t = 4 s the cart reverses direction and returns leftward, reaching x = 0 again at t = 8 s.

Results Analysis

Compare the Position (m) readout to x = ½·a·t² at t = 3 s — the readout should show 9.00 m within ±0.02 m. Compare the Velocity (m/s) readout to v = a·t — it should show 6.00 m/s within ±0.02 m/s. The right-panel x(t) plot curves upward as a parabola while v(t) rises as a straight line; both shapes confirm the kinematic law visually. The a(t) trace remains a flat horizontal line at the set value, confirming the acceleration is truly constant. For the decelerating run, the v(t) line crosses zero at t ≈ 4 s and x(t) peaks near 16 m before declining.

Source of Error

The simulation models a point mass on a perfectly frictionless, horizontal track with no air resistance, no rolling losses, and no rotational inertia — the same idealizations assumed in the analytical prediction. Real carts experience rolling friction, axle bearing drag, and aerodynamic resistance proportional to velocity, none of which appear here. The analytical prediction uses the identical frictionless, drag-free model, so both sides share the same idealizations and they cancel. The residual gap between the readout values and the prediction is therefore purely numerical, not physical.

Further Exploration