By treating radiation in a cavity as a gas of photons whose energy $\varepsilon$ and momentum $k$ are related by the expression $\varepsilon=c k$, where $c$ is the velocity of light, show that the pressure $p$ exerted on the walls of the cavity is one-third of the energy density.
With the above result prove that when radiation contained in a vessel with perfectly reflecting walls is compressed adiabatically it obeys the equation
$$
P V^\gamma=\text { constant } .
$$
Determine the value of $\gamma$.