Piston Budget: Energy In as Heat = Energy Stored + Work Out, ΔU = Q − W

An educational simulation game. A gas in a cylinder takes in heat and pushes a piston, or is squeezed while heat leaks away; three signed bars keep the books. Predict the change in internal energy, the work p·ΔV, the heat a process needs, and what happens when no heat can flow at all.

First lawHeat and work

PISTON BUDGET

Balance the budget

Ready
Enable JavaScript to work the piston. The instructions and worked example remain readable.
Heat QWork WInternal energy ΔUYour prediction
The first lawΔU = Q − W

Time

0.00 s

t

Heat in

— J

Q

Work

— J

W

Change in U

— J

ΔU

Predict before you start

Type your prediction to set things up. Start stays off until there is an answer.

Predict where the energy goes.

Mission score—

Every answer must be within 2%: each earns 100 points. Getting it right on the first run adds 50. A run counts as soon as it starts.

✓ Right answer① First try

How to play Piston Budget

  1. Choose a test and read the heat, the work, or the pressure and volumes on the card.
  2. Give each energy its sign, then use ΔU = Q − W, with W = p·ΔV at constant pressure.
  3. Type your prediction and press Start. The heater and piston act, and the bars fill.
  4. Compare the bars and the shaded area with your orange prediction.

The first law: energy bookkeeping for a gas

A gas holds energy in the random motion of its molecules, its internal energy U. There are only two ways to change it: heat Q flowing in or out because of a temperature difference, and work W done when the gas pushes a piston out or is pushed in. The first law of thermodynamics is the conservation of energy written for that case: ΔU = Q − W, with Q counted positive into the gas and W positive when the gas does the work. Many textbooks count work done on the gas instead and write ΔU = Q + W; the bookkeeping is the same, only the sign of W flips. At constant pressure the work is p·ΔV, which on a p–V diagram is the area under the path: an expanding gas spends energy as work, so to warm it the same amount you must supply more heat. An insulated gas exchanges no heat, so any work done on it goes straight into its internal energy; that is why a bicycle pump gets hot. Q and W depend on how the gas gets from one state to another, but ΔU depends only on the start and the end.

A focused learning model

The gas is ideal and monatomic, so U = 3/2·p·V; in the first two tests only the heat and work are given, and they are applied steadily. Work at constant pressure is p·ΔV; the pump's compression is adiabatic, p·V^(5/3) constant, with Q = 0. Q is counted positive into the gas and W positive when the gas does the work, so ΔU = Q − W; with W counted on the gas the same law reads ΔU = Q + W. Each process runs steadily over 2 s and the run holds to 3 s. Answers within 2% are right.

Changing language keeps your test, prediction, attempts, and run.