Calculator overview
Inputs and outputs
This summary comes from the calculator's published input and output contract.
Inputs
- Units (required)
-
Default Metric Allowed Metric, Imperial
About this input
Metric or Imperial: the units of the result cards (ft/s, lb ft/s and ft lbf in Imperial). The calculation, the challenge scoring, the film and the canvas labels stay metric. The units chips on the stage.
- Challenge number (required)
-
Default 0 Range 0 to 3
About this input
Selects the level: 0 for Play, 1 to 3 for a challenge, which fixes the settings except the ones it leaves to you.
- Your guess: cart A after the bump
-
When omitted Blank
Unit m/s Default Not set Range -6 to 6
About this input
Play only: your guess of cart A's speed after the bump, -6 to 6 m/s; a minus value means it moves to the left and 0 means it stops. Blank until you drag the dotted arrow and lock it in; the run is shown once you guess.
- Cart B speed before the bump (minus means moving left) (required)
-
Unit m/s Default 0 Range -2 to 2
About this input
Cart B's speed before the bump, -2 to 2 m/s; a minus value means it moves to the left. Set by dragging the tip of its arrow on the canvas.
- Cart A speed before the bump (minus means moving left) (required)
-
Unit m/s Default 1 Range -2 to 2
About this input
Cart A's speed before the bump, -2 to 2 m/s; a minus value means it moves to the left. Set by dragging the tip of its arrow on the canvas; past the cart centre it points the other way, and 0 means at rest.
- Your guess: which sends cart B off faster (required)
-
Default Not yet predicted Allowed Not yet predicted, Sticky, Bouncy, Same speed
About this input
Challenge 3 only: which bumper sends the small cart off faster: Sticky, Bouncy or Same speed. It starts at Not yet predicted; the results appear once you lock in your guess.
- How bouncy (required)
-
Default Half Allowed A little, Half, Mostly
About this input
How bouncy Partly bouncy bumpers are: A little, Half or Mostly (coefficient of restitution 0.25, 0.50 or 0.75). Read only with Partly bouncy bumpers; chosen with the chips under the switch.
- Bumpers (required)
-
Default Bouncy Allowed Sticky, Partly bouncy, Bouncy
About this input
The bumpers on the carts' facing ends: Sticky (they latch together), Partly bouncy, or Bouncy (they spring apart). Chosen with the bumper switch between the carts.
- Cart B mass (required)
-
Unit kg Default 0.5 Range 0.5 to 4
About this input
The mass of cart B, the right cart, 0.5 to 4 kg. Set on the canvas with its brick stack, one 0.5 kg brick a step; exact entry in its popover.
- Cart A mass (required)
-
Unit kg Default 2 Range 0.5 to 4
About this input
The mass of cart A, the left cart, 0.5 to 4 kg. Set on the canvas by dragging the top of its brick stack up or down, one 0.5 kg brick a step; any value in the range by exact entry in its popover.
Outputs
- Total momentum before
-
Unit kg·m/s
About this output
The total momentum before the bump, mass times speed added for both carts (a leftward speed counts as minus), in kg m/s, or lb ft/s in Imperial. Blank while a guess is awaited, in challenge 2 until it is met, and when the inputs are not valid.
- Your guess
-
No unit declared
About this output
Play: your guess judged in words: the wrong way, Spot on (the right direction and within 0.15 m/s), Close (within 0.50 m/s) or the right direction but well off. Blank outside Play, while the guess is awaited and when the inputs are not valid.
- Formula module versions
-
No unit declared
About this output
The formula modules the model is built from, with their versions.
- Total momentum after
-
Unit kg·m/s
About this output
The total momentum after the bump, worked out from the speeds after, in kg m/s, or lb ft/s in Imperial: the same as before. Blank while a guess is awaited, in challenge 2 until it is met, and when the inputs are not valid.
- Cart A after the bump (minus means moving left)
-
Unit m/s
About this output
Cart A's speed after the bump, in m/s, or ft/s in Imperial; a minus value means it moves to the left (it bounced back). Blank while a guess is awaited and when the inputs are not valid.
- Why?
-
No unit declared
About this output
One plain sentence that explains the run (the Why? card), chosen by the model from the case; a prompt while the guess is awaited. Blank in a challenge (the feedback explains) and when the inputs are not valid.
- How we got this
-
No unit declared
About this output
How we got this: the working behind the results, one step per line. Each line names the step, gives its equation, the same equation with this run's numbers, and the result. The working is in SI units (kg, m/s, kg m/s, J); with Imperial units each result also gives its Imperial value in brackets. Until every input is valid, while a guess is awaited and in challenge 2 until it is met, it shows one neutral sentence instead.
- Cart B after the bump
-
Unit m/s
About this output
Cart B's speed after the bump, in m/s, or ft/s in Imperial; a minus value means it moves to the left. Blank while a guess is awaited and when the inputs are not valid.
- Why? case
-
No unit declared
About this output
The id of the Why? case shown (Y00 to Y11), for testing; not shown on the page. Blank when the Why? card is blank.
- Challenge goal
-
No unit declared
About this output
The goal of the selected challenge (blank in Play).
- Challenge: the cart speed scored
-
Unit m/s
About this output
The value the challenge scores: cart A's speed after the bump (a minus value means it moves to the left) in challenges 1 and 2, cart B's in challenge 3, in m/s, or ft/s in Imperial. Blank in Play, while challenge 3 awaits your guess and when the inputs are not valid.
- The run, frame by frame: the time, where each cart is and how fast it moves (a minus speed means moving left; the bump is row 60)
-
No unit declared
About this output
One row per frame n = 0 to 125: the time and each cart's position (m, the centre) and speed (m/s; a minus speed means it moves to the left). Rows 0 to 60 run up to the bump at equal steps of the time to the bump and rows 61 to 125 after it at equal steps, until the last moving cart leaves the track (0.5 s when both carts have stopped); the run stops sooner only to keep the motion smooth (at most 6 s, no cart moving more than 0.083 m between frames, and the first cart to leave staying on the track for 10 frames), so a slow cart may still be moving at the end; when the carts never meet the film shows each cart rolling at its own speed over the same kind of window from the start. While a guess is awaited only row 0 (the setup at rest) shows; every cell is blank when the inputs are not valid.
- Challenge feedback
-
No unit declared
About this output
Feedback on the selected challenge: the met text or the not-met hint; in challenge 3 a neutral prompt until you lock in your guess (blank in Play).
- Challenge result
-
No unit declared
About this output
No challenge selected, MET or NOT MET.
- Model Status
-
No unit declared
About this output
NOT VALID with the reason when an input cannot be used; CHECK when the carts never meet or would meet past the end of the track; otherwise OK.
- Model version
-
No unit declared
About this output
The model version.
- Movement energy lost
-
Unit J
About this output
The movement energy lost in the bump, in J, or ft lbf in Imperial: none with bouncy bumpers, the most with sticky ones. Blank while a guess is awaited, in challenge 2 until it is met, and when the inputs are not valid.
- Share of movement energy lost
-
Unit %
About this output
The movement energy lost as a share of the movement energy before, in %. Blank while a guess is awaited, in challenge 2 until it is met, and when the inputs are not valid.
LogicCommons is in beta. If a result, label, or reference looks wrong, tell us here; we read every message.
Methodology
Purpose and model boundary
Many people think the bigger cart always wins a crash: it keeps going forward and shoves the smaller one back. This lab tests that idea. Two carts roll towards each other on a level 5 m track. You load each cart with bricks, set how fast and which way each one moves, and choose the bumpers on their facing ends: sticky, partly bouncy or bouncy. You make your guess about what cart A does after the bump, and then the lab shows what really happens.
For each setup the model works out each cart's velocity after the bump, the total momentum before and after, and how much movement energy the bump loses. Three challenges follow, including one where you make the big cart bounce backward.
The lab is for learning one idea: what decides a bump is momentum, mass times velocity, not size alone. It is not a model of a real crash. The track has no friction, the carts are rigid, and the bump is over in an instant.
The model is the calculation authority. The page sends the values you set to the model and draws only what it sends back: where each cart is and how fast it moves at each moment of the run. The page works out no velocity, momentum or energy itself.
Inputs and units
| Input | Meaning and unit |
|---|---|
| Cart A mass, Cart B mass | How much stuff each cart is made of, in kilograms (kg): 0.5 to 4 kg. Defaults: cart A 2 kg, cart B 0.5 kg. Cart A is always the left cart. |
| Cart A speed before the bump, Cart B speed before the bump | Each cart's velocity before the bump: -2 to 2 metres per second (m/s). Velocity is speed with a direction: plus means to the right, minus to the left, and 0 means at rest. Defaults: cart A +1 m/s, cart B 0. |
| Bumpers | Sticky (the carts latch together), Partly bouncy, or Bouncy (they spring apart). Default Bouncy. |
| How bouncy | Used only with Partly bouncy bumpers: A little, Half or Mostly (default Half). |
| Units | Metric or Imperial (default Metric). It changes only how the results are shown. |
| Your guess: cart A after the bump | Play only: cart A's velocity after the bump, -6 to 6 m/s, plus to the right; 0 means it stops. Blank until you place it. |
| Your guess: which sends cart B off faster | Challenge 3 only: Not yet predicted (the start), Sticky, Bouncy or Same speed. |
| Challenge number | 0 for Play, or 1 to 3 for a challenge (default 0). |
Where each input is set:
- On the canvas: every input. There is no input panel. Drag the top of a cart's brick stack up or down to add or remove 0.5 kg bricks. Drag the tip of a cart's arrow to set its velocity; dragging past the cart's middle turns the arrow round. Tap a bumper picture to choose the bumpers, and a chip to choose how bouncy. Use the units chips. In Play, drag the dotted arrow above cart A to your guess and press Lock in my guess. In challenge 3, pick an answer with the chips above the track and lock it in. The challenge picker chooses Play or a challenge.
- On the canvas, masses move in steps of 0.5 kg and velocities in steps of 0.1 m/s; exact values can be typed in each handle's box.
Fixed values: the track is 5 m long and each cart is 0.2 m long. The carts start with their middles at 1.9 m (cart A) and 3.1 m (cart B), so their bumpers start 1.0 m apart. In Imperial units velocities are shown in ft/s, momentum in lb ft/s and energy in ft lbf (1 ft = 0.3048 m, 1 lb = 0.45359237 kg). Gravity plays no part on a level track without friction, so there is no world choice.
Governing relationships
Below, u is a cart's velocity before the bump and v its velocity after; plus means to the right.
Momentum. Momentum is mass times velocity, p = m × v, in kg m/s. It has a direction, like velocity. The total momentum of the two carts is
p = m_A × u_A + m_B × u_B
In every bump the total momentum after is the same as before. This is conservation of momentum.
Do they meet? The carts meet only if cart A is catching up with cart B, so the closing speed u_A - u_B must be above zero. If not, nothing happens: each cart keeps its own velocity.
Bounciness. How bouncy the bumpers are is set by a number e, the coefficient of restitution. It says how fast the carts move apart after the bump, as a share of how fast they came together: v_B - v_A = e × (u_A - u_B). Sticky bumpers have e = 0, Partly bouncy bumpers 0.25 (A little), 0.50 (Half) or 0.75 (Mostly), and Bouncy bumpers e = 1.
Velocities after the bump. Putting conservation of momentum and the bounciness rule together gives
v_A = (p - e × m_B × (u_A - u_B)) ÷ (m_A + m_B) v_B = (p + e × m_A × (u_A - u_B)) ÷ (m_A + m_B)
With sticky bumpers (e = 0) both carts move off together at v = p ÷ (m_A + m_B).
Movement energy. Movement energy (kinetic energy) is KE = ½ × m × v², in joules (J). Bouncy bumpers keep all of it. Other bumpers turn some of it into squashing and heat, and sticky ones lose the most. The amount lost is
KE lost = ½ × (m_A × m_B ÷ (m_A + m_B)) × (1 - e²) × (u_A - u_B)²
and the share lost is that amount as a percentage of the movement energy before.
Where they meet. The bumpers start 1.0 m apart, so the carts meet after a time 1.0 m ÷ (u_A - u_B). The model checks that cart A's front bumper is then between 0.3 m and 4.7 m along the track, so the bump can be seen.
Calculation sequence
- The model checks your inputs and sets the status.
- In a challenge, the challenge's own values replace the locked inputs.
- It finds the bounciness e from the bumpers.
- It works out the total momentum and movement energy before the bump, and whether the carts meet.
- If they meet, it works out both velocities after the bump; if not, the velocities stay as they were.
- It works out the total momentum after the bump (from the new velocities) and the movement energy lost.
- It finds when and where the carts meet and checks that this is on the track.
- It builds the film of the run: 126 moments. When the carts meet, the bump is at row 60, after equal steps up to it. After the bump the film runs on in equal steps until the last moving cart leaves the track, or for half a second once both carts have stopped. It stops sooner only to keep the motion smooth (at most 6 s), so a slow cart may still be moving at the end. Each moment gives the time and each cart's position and velocity.
- It compares your guess with the result, picks a Why? sentence in Play, writes out the working and scores any challenge.
Outputs and interpretation
- Cart A after the bump and Cart B after the bump: each cart's velocity after the bump, in m/s (ft/s); plus means to the right, and a minus sign means the cart moves left (for cart A, that it bounced back).
- Your guess: in Play, whether your guess went the wrong way, was spot on (the right direction and within 0.15 m/s), close (within 0.50 m/s), or the right direction but well off. A cart counts as stopped when its velocity is within 0.02 m/s of zero.
- Total momentum before and Total momentum after, in kg m/s (lb ft/s): always the same.
- Movement energy lost, in J (ft lbf), and Share of movement energy lost, in %.
- Why?: in Play, one plain sentence on why the carts did what they did.
- How we got this: the working, one step per line, with this run's numbers.
- Challenge: the cart speed scored: the velocity a challenge checks, in m/s (ft/s).
On the canvas, the solid arrows show each cart's real velocity, and the dotted arrow above cart A is your guess, so your guess and the real result sit side by side after the bump. Sticky carts are drawn latched together. A cart that rolls past either end of the track rolls out of view.
Challenges
Each challenge is scored MET or NOT MET, with no points, and gives a hint while it is not met.
- Make the big cart bounce backward. Cart A is 4 kg moving right at 0.30 m/s, and cart B is 0.5 kg. You may change cart B's velocity and the bumpers. It is met when cart A moves left after the bump, faster than 0.02 m/s. Nothing is hidden: cart A's velocity after the bump is what you tune.
- Stop them dead. Cart A is 1 kg moving right at 0.90 m/s, cart B is 0.5 kg, and the bumpers are sticky. Set cart B's velocity so that the stuck-together carts stop. It is met when their velocity after the bump is within 0.02 m/s of zero. Until it is met, the momentum, the energy and the working stay hidden, so you have to reason with mass times velocity.
- Sticky or bouncy? A 4 kg cart moving right at 1 m/s hits a 0.5 kg cart at rest. Which bumpers send the small cart off faster: sticky, bouncy, or the same? Lock in your guess, then switch the bumpers to test it. It is met when your guess is Bouncy. Nothing is shown until you lock in.
The big idea: the bigger cart does not always win. A small cart moving fast can carry as much momentum as a big cart moving slowly, so it can stop the big cart or even throw it back. The total momentum is the same before and after every bump; what the bumpers change is how much movement energy is lost and how fast the carts move apart.
Validation and status logic
The status reads the first match:
- NOT VALID when an input is outside its allowed values, checked in this order: cart A's mass, cart B's mass, cart A's velocity, cart B's velocity, the bumpers, how bouncy, the units, and then the challenge number and the guesses.
- CHECK when the carts never meet, because cart A is not catching up with cart B.
- CHECK when the carts would meet past an end of the track. Every result is still worked out.
- OK otherwise.
Assumptions and limitations
- The track is level and has no friction, and there is no air, so a moving cart never slows down by itself.
- The carts are rigid and move in one straight line. The bump is over in an instant.
- One number, e, describes the bumpers, and it does not depend on how hard the carts hit.
- There are no walls or end stops: a cart that reaches an end of the track simply leaves it.
- The guess is about cart A only.
Restrictions and non-computing states
When the status is NOT VALID, every result and the film are blank, and a selected challenge reads NOT MET.
Before you lock in your guess, in Play or in challenge 3, every result is held back: the film shows only the carts at the start, the Why? card asks for your guess and the working stays hidden. In challenge 2 the momentum, the energy and the working stay hidden until the challenge is met.
When the carts never meet, the velocities stay as they were, no energy is lost, and the film shows both carts rolling on for 3 s.
Errors and warnings
The model's messages, in the order it checks them (first match wins):
- NOT VALID, cart A's mass: it is blank or outside 0.5 to 4 kg.
- NOT VALID, cart B's mass: it is blank or outside 0.5 to 4 kg.
- NOT VALID, cart A's speed: its velocity is blank or outside -2 to 2 m/s.
- NOT VALID, cart B's speed: its velocity is blank or outside -2 to 2 m/s.
- NOT VALID, bumpers: the bumpers are not Sticky, Partly bouncy or Bouncy.
- NOT VALID, how bouncy: the choice is not A little, Half or Mostly.
- NOT VALID, units: the units are not Metric or Imperial.
- NOT VALID, challenge or guess: the challenge number is not a whole number from 0 to 3, or a guess is not one of its allowed values.
- CHECK, the carts never meet: cart A is not catching up with cart B, so each keeps its own velocity.
- CHECK, the carts meet past the track: they would meet beyond an end of the track, so the film cannot show the bump; every result is still worked out.
- OK: the inputs are valid and the bump happens on the track.
References
This laboratory is an educational model of two carts colliding head-on or from behind on a level track with no friction. Each cart's momentum is its mass times its velocity, and the total momentum is the same before and after the bump. The bumpers are described by a coefficient of restitution, which compares how fast the carts move apart with how fast they came together: 1 for a bouncy (elastic) bump, 0 for a sticky (perfectly inelastic) one where the carts move off together, and values in between for partly bouncy bumpers. The movement energy lost follows from the speeds before and after.
Sources and further reading
- Linear momentum as mass times velocity, a quantity with a direction: OpenStax, University Physics Volume 1, Rice University, section 9.1, Linear Momentum. OpenStax
- Conservation of momentum in a closed system, with total momentum before an event equal to the total after: OpenStax, University Physics Volume 1, Rice University, section 9.3, Conservation of Linear Momentum. OpenStax
- Elastic, inelastic and perfectly inelastic collisions, objects that stick together sharing one velocity, and the largest loss of kinetic energy when they do: OpenStax, University Physics Volume 1, Rice University, section 9.4, Types of Collisions. OpenStax
- One-dimensional collisions solved with conservation of momentum and the coefficient of restitution: J. Moore and contributors, Mechanics Map, York College of Pennsylvania, on Engineering LibreTexts, section 10.3, One-Dimensional Particle Collisions. LibreTexts
- Which collisions keep their kinetic energy and which lose some: Georgia State University HyperPhysics, Elastic and Inelastic Collisions, Department of Physics and Astronomy. HyperPhysics
No table or text from any of these publications is reproduced, and none of their authors or publishers has reviewed or endorses this laboratory.
This laboratory is for learning. Its results hold only within its stated ranges; real carts meet friction, and real bumpers bounce a little differently at different speeds.
Links were current at build time. If one moves, search the document's title rather than reporting a broken link as a defect.
Found a problem, or have an idea?
Tell us if a result looks wrong, a label is unclear, or something is missing. We read every message.