Visual walkthrough — First law - ΔU = q + w (chemist sign convention)
Step 1 — Draw the box and name what is inside it
WHAT. Picture a sealed box of gas. We put an imaginary bag — a boundary — around exactly the stuff we care about. Everything inside the bag we call the system. Everything outside (the room, the flame, the water bath) we call the surroundings.
WHY. Before we can talk about energy changing, we have to say whose energy. Drawing the boundary is not a formality — it decides the sign of every number later. "In" and "out" only mean something once you know where the line is.
PICTURE. In the figure, the yellow dashed line is the boundary. Inside, the little chalk-blue dots are gas molecules jiggling. That jiggling — the total energy stored in all the molecular motion and molecular forces — is the one quantity we will track. We give it the name for internal energy.

The change is written . The symbol (Greek "delta") simply means "final minus initial":
- ::: the internal energy after the process — the box at the end
- ::: the internal energy before the process — the box at the start
- ::: the instruction "subtract start from end"
Step 2 — The one law we refuse to break
WHAT. Zoom out so the box and the whole room are inside a giant bag. Nothing enters or leaves this giant bag — it is an isolated universe. For it, we assert one thing: its total energy is a fixed number that never changes.
WHY. This is the whole engine of the derivation. Everything else is just careful bookkeeping applied to this one refusal: energy of the universe = constant. No experiment has ever violated it.
PICTURE. Two chalk boxes sit inside one big dashed bag: "system" and "surroundings". A pink arrow shows energy sliding from one to the other. The total (blue number in the corner) stays frozen no matter which way the arrow points.

- ::: the total energy of the giant isolated bag — frozen
- ::: energy of our box (this is )
- ::: energy of everything else
If the whole thing is frozen but the two parts can trade, then whatever one part gains, the other must lose by exactly the same amount. In symbols, if the total does not change, the two changes must cancel:
That minus sign is the seed of every sign convention to come: your gain is their loss.
Step 3 — Only two doors in the boundary
WHAT. Energy can cross the boundary in only two distinct ways. Not three, not ten. Two.
- Heat — energy crossing because the two sides are at different temperatures.
- Work — energy crossing because an organised force pushes through a distance (like a piston moving).
WHY. At the molecular level these are the only mechanisms that exist. Heat is disorganised: hot molecules on one side randomly slam into cold ones on the other, speeding them up — no marching in step. Work is organised: a whole wall (a piston) moves together, every molecule pushed the same direction at once. Because these are physically different, we give them different letters and track them separately.
PICTURE. The boundary now has two labelled doors. Through the red door labelled , chalk-pink squiggly arrows (random collisions) carry heat. Through the blue door labelled , a solid piston pushes inward with one straight blue arrow (organised push).

Step 4 — Choose "into the system = positive" (the chemist's ledger)
WHAT. We must decide which direction counts as a "+" number. The chemist's rule: anything flowing INTO the system is positive.
- Heat absorbed by the system: . Heat released: .
- Work done on the system (compression, piston pushes in): . Work done by the system (expansion, piston pushes out): .
WHY. A chemist watches the system like a bank account: deposits (energy in) are positive, withdrawals (energy out) are negative. This is a choice, but a consistent one. (Physicists sometimes flip the work sign and write ; we do not, because we want every "in" to read as "+".)
PICTURE. A chalk bank ledger. Two green "+" arrows point inward: "heat IN" and "work ON". Two pink "−" arrows point outward: "heat OUT" and "work BY". The rule "into is plus" is boxed in yellow.

Step 5 — Add up the deposits: the equation appears
WHAT. The change in the system's internal energy is just the net of the two doors: heat that came in, plus work that came in.
WHY. There are no other doors (Step 3) and no other place for energy to hide inside a rigid boundary. So the system's energy change must equal exactly what crossed the boundary — nothing more, nothing less. That is the accounting.
PICTURE. A single chalk equation with the two doors from Step 3 flowing into a "" jar. Every arrow that entered the jar is summed.

That is the whole law. It is conservation of energy (Step 2) filtered through "only two doors" (Step 3) and "into is plus" (Step 4).
Step 6 — Why is honest but and are not (state vs path)
WHAT. depends only on where you start and where you end. But and each depend on the route you took between those two states.
WHY. Think of hiking between two points on a hill. Your change in altitude depends only on the two endpoints — that is , a state function. But the distance you walked depends on whether you zig-zagged — that is like and , path functions. Two different routes from state A to state B can have wildly different and different , yet always lands on the same . See State functions vs path functions.
PICTURE. Two chalk paths (a straight yellow one, a wiggly pink one) climb between the same two dots A and B. The vertical rise is identical for both; the path lengths (, ) differ.

This is why we may add reaction energies like Lego bricks (Hess's Law) and why deserves a clean while and do not.
Step 7 — Every case the box can be in
WHAT. Now we run the box through all four combinations of " in/out" and "work on/by", plus the degenerate cases where a term is zero. No situation is left unshown.
PICTURE. A 2×2 chalk grid of boxes, each with its arrows and its resulting sign, with the three zero-cases drawn along the edge.

| Case | Result | Physical picture | ||
|---|---|---|---|---|
| Heat in, compressed | (definitely rises) | Both doors deposit | ||
| Heat out, expanded | (definitely falls) | Both doors withdraw | ||
| Heat in, expands | (could be anything) | Deposit vs withdrawal — compare sizes | ||
| Heat out, compressed | (could be anything) | Same tug-of-war |
Degenerate (zero) cases — these must never surprise you:
- Rigid box, no volume change (Bomb calorimetry): no PV work, so and . All the heat becomes stored energy.
- Thermally insulated (Adiabatic processes): no heat door, so and . All the work becomes stored energy.
- Isothermal ideal gas (Isothermal processes): for an ideal gas depends on temperature only, so constant means , forcing (heat in exactly pays for work out).
Step 8 — Four numbers to make it real
The one-picture summary

One boundary, two doors, one rule: whatever crosses in, added up, is the change in stored energy. Heat door plus work door feed one jar labelled , and "into is plus" fixes every sign.
Recall Feynman retelling — say it back in plain words
Draw a bag around your gas: inside is the system, everything else is the surroundings. The universe's total energy is frozen, so any energy the system gains, the surroundings lost — that minus sign is where all the "plus and minus" comes from. Energy can sneak across the bag in only two ways: heat, which is random hot-molecule collisions, and work, which is an organised push like a piston. We agree to call anything heading into the bag positive, like a bank deposit. Add the two deposits and you get the change in the box's stored energy: . The stored energy only cares where you started and stopped (a state function, like altitude), while and each depend on the route (path functions, like distance walked) — yet they always add back to the same . If the box is rigid, the work door is shut () and . If the box is insulated, the heat door is shut () and . If it is an ideal gas held at constant temperature, nothing is stored () so heat in must equal work out. That is the entire first law, drawn.
Recall Quick self-test
A gas expands and does 300 J of work while absorbing 500 J of heat. What is ? ::: , , so . Why is negative when the gas expands? ::: The system pushes outward — energy leaves the boundary, a withdrawal, so it is negative in the chemist convention. In a bomb calorimeter, why does the measurement give and not ? ::: Constant volume shuts the work door (), so directly.