Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Thomas-Fermi-Dirac Theory

There are two ways to derive equations for Thomas-Fermi-Dirac theory. One way is to start from grand potential and derive all equations from it. The other way is to start with low level equations and build our way up. Will start with the former.

Top Down Approach

The full interacting grand partition function is:

Ξ=N=0zNN!i=1Nd3rid3pi(2π)3exp(β[i=1Npi22m+U(r1,r2,,rN)]).\Xi = \sum_{N=0}^\infty \frac{z^N}{N!} \int \prod_{i=1}^N \frac{d^3 r_i \, d^3 p_i}{(2\pi \hbar)^3} \, \exp\left( -\beta \left[ \sum_{i=1}^N \frac{p_i^2}{2m} + U(\mathbf{r}_1, \mathbf{r}_2, \dots, \mathbf{r}_N) \right] \right).

We are approximating it with a trial grand potential that is non-interacting:

Ωtrial[β,μ]=i1βlog(N=01eβ(NϵiNμ))=\Omega_\mathrm{trial}[\beta, \mu] = -\sum_i {1\over\beta} \log\left(\sum_{N=0}^1 e^{-\beta\left(N\epsilon_i - N\mu\right)}\right) =
=i1βlog(1+eβ(ϵiμ))== -\sum_i {1\over\beta} \log\left(1 + e^{-\beta\left(\epsilon_i - \mu\right)}\right) =
=1β2d3xd3p(2π)3log(1+eβ(Htrial(p,x)μ))== -{1\over\beta} \int \int {2\,\mathrm{d}^3 x \,\mathrm{d}^3 p \over (2\pi)^3} \log\left(1 + e^{-\beta\left(H_\mathrm{trial}(\mathbf{p}, \mathbf{x}) - \mu\right)}\right) =
=1β2d3xd3p(2π)3log(1+eβ(p22+V(x)μ)).= -{1\over\beta} \int \int {2\,\mathrm{d}^3 x \,\mathrm{d}^3 p \over (2\pi)^3} \log\left(1 + e^{-\beta\left({p^2\over 2} + V({\bf x}) - \mu\right)}\right)\,.

And the relation between the two is:

Ω[β,μ]=Ωtrial[β,μ]+HHtrialtrial\Omega[\beta, \mu] = \Omega_\mathrm{trial}[\beta, \mu] +\langle H - H_\mathrm{trial} \rangle_\mathrm{trial}

Proof

The given relation is an approximation to the exact grand potential Ω[β, μ] = −(1/β) ln Ξ, derived using a mean-field-like approach based on a first-order cumulant expansion (or equivalently, approximating the average of an exponential by the exponential of the average). This is a standard technique in statistical mechanics for approximating partition functions when using a trial Hamiltonian, particularly in theories like Thomas-Fermi-Dirac (TFD) or mean-field approximations where fluctuations beyond the trial system are neglected.

Step 1: Recall the exact grand partition function and grand potential

The exact grand partition function for the interacting system is:

Ξ=N=0eβμNTrN[eβH(N)]=Tr[eβ(HμN)],\Xi = \sum_{N=0}^\infty e^{\beta \mu N} \operatorname{Tr}_N \left[ e^{-\beta H^{(N)}} \right] = \operatorname{Tr} \left[ e^{-\beta (H - \mu N)} \right],

where the trace is over all particle numbers N and states, H is the full interacting Hamiltonian (including kinetic energy, external potential V_en, and electron-electron interactions), μ is the chemical potential, β = 1/(kT), and N is the particle number operator.

The exact grand potential is then:

Ω[β,μ]=1βlnΞ.\Omega[\beta, \mu] = -\frac{1}{\beta} \ln \Xi.

This is intractable to compute exactly for interacting systems, so we introduce a non-interacting trial system.

Step 2: Introduce the trial Hamiltonian and its grand partition function

Define a trial Hamiltonian H_trial that is non-interacting (i.e., a sum of single-particle terms, as given in the notes: H_trial = ∑_i (p_i²/2 + V(x_i)), where V(x) = V_en(x) + V_ee(x) + V_xc(x) is an effective mean-field potential). The trial system is solvable exactly, as it reduces to independent fermions in the potential V(x).

The trial grand partition function is:

Ξtrial=Tr[eβ(HtrialμN)],\Xi_{\mathrm{trial}} = \operatorname{Tr} \left[ e^{-\beta (H_{\mathrm{trial}} - \mu N)} \right],

