where c V is the isochoric (at constant volume) molar heat capacity of the gas; c V is constant for an ideal gas. The internal energy of any gas (ideal or not) may be written as a function of the three extensive properties S , V , N (entropy, volume, number of moles). In case of the ideal gas it is in the following way