The total inflow of energy into a system must equal the total outflow of energy from the system, plus the change in the energy contained within the system