At constant volume when the gas is heated, the pressure on gas increases.
To make the volume constant in a container, put a barricade on the piston. The applied heat, in this case, is used to raise the temperature of of gas by .
Therefore, is defined as the heat required to raise the temperature of of a substance (solid, liquid or gas) at constant volume by . Its units are .
Similarly, at constant pressure, when the gas is heated, it expands, here the work is done by the gas. Because the gas does the work to move the piston, the temperature of the gas decreases.
The relation between and is described as
Therefore, is defined as the amount of heat energy released or absorbed by a unit mass of the substance with the change in temperature at a constant pressure.