From the first law of thermodynamics we have
the heat capacity is given by
where U is the internal energy, T is the temperature, and V is the volume.
where p is the pressure.
We have