The fact that the energy density of the box containing radiation is proportional to T 4 can be derived using thermodynamics. This derivation uses the relation between the radiation pressure p and the internal energy density u , a relation that can be shown using the form of the electromagnetic stress–energy tensor. This relation is: p = u 3 .