and the trial grand potential is:

Ωtrial[β,μ]=1βlnΞtrial.\Omega_{\mathrm{trial}}[\beta, \mu] = -\frac{1}{\beta} \ln \Xi_{\mathrm{trial}}.

As shown in the notes, this can be explicitly computed in the semiclassical (Thomas-Fermi) approximation:

Ωtrial[β,μ]=1β2d3xd3p(2π)3log(1+eβ(p22+V(x)μ)).\Omega_{\mathrm{trial}}[\beta, \mu] = -\frac{1}{\beta} \int \int \frac{2 \, d^3 x \, d^3 p}{(2\pi)^3} \log \left( 1 + e^{-\beta \left( \frac{p^2}{2} + V(\mathbf{x}) - \mu \right)} \right).

(Here, the factor of 2 accounts for spin degeneracy.)

Step 3: Rewrite the exact Ξ in terms of the trial system

To connect the exact and trial systems, rewrite the exact grand partition function using H = H_trial + (H - H_trial):

Ξ=Tr[eβ(HtrialμN+(HHtrial))]=Tr[eβ(HtrialμN)eβ(HHtrial)].\Xi = \operatorname{Tr} \left[ e^{-\beta (H_{\mathrm{trial}} - \mu N + (H - H_{\mathrm{trial}}))} \right] = \operatorname{Tr} \left[ e^{-\beta (H_{\mathrm{trial}} - \mu N)} \, e^{-\beta (H - H_{\mathrm{trial}})} \right].

This can be expressed as:

Ξ=Ξtrialeβ(HHtrial)trial,\Xi = \Xi_{\mathrm{trial}} \left\langle e^{-\beta (H - H_{\mathrm{trial}})} \right\rangle_{\mathrm{trial}},

where ⟨⋅⟩_trial denotes the expectation value in the trial ensemble:

Otrial=1ΞtrialTr[Oeβ(HtrialμN)].\left\langle O \right\rangle_{\mathrm{trial}} = \frac{1}{\Xi_{\mathrm{trial}}} \operatorname{Tr} \left[ O \, e^{-\beta (H_{\mathrm{trial}} - \mu N)} \right].

Let ΔH = H - H_trial for brevity (ΔH captures the difference between the true interactions and the mean-field approximation in H_trial). Then:

Ξ=ΞtrialeβΔHtrial.\Xi = \Xi_{\mathrm{trial}} \left\langle e^{-\beta \Delta H} \right\rangle_{\mathrm{trial}}.

Step 4: Take the logarithm to get the grand potential

The grand potential is:

Ω[β,μ]=1βlnΞ=1βlnΞtrial1βlneβΔHtrial=Ωtrial[β,μ]1βlneβΔHtrial.\Omega[\beta, \mu] = -\frac{1}{\beta} \ln \Xi = -\frac{1}{\beta} \ln \Xi_{\mathrm{trial}} - \frac{1}{\beta} \ln \left\langle e^{-\beta \Delta H} \right\rangle_{\mathrm{trial}} = \Omega_{\mathrm{trial}}[\beta, \mu] - \frac{1}{\beta} \ln \left\langle e^{-\beta \Delta H} \right\rangle_{\mathrm{trial}}.

This is still exact, but the term ln ⟨e^{-β ΔH}⟩_trial is difficult to compute.

Step 5: Apply the first-order cumulant approximation (mean-field approximation)

To approximate ln ⟨e^X⟩_trial where X = -β ΔH, use the cumulant expansion:

lneX=X+12(X2X2)+.\ln \left\langle e^{X} \right\rangle = \left\langle X \right\rangle + \frac{1}{2} \left( \left\langle X^2 \right\rangle - \left\langle X \right\rangle^2 \right) + \cdots.

In the mean-field approximation (common in TFD and similar theories), we truncate at first order, neglecting higher-order cumulants (which represent fluctuations/correlations beyond the mean field):

lneXX.\ln \left\langle e^{X} \right\rangle \approx \left\langle X \right\rangle.

This is equivalent to the Jensen’s inequality-based approximation ⟨e^X⟩ ≈ e^{⟨X⟩} (since ln is concave, this gives an upper bound, but in practice, it’s used as an approximation here).

Substituting X = -β ΔH:

