Energy bookkeeping for a gas
Energy bookkeeping for a gas
A gas in a cylinder can gain energy by heating and transfer energy mechanically by pushing a piston. The first law of thermodynamics is conservation of energy for this system: the energy supplied by heating is shared between increasing the gas's internal energy and the work done by the gas.