
Thermal unit · institution-dependent · Interactive lesson
Thermodynamic systems and the first law
Before a single joule is counted, decide what the system is and where its boundary runs. The first law then says something sharper than energy conservation: the system stores one quantity, U, and everything crossing the boundary is either heat or work, labelled by how it crossed, never by what it did on arrival.
UPIII-07.01 · Lesson 1 of 9 in this unit. Position is not a completion score.Thermal unit · institution-dependent. Many departments teach thermal physics separately or within Physics II. Check whether your university includes this numbered unit in Physics III.
Build the model
Internal energy is stored; heat and work are only ever in transit.
The key idea
The first law states that the internal energy of a closed system changes only by the heat that enters it minus the work it does on its surroundings, ΔU = Q − W, whatever path connects the two equilibrium end states.
Example. A gas takes in 500 J of heat and pushes a piston out with 300 J of work: ΔU = 500 J − 300 J = +200 J. Compressing it back with 300 J of work while it loses 500 J to a water bath returns U exactly to its starting value.
The complete physical model and assumptions
Thermodynamics begins by cutting the world in two. Whatever is inside the cut is the system, whatever is outside is the surroundings, and the cut itself is the boundary. Energy crosses that boundary in two ways only: as heat, driven by a temperature difference, or as work, driven by a macroscopic force through a displacement, including electrical and shaft work. Joule's paddle-wheel experiments supplied the decisive fact: between two given equilibrium states, the work needed along any adiabatic path is the same, whatever the machinery. That path independence is exactly what lets a function of state be defined, the internal energy U, and it makes heat a derived idea: on a non-adiabatic path the heat is the part of ΔU the work did not supply. The first law, ΔU = Q − W, is therefore an accounting identity with one stored quantity and two transfers. It demands a closed system, so no energy rides in on mass, and equilibrium end states, so U is defined at both ends. It demands nothing about the path between them. A gas can be stirred, shocked or let loose into a vacuum, with no single pressure or temperature during the process, and the law still holds exactly, because it reads only the ends. The quasi-static restriction arrives later, when you want to compute W from the gas's own pressure as ∫p dV; that is a statement about work, not about the first law.
1Draw the boundary before you write anything
A thermodynamic statement is meaningless until you say what it is about. The system is the matter or region you have chosen; everything else is surroundings; the boundary is the surface between them, and it may be real (a cylinder wall) or imagined (a fixed volume of air in a room). A closed system exchanges energy but not matter across its boundary; an open system exchanges both; an isolated system exchanges neither. The boundary also decides the label on every transfer. Run 2.0 A through a heater coil at 12 V for 60 s and 1440 J leave the battery. Draw the boundary around the water and the coil together and those 1440 J enter as electrical work: charge is pushed through a potential difference across the boundary, and no temperature difference is involved. Draw the boundary around the water alone and the same 1440 J enter as heat, driven by the temperature difference between the hot coil and the water. Nothing physical changed; the bookkeeping category did, because heat and work are names for how energy crosses a surface, not for what it becomes inside.
2Internal energy is a property; heat and work are events
A state function is a quantity fixed by the equilibrium state alone, like the altitude of a point on a map. For a simple compressible system the state is set by two variables, say T and V, and U = U(T, V) has one value there however the system arrived. Heat and work are like the distance walked: they belong to the journey, not the place. That is why the law is written with δQ and δW rather than dQ and dW; there is no function Q(T, V) of which δQ is the change, and writing a change in Q, as if heat were stored, is the error the notation guards against. The operational test is the cyclic integral. Take a system around any closed loop of states and ∮ dU = 0, while ∮ δQ and ∮ δW are in general non-zero and equal to each other. A gas can take in 1250 J of heat and later give back 1370 J on a different route home, its internal energy returning to exactly where it began: the 120 J difference was work put in along the way. After the fact the gas carries no record of either number, only its state.
3How U is measured: adiabatic work, then heat by subtraction
Joule wrapped a paddle wheel in an insulated tank of water, drove it with falling weights and measured the temperature rise. The essential result was not the mechanical equivalent of heat but this: for a given pair of end states, the adiabatic work required is the same whether it is delivered by paddles, by a rubbed plate or by a resistor carrying current. Work that does not depend on the path is the change of a function of state, so UB − UA is defined as the adiabatic work done on the system from A to B. Take 0.500 kg of water (c = 4184 J kg⁻¹ K⁻¹) warmed by 1.20 K in an insulated, rigid tank: ΔU = 0.500 × 4184 × 1.20 = 2.51 × 10³ J, and every adiabatic route between those two states costs exactly that much work. Now remove the insulation and reach the same final state with only 1800 J of paddle work. The deficit is the heat: Q = ΔU + W = 2510 + (−1800) = 710 J. No instrument measured 710 J of heat flowing; heat was inferred from a state change and a work total. That is what heat means in thermodynamics.
4Declare the sign convention, then stop thinking about it
Two conventions are in use and both are correct. Most introductory physics texts, many engineering texts, and this site write ΔU = Q − W with W the work done by the system, so an expanding gas has W > 0 and spends its internal energy. Chemistry texts, and many advanced physics texts, write ΔU = Q + W with W the work done on the system, so the same expansion has W < 0. The physics is identical; only the sign of W flips. Test it on one process. A gas absorbs 500 J and expands, doing 300 J of work on its piston. Physics convention: ΔU = 500 − 300 = +200 J. Chemistry convention: the work done on the gas is −300 J, so ΔU = 500 + (−300) = +200 J. The dangerous move is to import a formula from one convention into a calculation running on the other, which silently doubles or cancels the work term. Two habits prevent it: write the subscript, Wby or Wₒₙ, on the first line of every problem, and check the sign of ΔU against the physics before you trust it. A gas that is compressed and insulated must end with more internal energy; if your arithmetic says less, the convention slipped, not the gas.
5What the law demands, and what it does not
The first law makes two demands. The system must be closed: mass crossing the boundary carries energy with it and the balance needs extra terms. And both end states must be equilibrium states, because U(T, V) is defined only where the system has one T and one V. It makes no demand on the path. Take 1.00 mol of argon at 300 K in one half of a rigid, insulated vessel, the other half evacuated, and break the partition. The gas rushes across with no uniform pressure or temperature during the process; it pushes on nothing, so W = 0, and the insulation gives Q = 0. Once the gas is quiet the law reads ΔU = 0, and since an ideal gas has U = (3/2) n R T the temperature is 300 K again, at twice the volume and half the pressure. Nothing here was quasi-static and the first law did not care. That restriction belongs to a different statement, W = ∫p dV with p the gas’s own pressure, which needs a defined p at every instant. The tidy result ends with the ideal-gas model: a real gas expanding freely cools slightly, because its U depends weakly on V through intermolecular attraction.
6Power in, heat out: the rate form and the steady state
Divide the differential form by dt and the first law becomes a power balance: dU/dt = Q̇ − Ẇ, every term in watts, where Q̇ is the rate of heating into the system and Ẇ the power the system delivers outward. Take the water and element of a kettle as the system, with 0.80 kg of water and a 1.2 kW element. Electrical work enters at 1200 W, so before losses matter dU/dt = 1200 W and the water warms at 1200/(0.80 × 4184) = 0.36 K s⁻¹. Near the boil the hot body loses about 150 W to the room as heat, so dU/dt = 1200 − 150 = 1050 W and the rate falls to 0.31 K s⁻¹. A steady state is the case dU/dt = 0: a soldering iron at constant tip temperature sheds heat at exactly the electrical power it draws, and a resistor at constant temperature is a device that converts work entering to heat leaving with nothing stored. The rate form also keeps a steady state apart from equilibrium. A body at steady temperature is not one where nothing is happening: its boundary transfers have come into balance while energy still flows through it, so the soldering iron is in a steady state, not in equilibrium with the room, which would mean no net transfer at all.
Key equations
Read the units, assumptions and limits before substituting.
First law for a finite process
ΔU = Q − W
Fixes ΔU from two boundary tallies. Only ΔU is set by the end states; Q and W separately depend on the path taken.
Q: heat into the system, J. W: work done by the system on its surroundings, J. U: internal energy, J. Used site-wide.Differential form
dU = δQ − δW
Lets you integrate along a process: ∫δQ and ∫δW need the whole path, while ∫dU = UB − UA needs only the ends.
δ marks an inexact differential: δQ and δW are small transfers, not changes of any stored function. dU is exact.Cyclic integral of a state function
∮ dU = 0
The test that U is a property. Its consequence, net heat in equals net work out over one cycle, is where every engine analysis begins.
Around any closed cycle the system returns to its starting state and U to its starting value; units J.Adiabatic work defines U
UB − UA = −Wad
How U is measured without a heat meter. Heat on a non-adiabatic path is then defined by the shortfall, Q = ΔU + W.
Wad: work done by the system along any adiabatic path from A to B, J. Joule found this work independent of the path.Monatomic ideal gas
U = (3/2) n R T
Makes U a function of T alone, so a fixed ΔU means a fixed ΔT whatever mixture of heat and work produced it.
n in mol, R = 8.314 J mol⁻¹ K⁻¹, T in K. Translational kinetic energy only; diatomic and polyatomic gases add terms (topic 7.3).Rate form
dU/dt = Q̇ − Ẇ
For a device at steady temperature dU/dt = 0, so power in equals heat out; before steady state the difference charges U.
Q̇: rate of heating into the system, W. Ẇ: power delivered by the system to its surroundings, W.Interactive lab
Predict first. Explore the model. Compare the result.
Explore the model
Try this. Set Q and W both to 300 J: the dot lands on the dashed line, ΔU is 0 and the bar returns to its starting height, so the state has forgotten that 300 J entered as heat and left as work. Then move Q and W together by the same step and watch the dot slide along the solid line while ΔT never changes.
Live results
- ΔU = Q − W
- 250 J
- Wₒₙ = −W (other convention)
- -150 J
- ΔT, monatomic ideal gas
- 10.0 K
Results follow this lesson’s model and assumptions. Displayed values are rounded.
Predict → change one variable → check
Plan a change before running it. Every other input stays at the saved baseline.
Saved baseline. Heat into the system Q: 400 J; Work done by the system W: 150 J; Argon in the system n: 2.0 mol
This experiment is kept only while this page is open. It does not change saved course progress.
Catch the common trap
Students arriving from a first course speak of a hot body as one that contains a lot of heat, and of stirring as a way to add heat. Both statements put a process quantity inside the system, and the Joule experiment is the refutation. The same final state of a tank of water can be reached by paddle work alone or by heating alone, and afterwards nothing about the water reveals which route was taken; if heat were something the water held, its state would have to record how much arrived as heat, and it does not. What the body holds is internal energy. Heat is energy in transit across the boundary because of a temperature difference, and it is a well-defined quantity only while the crossing is happening. The same confusion produces the reverse error, that a gas whose temperature rises must have been heated: adiabatic compression raises T with Q = 0, the whole rise paid for by work.
Practice & worked examples
3 authored examples. Make an attempt, then reveal the reasoning one step at a time.
EasyExample 1
A gas in a cylinder is compressed by a piston that does 350 J of work on it. During the compression the gas gives 520 J of heat to a surrounding water bath. Find the change in the gas's internal energy in this site's convention and in the work-on-the-system convention, and say whether the gas ended hotter or colder.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 4 steps revealed.
- Declare the system (the gas) and the convention: ΔU = Q − W with W the work done by the gas. Heat leaves, so Q = −520 J. The piston does work on the gas, so the gas does negative work: Wby = −350 J.
- ΔU = Q − Wby = (−520 J) − (−350 J) = −520 J + 350 J = −170 J.
- Repeat in the chemistry convention, ΔU = Q + Wₒₙ with Wₒₙ = +350 J: ΔU = −520 J + 350 J = −170 J. The same number, as it must be; only the label on the 350 J changed sign.
- Interpret: the bath took 520 J but the piston supplied only 350 J, so the gas's store fell by 170 J. For an ideal gas U depends on T alone, so the temperature fell despite the compression.
Answer. ΔU = −170 J in both conventions; the gas is colder than it started.
MediumExample 2
Along path 1 from state A to state B, a gas absorbs 1250 J of heat and does 480 J of work. It is then returned from B to A along a different path 2, on which 600 J of work is done on it. Find ΔU for each leg, the heat exchanged on path 2, and the net heat and net work for the complete cycle.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 5 steps revealed.
- Path 1: Q₁ = +1250 J, W₁ = +480 J (done by the gas). ΔUAB = Q₁ − W₁ = 1250 − 480 = +770 J.
- U is a state function, so the return leg must undo exactly that change whatever route it takes: ΔUBA = UA − UB = −770 J.
- Path 2: work is done on the gas, so W₂ = −600 J. Solve ΔUBA = Q₂ − W₂ for the heat: Q₂ = ΔUBA + W₂ = −770 + (−600) = −1370 J, that is, 1370 J leave the gas.
- Cycle totals: ΣQ = 1250 − 1370 = −120 J and ΣW = 480 − 600 = −120 J. They agree, as ∮ dU = 0 requires, and ΔUAB + ΔUBA = 770 − 770 = 0.
- Read the sign: net work was done on the gas and net heat was expelled. Run this way the cycle is not an engine; it uses 120 J of work to move 120 J of heat outward.
Answer. ΔUAB = +770 J, ΔUBA = −770 J, Q₂ = −1.37 × 10³ J (heat out); over the cycle ΣQ = ΣW = −120 J.
HardExample 3
A rigid tank holds 2.00 mol of argon at 300 K. A resistor inside the tank carries 1.50 A at 24.0 V for 180 s, and during that time 1.10 kJ of heat leaks through the tank wall to the room. Treating argon as a monatomic ideal gas and neglecting the resistor's own heat capacity, find the final temperature with the system taken as argon plus resistor, then recount Q and W with the system taken as the argon alone.
Sketch your answer or reasoning, then compare it with the authored solution. Your writing is not automatically graded or saved.
0 of 6 steps revealed.
- System 1 = argon + resistor. Electrical work crosses the boundary: Wₒₙ = V I t = 24.0 × 1.50 × 180 = 6480 J, so Wby = −6480 J. Units check: V A s = (J C⁻¹)(C s⁻¹)(s) = J.
- Heat crosses the wall outward: Q = −1100 J. First law: ΔU = Q − Wby = −1100 − (−6480) = +5380 J.
- For a monatomic ideal gas ΔU = (3/2) n R ΔT, so ΔT = 5380 / (1.5 × 2.00 × 8.314) = 5380 / 24.94 = 215.7 K, and Tfinal = 300 + 215.7 = 515.7 K.
- The process was violent near the resistor, with no single gas temperature while the current flowed. The first law does not care: it reads the two equilibrium end states, and 516 K is the answer once the gas has settled.
- System 2 = argon alone. The tank is rigid and no wire crosses this boundary, so W = 0. The hot resistor is now surroundings and transfers 6480 J to the gas as heat while 1100 J leave through the wall: Q = 6480 − 1100 = +5380 J, so ΔU = 5380 − 0 = +5380 J.
- Same ΔU, same Tfinal. Moving the boundary relabelled 6480 J from work to heat and changed nothing about the argon's state.
Answer. Tfinal ≈ 516 K (ΔU = +5.38 kJ). Argon + resistor: Q = −1.10 kJ, Wby = −6.48 kJ. Argon alone: Q = +5.38 kJ, W = 0.
Quick check
Select an answer and explain it before checking.
Review & continue
The first law states that the internal energy of a closed system changes only by the heat that enters it minus the work it does on its surroundings, ΔU = Q − W, whatever path connects the two equilibrium end states.
- Explain the relationship without looking at the equation.
- Check a sign, a unit and a model assumption in your working.
- Return to the lab or worked example if a step is still unclear.
Optional supporting lessons
These chapter resources can help with earlier ideas; they are not additional required Physics III completion tasks.