What this simulation shows
Two trolleys run along a level track with no friction. You set the mass and starting velocity of each one, pick the bumpers, and press play. As they meet, the bars above the track show each trolley's momentum, live, and a green bar shows the sum of the two. Afterwards the table compares every quantity before and after the collision, and the graphs let you look at the same event in three different ways.
Signs and directions
Momentum depends on direction, so the simulation treats motion to the right as positive. A trolley heading left has a negative velocity and a negative momentum, and its bar points left. A dropped minus sign is an easy way to get a collision question wrong, so try the head-on set-up and add the two momenta yourself before you play it. Equal and opposite momenta add up to zero, and the joined trolleys stop dead.
The total never changes
During contact each trolley pushes the other just as hard, but the opposite way, for exactly the same time. Whatever momentum one gains, the other loses, so the green total stays level throughout, even during the split second of contact. For two trolleys the rule is
where is a velocity before and a velocity after. When the trolleys stick, both share one velocity, which is the total momentum divided by the total mass.
Bumpers and kinetic energy
The bumpers decide how bouncy the collision is, measured by the coefficient of restitution, : the speed of separation divided by the speed of approach. Springs give , an elastic collision in which kinetic energy is kept. Velcro gives , so the trolleys move off joined together and the largest possible share of kinetic energy is transferred. Rubber sits in between. The energy panel shows the loss and where it goes: mostly into the thermal store of the bumpers, a little as sound, and some into denting the bumpers out of shape.
Explosions from rest
In explosion mode the trolleys start together, at rest, with a squashed spring between them. When the latch opens the spring pushes them apart. The total momentum was zero, so it stays zero: the lighter trolley always leaves faster. Kinetic energy appears from nothing you can see, because it was stored as elastic potential energy in the spring.
Force during the contact
The force graph zooms in on the moment the bumpers touch. Its shaded area is the impulse on trolley 2, and it always equals that trolley's change in momentum. The exact shape and height of the curve depend on how stiff the bumpers are, but the area is always the change in momentum. That is why, with the same masses and starting velocities, springs give a bigger area than Velcro: the trolleys bounce apart, so trolley 2's momentum changes more. On the momentum–time graph, the gradient of a trolley's line is the force on it, which is zero except while they touch.
How the model works
The track is frictionless and the trolleys only touch through their bumpers, so no outside force acts on the pair. The starting positions are chosen for each run so that the whole collision happens on the track, and the run ends when a trolley reaches an end stop, or after a few seconds if neither does. Symbols follow your course: use the switch under the simulation to see, for example, and in place of and .