(modified from K&K 4.6) We discussed in class that \begin{align} p &= -\left(\frac{\partial F}{\partial V}\right)_T \end{align} Use this relationship to show that
\begin{align} p &= -\sum_j \langle n_j\rangle\hbar \left(\frac{d\omega_j}{dV}\right), \end{align} where \(\langle n_j\rangle\) is the number of photons in the mode \(j\);
Solve for the relationship between pressure and internal energy.