1 Introduction

The Hohenberg–Kohn (HK) theorems [1] offer a seductive approach to the physical properties of a system without using wavefunctions [2]. However, finding reliable approximations to the HK functional is very difficult [3, 4]. Exact approaches [57] sacrifice conceptual simplicity and in practice require the same computational effort as wavefunction methods [8, 9]; simple approximations tend to fail unpredictably [3].

Especially in orbital-free density functional theory (OF-DFT), approximate functionals for the kinetic energy [1031] often suffer from the lack of N-representability of density functionals [3234], and consequently, they tend to fail during the variational optimization of the electron density, producing bosonic-like structureless electron densities. This failure is attributed to an insufficient incorporation of the Pauli exclusion principle in the approximate functional. The Pauli kinetic energy, which is defined as the difference between the non-interacting kinetic energy and the bosonic von Weizsäcker term [35], as well as the corresponding Pauli potential has been intensively studied in the literature [3644] as they represent the only unknown part of the Kohn–Sham (KS) kinetic energy functional and its corresponding KS potential.

Recently, one of us showed how to design approximations for the Pauli potential that give electron densities with proper atomic shell structure [4547]. An extension of this method, applicable to bound Coulomb systems, can be found in reference [48]. However, those approximations are given in terms of a position variable and as such do not provide a direct route for obtaining the corresponding parent functional using, for example, path integration techniques [49]. Of course, the corresponding functional of degree one can always be constructed [36, 50], but this functional expression does not fulfill known constraints on the kinetic energy, like homogeneous scaling [36], and is a poor approximation to total kinetic energy values even though it yields qualitatively correct binding energy curves for strong and moderately bound molecules [50].

In this work, we show how to construct functionals that correctly transform under homogeneous coordinate scaling and yield a specified functional derivative. Examples of the proposed bifunctional construction will be given for the exchange energy and the Pauli kinetic energy.

2 Theory

Our approach to functionals with specified functional derivative is a bifunctional construction, using a potential functional that specifies the functional derivative and an approximate density functional. Additionally, the bifunctional is designed to properly transform under homogeneous coordinate scaling [51].

A functional that is homogeneous with respect to coordinate scaling:

$$\begin{aligned} &Q[\rho _{\alpha }] = \alpha ^{\mu } Q[\rho ] \\& \rho _{\alpha }(x,y,z) =\alpha ^3 \rho _{\alpha }(\alpha x, \alpha y, \alpha z) \end{aligned}$$
(1)

can always be approximated by a local functional with the correct scaling:

$$\begin{aligned} Q[\rho _{\alpha }]& =C \int \left( \rho _{\alpha }(\mathbf {r}) \right) ^{\mu /3+1} \, {\mathrm {d}}\mathbf {r} \\& =C \int \int \int \alpha ^{\mu } \rho ^{\mu /3+1}(\alpha x, \alpha y, \alpha z) \, {\mathrm {d}}(\alpha x) \, {\mathrm {d}}(\alpha y) \, {\mathrm {d}}(\alpha z) \\& =\alpha ^{\mu } Q[\rho ] , \end{aligned}$$
(2)

where C, \(\alpha \) and \(\mu \) are constants. This suggests that we consider a change in the argument of the density functional to the quantity \(\rho ^{\mu /3+1}(\mathbf {r})\), so that the functional is homogeneous of degree one and its functional derivative is homogenous of degree zero with respect to coordinate scaling:

