For an ideal gas, a formula can be readily obtained by differentiation of the ideal gas law, p V m = R T . This yields p d V m + V m d p = R d T where p is the pressure, V m is the molar volume ( V m = V / n , with n the total number of moles of gas), T is the absolute temperature and R is equal to the gas constant.