Simulation

Momentum Vector · SimulatorVisualise p = mv as a Scaled Arrow

Momentum & CollisionsLinear momentum

A cart with adjustable mass and velocity; the momentum vector renders as an arrow scaled by p = mv, revealing how equal momentum can arise from very different (m, v) combinations.

Published: August 15, 2026

Objective

Verify that linear momentum p = mv is a vector quantity: its magnitude is the product of mass and velocity, and its direction follows the sign of velocity. Explore how the same momentum magnitude arises from different (m, v) pairs (heavy and slow vs. light and fast), and compare their kinetic energies. The cart moves at constant velocity on a frictionless, level track with no external forces.

Setup

  1. Leave sliders at defaults: mass = 2 kg, velocity = 4 m/s, run time = 5 s. Note the navy momentum arrow and the sky-dotted velocity arrow both point right. Record the p readout (8.00 kg·m/s) and the KE readout (16.00 J).
  2. Press Start and let the sim run to completion. Observe the cart rolling right and the ghost trail left behind. Press Reset.
  3. Set mass = 8 kg, velocity = 2 m/s. Confirm the p readout now reads 16.00 kg·m/s and the KE readout reads 16.00 J before pressing Start. Let it run to completion.
  4. Press Reset. Set mass = 2 kg, velocity = 8 m/s. Confirm the p readout still reads 16.00 kg·m/s while the KE readout now reads 64.00 J. Start and compare the ghost from step 3 with the live run: the momentum arrows are the same length, but the cart travels much farther.
  5. Drag the velocity slider to a negative value (e.g. −4 m/s). Observe the momentum arrow flip direction and the p readout show −8.00 kg·m/s, illustrating the vector nature of momentum.
  6. Set velocity = 0 m/s and confirm both arrows vanish and the p readout shows 0.00 kg·m/s.
Before Start at the defaults (m = 2 kg, v = 4 m/s): the cart sits at the centre of the track with the short navy momentum arrow (p = 8.00 kg·m/s) beside it and the longer dotted velocity arrow above.
The end of a run at m = 2 kg, v = 8 m/s: the cart has reached the crimson stop marker, the short navy momentum arrow is labelled p = 16.00 kg·m/s, and the longer dotted sky velocity arrow above it reads v = 8.0 m/s.
The end of a run at m = 2 kg, v = −4 m/s: the cart has stopped left of centre and both arrows point leftward, the momentum arrow labelled p = −8.00 kg·m/s, illustrating that momentum is a vector with direction.

Analytical Prediction

With mass m = 2 kg and velocity v = 4 m/s, the momentum and kinetic energy are:

p=m · v
=2.0 × 4.0
=8.00 kg·m/s
KE=½ · m · v²
=0.5 × 2.0 × 16.0
=16.00 J

For the equal-momentum comparison (m = 8 kg, v = 2 m/s vs. m = 2 kg, v = 8 m/s):

p₁=8 × 2 = 16.00 kg·m/s
KE₁=½ × 8 × 4 = 16.00 J
p₂=2 × 8 = 16.00 kg·m/s
KE₂=½ × 2 × 64 = 64.00 J

Both arrows are identical in length (same |p|), but KE₂ is four times KE₁. The relationship KE = p²/(2m) shows that for fixed p, KE scales inversely with mass.

Results Analysis

After each run, compare the p and KE readouts against the predictions above. In the default run (m = 2, v = 4), the readout should show p = 8.00 kg·m/s and KE = 16.00 J with no numerical drift since both are computed analytically from slider values each frame. In the equal-momentum comparison, verify that the p readout shows 16.00 kg·m/s for both runs while the KE readout shows 16.00 J for the heavy-slow run and 64.00 J for the light-fast run. The ghost trail from run 1 (heavy+slow) will end closer to the start than the live run 2 (light+fast), even though both momentum arrows are identical in length. For the negative-velocity test, confirm the p readout is exactly opposite in sign to the positive case: −8.00 kg·m/s at v = −4 m/s.

Source of Error

This sim models a frictionless, level track with no external forces. The cart's velocity is constant throughout, so there is no air resistance, rolling friction, or gravitational component along the track. Mass is a point value with no rotational inertia. The momentum and kinetic energy readouts are computed directly from slider values each frame (not from an accumulated integrator), so there is no numerical drift in those quantities. The cart position is advanced with a simple Euler step (x += v·dt); because the velocity is constant, that step is exact, so the position carries no integration error either. The residual gap between predicted and displayed momentum and KE values is therefore purely numerical rounding at the display precision, not a physical error.

Further Exploration