Lecture 7

20
Lecture 7. Density functional theory October 4 – 1 / 20 Introduction to Computational Chemistry Vesa H¨ anninen Laboratory of Physical Chemistry Chemicum 4th floor vesa.hanninen@helsinki.fi October 11, 2012

description

hghfghfh

Transcript of Lecture 7

Page 1: Lecture 7

Lecture 7. Density functional theory October 4 – 1 / 20

Introduction to Computational Chemistry

Vesa HanninenLaboratory of Physical Chemistry

Chemicum 4th [email protected]

October 11, 2012

Page 2: Lecture 7

Overview of Density functional theory

Lecture 7. Density functional theory October 4 – 2 / 20

Density functional theory (DFT) is a quantum mechanical theory used inphysics and chemistry to investigate the electronic structure (principally theground state) of many-body systems, in particular atoms, molecules, and thecondensed phases.

■ With this theory, the properties of a many-electron system can bedetermined by using functionals, i.e. functions of another function,which in this case is the spatially dependent electron density.

■ The multiple determinant calculations require very large basis sets dueto the poor convergence of the correlation energy when theinter-electronic distance becomes very small. However, DFT can

produce accurate results with relatively small basis sets.

■ DFT has become the most popular and versatile method in

computational chemistry, accounting for approximately 90% of allcalculations today. The reason for this preference is that DFT scaleswith the same order as HF theory.

Page 3: Lecture 7

Overview of Density functional theory

Lecture 7. Density functional theory October 4 – 3 / 20

■ DFT avoids the expense of the more traditional methods, deriving the

energy directly from the electron probability density, rather than themolecular wavefunction, thus drastically reducing the dimensionality

of the problem.

■ Some history:

DFT has been very popular for calculations in solid state physics sincethe 1970s. DFT calculations agreed quite satisfactorily withexperimental data. Also, the computational costs were relatively lowwhen compared to Hartree-Fock theory and its descendants. However,DFT was not considered accurate enough for calculations in quantumchemistry until the 1990s, when the approximations used in the theorywere greatly refined to better model the exchange and correlationinteractions. DFT is now a leading method for electronic structurecalculations in chemistry and solid-state physics.

Page 4: Lecture 7

Problems with DFT methods:

Lecture 7. Density functional theory October 4 – 4 / 20

Despite the improvements in DFT, there are still difficulties in using densityfunctional theory to properly describe intermolecular interactions, especially:

■ van der Waals forces (dispersion)

■ charge transfer excitations

■ transition states

■ global potential energy surfaces and some other strongly correlatedsystems

■ calculations of the band gap in semiconductors.

Its poor treatment of dispersion renders DFT unsuitable (at least when usedalone) for the treatment of systems which are dominated by dispersion (e.g.,interacting noble gas atoms) or where dispersion competes significantly withother effects (e.g. in biomolecules). The development of new DFT methodsdesigned to overcome this problem, by alterations to the functional or by theinclusion of additive terms, is a current research topic.

Page 5: Lecture 7

DFT is based on the two Hohenberg-Kohn theorems

Lecture 7. Density functional theory October 4 – 5 / 20

The first H-K theorem demonstrates that the ground state properties of amany-electron system are uniquely determined by an electron density thatdepends on only 3 spatial coordinates.

■ It lays the groundwork for reducing the many-body problem of Nelectrons with 3N spatial coordinates to 3 spatial coordinates, throughthe use of functionals of the electron density.

■ This theorem can be extended to the time-dependent domain todevelop time-dependent density functional theory (TDDFT), which canbe used to describe excited states.

The second H-K theorem defines an energy functional for the system andproves that the correct ground state electron density minimizes this energyfunctional.

■ The second Hohenberg-Kohn theorem has two drawbacks. Firstly, itassumes that there is no degeneracy in the ground state, and secondlythe density has unknown form.

Page 6: Lecture 7

The uniform electron gas

Lecture 7. Density functional theory October 4 – 6 / 20

■ There is no systematic way to find or improve a density functional.

The most appealing way forward is to find the exact solution for amodel system, and then assume that the system of interest behavessimilarly to the model.

■ The first density functionals were due to Thomas, Fermi, and Dirac, allof which used the uniform electron gas as their model.

■ The uniform electron gas is defined as a large number of electrons Nin a cube of volume V, throughout which there is a uniform spread ofpositive charge sufficient to make the system neutral. The uniform gasis then defined as the limit N → ∞, V → ∞, with the densityρ = N/V remaining finite.

■ Although it does bear some resemblance to electrons in metals, itswidespread use is due to its simplicity – it is completely defined by onevariable, the electron density ρ. Using the uniform electron gas, anexpression for the kinetic energy (the Thomas-Fermi kinetic functional)

