Chapter 14 - Density Functional Theory
by Reinaldo Baretti Machín
Home page
http://www1.uprh.edu/rbaretti/methodsoftheoreticalphysics.htm
For questions and suggestions write to:
References:
1. Density-Functional Theory of Atoms and Molecules (International Series of Monographs on Chemistry) by Robert G. Parr and Yang Weitao
2. http://en.wikipedia.org/wiki/Density_functional_theory
3.Introduction to Chemical Physics by J. C. Slater
4. http://en.wikipedia.org/wiki/Functional_derivative
The main goal of density functional theory (DFT) is to find the ground state properties of atoms and molecules working with the electron density ρ(r) instead of the wave function Ψ (r1 , r2 , ..rn ) . Just as the simplification is immense so are the various schemes and approximations proposed through the years.
The first connection between the electron density and the total kinetic energy was obtained in the free electron model of metals. This would later be incorporated in the first versions of DFT . A relation is established between the maximum kinetic energy and the electron density.
Consider electrons in a metal as free particles in a box of side L3 . The standing wave are constrained to vanish at the boundaries.
Thus kx L = nx π , ky L = ny π , kz L = nz π . Letting px = h' kx , py = h' ky , px = h' kx , ( h' =h/(2π) ) ,
one has a minimal volume in momentum space equal to
∆px ∆py ∆pz = (π /h') 3(1/L3 ) (∆nx ∆ny ∆nz ) . (1)
But the minimal change in the quantum numbers is , ∆nx = 1, ∆ny =1 , ∆nz =1 . Hence the minimal volume in p space is
dτp = π 3/ L3 = π 3/ V , ( adopting h'=1) (2)
where V=L3 is the box volume.
Consider now (1/8) - th of the volume of the spherical shell (4π p2 dp ) / 8. Dividing by equation (2) one would have the number of states in the range p , p+dp
number of states between , p and p+dp ~ { (π p2 dp ) / 2 } (V/ π 3 ) . (3)
Each momentum state can be occupied by two electrons (in the ground state at T=0 absolute). Multiplying (3) by the factor 2 one gets
dN (p) = (V/ π 2 ) p2 dp . (4)
Introduce now the kinetic energy expression , p2 = ( 2 m ε ) = 2 ε , dp = dε /(2ε )1/2 , to obtain
dN(ε ) = V (21/2 /π ) ε 1/2 dε . (5)
Integrating (5) establishes a relation between the total number , N electrons , and the maximum value of ε .
The number of electrons is
N = ( V 23/2 /3π2 ) εmax 3/2 . (6)
Introducing the density ρ = N/V ( perhaps maximum density ) one gets
εmax = ( 32/3 π4/3 / 2 ) ρ 2/3 . (7)
The kinetic energy of the free electron gas is given by the integration
T = ∫ ε dN( ε ) = V (21/2 /π ) ∫ ε 3/2 dε , 0 < ε < εmax . (8)
εmax is called the Fermi energy level. It corresponds to the electron with the shortest wavelength , maximum k value.
It follows from (7) that
T = { V 23/2 /(5π2 ) } εmax 5/2 . (9)
Inserting (7) in (9) yields the "kinetic energy density "
tρ = T/V = ( 35/3 π4/3 /10 ) ρ 5/3
= Ck ρ 5/3 , (10)
where Ck = ( 35/3 π4/3 /10 ) = 2.871234000188192 .
The first approximation in DFT to the kinetic energy in an atom was
KE = ∫ Ck ρ 5/3 d3 r . (11)
In the Thomas Fermi model the total energy of the atom is
Eρ = ∫ Ck ρ(r) 5/3 d3 r -Z ∫ (ρ(r )/ r ) d3 r + (1/2) ∫ ∫ ρ(r )ρ(r' )d3 r d3 r' / abs(r-r') . (12)
A small check of formula (11) may be done using the well known helium atom ground state. A first approximation is to take the wave function as
Ψ1s (r) = ( z3 /π )1/2 exp(-zr) , (13)
where z=2 ( the atomic number) . The electron density is
ρ(r) = 2 { Ψ1s (r) }2 . (14)
Using (11) the kinetic energy estimate turns out to be 1.28 .
In the Hartree-Fock scheme ,the total energy is -2.86 au and by the virial theorem KE =(1/2) /E/ = 2.86/2 =1.43 au .
Hence our functional density estimate is in error by nearly 10% .
MAXIMA code

1.278783881235112
By taking the functional derivative of (12) ,see ref. 4 , an integral equation is found for the density
δ E / δ ρ = (5/3) Ck ρ(r) 2/3 - Z/r + ∫ { ρ(r') / abs(r-r') } d3 r' . (15)
Since we are looking for the ground state , the minimum energy , it makes sense to equate δ E/ δ ρ =0 , just as in ordinary Calculus.
A non linear integral equation results
(5/3) Ck ρ(r) 2/3 = Z/r - ∫ { ρ(r') / abs(r-r') } d3 r' . (16)
A few steps have to be taken to get from (16) a manageable differential equation known as the Thomas Fermi equation.
The right hand side of (16) is the electrostatic potential Φ(r) , and one writes
(5/3) Ck ρ(r) 2/3 = Φ(r) = Z/r - ∫ { ρ(r') / abs(r-r') } d3 r' (17)
from which one obtains
ρ(r) = { 3 Φ(r)/(5Ck ) }3/2 . (18)
Recall that the laplacian operator is such that when applied to 1/r ,
∆2 (1/ r ) = - 4πδ( r) and ∆2 (1/ abs (r-r') ) = - 4πδ( r -r ').
Applying the laplacian operator to Φ(r) in (17) yields
∆2 Φ(r) = 4π ρ(r) - 4π Z δ(r) , (19)
and using (18)
∆2 Φ(r) = 4π { 3 Φ(r)/(5Ck ) }3/2 - 4π Z δ(r) ,(20)
or ∆2 Φ(r) = 4π { Φ(r)/C }3/2 - 4π Z δ(r) , (21)
where C= 5Ck/3 = 4.785390000313654.
To get rid of the nasty delta function introduce the function screening funtion χ (r) , through the definition
Φ(r) = (Z/r) χ (r) (22)
with boundary conditions χ (0) = 1 , χ ( ∞) = 0 .
From (21) ,
∆2 Φ = ∂2Φ/∂ r2 + (2/r) ∂Φ /∂r = (Z/r) χ '' = (4π /C3/2) (Z/r)3/2 χ 3/2 , (23)
and ths Thomas Fermi equation is reached,
χ '' = (4π /C3/2) (Z/r)1/2 χ 3/2 .(24)
Finding χ
Another length scale can be introduced , r is already in atomic units. One has from (24) that 1/L2 ~(4π /C3/2) (Z/L)1/2 and therefore we have a second adimensional length scale
Lscale = C/{(4π)2/3 Z1/3 } , (25-a)
or Lscale = 0.885341 / Z1/3 . (25-b)
Notice that L ~ Z-1/3 .
In terms of the new variable u = r/L eq (24) becomes
d2 χ (u) /du2 = (1/u1/2 ) χ(u) 3/2 . (26)

Fig. 1. The initial slope is about -1.55 , in order to have χ ( ufinal = 5) = 0 .

Fig. 2 . The Chi curve can be approximated by χ (u) = 0.7772 exp( -.5019 u) in order to simplify future calculations.
The energy functional (12) scales like Z7/3 . That is Etotal = -constant Z7/3 . Consider for example the attractive potential
VN = -Z ∫ (ρ(r )/ r ) d3 r . If we go to the second a-dimensional scale ,eq (25) , the Z dependence of ρ(r) is,
ρ(r) = { 3 Φ(r)/(5Ck ) }3/2 ~ Z3/2 L-3/2 ~ Z3/2 ( Z-1/3 )-3/2 ~ Z2 .
Also in the integrand
(1/r) d3r ~ L2 ~ (Z-1/3 )2 ~ Z-2/3 . Hence
VN ~ -Z (Z2 ) Z-2/3 ~ - Z7/3 .
The same dependence on Z holds for the kinetic energy Ck ρ(r) 5/3 d3 r and the repulsive energy
Vee = (1/2) ∫ ∫ ρ(r )ρ(r' )d3 r d3 r' / abs(r-r') .
Calculation of Eρ
We start with Tρ = ∫ Ck ρ(r) 5/3 d3 r . Using the relations between the density and the potential and χ this reduces to
Tρ = 0.720253 Z5/2 ∫ r-1/2 χ(r) dr . ( 27 )
Change now to the dimensionless variable x using the relation ( see eq .25-b)
r = 0.885341 Z-1/3 x , dr = 0.885341 Z-1/3 dx . whereby (27) leads to
Tρ = 0.677704 Z7/3 ∫ x-1/2 χ(x)5/2 dx , 0 < x ∞ = . (28)
The integral ∫ x-1/2 χ(x)5/2 dx = 0.84261330803541 where we have used the numerical fit χ (u) = 0.7772 exp( -.5019 u) .
MAXIMA code
chi(u):= 0.7772*exp( -.5019*u);
integrate(u^(-1/2)*chi(u)^(5/2),u,0,inf),numer;
0.84261330803541
Hence
Tρ = 0.571042 Z7/3 . (29)
Going to the attractive potential term one gets
VN = -Z ∫ (ρ(r )/ r ) d3 r = -4π (3/5Ck )3/2 Z5/2 ∫ r-1/2 χ(r) 3/2 dr
= -1.200422 Z5/2 ∫ r-1/2 χ(r) 3/2 dr . (30)
Introducing the variable x , we get
VN = -1.200422 Z5/2 ∫ (0.885341 Z-1/3 x ) -1/2 χ(x) 3/2 ( 0.885341 Z-1/3 dx )
= - 1.12951 Z7/3 ∫ x-1/2 χ(x) 3/2 dx , 0 < x < ∞ ,
= - 1.12951 * Z7/3 * 1.39965,
VN = - 1.5809 Z7/3 . (31)
Multipltying(17) by ρ(r) and integrating gives
(5/3) Ck ∫ ρ5/3 d3 r = ∫ (Z/r) ρ(r) d3 r - ∫ ρ(r )ρ(r' )d3 r d3 r' / abs(r-r') , or what is equivalent ,
(5/3) KE = - VNe - 2 Vee . (32)
The repulsive energy is
Vee = -(5/6)KE - (1/2) VNe . (33)
In terms of Z7/3
Vee = 0.31458 Z7/3 . (34)
Addition of (29, (31) and (34) gives the Thomas-Fermi formula for the ground state energy,
E = -0.695278 Z7/3 . (35)
In the literature (ref. 1 , page 113) one finds ,
E = - 0.7687 Z7/3 . (36)
We are reminded that we employed a smaller initial slope χ' (0) = 1.55 and after solving for χ used an exponential fit assumed to be valid from 0 to infinity.


Fig 3. The approximation E = -0.695278 Z7/3 on the left , E (Hartree - Fock ) on the right.
integrate(u^(-1/2)*chi(u)^(3/2),u,0,inf),numer;
1.399651445065135
(.570816-2.1412+.5949),numer;
(%o2) - 0.975484
FORTRAN code
dimension rho(0:5000) ,phi(0:5000) ,chi(0:20000)
data nstep ,ck/15000,2.87123/
data niter/1/
etf(z)=-.7687*z**(7./3.)
c ehf has a variable factor multilying Z**(7./3.)
c ehf(z)= -.5678*z**(7./3.)
pi=2.*asin(1.)
c=5.*ck/3.
uzero=0.
ufinal=5.
du=(ufinal-uzero)/float(nstep)
delta=.40/float(niter)
d1chi=-1.555
do 50 it=1,niter
chi(0)=1.
chi(1)=chi(0)+d1chi*du
do 10 i=2,nstep
u=uzero+du*float(i)
chi(i)=2.*chi(i-1)-chi(i-2)+du**2*(1./(u-du)**.5)*chi(i-1)**1.5
if(chi(i).lt.0.)then
chifin=chi(i)
goto 20
endif
10 continue
chifin=chi(nstep)
20 print 100,u,d1chi,chifin
d1chi=d1chi+delta
50 continue
do 60 i=0,nstep,int(float(nstep)/60.)
u=uzero+du*float(i)
print 110,u,chi(i)
60 continue
100 format('u,d1chi,chi(nstep)=',3(3x,e10.3))
110 format('u,chi(i)=',2(3x,e10.3))
stop
end