lneβΔHtrialβΔHtrial=βΔHtrial.\ln \left\langle e^{-\beta \Delta H} \right\rangle_{\mathrm{trial}} \approx \left\langle -\beta \Delta H \right\rangle_{\mathrm{trial}} = -\beta \left\langle \Delta H \right\rangle_{\mathrm{trial}}.

Plug this back into the expression for Ω:

Ω[β,μ]Ωtrial[β,μ]1β(βΔHtrial)=Ωtrial[β,μ]+ΔHtrial=Ωtrial[β,μ]+HHtrialtrial.\Omega[\beta, \mu] \approx \Omega_{\mathrm{trial}}[\beta, \mu] - \frac{1}{\beta} \left( -\beta \left\langle \Delta H \right\rangle_{\mathrm{trial}} \right) = \Omega_{\mathrm{trial}}[\beta, \mu] + \left\langle \Delta H \right\rangle_{\mathrm{trial}} = \Omega_{\mathrm{trial}}[\beta, \mu] + \left\langle H - H_{\mathrm{trial}} \right\rangle_{\mathrm{trial}}.

This is the desired relation. The equality in the notes is understood as this approximation (not exact equality), which becomes accurate in the limit where correlations (higher cumulants) are small, such as in high-density or semiclassical regimes relevant to TFD.

Additional Notes on the Approximation

Evaluate HHtrialtrial\langle H - H_{\text{trial}} \rangle_{\text{trial}} explicitly

Where the full Hamiltonian contains:

H=i(pi22+Ven(xi))+12ij1xixjH = \sum_i \left({p_i^2\over 2} + V_{en}({\bf x}_i)\right) + {1\over2}\sum_{i \ne j} {1\over |\mathbf{x}_i - \mathbf{x}_j|}

And the non-interacting trial Hamiltonian is for each particle (the total Hamiltonian is a sum of these):

Htrial(p,x)=p22+V(x)H_\mathrm{trial}(\mathbf{p}, \mathbf{x}) = {p^2\over 2} + V({\bf x})

where: V(x)=Ven(x)+Vee(x)+Vxc(x)V({\bf x}) = V_{en}({\bf x}) + V_{ee}({\bf x}) + V_{xc}({\bf x}).

Now, evaluate the correction HHtrialtrial\langle H - H_{\text{trial}} \rangle_{\text{trial}}. The true HH includes Hartree UH=12ij1rirjU_H = \frac{1}{2} \sum_{i \neq j} \frac{1}{|\mathbf{r}_i - \mathbf{r}_j|} and exchange-correlation (approximated as LDA for simplicity). In the mean-field:

In the variational approximation: Ω[ρ]=Trρ(HμN+1βlnρ)\Omega[\rho] = \mathrm{Tr} \rho (H - \mu N + \frac{1}{\beta} \ln \rho), using a non-interacting trial ρtrial\rho_{\text{trial}}:

Htrial=TrρtrialH=Ts+nvext+Utrial,\langle H \rangle_{\text{trial}} = \mathrm{Tr} \rho_{\text{trial}} H = T_s + \int n v_{\text{ext}} + \langle U \rangle_{\text{trial}},

where T_s is exact in KS (orbital kinetic) or approximate in TFD (semiclassical).

For U (true Coulomb), the trial average Utrial=12Trρtrialij1rij\langle U \rangle_{\text{trial}} = \frac{1}{2} \mathrm{Tr} \rho_{\text{trial}} \sum_{i \neq j} \frac{1}{r_{ij}}. Since ρtrial\rho_{\text{trial}} is non-interacting (product of single-particle states), it factorizes to the Hartree term E_H, but to capture quantum exchange-correlation, we approximate:

UtrialEH+Exc[n],\langle U \rangle_{\text{trial}} \approx E_H + E_{xc}[n],

where E_xc is added as a functional of the trial density n(r) (e.g., Dirac: Ex=34(3π)1/3n4/3d3rE_x = -\frac{3}{4} \left( \frac{3}{\pi} \right)^{1/3} \int n^{4/3} d^3 r).

More rigorously, here is how it works using DFT (both KS and OF) for the full system at zero temperature, but the analogous derivation works for a finite temperature also:

E[n]=(T+U)[n]+V[n]=Ts[n]+EH[n]+(TTs+UEH)[n]+V[n]=E[n]=(T+U)[n]+V[n]=T_s[n]+E_H[n]+(T-T_s+U-E_H)[n]+V[n]=
=Ts[n]+EH[n]+Exc[n]+V[n].=T_s[n]+E_H[n]+E_{xc}[n]+V[n]\,.