can be derived TTF27[ρσ] = 3

10(6π2)2/3

ρ5/3

σ (r) drwhere σ can take the values of α or β.

Page 7: Lecture 7

The uniform electron gas

Lecture 7. Density functional theory October 4 – 7 / 20

When applied to atoms and molecules the Thomas-Fermi functional yieldskinetic energies that are about 10% too small. Similarly, an expression for theexchange energy of the uniform electron gas can be calculated (the Diracexchange functional)

ED30

x [ρσ] = −3

2(

3

4π)1/3

ρ4/3

σ (r) dr (1)

The Dirac functional also gives exchange energies that are roughly 10%smaller than those from HF theory. More worrying is that the spuriousself-interaction of electrons is not exactly canceled.

Page 8: Lecture 7

The non-uniform electron gas

Lecture 7. Density functional theory October 4 – 8 / 20

The electron densities of atoms and molecules are often far from uniform, sofunctionals based on systems which include an inhomogeneous density shouldperform better. In 1935 von Weizsacker placed infinitesimally small ripples onthe uniform electron gas and calculated the second order correction to thekinetic energy

TW35[ρσ] = TTF27[ρσ] +1

8

ρ5/3

σ x2

σ dr (2)

where x(r) is a dimensionless quantity, the reduced density gradient

x(r) =|∇ρ(r)|

ρ4/3(r). (3)

Unfortunately the original derivation was flawed and the above functional istoo large by a factor of nine. The corrected functional is a large improvementon TTF27[ρ], yielding kinetic energies typically within 1% of HF theory.

Page 9: Lecture 7

The non-uniform electron gas

Lecture 7. Density functional theory October 4 – 9 / 20

A similar correction was made to the Dirac exchange functional by Sham andKleinman. The second order correction to the exchange energy is

ESK71

x [ρσ] = ED30

x [ρσ] −5

(36π)5/3

ρ4/3

σ x2

σ dr. (4)

The corrected functional gives exchange energies that are typically within 3%of HF; however, it is not seen as an improvement over the Dirac functional, asthe potential is unbounded in the Rydberg regions of atoms and molecules.

Page 10: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 10 / 20

The kinetic energy has a large contribution to the total energy. Thereforeeven the 1% error in the kinetic energy of the Thomas-Fermi-Weizsackermodel prevented DFT from being used as a quantitative predictive tool. ThusDFT was largely ignored until 1965 when Kohn and Sham introduced amethod which treated the majority of the kinetic energy exactly.Key idea: The intractable many-body problem of interacting electrons in astatic external potential is reduced to a tractable problem of non-interactingelectrons moving in an effective potential.The theory begins by considering the noninteracting reference system: Nnoninteracting electrons moving in external potential vs, each in one of Norbitals, ψi. Such a system will be defined by the Hamiltonian

Hs =

N∑

i

(−1

2∇2

i ) +

N∑

i

vs(ri) (5)

Page 11: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 11 / 20

which has an exact eigenfunction that is the single determinant constructedfrom the N lowest eigenstates of the one-electron equations

[

−1

2∇2 + vs(r)

]

ψi = εiψi. (6)

We require that the ground state density be stationary. (In calculus ofvariations, the Euler–Lagrange equation, or Lagrange’s equation, is adifferential equation whose solutions are the functions for which a givenfunctional is stationary.) The corresponding Euler-Lagrange equation is

µ = vs(r) +δTs[ρ]

δρ(r), (7)

where the Lagrange multiplier is a familiar property to chemists, the chemicalpotential µ, has been introduced.

Page 12: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 12 / 20

For this system the kinetic energy and electron density are given by

Ts[ρ] =

N∑

i

〈ψi| −1

2∇2

i |ψi〉 (8)

ρ(r) =

N∑

i

|ψi(r)|2 (9)

and the total energy is given by

E[ρ] = Ts[ρ] +

vs(r)ρ(r) dr (10)

The quantity Ts[ρ] is well-defined, but not the exact kinetic energy, T [ρ].

Page 13: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 13 / 20

Kohn and Sham reformulated the interacting problem so that its kineticcomponent is defined to be Ts[ρ] to give

E[ρ] = Ts[ρ] + J [ρ] +

vs(r)ρ(r)dr + Exc[ρ], (11)

where J [ρ] is the Coulombic integral expressed in terms of electron densityand Exc[ρ] is the exchange-correlation energy. The Euler–Lagrange equationnow becomes

µ = veff (r) +δTs[ρ]

δρ(r)(12)

where the Kohn-Sham (KS) effective potential, veff is defined as

veff (r) = vs(r) +

ρ(r′)

|r− r′|dr′ + vxc(r) (13)

and the exchange-correlation potential, vxc is

vxc(r) =δExc[ρ]

