The first law of thermodynamics relates the internal energy of a system to the exchange of heat and mechanical work. Focus on isothermal (constant temperature) and adiabatic (no heat flow) processes, and see how they apply to diesel engines and the atmosphere.