A science born from steam
Every hot drink you have ever let go cold, every car engine, every refrigerator that hums in your kitchen, and the very fact that you cannot un-mix milk from coffee — all of it is thermodynamics at work. It is the branch of physics that connects heat, work, temperature and energy, and it grew up in the 1800s alongside the steam engine, when engineers desperately wanted to know how much work they could squeeze out of a fire.
The trick that makes thermodynamics powerful is that it is macroscopic: it never tracks the 10^{23} individual molecules in a gas. Instead it describes the whole collection with a handful of everyday numbers — pressure, volume, temperature — and finds laws that those few numbers must obey. You get enormous predictive power without ever solving for a single molecule.
Drawing a boundary: system and surroundings
Every thermodynamics problem starts by drawing an imaginary line. Whatever is inside that line is the system — the gas in a cylinder, the water in a kettle, the working fluid of an engine. Everything outside is the surroundings, and the line itself is the boundary. The boundary is where heat and work cross, so choosing it wisely is half the battle.
The state of a system, in a few numbers
At equilibrium a simple gas is completely described by a few state variables: its pressure P, its volume V, its temperature T, the amount of gas n (in moles), and its total internal energy U. These are not independent — they are tied together by an equation of state. For an ideal gas that equation is the famous ideal gas law.
The ideal gas law ties pressure, volume, amount and temperature together; R is the universal gas constant, about 8.314 J/(mol·K).
Because just two of these numbers fix all the rest (for a fixed amount of gas), we can draw the entire life of the gas on a single map: the PV diagram, with pressure up the side and volume across the bottom. A single state of the gas is one point on this map; a process that changes the gas is a path traced across it. Almost everything in this track will happen on this one diagram.
Temperature, done properly: the zeroth law
We all have a gut feel for temperature, but physics needs it pinned down. Put a hot body against a cold one and energy flows until they stop changing — they have reached thermal equilibrium. Temperature is simply *the property that two objects share when they are in thermal equilibrium.* This is guaranteed to make sense by the zeroth law of thermodynamics.
The zeroth law: if A is in thermal equilibrium with C, and B is too, then A and B are in equilibrium with each other. That transitivity is exactly what lets a thermometer (C) assign a single number — temperature — to everything.
The four laws in one breath
Here is the whole subject in preview. The zeroth law gives us temperature. The first law says energy is conserved — you can convert heat into work and back, but you can never create or destroy the total (conservation of energy with heat included). The second law says processes have a direction: heat flows hot-to-cold on its own, engines can never be perfect, and disorder tends to grow. The third law says you can approach, but never quite reach, absolute zero.