First law of Thermodynamics:
The First Law of Thermodynamics states that energy can be converted from one form to another with the interaction of heat, work and internal energy, but it cannot be created nor destroyed, under any circumstances. Mathematically, this is represented as.
\[\Delta U = q+w \]
where ,
\[\Delta U \] is change in internal energy
q is the heat exchanged between the systems
w is the work done by or on the system.
To calculate change in temperature in ideal gas after adding n mole:
\[\Delta U = \frac{3}{2}nR\Delta T \]
\[\Delta T = \frac{\Delta U}{(2/3)nR} \]
\[= \frac{q+w}{(2/3)nR} \]
where,
R is a constant 8.31
n is number of moles
\[\Delta T \] is change in absolute temperature .
To know more check post on ideal gas