In other words, both for the full Hamiltonian and for the trial Hamiltonian, we make some approximation to the kinetic term (TF in our case), and the difference is taken care of using the XC potential.

In the correction:

HHtrialtrial=\langle H - H_{\text{trial}} \rangle_{\text{trial}} =
=[Ts+nvext+EH+Exc][Ts+nvext+nvH+nvxc]== [T_s + \int n v_{\text{ext}} + E_H + E_{xc}] - [T_s + \int n v_{\text{ext}} + \int n v_H + \int n v_{xc}] =
=(EHnvH)+(Excnvxc).= (E_H - \int n v_H) + (E_{xc} - \int n v_{xc}).

With nvH=2EH\int n v_H = 2 E_H and nvxc=43Exc\int n v_{xc} = \frac{4}{3} E_{xc} (for Dirac), it becomes EH(1/3)Exc-E_H - (1/3) E_{xc}.

Thus the correction that must be applied is:

Een+Eee+Excne(x)V(x)d3x=E_{en} + E_{ee} + E_{xc} - \int n_e({\bf x}) V({\bf x})\,\,\mathrm{d}^3 x =
=ne(x)((eenVen)+(eeeVee)+(excVxc))d3x== \int n_e({\bf x})\left( (e_{en}-V_{en}) +(e_{ee}-V_{ee}) +(e_{xc}-V_{xc}) \right)\,\,\mathrm{d}^3 x =
=ne(x)(0+(12VeeVee)+(34VxcVxc))d3x== \int n_e({\bf x})\left( 0 +\left({1\over2} V_{ee}-V_{ee}\right) +\left({3\over 4}V_{xc}-V_{xc}\right) \right)\,\,\mathrm{d}^3 x =
=ne(x)(12Vee14Vxc)d3x== \int n_e({\bf x})\left( -{1\over2} V_{ee} -{1\over 4}V_{xc} \right)\,\,\mathrm{d}^3 x =
=12ne(x)Veed3x1334ne(x)Vxcd3x== -{1\over2}\int n_e({\bf x}) V_{ee} \,\mathrm{d}^3 x - {1\over 3}{3\over 4}\int n_e({\bf x}) V_{xc} \,\mathrm{d}^3 x =
=Eee13Exc= -E_{ee} - {1\over 3} E_{xc}

We start with a grand potential for non-interacting fermions (they interact in terms of the mean field potential V(x)V({\bf x}), but not directly), and add to it the corrections above:

Ω[β,μ]=i1βlog(N=01eβ(NϵiNμ))Eee13Exc=\Omega[\beta, \mu] = -\sum_i {1\over\beta} \log\left(\sum_{N=0}^1 e^{-\beta\left(N\epsilon_i - N\mu\right)}\right) -E_{ee} - {1\over3}E_{xc} =
=i1βlog(1+eβ(ϵiμ))Eee13Exc== -\sum_i {1\over\beta} \log\left(1 + e^{-\beta\left(\epsilon_i - \mu\right)}\right) -E_{ee} - {1\over3}E_{xc} =
=1β2d3xd3p(2π)3log(1+eβ(p22+V(x)μ))Eee13Exc== -{1\over\beta} \int \int {2\,\mathrm{d}^3 x \,\mathrm{d}^3 p \over (2\pi)^3} \log\left(1 + e^{-\beta\left({p^2\over 2} + V({\bf x}) - \mu\right)}\right) -E_{ee} - {1\over3}E_{xc} =
=2βd3x04πp2dp(2π)3log(1+eβ(p22+V(x)μ))Eee13Exc== -{2\over\beta} \int \,\mathrm{d}^3 x \int_0^\infty{ 4\pi p^2 \,\mathrm{d} p \over (2\pi)^3} \log\left(1 + e^{-\beta\left({p^2\over 2} + V({\bf x}) - \mu\right)}\right) -E_{ee} - {1\over3}E_{xc} =
=1π2βd3x0p2log(1+eβ(p22+V(x)μ))dpEee13Exc== -{1\over \pi^2 \beta} \int \,\mathrm{d}^3 x \int_0^\infty p^2 \log\left(1 + e^{-\beta\left({p^2\over 2} + V({\bf x}) - \mu\right)}\right) \,\mathrm{d} p -E_{ee} - {1\over3}E_{xc} =
=223π2β52d3x0u321+euβ(μV(x))duEee13Exc== -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int \,\mathrm{d}^3 x \int_0^\infty {u^{3\over2} \over 1 + e^{u-\beta\left(\mu-V({\bf x})\right)}} \,\mathrm{d} u -E_{ee} - {1\over3}E_{xc} =
=223π2β52I32(β(μV(x)))d3xEee13Exc== -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}\left(\beta\left(\mu-V({\bf x})\right)\right) \,\,\mathrm{d}^3 x -E_{ee} - {1\over3}E_{xc} =
=223π2β52I32(β(μV(x)))d3xEee13Exc= -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}\left(\beta\left(\mu-V({\bf x})\right)\right) \,\,\mathrm{d}^3 x -E_{ee} - {1\over3}E_{xc}