$$\begin{aligned} \frac{\delta Q}{\delta \rho ^{\mu /3+1}(\mathbf {r})}& =\int \frac{\delta Q}{\delta \rho (\mathbf {r}')} \frac{\delta \rho (\mathbf {r}')}{\delta \rho ^{\mu /3+1}(\mathbf {r})} \, {\mathrm {d}}\mathbf {r}' \\& =\int \frac{\delta Q}{\delta \rho (\mathbf {r}')} \frac{\delta (\mathbf {r}- \mathbf {r}')}{\delta \left( \frac{\mu }{3} +1 \right) \rho ^{\mu /3}(\mathbf {r})} \, {\mathrm {d}}\mathbf {r}' \\& =\frac{3}{\mu + 3} \rho ^{-\mu /3}(\mathbf {r}) \frac{\delta Q}{\delta \rho (\mathbf {r})} . \end{aligned}$$
(3)

The advantage of this approach is that \(\frac{\delta Q}{\delta \rho ^{\mu /3+1}(\mathbf {r})}\) has the same scaling as a constant.

Finally, the bifunctional \(Q_{v}[\rho ]\) is constructed as the sum of an approximate density functional \(\tilde{Q}[\rho ]\) that obeys homogeneous scaling and the bifunctional correction:

$$\begin{aligned} Q_{v}[\rho ]& =\tilde{Q}[\rho ] \\&\quad + \int \rho ^{\mu /3 + 1}(\mathbf {r}) \left[ \frac{\delta Q}{\delta \rho ^{\mu /3+1}(\mathbf {r})}|_{{{\text {acc}}}} - \frac{\delta \tilde{Q}}{\delta \rho ^{\mu /3+1}(\mathbf {r})}|_{{{\text {acc}}}} \right] \, {\mathrm {d}}\mathbf {r} \\& =\tilde{Q}[\rho ] + \left( \frac{3}{\mu + 3} \right) \int \rho ^{\mu /3 + 1}(\mathbf {r}) \\&\quad \times \left\{ \left( \rho [v_{{{\text {acc}}}}; \mathbf {r}]\right) ^{- \mu /3} \left[ v_{{{\text {acc}}}}(\mathbf {r}) - \frac{\delta \tilde{Q}[\rho [v_{{\text {acc}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} \right] \right\} \, {\mathrm {d}}\mathbf {r}, \end{aligned}$$
(4)

where \(v_{{\text {acc}}}(\mathbf {r}) = \frac{\delta Q }{ \delta \rho (\mathbf {r})}|_{{\text {acc}}}\) is an accurate functional derivative associated with the electron density \(\rho [v_{{\text {acc}}}; \mathbf {r}]\). Notice that by construction the term in curly braces does not depend on the electron density. Because of this, both the first and the second terms of Eq. 4 have the correct scaling, and so the overall functional does also. In addition, taking the functional derivative at the solution point, one obtains:

$$\begin{aligned}&\frac{\delta Q_v[\rho [v_{{\text {acc}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} = \frac{\delta \tilde{Q}[\rho [v_{{\text {acc}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} \\&\quad + \left( \frac{3}{\mu + 3} \right) \left( \frac{\mu + 3}{3} \right) \left( \rho [v_{{\text {acc}}}; \mathbf {r}]\right) ^{\mu /3} \left( \rho [v_{{\text {acc}}}; \mathbf {r}]\right) ^{-\mu /3} \\&\quad \times \left[ v_{{\text {acc}}}(\mathbf {r}) - \frac{\delta \tilde{Q}[\rho [v_{{\text {acc}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} \right] \\& = v_{{{\text {acc}}}}(\mathbf {r}) \end{aligned}$$
(5)

the desired potential expression \(v_{{\text {acc}}}(\mathbf {r})\), that can be chosen to be the accurate potential for the system of interest. Therefore, the functional defined by Eq. 4 obeys homogeneous coordinate scaling and has the specified functional derivative, as it shifts the minimum of the approximative functional \(\tilde{Q}[\rho ]\) to the specified expression for the potential. Notice that the desired minimizing density is obtained for all possible choices of approximate \(\tilde{Q}[\rho ]\). In practice, however, the density will be obtained from the corresponding potential expression alone. The energy evaluated from the proposed bifunctional \(Q_{v}[\rho ]\) depends on the approximation for \(\tilde{Q}[\rho ]\), where any approximation obeying homogeneous coordinate scaling [51] can be chosen. Alternatively, but equivalently, the energy can be evaluated by the virial theorem [51].

At the solution point, the proposed bifunctional construction with specified functional derivative:

$$\begin{aligned} Q_{v}[\rho _{{\text {acc}}}]& =\tilde{Q}[\rho _{{\text {acc}}}] \\&\quad + \left( \frac{3}{\mu + 3} \right) \int \rho _{{\text {acc}}}(\mathbf {r}) \left[ v_{{\text {acc}}}(\mathbf {r}) - \frac{\delta \tilde{Q}[\rho [v_{{\text {acc}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} \right] \, {\mathrm {d}}\mathbf {r}\end{aligned}$$
(6)

yields an improvement over the original functional approximation \(\tilde{Q}[\rho ]\) as the accurate electron density is obtained by construction. Moreover, in stark contrast to existing kinetic energy density functionals, the potential is evaluated at the accurate reference density, rather than the poor quality minimizing density associated with \( \tilde{Q}[\rho ]\). This corrects for density-driven errors in the functional [5254]. Finally, because the functional scales correctly and the density and potential are correct, the value of Q is correct for the minimizing density (by the Euler theorem for homogeneous functionals). Finding an approximate functional in the form \(F[\rho ] = \int f(\rho , \dots ) \, {\mathrm {d}}\mathbf {r}\) that produces an accurate energy and potential expression for an actual reference density is less difficult than what the formulation in Eq. 5 achieves, which is a functional that gives this reference density by variational minimization of the functional.

As a first example of this formulation, consider the exchange energy density functional. For any electron density that is the Hartree–Fock ground state for some system, the exact exchange potential is given by the HFxc method [55]. Using the HFxc potential, \(v_{{\text {HFxc}}}(\mathbf {r})\), for a Hartree–Fock density \(\rho _{{\text {HF}}}(\mathbf {r})\), one can write the functional:

$$\begin{aligned} E_{X}[\rho ]& =\tilde{E}_{X}[\rho ] + \frac{3}{4} \int \rho ^{4/3}(\mathbf {r}) \\&\quad \times \left\{ \left( \rho _{{\text {HF}}}(\mathbf {r})\right) ^{- 1/3} \left[ v_{{\text {HFxc}}}(\mathbf {r}) - \frac{\delta \tilde{E}_X[\rho _{{\text {HF}}}]}{\delta \rho (\mathbf {r})} \right] \right\} \, {\mathrm {d}}\mathbf {r}. \end{aligned}$$
(7)

The issue of designing functionals with appropriate functional derivatives is most critical in orbital-free density functional theory. Therefore, the proposed bifunctional is especially useful in this context. For the Pauli kinetic energy, the corresponding bifunctional construction at the solution point yields:

$$\begin{aligned} T_{{\text {P}}}[\rho ]& =\tilde{T}_{{\text {P}}}[\rho ] \\&\quad + \frac{3}{5} \int \rho (\mathbf {r}) \left[ v_{{\text {P}}}(\mathbf {r}) - \frac{\delta \tilde{T}_{{\text {P}}}[\rho [v_{{\text {P}}}; \mathbf {r}]]}{\delta \rho (\mathbf {r})} \right] \, {\mathrm {d}}\mathbf {r}\end{aligned}$$
(8)

whereby \(\tilde{T}_{{\text {P}}}[\rho ]\) can be any functional approximation for the Pauli kinetic energy that obeys homogeneous coordinate scaling.

3 Conclusions

In this work, a strategy for the design of functionals that transform correctly under homogeneous coordinate scaling and yield a specified functional derivative is presented. This goal was achieved with the help of a bifunctional construction, depending on the electron density and a specified potential–density pair, determining the functional derivative. By construction, this bifunctional always recovers this pair when it is variationally optimized. However, the corresponding energy is mainly determined by the chosen density functional approximation.