First Law of Thermodynamics — The Complete Guide
Steam engines, refrigerators, car engines, and your own metabolism all run on the same rule: energy in minus energy out equals the change stored inside. That's the first law of thermodynamics, and it's really just the conservation of energy dressed up for thermal systems.
Formally: ΔU = Q − W, where ΔU is the change in internal energy, Q is heat added to the system, and W is work done by the system on its surroundings. No exceptions have ever been found — it's one of the most thoroughly tested laws in all of physics.
Worked Example — Gas Expansion
Problem: A gas absorbs 500 J of heat and does 200 J of work pushing a piston outward. Find the change in internal energy.
ΔU = Q − W = 500 − 200 = 300 J — the gas's internal energy rose by 300 J; not all the absorbed heat went into expansion work.
Worked Example — Adiabatic Compression
Problem: A gas is compressed adiabatically (Q = 0), and 300 J of work is done on it. Find ΔU.
Work done ON the system means W (work done BY the system) = −300 J
ΔU = Q − W = 0 − (−300) = +300 J — all the compression work went straight into internal energy, which is why pumping up a bike tyre makes the pump warm.
Common Special Cases
Isochoric (constant volume): No work is done (W = 0) since there's no volume change to push against, so ΔU = Q directly — all added heat goes into internal energy.
Isothermal (constant temperature, ideal gas): Internal energy depends only on temperature for an ideal gas, so ΔU = 0, which means Q = W — all heat added is converted directly to work.
Adiabatic (no heat exchange): Q = 0, so ΔU = −W — the system's internal energy changes only because of work done on or by it.