The potential V(x)=Ven(x)+Vee(x)+Vxc(x)V({\bf x}) = V_{en}({\bf x}) + V_{ee}({\bf x}) + V_{xc}({\bf x}) is the total potential that the electrons experience (it contains nuclear, Hartree, and XC terms) and EeeE_{ee} is the Hartree energy:

Een=ne(x)Ven(x)d3x,E_{en} = \int n_e({\bf x}) V_{en}({\bf x})\,\,\mathrm{d}^3 x\,,
Eee=12ne(x)Vee(x)d3x,E_{ee} = {1\over2} \int n_e(\mathbf{x}) V_{ee}(\mathbf{x}) \,\mathrm{d}^3 x\,,
Exc=34ne(x)Vxc(x)d3x.E_{xc} = {3\over 4}\int n_e({\bf x}) V_{xc}({\bf x})\,\,\mathrm{d}^3 x\,.

For simplicity, we assume here that VxcV_{xc} only contains the exchange of the homogeneous electron gas. For a general XC functional, the relation is nonlinear and one must simply numerically calculate the XC energy density exc(x)e_{xc}({\bf x}) and calculate the XC energy using:

Exc=ne(x)exc(x)d3x.E_{xc} = \int n_e({\bf x}) e_{xc}({\bf x})\,\,\mathrm{d}^3 x\,.

In our case here, we have exc=34Vxc(x)e_{xc} = {3\over4}V_{xc}({\bf x}), which is only true for the exchange in homogeneous electron gas. Otherwise the relation is nonlinear.

The density is a functional derivative with respect to μ\mu:

