The specific heat is the derivative of the internal energy with respect to the temperature.

This can be expressed in terms of an integral over the frequency ω.

The Leibniz integral rule can be used to bring the differentiation inside the integral. If the photon density of states D(ω) is temperature independent, the result is,

Since only the Bose-Einstein factor depends on temperature, the differentiation can be performed analytically and the expression for the specific heat is,

The form below uses this formuula to calculate the temperature dependence of the specific heat from tabulated data for the density of states. The density of states data is input as two columns in the textbox at the lower left. The first column is the angular-frequency ω in rad/s. The second column is the density of states. The units of the density of states depends on the dimensionality: s/m for 1d, s/m² for 2d, and s/m³ for 3d.

After the 'DoS → cv(T)' button is pressed, the density of states is plotted on the left and c_{v}(T) is plotted from temperature T_{min} to temperature T_{max} on the right. The data for the c_{v}(T) plot also appear in tabular form in the lower right textbox. The first column is the temperature in Kelvin and the second column is the specific heat in units of J K^{-1} m^{-1}, J K^{-1} m^{-2}, or J K^{-1} m^{-3} depending on the dimensionality.