First Law Tracker
Set Q and W for any step and watch ΔU respond; then run a cycle and see ΔU return to zero. Every step is entered on a running ledger, drawn on the PV diagram, and audited against the gas’s actual state — U = (3/2)nRT recomputed live, so the bookkeeping can never drift from the physics.
Learn the physics first
For a closed system — a fixed amount of gas in a cylinder — energy crosses the boundary in exactly two ways: as heat Q, driven by a temperature difference, and as work W, done by the piston as it moves against pressure. Energy is conserved, so whatever crosses must settle in the internal energy: ΔU = Q − W, with heat counted positive when it flows in and work positive when the gas does it on its surroundings (the physics convention this lab states on every readout). Add 500 J of heat while the gas does 200 J of work and ΔU = 300 J — full stop.
The quiet power of the law is that U is a state function: it depends only on where the gas is (its P, V, T), not on the road taken. Heat and work are transfer bookkeeping — their totals depend on the path — but their difference is anchored to the endpoints. For the monatomic ideal gas in this lab, U = (3/2)nRT exactly, so the ledger can be audited against the thermometer at every step.
Over a closed cycle the gas returns to its starting state, so ΔUcycle = 0 always — which forces Qnet = Wnet. On the PV diagram the cycle is a loop and Wnet is the enclosed area. That identity is the entire operating principle of every heat engine, and you will verify it numerically with your own tallies.
Model assumptions. One mole of monatomic ideal gas (U = 1.5nRT, R = 8.314 J/(mol·K)), quasi-static steps slow enough that pressure is uniform, and a piston that converts work at the current pressure (ΔV = W/P). The scripted cycle uses two isotherms and two adiabats with a volume ratio of 2.
Experiment
PV diagram
your steps, or the scripted cycleEnergy ledger
every step, audited| Step | Q (J) | W (J) | ΔU (J) | T₂ (K) |
|---|
W is work done by the gas (physics convention), so ΔU = Q − W row by row.
Controls
Negative Q means cooling; negative W means you compress the gas (work done on it). Each step moves the piston by ΔV = W/P at the current pressure and re-solves the temperature from ΔU.
Cycle reservoirs
used by Run closed cycleThe scripted cycle expands isothermally at Th, expands adiabatically down to Tc, compresses isothermally at Tc, and compresses adiabatically back to the start — then the ledger proves ΔU = 0.
Live measurements
Try this. Apply Q = 500 J, W = 200 J three times and watch the ledger and thermometer climb. Then reverse the sign of both sliders and apply the mirrored steps: the ledger walks back down. Now set steps that return the gas to (300 K, 24.9 L) exactly and check that ΣQ − ΣW = 0 — your own closed loop. Finally press Run closed cycle and read the totals row: Q_net = W_net, to the joule.
Understand
Predict before you apply
A gas takes in Q = 500 J of heat while doing W = 200 J of work on its piston. Predict the change in its internal energy ΔU = Q − W, then check.
Experiment completion
Run several ledger steps in both directions, build your own closed loop, then verify Q_net = W_net on the scripted cycle and pass the quiz.
Where to go next
- The First Law lesson
- Process Explorer lab — the four named paths
- Heat Engine lab — cycles that earn their keep
- Full laboratory catalogue