ne(x)=δΩ[β,μ]δμ=223π2β52μI32(β(μV(x)))=223π2β52β32I12(β(μV(x)))=n_e({\bf x}) = - {\delta \Omega[\beta, \mu] \over \delta \mu} = {2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} {\partial \over \partial \mu} I_{3\over2}\left(\beta\left(\mu-V({\bf x})\right)\right) = {2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \beta {3\over 2} I_{1\over2} \left(\beta\left(\mu-V({\bf x})\right)\right) =
=2π2β32I12(β(μV(x)))= {\sqrt2 \over \pi^2 \beta^{3\over2}} I_{1\over2} \left(\beta\left(\mu-V({\bf x})\right)\right)

By defining the function Φ(ne(x))\Phi(n_e({\bf x})):

Φ(ne(x))=β(μV(x))=I121(π2β322ne(x))\Phi(n_e({\bf x})) = \beta\left(\mu-V({\bf x})\right) = I_{1\over2}^{-1}\left( {\pi^2 \beta^{3\over2} \over \sqrt 2} n_e({\bf x}) \right)

we can express the grand potential using nen_e as follows:

Ω[β,ne]=223π2β52I32(Φ(ne(x)))d3x12ne(x)Vee(x)d3x14ne(x)Vxc(x)d3x.\Omega[\beta, n_e] = -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x - {1\over2} \int n_e(\mathbf{x}) V_{ee}(\mathbf{x}) \,\mathrm{d}^3 x - {1\over 4} \int n_e(\mathbf{x}) V_{xc}(\mathbf{x}) \,\mathrm{d}^3 x\,.

Now we can calculate the free energy:

Fe[β,ne]=Ω[β,ne]+μN=Ω[β,ne]+μne(x)d3x=F_e[\beta, n_e] = \Omega[\beta, n_e] + \mu N = \Omega[\beta, n_e] + \mu \int n_e({\bf x}) \,\,\mathrm{d}^3 x =
=(223π2β52I32(Φ(ne(x)))+μne(x)ne(x)(12Vee(x)+14Vxc(x)))d3x== \int \left(-{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} I_{3\over2}(\Phi(n_e({\bf x}))) + \mu n_e({\bf x}) - n_e(\mathbf{x}) \left( {1\over2} V_{ee}(\mathbf{x}) +{1\over 4} V_{xc}(\mathbf{x}) \right) \right)\,\mathrm{d}^3 x =
=(223π2β52I32(Φ(ne(x)))+1βne(x)Φ(ne(x))+ne(x)V(x)ne(x)(12Vee(x)+14Vxc(x)))d3x== \int \left(-{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} I_{3\over2}(\Phi(n_e({\bf x}))) + {1\over \beta} n_e({\bf x}) \Phi(n_e({\bf x})) + n_e({\bf x}) V({\bf x}) - n_e(\mathbf{x}) \left( {1\over2} V_{ee}(\mathbf{x}) +{1\over 4} V_{xc}(\mathbf{x}) \right) \right)\,\mathrm{d}^3 x =
=(223π2β52I32(Φ(ne(x)))+1βne(x)Φ(ne(x))+ne(x)(Ven(x)+12Vee(x)+34Vxc(x)))d3x,= \int \left(-{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} I_{3\over2}(\Phi(n_e({\bf x}))) + {1\over \beta} n_e({\bf x}) \Phi(n_e({\bf x})) + n_e({\bf x})\left( V_{en}({\bf x}) +{1\over2} V_{ee}(\mathbf{x}) + {3\over 4} V_{xc}(\mathbf{x}) \right) \right)\,\mathrm{d}^3 x\,,

where we used the fact that μ=1βΦ(ne(x))+V(x)\mu = {1\over \beta} \Phi(n_e({\bf x})) + V({\bf x}), i.e. the left hand side μ\mu is a constant, thus the sum of the terms on the right hand side is also constant (even though the individual terms are not).

We can calculate the entropy S=(ΩT)V,μS=-\left(\partial\Omega\over\partial T\right)_{V,\mu} as follows:

TS=T(ΩT)V,μ=TS =-T \left(\partial\Omega\over\partial T\right)_{V,\mu} =
=β(Ωβ)V,μ==\beta \left(\partial\Omega\over\partial \beta\right)_{V,\mu} =
=ββ(223π2β52I32(Φ(ne(x)))d3xEee13Exc)==\beta {\partial\over\partial \beta}\left( -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x - E_{ee} - {1\over3}E_{xc} \right) =
=ββ(223π2β52I32(Φ(ne(x)))d3x)==\beta {\partial\over\partial \beta}\left( -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x \right) =
=β(52223π2β72I32(Φ(ne(x)))d3x223π2β5232I12(Φ(ne(x)))Φ(ne(x))βd3x)==\beta \left( {5\over2}{2\sqrt2 \over 3 \pi^2 \beta^{7\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int {3\over2} I_{1\over2}(\Phi(n_e({\bf x}))) {\partial\Phi(n_e({\bf x}))\over\partial\beta} \, \,\mathrm{d}^3 x \right) =
=β(52223π2β72I32(Φ(ne(x)))d3x223π2β5232I12(Φ(ne(x)))(μV(x))d3x)==\beta \left( {5\over2}{2\sqrt2 \over 3 \pi^2 \beta^{7\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x -{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int {3\over2} I_{1\over2}(\Phi(n_e({\bf x}))) (\mu-V({\bf x})) \, \,\mathrm{d}^3 x \right) =
=52223π2β52I32(Φ(ne(x)))d3xne(x)(μV(x))d3x== {5\over2}{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x - \int n_e({\bf x}) (\mu-V({\bf x})) \, \,\mathrm{d}^3 x =
=532π2β52I32(Φ(ne(x)))d3xμN+Een+2Eee+43Exc= {5\over3}{\sqrt2 \over \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x -\mu N + E_{en}+2E_{ee} + {4\over 3}E_{xc}

The total energy is then equal to:

E=Ω+μN+TS=E = \Omega + \mu N + TS =
=(223π2β52I32(Φ(ne(x)))d3xEee13Exc)+μN+532π2β52I32(Φ(ne(x)))d3xμN+Een+2Eee+43Exc== \left(-{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x - E_{ee} - {1\over3}E_{xc}\right) + \mu N +{5\over3}{\sqrt2 \over \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x -\mu N + E_{en}+2E_{ee} + {4\over 3}E_{xc} =
=2π2β52I32(Φ(ne(x)))d3x+Een+Eee+Exc= {\sqrt2 \over \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x + E_{en} + E_{ee} + E_{xc}

From which we can see that the kinetic energy EkinE_{kin} is equal to:

Ekin=E(Een+Eee+Exc)=E_{kin} = E - (E_{en} + E_{ee} + E_{xc}) =
=2π2β52I32(Φ(ne(x)))d3x= {\sqrt2 \over \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x

The relation between the total energy and free energy can be also written as:

E=F+TS=F+β(Ωβ)V,μ=E = F + TS = F + \beta \left(\partial\Omega\over\partial \beta\right)_{V,\mu} =
=F+β(Fβ)V,μ=((βF)β)V,μ= F + \beta \left(\partial F\over\partial \beta\right)_{V,\mu} = \left(\partial (\beta F)\over\partial \beta\right)_{V,\mu}

But it gives the same result as we obtained above.

To determine the kinetic part of the free energy, we set all potentials equal to zero (V(x)=Ven(x)=Vee(x)=Vxc(x)=0V({\bf x}) = V_{en}({\bf x}) = V_{ee}({\bf x}) = V_{xc}({\bf x}) = 0) and obtain:

Fkin[β,ne]=(223π2β52I32(Φ(ne(x)))+1βne(x)Φ(ne(x)))d3x.F_{kin}[\beta, n_e] = \int \left(-{2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} I_{3\over2}(\Phi(n_e({\bf x}))) + {1\over \beta} n_e({\bf x}) \Phi(n_e({\bf x})) \right)\,\mathrm{d}^3 x\,.

If the potentials are zero, then the pressure can be calculated from:

P=1VΩ[β,ne]=223π2β52VI32(Φ(ne(x)))d3x=P = -{1\over V}\Omega[\beta, n_e] = {2\sqrt2 \over 3 \pi^2 \beta^{5\over2}V} \int I_{3\over2}(\Phi(n_e({\bf x}))) \,\,\mathrm{d}^3 x =
=223π2β52VI32(βμ)d3x=223π2β52I32(βμ).= {2\sqrt2 \over 3 \pi^2 \beta^{5\over2}V} \int I_{3\over2}(\beta\mu) \,\,\mathrm{d}^3 x = {2\sqrt2 \over 3 \pi^2 \beta^{5\over2}} I_{3\over2}(\beta\mu) \,.

If the potentials are not zero, then one can calculate the pressure using:

P=(ΩV)μ,T=(FV)T,N=P = - \left(\partial\Omega\over\partial V\right)_{\mu,T} = - \left(\partial F\over\partial V\right)_{T,N} =
=Vfd3x== - {\partial \over\partial V} \int f \,\mathrm{d}^3 x =
=[f+eee]bfneneVd3x== - \left[f+e_{ee}\right]_b - \int {\partial f\over\partial n_e} {\partial n_e\over\partial V} \,\mathrm{d}^3 x =
=[f+eee]bμneVd3x== - \left[f+e_{ee}\right]_b - \mu \int {\partial n_e\over\partial V} \,\mathrm{d}^3 x =
=[f+eee]b+μ[ne]b== - \left[f+e_{ee}\right]_b + \mu [n_e]_b =
=[(f)eee+μne]b== \left[(-f)-e_{ee}+\mu n_e \right]_b =
=[(23ekin+eee+13excμne)eee+μne]b== \left[\left({2\over3}e_{kin} + e_{ee} + {1\over3}e_{xc}-\mu n_e\right) -e_{ee}+\mu n_e \right]_b =
=[23ekin+13exc]b== \left[{2\over3}e_{kin} + {1\over3}e_{xc}\right]_b =
=13Vb(23ekin+13exc)xndS== {1\over 3V} \int_b \left( {2\over3}e_{kin} + {1\over3}e_{xc} \right) {\bf x}\cdot{\bf n}\,\,\mathrm{d} S =
=13V(23ekin+13exc)xd3x+13Vx(23ekin+13exc)d3x== {1\over 3V} \int \left( {2\over3}e_{kin} + {1\over3}e_{xc} \right) \nabla\cdot{\bf x}\,\,\mathrm{d}^3 x + {1\over 3V} \int {\bf x}\cdot\nabla \left( {2\over3}e_{kin} + {1\over3}e_{xc} \right) \,\,\mathrm{d}^3 x =
=13V(2Ekin+Exc)+13Vx(ne(x)V(x)+13exc)d3x== {1\over 3V} (2E_{kin} + E_{xc}) + {1\over 3V} \int {\bf x}\cdot \left( -n_e({\bf x})\nabla V({\bf x}) + \nabla{1\over3}e_{xc} \right) \,\,\mathrm{d}^3 x =
=13V(2Ekin+Exc)+13V(Een+Eee)== {1\over 3V} (2E_{kin} + E_{xc}) + {1\over 3V} (E_{en}+E_{ee}) =
=13V(2Ekin+Een+Eee+Exc)= {1\over 3V}(2E_{kin} + E_{en} + E_{ee} + E_{xc})

Summary:

Ω=23EkinEee13Exc\Omega = -{2\over 3} E_{kin} - E_{ee} - {1\over3}E_{xc}
Fe=Ω+μN=23EkinEee13Exc+μNF_e = \Omega + \mu N = -{2\over 3} E_{kin} - E_{ee} - {1\over3}E_{xc} + \mu N
TS=53Ekin+Een+2Eee+43ExcμNTS = {5\over3} E_{kin} + E_{en} + 2 E_{ee} + {4\over3}E_{xc} - \mu N
E=F+TS=Ω+μN+TS=Ekin+Een+Eee+Exc,E = F + TS = \Omega + \mu N + TS = E_{kin} + E_{en} + E_{ee} + E_{xc}\,,

where:

Ekin=2π2β52I32(Φ(ne(x)))d3xE_{kin} = {\sqrt2 \over \pi^2 \beta^{5\over2}} \int I_{3\over2}(\Phi(n_e({\bf x}))) \, \,\mathrm{d}^3 x
Een=ne(x)Ven(x)d3xE_{en} = \int n_e({\bf x}) V_{en}({\bf x})\, \,\mathrm{d}^3 x
Eee=12ne(x)Vee(x)d3xE_{ee} = {1\over2} \int n_e({\bf x}) V_{ee}({\bf x})\, \,\mathrm{d}^3 x
Exc=34ne(x)Vxc(x)d3xE_{xc} = {3\over4}\int n_e({\bf x}) V_{xc}({\bf x})\, \,\mathrm{d}^3 x
ne(x)=2π2β32I12(β(μV(x)))n_e({\bf x}) = {\sqrt2 \over \pi^2 \beta^{3\over2}} I_{1\over2}\left( \beta\left(\mu-V({\bf x})\right) \right)
Φ(ne(x))=β(μV(x))=I121(π2β322ne(x))\Phi(n_e({\bf x})) = \beta\left(\mu-V({\bf x})\right) = I_{1\over2}^{-1}\left( {\pi^2 \beta^{3\over2} \over \sqrt 2} n_e({\bf x}) \right)
N=ne(x)d3xN = \int n_e({\bf x})\, \,\mathrm{d}^3 x
μ=1βΦ(ne(x))+V(x)\mu = {1\over \beta} \Phi(n_e({\bf x})) + V({\bf x})

and μN\mu N is calculated as follows:

μN=μne(x)d3x=\mu N = \int \mu n_e({\bf x})\, \,\mathrm{d}^3 x =
=1βΦ(ne(x))ne(x)d3x+V(x)ne(x)d3x== {1\over \beta} \int \Phi(n_e({\bf x})) n_e({\bf x})\, \,\mathrm{d}^3 x + \int V({\bf x}) n_e({\bf x})\, \,\mathrm{d}^3 x =
=1βΦ(ne(x))ne(x)d3x+Een+2Eee+43Exc.= {1\over \beta} \int \Phi(n_e({\bf x})) n_e({\bf x})\, \,\mathrm{d}^3 x + E_{en} + 2 E_{ee} + {4\over3} E_{xc} \,.

So FeF_e can also be expressed as:

Fe=23EkinEee13Exc+μN=F_e = -{2\over 3} E_{kin} - E_{ee} - {1\over3}E_{xc} + \mu N =
=23Ekin+1βΦ(ne(x))ne(x)d3x+Een+Eee+Exc.= -{2\over 3} E_{kin} + {1\over \beta} \int \Phi(n_e({\bf x})) n_e({\bf x})\, \,\mathrm{d}^3 x + E_{en} + E_{ee} + E_{xc} \,.