Degeneracy pressure of a two-dimensional Fermi gas (source code)

= Degeneracy pressure of a two-dimensional Fermi gas

At zero temperature, a two-dimensional free Fermi gas satisfies
$$
N=gE_F,
\qquad
E_{\rm tot}=\frac12NE_F,
\qquad
p=-\left(\frac{\partial E_{\rm tot}}{\partial A}\right)_N
=\frac{NE_F}{2A}.
$$