Rub your hands together on a cold morning and they warm up. Pump up a bicycle tyre and the pump gets hot. In both cases you did no "heating" — there was no flame, no hotplate — yet the temperature rose. You raised the internal energy of something by doing work on it. Heat is not the only way to change how much energy is stored inside matter; pushing is another. The first law of thermodynamics is the bookkeeping rule that ties these two channels together into a single, unbreakable statement of energy conservation. It is nothing more, and nothing less, than "energy in equals energy stored plus energy out" — written carefully enough to be exact.
This page takes the school idea of
Every lump of matter holds energy inside it that has nothing to do with where it is or how fast the
whole lump is moving. Its molecules are perpetually darting, spinning and vibrating, and they tug on
one another through intermolecular forces. Add up all that microscopic kinetic and potential energy
and you get the internal energy
The crucial point:
You can change a system's internal energy through exactly two channels, and telling them apart is the whole game.
The deep lesson of the nineteenth century — nailed down by Joule's paddle-wheel experiments — is that heat and work are interchangeable currencies of the same thing, energy. A given rise in internal energy can be produced by so many joules of heating or the same number of joules of stirring. That equivalence is what makes the first law possible.
Conservation of energy for a closed system, written for these two channels, is the first law:
The minus sign is not decoration — it encodes a choice of bookkeeping. In this (physicist's / "engine") convention:
Heat you receive raises your balance; work you do drains it. That is all the equation says. (Beware:
many chemistry books write
The most important kind of work in thermodynamics is a gas expanding and pushing a piston. If the gas
sits at pressure
because
That integral is exactly the area under the curve on a pressure–volume diagram. When
the pressure is held constant (an isobaric expansion) it collapses to a simple rectangle,
Example 1 — heat in, work out. A gas absorbs
Half a kilojoule went in as heat; 200 J left as work; the 300 J that stayed raised the internal energy (and so the temperature).
Example 2 — compressing a gas. You push a piston in, doing
Even though heat left, the internal energy rose — because you did more work squeezing it than the heat that escaped. This is exactly why a bicycle pump warms up.
Example 3 — isobaric pV work. A gas at constant pressure
For a century people thought exactly that. The caloric theory imagined heat as an invisible,
weightless fluid ("caloric") stored inside hot bodies and flowing out into cold ones. It explained a
lot — but it choked on friction. Count Rumford, boring cannon barrels in Munich around 1798, noticed
the brass got endlessly hot as long as the drill kept turning — you could apparently squeeze out
unlimited caloric from a finite lump of metal, which made no sense for a conserved fluid.
James Joule finished the job in the 1840s, showing with paddle-wheels and falling weights that a fixed
amount of mechanical work always produces the same amount of heating. Heat wasn't a substance stored
in things; it was energy in transit. That is why the first law treats
Heat and work are not properties a system has — they are energy in transit. It is
wrong to say "this gas contains 300 J of heat." A gas contains internal energy