What is the first law of thermodynamics?
Conservation of energy in systems when cooling, heating and doing work.
Where u is the internal energy, treating it as an ideal gas means that kinetic energy is only taken into account, not potential energy also
Q = Energy transferred by heating
W = Work done by the system