δρ(r). (14)

Page 14: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 14 / 20

Kohn and Sham noticed that equation is the same as that for anon-interacting system moving in the effective potential veff (r). Thus,the exact density can be obtained by solving the N one-electron equations(the restricted KS equations)

[

−1

2∇2 + veff (r)

]

ψi = εiψi. (15)

Notice that veff depends on ρ(r), via equation (13), hence the KS equationsmust be solved iteratively.

Page 15: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 15 / 20

The KS equations are very similar to the Hartree–Fock equations. Infact, setting the exchange-correlation potential to the HF exchange potentialyields the HF equations. Drawing too many similarities to HF is dangerous,however. Firstly, the KS orbitals are simply a way of representing the density;they are not (as in HF) an approximation of the wavefunction. Also, HFtheory is variational, providing an upper bound to the exact energy, yet DFTis only variational if the exact energy functional is used.The above analysis is only appropriate for closed shell molecules. Becausethe KS equations so closely follow the restricted HF equations, both therestricted open shell and unrestricted methodologies are readily available.However, the KS equations are formally exact (given the exact Exc[ρ]), so itmust be able to produce an excess of β electron density at points in themolecule, and therefore only the unrestricted formalism is appropriate.

Page 16: Lecture 7

Kohn-Sham DFT

Lecture 7. Density functional theory October 4 – 16 / 20

■ Just as in HF theory, the KS equations are solved by expanding theorbitals over a basis set.

■ The major advantage of DFT is that the basis set requirements are farmore modest than the more conventional correlated methods

■ In DFT the basis set only needs to represent the one electron density –the inter-electron cusp is accounted for by the effective potential, veff .In the more traditional methods the basis set describes the entireN-electron wavefunction, requiring an accurate description of the cuspwhich is sensitive to the basis set.

■ The kinetic energy functional is known exactly.

■ The exchange-correlation part of the total-energy functional remainsunknown and must be approximated.

Page 17: Lecture 7

Local-density approximation

Lecture 7. Density functional theory October 4 – 17 / 20

In local-density approximation (LDA), the exchange-correlation energyfunctional Exc[ρ] (see Eq.(11) depends only on the density at the coordinatewhere the functional is evaluated.

ELDAxc [ρ] =

ǫxc(ρ)ρ(r)dr, (16)

where εxc(ρ) is the exchange-correlation energy density. Theexchange-correlation energy is decomposed into exchange and correlationterms linearly

Exc = Ex +Ec, (17)

so that separate expressions for Ex and Ec are sought. The uniform electrongas functional is used for the Ex. Only limiting expressions for the correlationdensity are known exactly, leading to numerous different approximations forEc.

Page 18: Lecture 7

Generalized gradient approximation

Lecture 7. Density functional theory October 4 – 18 / 20

LDA treats all systems as homogeneous. However, real systems areinhomogeneous. Generalized gradient approximation (GGA) takes this intoaccount by including the derivative information of the density into theexchange-correlation functionals.

EGGAxc [ρ] =

f(ρ(r),∇(ρ(r)))dr, (18)

■ In comparison with LDA, GGA tend to improve total energies,atomization energies, energy barriers and structural energy differences

■ GGA expand and soften bonds, an effect that sometimes corrects andsometimes overcorrects the LDA prediction

■ Whereas the ǫxc(ρ) (in LDA) is well established, the best choice forf(ρ(r),∇(ρ(r)) is still a matter of debate

Page 19: Lecture 7

DFT remarks

Lecture 7. Density functional theory October 4 – 19 / 20

In practice, Kohn-Sham theory can be applied in several distinct waysdepending on what is being investigated.

■ In solid state calculations, the local density approximations are stillcommonly used along with plane wave basis sets, as an electron gasapproach is more appropriate for electrons delocalised through aninfinite solid.

■ In molecular calculations more sophisticated functionals are needed,and a huge variety of exchange-correlation functionals have beendeveloped for chemical applications.

■ In the chemistry community, one popular functional is known as BLYP(from the name Becke for the exchange part and Lee, Yang and Parrfor the correlation part).

■ Even more widely used is B3LYP which is a hybrid functional in whichthe exchange energy, in this case from Becke’s exchange functional, iscombined with the exact energy from Hartree–Fock theory. Theadjustable parameters in hybrid functionals are generally fitted to a’training set’ of molecules.

Page 20: Lecture 7

DFT remarks

Lecture 7. Density functional theory October 4 – 20 / 20

■ Unfortunately, although the results obtained with these functionals areusually sufficiently accurate for most applications, there is nosystematic way of improving them (in contrast to methods likeconfiguration interaction or coupled cluster theory)

■ Hence in the current DFT approach it is not possible to estimate theerror of the calculations without comparing them to other methods orexperiments.