The formula for energy \(E\) of a photon gas at temperature \(T\) in a two-dimensional box at equilibrium with \(g_{2d}(\nu)\) denoting the density of states of photons is given below, where symbols \(\nu\), \(h\) and \(k_B\) have their standard meaning. The specific heat (\(C_V\)) of this photon gas obeys
\[ E = \int_0^{\infty} d\nu \, g_{2d}(\nu) \, \frac{h\nu}{\exp\left(\dfrac{h\nu}{k_B T}\right) - 1} \]