Every thermodynamic problem is the same one equation, ΔQ = ΔU + ΔW — the first law. Get the signs of heat and work right and the algebra tells you whether the gas warms, cools, expands or is squeezed. The rule is simple: heat in is +, work done by the gas is +. Drag the two sliders below and watch the internal energy — and the temperature — follow.
You choose two things — how much heat you pour into the gas (ΔQ) and how much work the gas does on its surroundings (ΔW). The first law then fixes the change in internal energy, ΔU = ΔQ − ΔW. Since for an ideal gas U depends only on temperature, a positive ΔU means the molecules speed up — the gas gets hotter.
{{ narrative }}
{{ q.body }}
The gas does work only by pushing its boundary: ΔW = ∫ P dV. Move right on the P–V diagram (volume grows) and the gas does positive work; move left (compression) and the work is negative. The direction you travel sets the sign — the shaded area only ever gives the magnitude.
Volume increases, the gas pushes the piston out — it spends energy on the surroundings.
The surroundings squeeze the gas in — work is done on it, so ΔW carries a minus sign.
Clockwise loop ⇒ net work out (an engine); anticlockwise ⇒ net work in (a fridge). ΔU = 0 each cycle.
120 J of heat is supplied to a gas, which then does 40 J of work pushing its piston out. Plug in the signs: ΔQ = +120 J, ΔW = +40 J.
The internal energy rises by 80 J — the plus sign tells you the gas ends up hotter, even though it spent some energy on work. You never had to decide that yourself.
Six one-tap questions. Don't compute anything — just read the situation and name the sign. {{ quizSolved }}/6 right.